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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

show sum of positive and negative number separately from a variance measure

Hello Everyone,

 

I am trying to sum up only the positive value and negative value separately from a variance measure but the total in the table is showing the wrong total.

 

Add3 = IF([FTE - vs PM]>0,[FTE - vs PM],0)
 
Sub3 = IF([FTE - vs PM]<0,[FTE - vs PM],0)
 
Can anyone help me regarding these?
4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Can you share your actual results and expected results for further research?

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi @Greg_Deckler, thanks for your quick response. But this does not solve my issue. I will try to explain my issue in detail.

I have a difference or variance measure created from a table and using that measure i.e. [FTE - vs PM] I am trying to get 2 additional showing a sum of positive numbers and negative numbers.

 

The solution provided works on a table but I need a solution that works on measure.

@Anonymous The solution provided is specifically for measure totals in tables and matrices. You need to summarize or groupby the information by the individual row level and then do an aggregation like SUMX across that. Sample data would and expected output would enable the creation of a specific solution.



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...
Greg_Deckler
Community Champion
Community Champion

@Anonymous This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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