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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nniphadk
Frequent Visitor

PowerBI Desktop Sum Values, Grand Total

I am trying to get grand totals at the bottom of Category 1 in PowerBI, so far I have been unsuccessful. Can someone point the error out

 

Capture.PNG

 

Category 1 = If(%Salary/Desired Salary < .90, Difference, 0)

 

 

It does not give me a total of -30,000. I would want to know what the total difference is going to be

1 ACCEPTED SOLUTION
TaylorPBI21
Resolver I
Resolver I

Hi @nniphadk,

 

I done this using 2 measures and a calculated column give this a try...😎

 

TaylorPBI21_0-1677526523704.png

 

2 measures

 

Difference = SUMX('Table A', 'Table A'[Salary] - 'Table A'[Desired Salary])
% Difference = SUMX('Table A', 'Table A'[Salary]/'Table A'[Desired Salary])

 

Calculated column

 

Difference < 90 = SWITCH(
    TRUE(),
    [% Difference] < 0.90, [Difference],
    0
)

 

 

If @Len_Barr solution doesn't work give this a bash...

 

Many thanks,

 

Taylor 😊

View solution in original post

4 REPLIES 4
TaylorPBI21
Resolver I
Resolver I

Hi @nniphadk,

 

I done this using 2 measures and a calculated column give this a try...😎

 

TaylorPBI21_0-1677526523704.png

 

2 measures

 

Difference = SUMX('Table A', 'Table A'[Salary] - 'Table A'[Desired Salary])
% Difference = SUMX('Table A', 'Table A'[Salary]/'Table A'[Desired Salary])

 

Calculated column

 

Difference < 90 = SWITCH(
    TRUE(),
    [% Difference] < 0.90, [Difference],
    0
)

 

 

If @Len_Barr solution doesn't work give this a bash...

 

Many thanks,

 

Taylor 😊

Circular dependency was detected

Hi @nniphadk ,

 

It needs to be laid out with the 2 measures and the 1 calculated column above, I'm assuming you've made one of the measures that was suppose to be a measure a calculated column?😊 If you want them all as columns then change them all to a calculated column and it will work else just follow the layout I sent previously.

 

Many Thanks,

 

Taylor 😎

Len_Barr
Resolver I
Resolver I

Easy as. 

I'm assuming you are using a table visual. 

Go to Format your visual - Totals - toggle on

Totals.jpg 

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! Prices go up Feb. 11th.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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