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
A little bamboozled by this one.
I have a field [CreatedOn] that is in format dd/mm/yy hh;nn;ss and a calculated column [Created On Date] that just returns the date part of [CreatedOn] as dd/mm/yy.
I have a slicer on [Created On Date]
All I want is to identify the minimum and maximum selected dates, for display in card visuals and to use in a calculation (divide various values by number of days selected).
I have created 2 measures;
MaxSelected = CALCULATE(max(incidents[CreatedOn].[Date]),ALLSELECTED(incidents[CreatedOn].[Date]))
Solved! Go to Solution.
Hi @Anonymous ,
Actually, in your scenario, you only need to use the following DAX query to get the result:
MaxSelected = CALCULATE(max(incidents[Created On Date])) MinSelected = CALCULATE(min(incidents[Created On Date]))
Assume that we have a table like below:
The result will like below:
Best Regards,
Teige
Hi @Anonymous ,
Actually, in your scenario, you only need to use the following DAX query to get the result:
MaxSelected = CALCULATE(max(incidents[Created On Date])) MinSelected = CALCULATE(min(incidents[Created On Date]))
Assume that we have a table like below:
The result will like below:
Best Regards,
Teige
Teige, many thanks.
Had not tried that, but would have expected that to return min and max dates of the unfiltered table.
Every dyas a school day
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 |