Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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 🙂
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
8 | |
7 |