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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.