cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tmore Regular Visitor
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 Super Contributor
Super Contributor

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.
tmore Regular Visitor
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
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 100 members 1,699 guests
Please welcome our newest community members: