Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
krishnavzm123
Regular Visitor

How to transform the excel input into a summary table

Hi Team,

I'm new to Power BI and getting input in below format.

Class                              Colour              Count

Class1Orange4
Class1Orange6
Class1Red5
Class2Blue4
Class2Yellow6
Class2Blue2

 

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

Class1Orange5
Class1Red5
Class2Blue3
Class2Yellow6
1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.