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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

@ 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!:
The Definitive Guide to Power Query (M)

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

@ 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!:
The Definitive Guide to Power Query (M)

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!

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors