Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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]
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |