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.
Hey everyone,
I need to find the minimum value of State of Charge for each day. However, there are some incorrect values in the set in which the state of charge drops to 0 for a second and then returns to normal. This of course changes the daily minimum value to 0. So my question is, how can I remove these incorrect values using a measure?
Note that it is possible for the value to reach zero, just not with that big of a difference in one second of time.
Solved! Go to Solution.
Hi @RalphO,
You can try a Measure instead.
abnormal drop = VAR Timediff = SELECTEDVALUE ( Table2[Time] ) - CALCULATE ( MAX ( Table2[Time] ), FILTER ( ALL ( Table2 ), Table2[Time] < SELECTEDVALUE ( Table2[Time] ) ) ) VAR previousState = CALCULATE ( SUM ( Table2[State of Charge] ), FILTER ( ALL ( Table2 ), Table2[Time] = SELECTEDVALUE ( Table2[Time] ) - timediff ) ) RETURN IF ( previousState - SELECTEDVALUE ( Table2[State of Charge] ) < 25, "Y", "N" )
Best regards,
Yuliana Gu
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 |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
115 | |
105 | |
95 | |
79 | |
72 |