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.
I have created this Measure statement:
Generated Energy (KWH) = CALCULATE(max(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH") - CALCULATE(min(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH")
But also I need to add grouping to this Measure "Generated Energy (KWH)" to be calculated Group by Specific Field
Solved! Go to Solution.
Hi @dezzat,
I need to add grouping to this Measure "Generated Energy (KWH)" to be calculated Group by Specific Field
try this:
Generated Energy (KWH) = CALCULATE(( CALCULATE(max(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH") - CALCULATE(min(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH") ); //your calculation ALLEXCEPT(Readings;Readings[Specific_Field]) // Group field )//top level calculate
... and Merry Christmas.
Best regs
Hi @dezzat,
I need to add grouping to this Measure "Generated Energy (KWH)" to be calculated Group by Specific Field
try this:
Generated Energy (KWH) = CALCULATE(( CALCULATE(max(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH") - CALCULATE(min(Readings[Reading]),Readings[Measurement Point Description]="Generated KWH") ); //your calculation ALLEXCEPT(Readings;Readings[Specific_Field]) // Group field )//top level calculate
... and Merry Christmas.
Best regs
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 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |