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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
emk153
New Member

Make value scalar, Subtract baseline value from other values.

Need help with how to unlink baseline value with its associated design strategy.
 
Avoided Carbon =
   // Grab baseline value
   CALCULATE([Carbon Total], 'LCCA Calculations'[Design Strategy]==SELECTEDVALUE('Z Baseline Key'[Design Strategy]))
   // Subtract other options
   - [Carbon Total]
 
Currently, this is the output.
emk153_0-1714617465294.png

This is the desired output. For example: the PV's Avoided Carbon is (Baseline) 261,071 - (Carbon Total) 231,351 = 29,720

emk153_1-1714617936329.png
1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @emk153 ,

 

You can achieve your required output in many ways, but one way is as follows:

You can create a [Baseline (all)] measure which ignores filter of Design Strategy field, and deduct [Carbon Total] measure from the Baseline (all) measure.  

 

DataNinja777_0-1714621727427.png

 

I attach the pbix file as an example.  

Best regards,

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Hi @emk153 ,

 

You can achieve your required output in many ways, but one way is as follows:

You can create a [Baseline (all)] measure which ignores filter of Design Strategy field, and deduct [Carbon Total] measure from the Baseline (all) measure.  

 

DataNinja777_0-1714621727427.png

 

I attach the pbix file as an example.  

Best regards,

you are my hero. thank you so much.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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