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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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