I've been breaking my head about the following: I'd like to filter ID's that have certain values but not others. E.g.
ID | Value |
1 | A |
1 | B |
1 | C |
2 | A |
2 | C |
2 | D |
3 | C |
3 | D |
3 | E |
What I would like to happen here is filter the ID's that have A, but do not have B. So In the end you have the output:
ID | Value |
2 | A |
2 | C |
2 | D |
As ID 1 has A and also B, and ID 3 does not have B, but also not A.
Anyone an idea how to solve this?
Solved! Go to Solution.
@RsRoel create a measure for condition and then use it in visual level filter or add it in the table visual
Filter =
VAR __val = CALCULATETABLE ( VALUES ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
IF ( "A" IN __val && NOT "B" IN __val, "Y" )
Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@RsRoel create a measure for condition and then use it in visual level filter or add it in the table visual
Filter =
VAR __val = CALCULATETABLE ( VALUES ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
IF ( "A" IN __val && NOT "B" IN __val, "Y" )
Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
371 | |
101 | |
65 | |
55 | |
43 |
User | Count |
---|---|
365 | |
115 | |
79 | |
65 | |
53 |