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
This has happened after working on
Solved: Re: KPIs visuals Running incredibly slowly - Microsoft Fabric Community
I have some DAX that is basically doing a distinct count on the person ID
And that gives me my total people
I have a date dimension connected by Date Key to Snapshot date key in the fact table. And have another DAX
Solved! Go to Solution.
Hii @DebbieE
Try this for the above senario,
Did I answer your question?
Mark my post as a solution, this will help others...!
Hit the kudo also,
Thank you
ply try this
m1 =
VAR _LastYear = MAX('Dim Date'[Year]) -1
RETURN
CALCULATE (
SUMX (
VALUES ( 'Dim Person'[Person ID] ),
1
),
'Dim Date'[Year] = _LastYear
)
Yep I had done the DAX slightly wrong and resolved it by the above. Thank you
ply try this
m1 =
VAR _LastYear = MAX('Dim Date'[Year]) -1
RETURN
CALCULATE (
SUMX (
VALUES ( 'Dim Person'[Person ID] ),
1
),
'Dim Date'[Year] = _LastYear
)
Hii @DebbieE
Try this for the above senario,
Did I answer your question?
Mark my post as a solution, this will help others...!
Hit the kudo also,
Thank you
I already have this and while it works to get back to the same period last year. It doesnt get me back to the last snapshot
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |