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
KarenFingerhut
Post Patron
Post Patron

Columns are a DAX measure for percentages. Require an actual figure in total (not percentage

Hi there

I hope someone can help me please.

I've created a table and added a column to show percentages against categories, example below.

The %'s are being created in DAX. SUM(Column A in dataset PLUS Column B in dataset) DIVIDED by column A. This gives me a % figure. However in the overall total row at the bottom I want the actual figure. So, SUM Column A PLUS Column B.

Is that actually doable please. I'm really struggling with this one

Many thanks 

Karen

 

Category2025 %'s
125%
210%
350%
432%
598%
Total78 Sum of the actual figures 
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file like below.

 

Jihwan_Kim_0-1762796961410.png

 

ISINSCOPE function (DAX) - DAX | Microsoft Learn

 

Expected result: =
IF (
    ISINSCOPE ( Data[Category] ),
    FORMAT (
        DIVIDE ( SUM ( Data[A] ) + SUM ( Data[B] ), SUM ( Data[A] ) ),
        "#.00%"
    ),
    SUM ( Data[A] ) + SUM ( Data[B] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
KarenFingerhut
Post Patron
Post Patron

Thanks so much for getting back to me @Ashish_Mathur  and @Jihwan_Kim  The ISINSCOPE worked a treat. Everyday is a school day 😀

Kind regards

Karen

Ashish_Mathur
Super User
Super User

Hi,

I have solved it with dynamic format strings.  File attached.

Hope this helps.

Ashish_Mathur_0-1762818929410.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file like below.

 

Jihwan_Kim_0-1762796961410.png

 

ISINSCOPE function (DAX) - DAX | Microsoft Learn

 

Expected result: =
IF (
    ISINSCOPE ( Data[Category] ),
    FORMAT (
        DIVIDE ( SUM ( Data[A] ) + SUM ( Data[B] ), SUM ( Data[A] ) ),
        "#.00%"
    ),
    SUM ( Data[A] ) + SUM ( Data[B] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.