Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
really struggling (Still with time based intellicege
I have total Persons which is basically a distinct ount of people ID
And I have People this snapshot
In the date table I have a flag against the latest snapshot date used and then my dax is
Solved! Go to Solution.
@DebbieE, the reason why you are struggling is that you have to think of the context in which SAMEPERIODLAST is operating. When you remove the date column the measure in which you apply the SAMEPERIODLAST looses track of context and then sums all rows of your data in the last period, hence the 150 (Latest period) + 100 (Previous Period).
If you want to compare the date of your most recent snapshot to the same period the previous year you could also
try something like this:
VAR LYear = CALCULATE(MAX('Dim Date'[Date]) - 365, '[latest Snapshot] = 1')
Then add the variable to your filter in the calculate function under the RETURN statement as follows:
RETURN
Hopefully it gives you what you want, though it is a bit hard coded.
@DebbieE, the reason why you are struggling is that you have to think of the context in which SAMEPERIODLAST is operating. When you remove the date column the measure in which you apply the SAMEPERIODLAST looses track of context and then sums all rows of your data in the last period, hence the 150 (Latest period) + 100 (Previous Period).
If you want to compare the date of your most recent snapshot to the same period the previous year you could also
try something like this:
VAR LYear = CALCULATE(MAX('Dim Date'[Date]) - 365, '[latest Snapshot] = 1')
Then add the variable to your filter in the calculate function under the RETURN statement as follows:
RETURN
Hopefully it gives you what you want, though it is a bit hard coded.
I have gone for Flags in the Date Dimenion for this specific issue.
Thanks for that
No problem at all.
User | Count |
---|---|
86 | |
83 | |
69 | |
67 | |
55 |
User | Count |
---|---|
125 | |
100 | |
90 | |
84 | |
66 |