Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
This picture showcases the end goal (sorry i dont have a better example) that i am trying to acheive. I do have a calender table and all the measures but cant seem to find how to achieve this for the matrix visual. Please reach out with any knowldege on this!
Hi @lovekheart
I would recommend a calculation group containing calculation items for each of the average calculations.
https://learn.microsoft.com/en-us/power-bi/transform-model/calculation-groups
Each calculation item's expression should contain SELECTEDMEASURE ( )
as a placholder for the measure it will be applied to.
For example, if your averages are defined as arithmetic means of monthly measure values for the last N months (as at the max date filtered), you might use this calculation item expression for "Last 3 months":
CALCULATE (
AVERAGEX (
VALUES ( 'Date'[Year Month] ), -- or column with month/year granularity
SELECTEDMEASURE ( )
),
DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
)
You could then construct the matrix with:
Is that enough to go on?
I could create a small example to demonstrate the setup if that would be useful.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |