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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
goalie_
Helper III
Helper III

x mark column for common codes between 3 tables

Hi all I have 3 tables I'm working with. There is a master table that has a list of all the codes. Other tables have information for certain codes. I'm trying to create an overview that is representative of what information is available where. For example, the master table has codes

1
2
3
4
5
6
7

 Table 1 has 

2
5
6
7

 Table 2 has 

1
1
3
4

 The master table is connected to table 1, and connected to table 2 via the codes column. 

I want to create a visual such as below:

Master CodeTable 1 CodeTable 2 Code
1 x
2x 
3 x
4 x
5x 
6x 
7x 

I'm not sure what the appropriate measure(if needed) would be to do that. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@goalie_ , Create two measures like this and use with Code from master table

 

if(isblank(count(Table1[code])), blank(), "X")
if(isblank(count(Table2[code])), blank(), "X")

 

if needed use this option

ShowItemwithoutdata.JPG

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@goalie_ , Create two measures like this and use with Code from master table

 

if(isblank(count(Table1[code])), blank(), "X")
if(isblank(count(Table2[code])), blank(), "X")

 

if needed use this option

ShowItemwithoutdata.JPG

Hi @amitchandak 

There's also other codes in the master table I forgot to mention. It goes from 1-20. I still want 8-20 in the master codes column to appear and not be affected by the measures. Any ideas for that? 

 

Currently it filters the master codes column

 

Edit:

I figure it out. Forgot to do you suggestion about showing items with no data. everything appears now. Thank you

@goalie_ ,

or you can try measure like 

 

if(count(Table1[code])+0 = 0, "", "X")
if(count(Table2[code])+0 =0, "", "X")

 

Show items with no data should also work. If issue is resolved please mark solution 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.