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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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)