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
tmore
Regular Visitor

Percent change compared to first year

Hi Experts,

 

Recently, I've started using Power BI Desktop. I am facing a problem and need help. My data contains Year, Income level groups and actual value columns. Now I want to create a line chart to show percent change wrto first year for each income level group. For example, the base year is 2009 so I want to calculate percent change of the remaining years wrto to it. 

 

I have created a below report.

r1.JPG

In the above pic, I calculated value for 2009.

Value2009 = CALCULATE(SUM(Income[Actual Value]),FILTER(Income,Income[Year]=2009))

 

Then diff to find variance.

diff = SUM(Income[Actual Value])-[Value2009]

 

But as you can see in the snapshot, the "diff" column is not giving me the expected result. For 2009, diff is 0 but for other it just showing the actual values.

 

Someone please help to fix this.

 

Would appreciate your helps.

 

Regards,

Tushar

 

 

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @tmore,

 

You can try it like this.

Value2009 =
CALCULATE (
    SUM ( Income[Actual Value] ),
    FILTER ( ALL ( Income ), Income[Year] = 2009 )
)

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale,

 

Thanks for the reply. This is giving me value for that year. I want to compare each income group in 2009 wrto the same income group in the remaining years. I want to create a line charts, Year vs % change and lines for each income level. 

Capture.JPG

 

Hope my requirement is clear. Let me know if you have any question.

 

Thanks,

Tushar

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.