Forum Discussion
armchairexpert
8 months agoHelper III
Target Line Based on What-If Parameter
Hi, I have a line chart with test Carbon Emission data from 2021 to 2025 in my Power BI report. The objective is to go carbon neutral by 2050. I want to show a target line on the line chart. ...
- 8 months ago
armchairexpert
8 months agoHelper III
Hi rohit1991
Thanks for your response.
That showed a straight line. Let me try to explain further.
I have a 'Start CO2 Emission' value of 50.99 for January 2021.
Start CO2 Emission =
CALCULATE (
[Total CO2 Emission],
'Calendar'[Year] = 2021,
'Calendar'[Month Number] = 1
)
So the line should start from 50.99 as per the test data and then gradually become zero for the year the user selects.
Thanks.
rohit1991
8 months agoSuper User
Hii armchairexpert
Please check the complete step-by-step example in the link below. It shows how to start the target line from your 2021 CO₂ value and then gradually decrease it to zero based on the selected Target Year:
- armchairexpert8 months agoHelper III
- rohit19918 months agoSuper User
- armchairexpert8 months agoHelper III
Hi rohit1991
Thanks for that. Yes, now I know where I went wrong. Your tables have the Date columns and you have linked using the Date whereas I don't have Date columns in my tables but Year, Month and Quarter. Let me change my tables and confirm. But I am sure that is the issue. I will get back.