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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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