Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Need help, I need to tagged record if retain or removed based on its status and it grouping
But the rules are
1: For each Unit, filter out Pros records if there exists an Exec record
2: For each Unit, filter out Vacant records if there exists a Pros record
so if it cointain one Unit it will retain else need to use the rule above.
Im trying to use contains and group by but still i got incorrect Ouput.
Solved! Go to Solution.
You may check if RANKX Function works.
Rules (tagging) =
VAR Rnk =
RANKX (
CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Property], Table1[Unit] ) ),
SWITCH ( Table1[Status], "Exec", 1, "Pros", 2, "Vacant", 3 ),
,
1
)
RETURN
IF ( Rnk = 1, "Record remains", "Record removed" )
You may check if RANKX Function works.
Rules (tagging) =
VAR Rnk =
RANKX (
CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Property], Table1[Unit] ) ),
SWITCH ( Table1[Status], "Exec", 1, "Pros", 2, "Vacant", 3 ),
,
1
)
RETURN
IF ( Rnk = 1, "Record remains", "Record removed" )
its working. thanks.
Hi @rommel20,
Sorry, but i am not able to understand your problem. Can you re phrase what are you doing exactly?
Prateek Raina
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |