Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have two columns in a table with two columns Person and Manager as below.
Person | Manager |
0001 | 0003 |
0002 | 0003 |
0003 | |
0004 | 0005 |
I want to remove the last row, i.e the one with Person = 0004 and Manager = 0005 as 0005 is not present in the person column for any of the rows.
The end result I want would thus be:
Person | Manager |
0001 | 0003 |
0002 | 0003 |
0003 |
How do I do this in Power BI?
Solved! Go to Solution.
@pythongtdax Can you try this
Unique List Flag =
CONTAINS(tblPerson,tblPerson[Person],tblPerson[Manager]) || CONTAINS(tblPerson,tblPerson[Manager],tblPerson[Person])
Hi @pythongtdax ,
Here's the sample data I created.
First create a calculated column using LOOKUPVALUE function.
Column = IF(ISBLANK(LOOKUPVALUE('Table'[Person],'Table'[Person],'Table'[Manager]))&&NOT(ISBLANK([Manager])),"N","Y")
Then you can add the column into the slicer for filtering.
Or add to visual-level filters.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@pythongtdax Can you try this
Unique List Flag =
CONTAINS(tblPerson,tblPerson[Person],tblPerson[Manager]) || CONTAINS(tblPerson,tblPerson[Manager],tblPerson[Person])
Hi @pythongtdax ,
If I took your question correctly then I think you can use filter on visual like below or you can remove it from PQ.
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
96 | |
75 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |