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
LeboeufHarry
Helper I
Helper I

How To Ignore Column Value in a Measure

Hello,

 

I'm having a Matrix that holds values in the rows and in a column weather Yes or No the value was Budgetted.

We are Showing the % of the Row Value. But now I would also display the total amount, so that the user gets an idea that his (ex) 15% non budgetted is 15% of the total value (Bidgetted+Nonbudgetted)

 

The idea is that When Column is No we just use BLANK() so that there is never a value printed, and on the Yes column we show the sum of Yes and No. I know its a bit a strange way but for now I don't think I can get it visualized otherways.

 

LeboeufHarry_0-1714238156811.png

 

But my Dax formula doesn't work, this is what happens

 

c_Cost_ResPricing_Yes = IF (SELECTEDVALUE ( BillingData[Reserved_Pricing] ) = "Yes", CALCULATE([Cost], All(BillingData[Reserved_Pricing]) ), BLANK())
 
LeboeufHarry_1-1714238371786.png

 

1 ACCEPTED SOLUTION

Hi @LeboeufHarry 
If I understood you correctly you can use the measures :

base_sum = sum('Table'[Value])
Yes(%) = divide(CALCULATE([base_sum],'Table'[Reserved]="yes"),[base_sum])
No(#) = divide(CALCULATE([base_sum],'Table'[Reserved]="no"),[base_sum])
And put them in the table visual :
Ritaf1983_0-1714370780761.png

The pbix is atached

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
LeboeufHarry
Helper I
Helper I

Even a better solution ! KR.

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
LeboeufHarry
Helper I
Helper I

Hereby the table of sample data and the wanted result for this data.

 

TypeReservedValue
S0Yes50
S0Yes10
S0No15
S1Yes100
S1No10
S2Yes200
S3No120

 

LeboeufHarry_0-1714307931478.png

 

Hi @LeboeufHarry 
If I understood you correctly you can use the measures :

base_sum = sum('Table'[Value])
Yes(%) = divide(CALCULATE([base_sum],'Table'[Reserved]="yes"),[base_sum])
No(#) = divide(CALCULATE([base_sum],'Table'[Reserved]="no"),[base_sum])
And put them in the table visual :
Ritaf1983_0-1714370780761.png

The pbix is atached

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @LeboeufHarry 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.