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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DWilming
Regular Visitor

Is Value in other table for this case existing?

Hi, 

maybe a simple question. 

 

I have two tables. 

One contains a lot log information for each ID number. 

IDSubject
10218672General
10218672General
10219335Case A
10229051Case A
10229051Case A
10229051Case A
10229051Case B
10231987Case A
10232341Case A
10232609General
10233454Case A
10233454Case B
10233669Case B
10233677Case A
10233677Case A
10233677Case A
10233678Case A
10233678Case B
10233686Case A
10233686Case A
10233686Case A
10233686Case B
10233686Case B
10233694Case A
10233694Case A
10233694Case A
10233694Case A
10233694Case A
10234320Case B

 

In my second table, I would like to have a column which shows me, if "Case B" is in the log file for the specific ID No.

 

IDCheck for Case B
10218672 
10219335 
10229051existing
10231987 
10232341 
10232609 
10233454existing
10233669existing
10233677 
10233678existing
10233686existing
10233694 
10234320existing

 

Any idea how the DAX formula for column "Check for Case B" would look like. 

 

Thanks in advance.

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @DWilming 

Check for Case B =
IF ( CALCULATE ( COUNT ( Table1[ID] ), Table1[ID] = "Case B" ) > 0, "Existing" )

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @DWilming 

Check for Case B =
IF ( CALCULATE ( COUNT ( Table1[ID] ), Table1[ID] = "Case B" ) > 0, "Existing" )

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.