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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AllanBerces
Post Prodigy
Post Prodigy

Summarized and Count

Hi good day can someone help me on my summarized table, basically i summarized my Table1 base on below DAX and I want to add column using count in one of my column in Table 1 the %_Complete

Summarized = SUMMARIZE('Table1','Table1'[Location], 'Table1'[Category], "Count-Category", COUNT('Table1'[Category]), "Hrs", SUM('Table1'[Hrs]))
 
Table1 (Long List)
AllanBerces_1-1750321737982.png

DESIRED OUTPUT (Summarized of Table 1)

AllanBerces_2-1750321888174.png

 

Thank you
2 ACCEPTED SOLUTIONS
mdaatifraza5556
Solution Specialist
Solution Specialist

Hi @AllanBerces 

Can you please the below DAX?

Create calculated table using below DAX.

Summarized =
SUMMARIZE(
    'Data',
    'Data'[Location],
    'Data'[Category],
    "Count-Category", COUNT('Data'[Category]),
    "Hrs", SUM('Data'[Hrs]),
    "Count_%_Complete_0",
        CALCULATE(
            COUNTROWS('Data'),
            'Data'[%_Complete] = 0
        ),
    "Count_%_Complete_100",
        CALCULATE(
            COUNTROWS('Data'),
            'Data'[%_Complete] = 100
        )
)
 
If this answers your questions, kindly accept it as a solution and give kudos.

View solution in original post

mark_endicott
Super User
Super User

Try this:

SUMMARIZE('Table1','Table1'[Location], 'Table1'[Category], "Count-Category", COUNT('Table1'[Category]), "Hrs", SUM('Table1'[Hrs]), "Count_%_0", CALCULATE(COUNTROWS('Data'),'Data'[%_Complete]=0)),"Count_%_100", CALCULATE(COUNTROWS('Data'),'Data'[%_Complete]=100)))

 

It'll add both the new columns you desire.

 

 

If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

View solution in original post

3 REPLIES 3
mark_endicott
Super User
Super User

Try this:

SUMMARIZE('Table1','Table1'[Location], 'Table1'[Category], "Count-Category", COUNT('Table1'[Category]), "Hrs", SUM('Table1'[Hrs]), "Count_%_0", CALCULATE(COUNTROWS('Data'),'Data'[%_Complete]=0)),"Count_%_100", CALCULATE(COUNTROWS('Data'),'Data'[%_Complete]=100)))

 

It'll add both the new columns you desire.

 

 

If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

mdaatifraza5556
Solution Specialist
Solution Specialist

Hi @AllanBerces 

Can you please the below DAX?

Create calculated table using below DAX.

Summarized =
SUMMARIZE(
    'Data',
    'Data'[Location],
    'Data'[Category],
    "Count-Category", COUNT('Data'[Category]),
    "Hrs", SUM('Data'[Hrs]),
    "Count_%_Complete_0",
        CALCULATE(
            COUNTROWS('Data'),
            'Data'[%_Complete] = 0
        ),
    "Count_%_Complete_100",
        CALCULATE(
            COUNTROWS('Data'),
            'Data'[%_Complete] = 100
        )
)
 
If this answers your questions, kindly accept it as a solution and give kudos.

Hi @mark_endicott @mdaatifraza5556 thank you very much for the reply, result as i need.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.