Average Logic
hello all,
i have fact table called fcthotelstay contains columns such amount, start_date, end_date, customer_skey etc. need calculate average rate, amount divided number of days of service (end date - start date). this, created field in dsv called servicedays = datediff(d, start_date, end_date) , added measure. created calculated member
[measures].[amount]/[measures].[servicedays].
is right way this? in advance help.
martin mason wordpress blog
SQL Server > SQL Server Analysis Services
Comments
Post a Comment