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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lizrowden
Helper I
Helper I

evaluate a tables with multiple rows

I would like to create a new column in a table that will evaluate the rows on another details table for each call to determine if the value “Yes” exists. The field that contains the value “Yes” is a calculated column. If the value “Yes” exists for any of the rows in the details, then the entire call will be “Yes” in the calls table. There is a relationship established between these 2 tables.
How can I achieve this?

Calls Table – 1 row per call
Call #
1
2
3

Details Table – multiple rows per call
Call # / Is Warranty?
1 / Yes
1 / No
2 / Yes
3 / No

Results:
Call # / Is Warranty
1 / Yes
2 / Yes
3 / No

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi @lizrowden ,

 

you can create a calculated column like this:

Column =
IF (
    COUNTROWS (
        FILTER (
            ALL ( warranty );
            warranty[Call # ] = 'call'[Call #]
                && warranty[Is Warranty] = "Yes"
        )
    ) >= 1;
    "Yes";
    "No"
)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

View solution in original post

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi @lizrowden ,

 

you can create a calculated column like this:

Column =
IF (
    COUNTROWS (
        FILTER (
            ALL ( warranty );
            warranty[Call # ] = 'call'[Call #]
                && warranty[Is Warranty] = "Yes"
        )
    ) >= 1;
    "Yes";
    "No"
)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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