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.
As the title implies, is it possible to change the total of a matrix into average without changing the row values (sum)? I have seen solutions where it involves modifying the column and just creating measures for column values, but the column headers should be dynamic as they are date columns and they will add on the longer the time goes. Kindly see sample data below. I know there is a way to have Monthly row totals be made into measures and show that into the table instead, but that is not really dynamic. Can anyone please help?
Thank you.
Solved! Go to Solution.
Hi, @Anonymous ;
You could create a measure
Measure =
IF (
ISINSCOPE ( 'Table'[Date].[Year] ),
SUM ( 'Table'[values] ),
AVERAGEX (
SUMMARIZE (
'Table',
[Catetory],
[Date].[Year],
[Date].[Month],
"1", SUM ( 'Table'[values] )
),
[1]
)
)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
You could create a measure
Measure =
IF (
ISINSCOPE ( 'Table'[Date].[Year] ),
SUM ( 'Table'[values] ),
AVERAGEX (
SUMMARIZE (
'Table',
[Catetory],
[Date].[Year],
[Date].[Month],
"1", SUM ( 'Table'[values] )
),
[1]
)
)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
you can use HASONEVALUE to check if you are on a Resource Type row like this.
Amount Measure =
IF (
HASONEVALUE ( 'Table'[Resource Type] ),
SUM ( 'Table'[Amount] ),
AVERAGEX ( VALUES ( 'Table'[Resource Type] ), CALCULATE ( SUM ('Table'[Amount] ) ) )
)
Sorry, this makes the column totals as average, but I want the row totals in average. Basically just switched around
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 |
---|---|
73 | |
71 | |
54 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
60 | |
50 | |
45 |