Forum Discussion

qwertzuiop's avatar
qwertzuiop
Icon for Advocate III rankAdvocate III
5 years ago
Solved

% difference month to previous month

Dear Power BI Community

 

Hope you all doing well so far πŸ™‚

Following problem to solve:

 

Let's assume a table with this structure - In real life, of course, the table is a lot bigger πŸ™‚

 

IDDateCategory
1205840911.04.2021A
1205840911.04.2021A
1205847311.04.2021A
1205848111.04.2021A
1205848111.04.2021B
1205848212.04.2021B
1205850012.04.2021C
1205850012.04.2021C
1205850513.04.2021A
1205853714.04.2021A
1205854615.04.2021A
1205857516.04.2021A

 

The aim is now to calculate as automated as possible the sum of each category and show

- % difference week to previous week
- % difference month to previous month
- % difference year to previous year

 

-> like this for mothn (same with year and week)

 

CategoryPrevious Month (Count)Current Month (Count)% Difference
A28037132.50%
B563466-17.23%
2122256.13%

 

Thank you so much for your contribution.

 

Cheers

qwertzuiop

1 Reply