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.

yes. right way.

martin mason wordpress blog



SQL Server  >  SQL Server Analysis Services



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607