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

How do I subtract value in the same column?

In my data set the first column identifies a KPI e.g. budget, actual, risk. The second column has the values (GBP).

The report currently has 3 cards that shows the values for each of these KPIs. 

Now I need a 4th card which shows the value of [budget - (actual + risk)].

How do I do this please? 

1 ACCEPTED SOLUTION
fahadqadir3
Super User
Super User

@SamfarUK Review the attached screenshot and measure to calculate [budget - (actual + risk)].

Budget = SUMX('Table',

CALCULATE(SUM('Table'[GBP]),'Table'[KPI] = "Budget")
)
table.png

 

 

Actual budget.pngnew.png

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

View solution in original post

3 REPLIES 3
fahadqadir3
Super User
Super User

@SamfarUK Review the attached screenshot and measure to calculate [budget - (actual + risk)].

Budget = SUMX('Table',

CALCULATE(SUM('Table'[GBP]),'Table'[KPI] = "Budget")
)
table.png

 

 

Actual budget.pngnew.png

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.

hi, thanks for your reply

 

i don't want a table though, here is a snippet (partial) of my report, so you can see where i need the variance box

SamfarUK_0-1717509297987.png

 

HoangHugo
Solution Specialist
Solution Specialist

Not clear your post. I think you need 3 separate measure calulate sum of Budget, Actual, Risk. Then make an calculate  [budget - (actual + risk)] to have 4th card

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 FABINSIDER for a $400 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.