This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi Team,
I'm new to Power BI and getting input in below format.
Class Colour Count
| Class1 | Orange | 4 |
| Class1 | Orange | 6 |
| Class1 | Red | 5 |
| Class2 | Blue | 4 |
| Class2 | Yellow | 6 |
| Class2 | Blue | 2 |
from the above I'm planning to generate a new table but not sure how can i achieve. Can you guide me how can i generate a summary table like below ,
and also
if i need to use Mesaure can you tell me how i can compare the class , colour to get the abg count?
Class Colour Avg count
| Class1 | Orange | 5 |
| Class1 | Red | 5 |
| Class2 | Blue | 3 |
| Class2 | Yellow | 6 |
Solved! Go to Solution.
Hi @krishnavzm123,
It sounds like a common measure expression calculate with multiple aggregates requirements.
If that is the case, you can create a measure formula with summarize function to aggregate and use iterator function AVERAGEX get the average of count of records.
formual =
AVERAGEX (
SUMMARIZE (
ALLSELECTED ( Table ),
[Class],
[Colour],
"cColor", COUNTA ( Table[Colour] )
),
[cColor]
)
Regards,
Xiaoxin Sheng
Hi @krishnavzm123,
It sounds like a common measure expression calculate with multiple aggregates requirements.
If that is the case, you can create a measure formula with summarize function to aggregate and use iterator function AVERAGEX get the average of count of records.
formual =
AVERAGEX (
SUMMARIZE (
ALLSELECTED ( Table ),
[Class],
[Colour],
"cColor", COUNTA ( Table[Colour] )
),
[cColor]
)
Regards,
Xiaoxin Sheng
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |