Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All,
Your help is required.
I have a table with ID details.
ID | Dependecy | Age | Priority |
345 | Client | 12 | 1 |
385 | Supplier | 3 | 2 |
8425 | Paper Work | 5 | 1 |
998 | Client | 15 | 2 |
5428 | Client | 21 | 3 |
4832 | Client | 14 | 1 |
345 | Application | 44 | 1 |
441 | Client | 53 | 2 |
8425 | Client | 32 | 2 |
3382 | Client | 6 | 1 |
My output has to be
ID |
998 |
4832 |
441 |
8425 |
Conditions to be satisfied:
I was able to apply first 2 conditions, but 3rd condition is not striking my head.
Please help.
Hi,
Please check the below. It is for creating a new table.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@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.
Hi @Abbi ,
Create a measure like this and use it as filter:-
_filter = count('Table (2)'[Dependecy ])
Output:-
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
User | Count |
---|---|
42 | |
27 | |
24 | |
20 | |
16 |
User | Count |
---|---|
54 | |
35 | |
18 | |
18 | |
15 |