Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Miguel05
Regular Visitor

Sum the values of a measure

Hi guys,

 

I'm struggling to create a measure to extract the following information from one grid:

https://imgur.com/a/J6nDLZ8

 

What is being displayed on this grid, are the values for 3 different measures. What I want to do is to create a two new measure that gives me a sum of the measure "T/O" and "Margin" when the measure "Margin %" is bigger than 11%.

 

I tried a lot of things, and the closer that I got was this measure with an IF statement:

https://imgur.com/SPEgUwp

 

The idea is to create a card visual that displays the sum of T/O and Margin, which is giving me a blank result: 
https://imgur.com/a/JJ687pV


When I try to use a grid to see if the measure is working fine, it won't give me the sum of the values calculated by my metric:
https://imgur.com/gmrspVb

 

Does anyone know how can I fix this? I will be much appreciated.

 

PS: Apologies for the links of the images instead of actual screenshots, but for some reason I weren't allowed to post the image on this post.

 

Thanks in advance!

2 REPLIES 2
Anonymous
Not applicable

HI @Miguel05,

AFAIK, measure formula calculation result is based on its row contents.
If you want to summarize the current result, you need to manually simulation its row contents and category groups in a variable table and add a new field with a measure formula to this table. After these steps, you can use iterator aggregate functions on this variable table to get correspond measure summary results.

If you confused about coding formula, please share some dummy data with dax formula and expected result to help us clarify your requirement and do test on it.

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors