cancel
Showing results for
Did you mean:
Highlighted
Helper I

Percentage change across matrix

i've created a matrix which looks at total accross the months

How do i calculate the Persentage diffrence between months

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV

Re: Percentage change across matrix

What I would suggest is to first make sure that your data is in the correct shape.

So to do this your data as per your picture would not be running on columns but would then be running on the rows.

Next I would then create a Date table (This table is essential when you want to use the DAX Time Ingelligence Calculations). You can find my blog post here on how to create a Date table: https://www.fourmoo.com/2016/09/13/power-bi-how-to-easily-create-dynamic-date-tabledimension-with-fi...

Once you have created a relationship between your table and the Date table, you can then start using Time Intelligence Features.

For your example it would appear that you could then use the PREVIOUSMONTH DAX function

```Previous Month Sales =
CALCULATE ( [Sales Amount], PREVIOUSMONTH ( 'Date'[Calendar Date] ) )```

This will enable you to then get the previous values amounts, after which you could then create your % Diff measure

`% Diff = DIVIDE([Previous Month Sales],[Sales Amount])`

Proud to be a Super User!

Power BI Blog
Super User IV

Re: Percentage change across matrix

What I would suggest is to first make sure that your data is in the correct shape.

So to do this your data as per your picture would not be running on columns but would then be running on the rows.

Next I would then create a Date table (This table is essential when you want to use the DAX Time Ingelligence Calculations). You can find my blog post here on how to create a Date table: https://www.fourmoo.com/2016/09/13/power-bi-how-to-easily-create-dynamic-date-tabledimension-with-fi...

Once you have created a relationship between your table and the Date table, you can then start using Time Intelligence Features.

For your example it would appear that you could then use the PREVIOUSMONTH DAX function

```Previous Month Sales =
CALCULATE ( [Sales Amount], PREVIOUSMONTH ( 'Date'[Calendar Date] ) )```

This will enable you to then get the previous values amounts, after which you could then create your % Diff measure

`% Diff = DIVIDE([Previous Month Sales],[Sales Amount])`

Proud to be a Super User!

Power BI Blog

Announcements

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors