Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
i am calculating rolling 3 month annualized turnover, but something is off. My term count for March is 163, when i annualize 163 i get 652. My calculation is only annualzing March and not March and the 2 months prior.
here is my measure - any ideas how i can get it to sum Jan terms, feb terms, march terms and then annualize (X4)?
Hi @mmills2018 ,
Based on your description, the DAX formula you created does not seem to see any logical problems.
Could you please share some sample data and the expected result to have a clear understanding of your question? I can do some tests for you. 😊 If the information is sensitive please share it after removing private message.
You can save your files in some cloud sharing platforms and share the link here.
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Best Regards,
Yuna
All the formulae in this thread are incorrect. This is because any time-intel function needs a real date table to work properly. Please read the documentation on DATESINPERIOD: https://dax.guide/datesinperiod
thanks, my initial approach i did use a real data table, below is my measure:
Hey @mmills2018 ,
I think your approach with the date calculation is a little too complicated. Just try to use DATESINPERIOD as a calculate modifier, that seems to be more easy and also more logical for me:
MyMeasure =
VAR LatestMonth =
LASTDATE( Snapshots[Data as of] )
RETURN
CALCULATE(
DISTINCTCOUNTNOBLANK( 'Snapshots'[AssociateID] ),
'Snapshots'[Gender] = "Female",
'Snapshots'[Alt Term Date] <> BLANK(),
'Snapshots'[TerminationPrimaryTerminationCategory] = "Voluntary",
'Snapshots'[TerminationBusinessProcessReason] <> "Retirement",
'Snapshots'[TerminationBusinessProcessReason] <> "Assignment/Contract End",
'Snapshots'[TerminationBusinessProcessReason] <> "Deceased",
'Snapshots'[TerminationBusinessProcessReason] <> "Did Not Start",
'Snapshots'[TerminationBusinessProcessReason] <> "Failure to Provide Required Employment Eligibility",
DATESINPERIOD(
Snapshots[Data as of],
LatestMonth,
-3,
MONTH
)
) * 4
I presonally also would "clean up" the TerminationBusinessProcessReason with NOT IN, but that is optional 😉:
MyMeasure =
VAR LatestMonth =
LASTDATE( Snapshots[Data as of] )
RETURN
CALCULATE(
DISTINCTCOUNTNOBLANK( 'Snapshots'[AssociateID] ),
'Snapshots'[Gender] = "Female",
'Snapshots'[Alt Term Date] <> BLANK(),
'Snapshots'[TerminationPrimaryTerminationCategory] = "Voluntary",
NOT ( 'Snapshots'[TerminationBusinessProcessReason]
IN {
"Retirement",
"Assignment/Contract End",
"Deceased",
"Did Not Start",
"Failure to Provide Required Employment Eligibility"
} ),
DATESINPERIOD(
Snapshots[Data as of],
LatestMonth,
-3,
MONTH
)
) * 4
thanks! not sure why but when i do that, it removed my March term count, any ideas why?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |