Forum Discussion
DAX filter
Jihwan_Kim Samarth_18 , Sorry if I had lead you in wrong way.
Here the condition is not count of dependency, We require only ID'd with Client dependency. If the ID has Client and Application dependecy and both of them satify the priority and age conditions then we shouldn't pull that ID.
We have to pull only the ID's ( can be repeated any number of times), but it has only Client dependecy .
Hi Abbi
Use below measure as a filter field on the table visual to get the result. SELECTEDVALUE() returns a single dependency value. If an ID has more than one dependencies, it will return blank.
Flag =
VAR _dependency =
CALCULATE (
SELECTEDVALUE ( 'Table'[Dependecy ] ),
FILTER ( 'Table', 'Table'[Priority] IN { 1, 2 } && 'Table'[Age] > 10 )
)
RETURN
IF ( _dependency = "Client", 1, 0 )
Or if you want to have the filtered result in a new table, you can use
Table 2 =
SELECTCOLUMNS (
FILTER (
SUMMARIZE (
FILTER ( 'Table', 'Table'[Priority] IN { 1, 2 } && 'Table'[Age] > 10 ),
'Table'[ID],
"dependency", SELECTEDVALUE ( 'Table'[Dependecy ] )
),
[dependency] = "Client"
),
"id", [ID]
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.