The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
wanted to count the distinct Lead_id when it changed it state from qualified to Inactive.
attached image for refrence
@rohit18 , You can have a flag column like
New column =
var _date = maxx(filter(Table, [ID] = earlier([ID]) && [Date] < earlier([date]) && [Change] = "Qualified") , [Date])
return
if( [Change] = "Inactive" && not(Isblank(_date)) ,1, 0)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |