Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I need to sum the revenue for cases that have "Over 90 days" status in status column. The challange here is that I have ticket numbers multiple times in first column. I want to sum only once for one ticket number. I dont want to remove duplicates hence need a dax....Please help
write three measures, like this
Hi @sandeep_sharma ,
Here are the steps you can follow:
1. In Power Query -- Add Column – Index Column – From 1.
2. Create measure.
Flag1 =
var _groupmin=
MINX(
FILTER(ALL('Table'),
'Table'[Ticket No.]=MAX('Table'[Ticket No.])&&'Table'[Revenue]=MAX('Table'[Revenue])&&
'Table'[status]=MAX('Table'[status])),[Index])
var _if=
IF(
MAX('Table'[Index])= _groupmin,1,0)
return
_ifFlag2 =
SUMX(
FILTER(ALL('Table'),'Table'[status]="over 90 days"&&[Flag1]=1),[Revenue])
3. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
what does the measure show?
It shows 1887006 which is the sum of 875 twice
thanks @Ahmedx for quick response...but not sure why this is not working in my sheet.....
@sandeep_sharma , Try like
Sumx(Summarize(Filter(Table, Table[Status]= "over 90 Days"), Table[Ticket No], Table[Revenue]), Table[Revenue])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.