Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I would like to group data from 2 Colum from TableSale and average Target Sale Value, then sum in total value :
Branch , Product , ColumnC , Target Sale Value
Branch1 , Product1 , Day1 , 10
Branch1 , Product1 , Day2 , 10
Branch1 , Product2 , Day1 , 5
Branch1 , Product2 , Day2 , 5
Branch1 , Product3 , Day1 , 3
Branch1 , Product3 , Day1 , 3
I would like to show Matrix result like this :
====================================
Branch , Product , Average Target Sale Value
Branch1 , Product1 , 10
Branch1 , Product2 , 5
Branch1 , Product3 , 3
Total = , 18
now I use this measure -->
Solved! Go to Solution.
Hi @PowerBi888
Try this measure:
Avr. =
VAR _A =
AVERAGE ( 'Table'[Target Sale Value] )
RETURN
IF (
HASONEVALUE ( 'Table'[Product] ),
_A,
SUMX (
SUMMARIZE (
'Table',
'Table'[Branch ],
'Table'[Product],
"AV", AVERAGE ( 'Table'[Target Sale Value] )
),
[AV]
)
)
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @PowerBi888
Try this measure:
Avr. =
VAR _A =
AVERAGE ( 'Table'[Target Sale Value] )
RETURN
IF (
HASONEVALUE ( 'Table'[Product] ),
_A,
SUMX (
SUMMARIZE (
'Table',
'Table'[Branch ],
'Table'[Product],
"AV", AVERAGE ( 'Table'[Target Sale Value] )
),
[AV]
)
)
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Thank you VahidDM , this solution I solved it.
Hi @PowerBi888 ,
Create a measure like this
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
Connect with me on LinkedIn: https://www.linkedin.com/in/jaideepnema/
Hi , Average value show correct , but my issued it's grand total in Matrix show not correct. It's not sum vlaue
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 44 |