Forum Discussion
Anonymous
5 years agoNot applicable
DAX or Query: Compare two columns in different Tables
Hi PowerBI I have 2 tables and want to compare two columns (one from each) in query editor or dax. I just need a yes they (the text values) match or no (text values) don't match in a new ...
- 5 years ago
Hi Anonymous
here you go
Attached the file
https://drive.google.com/file/d/1hMWpl1vwwXlj8yDKT8vmXLUF7S207jUU/view?usp=sharing
- 5 years ago
Hey add this to the measure if you don<t want to count the Blank rows
Count of MisMatch = CALCULATE(COUNTROWS(OEC_Service_Requests) , OEC_Service_Requests[Match/No Match__] = "No Match", OEC_Service_Requests[Status_Code ESR] <> BLANK())
Anonymous
5 years agoNot applicable
aj1973 thank you! There is an issue - the value are not suppose to be empty in the ESR status when there is no match it should have a value.
I'm not sure if its because I determined a 1:1 relationship.
aj1973
5 years agoCommunity Champion
Indeed, 1:1 relationship is not recommended
Better way is to add a Calendar Table and
but you are going to need to change some calculations.
another way is to filter out the Blank rows from the filter pane.