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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.

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.