Forum Discussion
Compare two columns in different tables
Hi KimRexh ,
You can use "Merge Queries as new" and then add a conditional column like below for comparision:
After clicking OK, Expand ->
Select columns ->
Now, add a conditional column ->
Comparision = if(Merge1Forecast] = Merge1[Actual], 0, 1)
Result:
Thank you for your reply!
When I do this I get a new row for each row when I expand the table with columns from table2.
Also, I have tried creating field parameters for the columns so that I can create a slicer for the columns but is there a alternative way of creating slicer with column header?
- amitchandak3 years ago
Super User
KimRexh , a better way is to create common dimensions and use those
Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
Power BI- Power Query: When I asked you to create common tables: https://youtu.be/PqfGW6pl1Sw