The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear Community,
I am strugling to understand and fix the issue of empty subtotals for the measures I created in the Power Pivot model.
Please see below the view of the Pivot table:
The YoY measure returns same week previous year sales value (eg. Actual Booking in week 2 of year 2023 ($623K) are reflected as YoY Actual Bookings for week 2 of year 2024).
YoY measure synthax:
YoY:=CALCULATE([Actual Bookings],
(FILTER(ALL(T_Calendar),
T_Calendar[Fiscal Year]=IF(HASONEVALUE(T_Calendar[Fiscal Year]), VALUES(T_Calendar[Fiscal Year]))-1&&
T_Calendar[Fiscal Week]=IF(HASONEVALUE(T_Calendar[Fiscal Week]), VALUES(T_Calendar[Fiscal Week])))))
Could you please advise why the measure is present in the row of the Pivot table for each week but not visible in Subtotal while other rows in Pivot table are there in Subtotal? What should I do to fix it?
Thank you in advance!
Thanks, wdx223_Daniel. Appreciate if you could suggest what I should change in formula to make it work correctly.
YoY:=CALCULATE([Actual Bookings],
(FILTER(ALL(T_Calendar),
T_Calendar[Fiscal Year]=IF(HASONEVALUE(T_Calendar[Fiscal Year]), VALUES(T_Calendar[Fiscal Year]))-1&&
T_Calendar[Fiscal Week] IN VALUES(T_Calendar[Fiscal Week]))))
in subtotal column, HASONEVALUE was not fullfilled, it will give a blank, ie false. so there is not dates included.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
17 | |
12 |
User | Count |
---|---|
36 | |
34 | |
20 | |
19 | |
15 |