Forum Discussion
Anonymous
4 years agoNot applicable
Perform filtering on column value based on condition
I have a table where i need to filter a team when it has both requestor and superuser for each CR No. Eg;- CR 130 has both Requestor and superuser so it is present in my output table. CR...
- 4 years ago
Anonymous , Try this for table:-
Table 2 = SUMMARIZE ( FILTER ( 'Table', CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" ) && CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" ) ), 'Table'[CR NO],'Table'[Team] )Output:-
Samarth_18
Community Champion
4 years agoHi Anonymous ,
Create a measure like below and use it as filter on your visual:-
Measure =
COUNTROWS (
FILTER (
'Table',
CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" )
&& CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" )
)
)
Output:-
Thanks,
Samarth
- Anonymous4 years agoNot applicable
Hi samarth, Thanks for replying. Is it possible for to generate a new table with above input table with the result.
- Samarth_184 years ago
Community Champion
Anonymous , Try this for table:-
Table 2 = SUMMARIZE ( FILTER ( 'Table', CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" ) && CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" ) ), 'Table'[CR NO],'Table'[Team] )Output:-
- Anonymous4 years agoNot applicable
Thank you Samarth for both the logics. Both are correct and working fine.