This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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_nr | container_nr | foto_fee_in_estimate |
| 8837312 | TTNU8968305 | YES |
| 8843422 | TTNU8967839 | YES |
| 8281616 | TTNU8967280 | YES |
| 8824972 | TTNU8965564 | NO |
| 8814244 | TTNU8965121 | NO |
| 8826854 | TTNU8612361 | NO |
| 8821072 | TTNU8610121 | NO |
ORIGINAL TABLE:
| order_nr | container_nr | code_cod |
| 8837312 | TTNU8968305 | A01 |
| 8837312 | TTNU8968305 | S01 |
| 8843422 | TTNU8967839 | A03 |
| 8843422 | TTNU8967839 | A04 |
| 8843422 | TTNU8967839 | S01 |
| 8281616 | TTNU8967280 | D09 |
| 8828579 | TTNU8967280 | D09 |
| 8281616 | TTNU8967280 | S01 |
| 8824972 | TTNU8965564 | B08 |
| 8824972 | TTNU8965564 | E51 |
| 8814244 | TTNU8965121 | A03 |
| 8826854 | TTNU8612361 | A01 |
| 8821072 | TTNU8610121 | A01 |
Solved! Go to Solution.
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"
)
)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"
)
)Good morning Nick,
Thanks, works oke for me!
Regards,
John
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 27 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 25 | |
| 24 |