- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Trailing 12 Month YoY % Comparison
Goal: Show a percentage by month that compares the rolling 12 month sum to the prior year's 12 month sum.
Examples:
For 2024-06, the current 12 month sum is 3195. The previous year's 12 month sum is 1800.
3195 / 1800 - 1 = 78% growth
For 2024-05, the 12 month sum 3125. The previous year's 12 month sum is 1483.
3125 / 1483 - 1 = 88% growth
Then plot the % growth across time being the x-axis:
CHALLENGE/ISSUE: Based on my available data in PowerBI, I want to show the graph from 2023-05 to 2024-06 but when I filter out the year-month I don't want on the visual, I lose the data from those months and the 12 month sums get messed up in the filter context.
I have watched some videos that duplicate the date table to use a slicer context and then incorporate the slicer dates filter context in the calculate function but nothing I have tried can produce the results I am looking for.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @pmstahl
According to your description, the result is incorrect due to data loss after using the filter. This may have something to do with the filter criteria you used when creating measure.
To ensure that the calculation is not affected by the slicer, use or ignore the slicer context in the measure. For example,
All: Ignore all filters.
Measure = CALCULATE(SUM('Table'[values]), ALL('Table'))
If you still have problems, it is best to provide the pbix file and be careful to delete sensitive data.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Share the download link of the PBI file.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @pmstahl
According to your description, the result is incorrect due to data loss after using the filter. This may have something to do with the filter criteria you used when creating measure.
To ensure that the calculation is not affected by the slicer, use or ignore the slicer context in the measure. For example,
All: Ignore all filters.
Measure = CALCULATE(SUM('Table'[values]), ALL('Table'))
If you still have problems, it is best to provide the pbix file and be careful to delete sensitive data.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-22-2024 07:46 AM | |||
12-29-2023 09:15 AM | |||
01-13-2025 02:02 PM | |||
12-16-2024 12:14 AM | |||
10-10-2024 11:04 PM |
User | Count |
---|---|
112 | |
90 | |
83 | |
55 | |
46 |