Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hey,
I want to make average to all column values at last row of matrix , but I dont have static column name ,I draw the matrix only by row and column number, can I do this?
row | 1 | 2 |
1 | 5 | 10 |
2 | 10 | 20 |
average | 7.5 | 15 |
Problem when I create measure I dont have column names to create operations on it
Solved! Go to Solution.
I'm not sure if I understand your needs accurately, I made a simple sample, here is my table and you can try measure like this:
M_LY Sales =
IF (
ISFILTERED ( 'Table'[Product] ),
SUM ( 'Table'[LY sales] ),
AVERAGEX (
VALUES ( 'Table'[Product] ),
CALCULATE ( SUM ( 'Table'[LY sales] ) )
)
M_Sales =
IF (
ISFILTERED ( 'Table'[Product] ),
SUM ( 'Table'[sales] ),
AVERAGEX ( VALUES ( 'Table'[Product] ), CALCULATE ( SUM ( 'Table'[sales] ) ) )
)
Then create a matrix and you can get a result like this :
A demo is attached for your reference.
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
I'm not sure if I understand your needs accurately, I made a simple sample, here is my table and you can try measure like this:
M_LY Sales =
IF (
ISFILTERED ( 'Table'[Product] ),
SUM ( 'Table'[LY sales] ),
AVERAGEX (
VALUES ( 'Table'[Product] ),
CALCULATE ( SUM ( 'Table'[LY sales] ) )
)
M_Sales =
IF (
ISFILTERED ( 'Table'[Product] ),
SUM ( 'Table'[sales] ),
AVERAGEX ( VALUES ( 'Table'[Product] ), CALCULATE ( SUM ( 'Table'[sales] ) ) )
)
Then create a matrix and you can get a result like this :
A demo is attached for your reference.
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@ayaasfour , you can change the grand total to average if you line by switching the measure using isinscope.
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
I doubt you can add a row
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |