cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Microsoft
Microsoft

Re: Percent change compared to first year

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.
Highlighted
Regular Visitor

Re: Percent change compared to first year

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
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors