Forum Discussion
Apply filter from two columns
Hi -
I have two tables each containing a "Status" column. I created a pie chart with data from both tables. Now I want to create one filter with the "Status" of both tables - Open or Closed.
I can pick Status column from one table but not from both or i will get an error. But one Status will only filter data from respective table. See screenshot below.
Thanks.
Hi,
You should create a third table with only 1 column which should list all unique status entries. Then create a many to one relationship from the Status column of both tables to the status column of the third table. To your visual, drag the Status column from the third table.
Hope this helps.
4 Replies
- amitchandakSuper User
PabloGiraldo , based on what I got, You have to create a common status table and join both tables with it and use that in visual/slicer (new status)
Example : https://www.youtube.com/watch?v=Bkf35Roman8
https://www.seerinteractive.com/blog/join-many-many-power-bi/
- Ashish_MathurSuper User
Hi,
You should create a third table with only 1 column which should list all unique status entries. Then create a many to one relationship from the Status column of both tables to the status column of the third table. To your visual, drag the Status column from the third table.
Hope this helps.
- PabloGiraldoHelper IV
Worked like charm! Thank you!
- Ashish_MathurSuper User
You are welcome.