Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi
this is my matrix and I only want to to show Yearly Avg Per Day on the year level.
I created two measures (see below), but both don't give the desired result. What am I doing wrong
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
Sales avg per year: =
VAR _currentyear =
MAX ( 'Calendar'[Year] )
RETURN
SWITCH (
TRUE (),
ISINSCOPE ( 'Calendar'[Month] ), BLANK (),
ISINSCOPE ( 'Calendar'[Qtr] ), BLANK (),
ISINSCOPE ( 'Calendar'[Year] ),
AVERAGEX (
ADDCOLUMNS (
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = _currentyear ),
"@sales", CALCULATE ( SUM ( Data[Sales] ) )
),
[@sales]
)
)
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
Sales avg per year: =
VAR _currentyear =
MAX ( 'Calendar'[Year] )
RETURN
SWITCH (
TRUE (),
ISINSCOPE ( 'Calendar'[Month] ), BLANK (),
ISINSCOPE ( 'Calendar'[Qtr] ), BLANK (),
ISINSCOPE ( 'Calendar'[Year] ),
AVERAGEX (
ADDCOLUMNS (
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = _currentyear ),
"@sales", CALCULATE ( SUM ( Data[Sales] ) )
),
[@sales]
)
)
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |