Customer table
contains the column "Status","created_date","updated date"
ascs table
contains the column "service_station_name"
First I add new measure for "status count" by using following eqn:
Status Count = COUNT('cps customers'[status])
then a new column for "day duration" by using following eqn:
Day Duration2 = SWITCH('cps
customers'[status],"Closed",DATEDIFF('cps customers'[created_at],
[updated_at],DAY),"Unattended",DATEDIFF('cps
customers'[created_at],NOW(),DAY),"Assigned",DATEDIFF('cps
customers'[created_at],NOW(),DAY),"NotApplicable",DATEDIFF('cps
customers'[created_at],NOW(),DAY),"Open",DATEDIFF('cps
customers'[created_at],NOW(),DAY))
I need top service station name.. Conditions:
i. Consider only **closed status**
ii. Top count of **closed status count**
iii. Lowest **time duration**
Steps:
Select columns service_station_name,status,status count and day duration2
Add TOPN filteration for "status count"
Now, I got three service_station_name where each have 5 closed status count.
And for getting the lowest "day duration2" I used ascending order "
And for displaying the top 1 service_station_name, I chosen the CARD from visualization and get First service_station_name.Bt I haven't got the proper answer
Then I took last service_station_name . Here also i haven't got the answer.
Based on the screenshot, I need "Om Sakthi Engineering" as answer. How I get the answer? Can anybody help me!