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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Diksha_Kanojia
Regular Visitor

Creating Flags to get 0 and 1 for blank space in a row.

Hi, Please help

--There are 2 tables 1 that contains Customer data on basis of FedID and other on basis of Customer number, when I am trying to connect these 2 tables with the 3rd table that has data for all the Customers that ever existed , I am geting data for some extra customers too that I do not need, So I want  a flag to be created that pulls data for only those customer which exists in these 2 tables - GBS_VMSAGING_CUST and GBS_VMSAGING_FEDID as these 2 tables are connected to Main table named - PRDS_Aging.

-- If there is a value from these two tables than flag 1 if not than 0. (something like this)

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Diksha_Kanojia ,

 

Since you got a relationship between tables, you can try creating a calcualted column.

Flag = IF(RELATED('Table (2)'[Customer ID])=BLANK(),0,1)

vstephenmsft_1-1681195295797.png

vstephenmsft_2-1681195305000.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Diksha_Kanojia ,

 

Since you got a relationship between tables, you can try creating a calcualted column.

Flag = IF(RELATED('Table (2)'[Customer ID])=BLANK(),0,1)

vstephenmsft_1-1681195295797.png

vstephenmsft_2-1681195305000.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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