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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FrankProperty
Frequent Visitor

Use results from a card in a custom calculation for another card

I'm a new user of Power BI and this is my first post so hello everyone!

 

I work for a property company and am creating a dashboard to show property values, capex and Return-on-Equity at each half year period. The user can select specific properties or the whole portfolio through various slicers.

 

Unfortunately I can't share the data as it is commercially sensitive however it is broadly set out as follows:

PropertyPeriod (in date form in my data)AttributeValue
Buckingham PalaceH2 2019Valuation100
Buckingham PalaceH2 2019CapEx spent10
Buckingham PalaceH1 2019Valuation90
Buckingham PalaceH1 2019CapEx spent5
............

 

I have three cards set up as follows which depend on the selection within the slicer:

  1. Value at start - This shows the sum of all valuations on the earliest date.
  2. CapEx spent to date - This sums all capex spent in all periods.
  3. Current value - This shows the sum of all valuations in the most recent date.

I want to create a fourth card which will display the profit to date:

Result = Current Value - (Value at Start + CapEx spent to date)

 

The problem is that I need it to be dynamic and adjust depending on the selection of the slicers hence why I would like to take the card results rather than calculate a new table of results.

 

Is this possible?

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Are those three calculations measures or columns? If they are measures you can just create the formula as you have shown enclosing those items in square brackets [ ].


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...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Are those three calculations measures or columns? If they are measures you can just create the formula as you have shown enclosing those items in square brackets [ ].


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...

Thanks Greg - Being new to this I hadn't appreciated the difference.

 

I previously used columns but I've now created three measures in the cards. These are then used these to calculate the final card.

 

Cheers!

 

Frank

Great!


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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.