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
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
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.