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
My dataset looks like the below,
I have created a matrix visual as below,
The values in the matrix visuals are distinctcount of the ids.
Now, I want to calculate the average value of the red boxes (i.e.) the average of monthly values for each year for each category. How can I get this in DAX?
Solved! Go to Solution.
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected outcome measure: =
AVERAGEX (
WINDOW (
1,
ABS,
12,
ABS,
SUMMARIZE (
ALL ( 'Calendar' ),
'Calendar'[Year],
'Calendar'[Year-Month],
'Calendar'[Year-Month sort]
),
ORDERBY ( 'Calendar'[Year-Month sort], ASC ),
,
PARTITIONBY ( 'Calendar'[Year] )
),
CALCULATE ( COUNTROWS ( Data ) )
)
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected outcome measure: =
AVERAGEX (
WINDOW (
1,
ABS,
12,
ABS,
SUMMARIZE (
ALL ( 'Calendar' ),
'Calendar'[Year],
'Calendar'[Year-Month],
'Calendar'[Year-Month sort]
),
ORDERBY ( 'Calendar'[Year-Month sort], ASC ),
,
PARTITIONBY ( 'Calendar'[Year] )
),
CALCULATE ( COUNTROWS ( Data ) )
)
Thanks! This worked 🙂
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.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |