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
Emanuel
Helper I
Helper I

Check if value exists in another table based on a specific category

I have 2 tables Problem table and Problem workinfo table and I need the following output:

Problem table Problem work info table OUTPUT
Problem ID Problem IDType Problem IDDoes it have a "Resolution Communication" work info type?
PBI000030128704 PBI000030128704General Information PBI000030128704no
PBI000030134102 PBI000030134102General Information PBI000030134102no
PBI000030138400 PBI000030138400General Information PBI000030138400no
PBI000030138931 PBI000030138931General Information PBI000030138931yes
PBI000030148328 PBI000030138931General Information PBI000030148328no
PBI000030148739 PBI000030138931General Information PBI000030148739no
PBI000030148942 PBI000030138931General Information PBI000030148942no
PBI000030149220 PBI000030138931General Information PBI000030149220no
PBI000030150803 PBI000030138931General Information PBI000030150803yes
  PBI000030138931General Information   
  PBI000030138931Resolution Communications   
  PBI000030148328General Information   
  PBI000030148328General Information   
  PBI000030148739General Information   
  PBI000030148942General Information   
  PBI000030148942General Information   
  PBI000030148942General Information   
  PBI000030148942General Information   
  PBI000030149220General Information   
  PBI000030150803General Information   
  PBI000030150803General Information   
  PBI000030150803General Information   
  PBI000030150803Resolution Communications   

 

There is a Many-to-one cardinality with both ways cross filter active for these tables. 

I am haveing dificuties finding a solution to achiev the above output.

 

Thanks for the help in advance

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

Hi @Emanuel ,

 

Approve with @shreyamukkawar .

Here's a way to achieve it via Measure:

Does it have a "Resolution Communication" work info type? = IF("Resolution Communications" in SELECTCOLUMNS('Problem work info table',"Type",[Type]),"yes","no")

Final output:

vjianbolimsft_0-1668496178285.png

Best Regards,

Jianbo Li

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

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @Emanuel ,

 

Approve with @shreyamukkawar .

Here's a way to achieve it via Measure:

Does it have a "Resolution Communication" work info type? = IF("Resolution Communications" in SELECTCOLUMNS('Problem work info table',"Type",[Type]),"yes","no")

Final output:

vjianbolimsft_0-1668496178285.png

Best Regards,

Jianbo Li

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

Thanks Li for your solution.

How can I include this measure in a larger calculation?
So, what I need is to create a measure/column for KPI that has to contain the following logic: If(

Does it have a "Resolution Communication" work info type?=yes and 
Report_tgt_date<=Action Date then KPI is met else is not.
I've added 2 colums to your solution to help with the outcome (I don't know why is not letting me to insert the bi file itself)
Capture.PNG
shreyamukkawar
Resolver II
Resolver II

Hi

Please follow the below steps.

1. Create a conditional column as a flag.

flag.jpg

2. Now duplicate this table.

3. Use group by function 

group by.jpg

4 Create conditional column 

s3.jpg

 

Output:

output.jpg

 

Best Regards,

Shreya Mukkawar

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.

Top Solution Authors