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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply

Sum of the calculated measure Column

Hi All,

 

I am stuck in one of the formula where i need to show the IF along with Sum of the column total.

 

Please check the below formula if i can modify and get it done correctly.

 

Advisory SLI = VAR AdvSLI= IF([Advisory %]>0.1,1,0)
return
IF(HASONEVALUE(SLI[AccountName]),
AdvSLI,
COUNTX(VALUES(SLI[AccountName]),AdvSLI))

 

 

Switch.png

3 REPLIES 3
amitchandak
Super User
Super User

@RanjanThammaiah , seems like you are mixing column and measure here

Columns could be

AdvSLI= IF([Advisory %]>0.1,1,0)

AdvSLI 1 =if(not(isblank(SLI[AccountName])),AdvSLI,sumx(SLI,SLI[AdvSLI]))

Can you please explain with an example. Also, share sample data and sample output.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
v-yuta-msft
Community Support
Community Support

@RanjanThammaiah ,

 

The info you post is not complete. Please share sample data and clarify more details about your requirement and expected result.

 

Regards,

Jimmy Tao

Greg_Deckler
Super User
Super User

Can't tell exactly what you are going for. 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

 

But maybe this will help? 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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