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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
M_SBS_6
Helper V
Helper V

Total showing as 0

Hi, 

 

I have the following calculation but the total shows as a 0 but I'm not too sure why? 

 

If(Selectedvalue(apps[app_value] <30 && Selectedvalue(apps[apps_status] ="test", 0, 

If(Selectedvalue(apps[apps_status] in {"test","live"} && Selectedvalue(month_index[is_prior_months]) = "yes", 0 , sum(apps[amount])))

 

Any idea what needs to be changed on the logic? Is it getting confused because I'm using the sane app_status "test" twice and maybe need an "or" add, or maybe a calculate(sum at the top of the logic? Any help is appreciated 

2 REPLIES 2
Greg_Deckler
Super User
Super User

@M_SBS_6 First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

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

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks Greg. Still not really sure what I need to do. I have been playing around with my logic and if I removed the first part  

 

If(Selectedvalue(apps[app_value] <30 && Selectedvalue(apps[apps_status] ="test", 0, 

I then get a total. 

 

The problem is, I need that part of the logic to be included. Its odd!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors