March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
excuse me, please
I trying to calculate dax formula for districtcount by day
I use formula
10W = ((CALCULATE(DISTINCTCOUNT(Driver[AUTO_PLATE_ID]),FILTER(Driver,Driver[AUTO_TYPE]="10 W"),Driver[BILL_DATE]))
Result
Solved! Go to Solution.
Hi, @daedah
I have spent some time on the fixing the outcomes. I am afraid it is not possible to sum up the DistinctCount measure by day.
Therefore, I figured out an alternative (Calculated Column and Slicer) to your expected results despite the formula does not make much sense:
10W Column=
CALCULATE (
DISTINCTCOUNT ( Transport[AUTO_PLATE_ID] ),
FILTER (
ALLEXCEPT ( Transport, Transport[BILL_DATE] ),
Transport[AUTO_TYPE] = "10W"
)
)
/ CALCULATE (
COUNTROWS ( Transport ),
FILTER (
ALLEXCEPT ( Transport, Transport[BILL_DATE] ),
Transport[AUTO_TYPE] = "10W"
)
)
44 and 2388 are corresponding to 15 and 255 in your case.
Hope it helps you in some extend.
Best regards,
Paul Zheng
Hi, @daedah
I would like to help you but could you upload your raw data to OneDrive For business if possbile?
Paul
Hi, @daedah
The excel data is different to yours, so my results is also differed. For the number "15", it is the distinctcount of Auto_PLATE_ID.
I am not sure about what is the number 255. Could you clarify? Thank you.
Best,
Paul
yes please,
As picture , 255 from 4+8+7+8+11+7+6+7+6+7+8+9+5+5+.... or sum of result in everyday (According time selected , month , year)
Thank you for ypur help
Hi, @daedah
I have spent some time on the fixing the outcomes. I am afraid it is not possible to sum up the DistinctCount measure by day.
Therefore, I figured out an alternative (Calculated Column and Slicer) to your expected results despite the formula does not make much sense:
10W Column=
CALCULATE (
DISTINCTCOUNT ( Transport[AUTO_PLATE_ID] ),
FILTER (
ALLEXCEPT ( Transport, Transport[BILL_DATE] ),
Transport[AUTO_TYPE] = "10W"
)
)
/ CALCULATE (
COUNTROWS ( Transport ),
FILTER (
ALLEXCEPT ( Transport, Transport[BILL_DATE] ),
Transport[AUTO_TYPE] = "10W"
)
)
44 and 2388 are corresponding to 15 and 255 in your case.
Hope it helps you in some extend.
Best regards,
Paul Zheng
Thank you for your help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |