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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Compare 2 columns for more than one same matches and return a different column as an output

Observation
IDQuestionObservation TypeObservation
123Q1RecommendationO1
123Q1RecommendationO2
123Q1Supporting EvidenceO3

 

Checklist
IDQuestionObservation
123Q1O1
123Q1 
123Q1 

 

Using the below DAX I could return only one observation, Please help to me to return all the values into "Checklist" table from "Observation" table.

Observation = CALCULATE(FIRSTNONBLANK(Observation[Observation],1),filter(ALL(Observation),
                Checklist[ID] = Observation[ID] &&
                Checklist[Question] = Observation[Question]))
1 ACCEPTED SOLUTION
JamesFR06
Resolver IV
Resolver IV

Hello

 

Please try this code :

Obs =
var IDP=SELECTEDVALUE(Checklist[ID])
var Q=SELECTEDVALUE(Checklist[Question])
RETURN
CONCATENATEX(filter(Observations,Observations[ID]=IDP&&Observations[Question]=Q),Observations[Observation],",")
JamesFR06_0-1710926387242.png

 

View solution in original post

1 REPLY 1
JamesFR06
Resolver IV
Resolver IV

Hello

 

Please try this code :

Obs =
var IDP=SELECTEDVALUE(Checklist[ID])
var Q=SELECTEDVALUE(Checklist[Question])
RETURN
CONCATENATEX(filter(Observations,Observations[ID]=IDP&&Observations[Question]=Q),Observations[Observation],",")
JamesFR06_0-1710926387242.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.