Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all ,
I'm unable to get the logic to implement in DAX for one of the queries that I have.
Scenario:
I've 3 columns namely "Report_Name", "User_List" and "User_status".
Report_Name | User_List | User_status | Output |
Report1 | User1 | Active | Retain |
Report1 | User2 | Active | Retain |
Report1 | User3 | Active | Retain |
Report1 | User4 | Inactive | Retain |
Report1 | User5 | Inactive | Retain |
Report2 | User6 | Inactive | Delete |
Report2 | User5 | Inactive | Delete |
Report2 | User7 | Inactive | Delete |
Report2 | User8 | Inactive | Delete |
Solved! Go to Solution.
output
Column =
var r = Table2[Report_Name]
var f=
FILTER(
Table2,
Table2[Report_Name] = r && Table2[User_status] = "Active"
)
return
IF(ISEMPTY(f),"Delete","Retain")
let me know if this works.
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
output
Column =
var r = Table2[Report_Name]
var f=
FILTER(
Table2,
Table2[Report_Name] = r && Table2[User_status] = "Active"
)
return
IF(ISEMPTY(f),"Delete","Retain")
let me know if this works.
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |