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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
awsiya
Helper I
Helper I

Match - Unmatch Rows as Conditional Column

Dear Lovely Community,

I am having difficulty to create a conditional column, I would really appreciakte if you could help me in the formula (Conditonal Column (want to create this in  Data view  and not in Query editor) of powerBi Desktop.

So scenario is below

I have an Excel table consisting of four columns labeled "Sorted," "Preferred," "Enrolled," and "Expected." I'm looking to create a new conditional column called "result" based on the following criteria:

  • If all corresponding rows in these four columns match, I want the result to be "Matched."
  • If only three out of the four corresponding rows match, I want the result to be "Unmatched 1."
  • If two rows match while the other two do not, I want the result to be "Unmatched 2."
  • If none of the four corresponding rows match, the result should be "Unmatched all."

I have given an example below screen shot with the column that I want the results to be like.

awsiya_0-1699318128659.png

 




1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@awsiya 

I know that you don't want to do this in PQ. However, it will be easier to handle in PQ

pls see the attachment below

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@awsiya 

I know that you don't want to do this in PQ. However, it will be easier to handle in PQ

pls see the attachment below

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you very much for this solution 🙂

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.