Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!