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.
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
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 |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |