Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @Stuartm1983
I would first recommend you set up your data model like this, with Date and Area dimension tables:
Then write measures as follows:
Loss Amount =
SUM ( 'Granular Voids'[Amount] )
Target Amount =
COUNTROWS ( 'Date' ) * SUM ( Target[Target Rent] )
// This treats Target Rent as a daily amount and multiplies by the number of days filtered
% Void Loss =
DIVIDE ( [Loss Amount], [Target Amount] )
Then the measures should produce the values as expected when filtered on 15 September (using your inputs at the top of the post):
PBIX attached for reference.
Regards,
Owen
Hi @Stuartm1983
I would first recommend you set up your data model like this, with Date and Area dimension tables:
Then write measures as follows:
Loss Amount =
SUM ( 'Granular Voids'[Amount] )
Target Amount =
COUNTROWS ( 'Date' ) * SUM ( Target[Target Rent] )
// This treats Target Rent as a daily amount and multiplies by the number of days filtered
% Void Loss =
DIVIDE ( [Loss Amount], [Target Amount] )
Then the measures should produce the values as expected when filtered on 15 September (using your inputs at the top of the post):
PBIX attached for reference.
Regards,
Owen
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |