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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Summarizing data

Dear Power BI users,

 

I have a question about the below mentioned table (ORIGINAL TABLE).

as you can see we have several lines per container_nr..

Some lines do have a S01 in the colums code_cod, some not

 

I am looking for for a formula/ filter wich gives me a summary of the order_nr & container_nr and a YES if in the original table a line is present with S01 in the colum code_cod.

 

Thanks for your kind help!

 

John

 

RESULT TABLE:

order_nrcontainer_nrfoto_fee_in_estimate
8837312TTNU8968305YES
8843422TTNU8967839YES
8281616TTNU8967280YES
8824972TTNU8965564NO
8814244TTNU8965121NO
8826854TTNU8612361NO
8821072TTNU8610121NO

 

ORIGINAL TABLE:

order_nrcontainer_nrcode_cod
8837312TTNU8968305A01
8837312TTNU8968305S01
8843422TTNU8967839A03
8843422TTNU8967839A04
8843422TTNU8967839S01
8281616TTNU8967280D09
8828579TTNU8967280D09
8281616TTNU8967280S01
8824972TTNU8965564B08
8824972TTNU8965564E51
8814244TTNU8965121A03
8826854TTNU8612361A01
8821072TTNU8610121A01
1 ACCEPTED SOLUTION
Anonymous
Not applicable

This should work:

Table = 
SUMMARIZE(
    Table1,
    Table1[order_nr],
    Table1[container_nr],
    "foto_fee_in_estimates",
    If(
        CALCULATE(
            COUNTROWS(Table1),
                Table1[code_cod]="S01") >=1,
                "Yes","No"
    )
)

Summarize Example.png

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

This should work:

Table = 
SUMMARIZE(
    Table1,
    Table1[order_nr],
    Table1[container_nr],
    "foto_fee_in_estimates",
    If(
        CALCULATE(
            COUNTROWS(Table1),
                Table1[code_cod]="S01") >=1,
                "Yes","No"
    )
)

Summarize Example.png

Anonymous
Not applicable

Good morning Nick,

 

Thanks, works oke for me!

 

Regards,

 

John

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.