Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello PBI Community -
I need some help, I'm creating a small dashboard with current month YTD, MTD, WTD compared to prior year. I'm having an issue with the WTD measure where its aggregate is not displaying. Any help would be greatly appreciated
Below is a screenshot and the measures I created
WTD Rev = IF (
HASONEVALUE ( 'date'[year] )
&& HASONEVALUE ('date'[week number]),
CALCULATE (
[amount],
FILTER (
ALL ( 'date' ),
'date'[year] = VALUES ('date'[year])
&& 'date'[week number] = VALUES ('date'[week number])
&& 'date'[Date] <= MAX ('date'[Date])
)
),
BLANK ()
)
WTD LY Rev = IF (
HASONEVALUE ( 'date'[year] )
&& HASONEVALUE ('date'[week number]),
CALCULATE (
SUM('reporting ops_dashboard'[amt]),
FILTER (
ALL('date'),
'date'[year] = VALUES ('date'[year])-1
&& 'date'[week number] = VALUES ('date'[week number])
&& 'date'[Date] <= MAX ('date'[Date])
)
),
BLANK ()
)
Thank you
Mike
Solved! Go to Solution.
Hi @Anonymous ,
You can create measures like DAX below.
WTD Rev =CALCULATE (
[amount],
FILTER (
ALLSELECTED ( 'date' ),
'date'[year] = MAX('date'[year])
&& 'date'[week number] = MAX('date'[week number])))
WTD LY Rev = CALCULATE (
[amount],
FILTER (
ALLSELECTED ( 'date' ),
'date'[year] = MAX('date'[year]-1)
&& 'date'[week number] = MAX('date'[week number])))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can create measures like DAX below.
WTD Rev =CALCULATE (
[amount],
FILTER (
ALLSELECTED ( 'date' ),
'date'[year] = MAX('date'[year])
&& 'date'[week number] = MAX('date'[week number])))
WTD LY Rev = CALCULATE (
[amount],
FILTER (
ALLSELECTED ( 'date' ),
'date'[year] = MAX('date'[year]-1)
&& 'date'[week number] = MAX('date'[week number])))
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |