Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I have a matrix visual which is populated by a measure which simply calculates the difference between a sum of data in one month and the previous month:
The measure is calculated as follows:
The measure is evaluated across several months in the visual and behaves as expected.
What I want is to average these values across the periods (which might be filtered by a slicer).
So I would expect the average for London to be: -2899 and Thames Valley to be: -1266
The source data is organised as follows where backlog date is always the first of the month and backlog_date 2 is always the previous month (also first of the month):
| operation_id | work_type | control_key | work_centre_site | wodsla | backlog_date | carried_new | backlog_date2 | backlog_Planned/Rective | total_score | eom | score_time | current_carried_new | STK | prev_score | Score Change | next_score |
| a | b1 | c1 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
| a1 | b2 | c2 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
| a2 | b2 | c3 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
| a3 | b3 | c4 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
| a4 | b4 | c5 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
| a5 | b5 | c6 | d | e | f | g | h | i | j | k | l | m | n | o | p | q |
I have created the following measure to attempt to average the values to find the "typical month on month change":
but it does not produce the values as above.
Please could somebody assist with what I'm doing wrong? 🙂
Solved! Go to Solution.
Solved with the following DAX:
Solved with the following DAX:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.