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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
awsiya
Frequent Visitor

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.