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.
Hi all,
I have this in the DAX column but can't get it to work.
Test = CALCULATE(COUNT(Escalation[Id]),DATESINPERIOD(Escalation[Created Date],TODAY(),-1,YEAR), Escalation[Type] = "Support Manager")
Am I missing something? It's not filtering correctly for the Type
Getting error saying "A date column containing duplicate dates was specified in the call to function 'DATESINPERIOD'. This is not supported.
Solved! Go to Solution.
Hi @Anonymous,
Based on my test, You should create Calendartable using the formula. Then create relationship between dimtime and Escalation based on date column.
dimtime = CALENDARAUTO()
Then your formula should work well.
Test1 = CALCULATE(COUNT(Escalation[Id]),DATESINPERIOD(dimtime[Date],TODAY(),-1,YEAR), Escalation[Type] = "Support Manager")
For more details, please check the pbix as attched.
https://www.dropbox.com/s/bunja64n7j994q9/Counting%20Escalation%20ID.pbix?dl=0
Regards,
Frank
Hi @Anonymous,
Based on my test, You should create Calendartable using the formula. Then create relationship between dimtime and Escalation based on date column.
dimtime = CALENDARAUTO()
Then your formula should work well.
Test1 = CALCULATE(COUNT(Escalation[Id]),DATESINPERIOD(dimtime[Date],TODAY(),-1,YEAR), Escalation[Type] = "Support Manager")
For more details, please check the pbix as attched.
https://www.dropbox.com/s/bunja64n7j994q9/Counting%20Escalation%20ID.pbix?dl=0
Regards,
Frank
Hi @Anonymous,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |