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,
I have a table which I created in Power BI but a measure is not giving me the value I'm expecting.
I need the measure to essentially do 'Minutes in Period' (from slicer in this scenario is 01/01/2019 - 22/01/2019). So there are 1440 minutes in a day. Times that by 22 days = 31,680 minutes in the period. The field I've put it in is 'DateTimeSLA'.
My current measure is doing the following;
Solved! Go to Solution.
Hi @Anonymous ,
You can create measure like DAX below.
Total Minute = VAR FirstDay = CALCULATE(MIN('Service Downtime'[Date time reported]),ALLSELECTED('Service Downtime'[Date time reported])) VAR LastDay = CALCULATE(MAX('Service Downtime'[Date time reported]),ALLSELECTED('Service Downtime'[Date time reported])) RETURN DATEDIFF(FirstDay , LastDay, MINUTE)
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can create measure like DAX below.
Total Minute = VAR FirstDay = CALCULATE(MIN('Service Downtime'[Date time reported]),ALLSELECTED('Service Downtime'[Date time reported])) VAR LastDay = CALCULATE(MAX('Service Downtime'[Date time reported]),ALLSELECTED('Service Downtime'[Date time reported])) RETURN DATEDIFF(FirstDay , LastDay, MINUTE)
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |