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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
Grateful for anyone's help on this. The incident count of last week is not matching it's corresponding incident count on the line where it is the present week. For example, it starts out ok, but then as you can see, for week 33, the Count of Incident Id is 150, but then in the line for week 34, it says last week (week 33) Count of Incident Id was 129.
Does anyone know what could be wrong?
Here are the measures:
Solved! Go to Solution.
Hi @dafbr, I'd start from referencing the same column in "WeekNum" and "Count last wk" measures. So far I see that in "WeekNum" you're referencing 'queue'[First activity].[Date] while in "Count last wk" - 'queue'[WeekNum]. Is there any particular reason for doing it?
Obviosuly, sample pbix file with dummy data and these measures would be useful to help you 🙂
Hi @dafbr, I'd start from referencing the same column in "WeekNum" and "Count last wk" measures. So far I see that in "WeekNum" you're referencing 'queue'[First activity].[Date] while in "Count last wk" - 'queue'[WeekNum]. Is there any particular reason for doing it?
Obviosuly, sample pbix file with dummy data and these measures would be useful to help you 🙂
Hi @dafbr - adjust your measure to returns the correct count for the previous week, regardless of the row context, you can adjust the DAX measure to explicitly reference the week number
Count last wk =
CALCULATE(
DISTINCTCOUNT('queue'[Incident Id]),
FILTER(
ALL('queue'[WeekNum]),
'queue'[WeekNum] = MAX('queue'[WeekNum]) - 1
)
)
Check the above and hope it helps.
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!