Forum Discussion
Countdistinct is not Summing correctly
- 1 year ago
Hi cheid_4838 - You're summarizing the entire CalendarLookup table without any grouping columns. This means it returns a single row, and the count becomes the total number of dates in the current filter context.
try below calculation :
Total Cal Days =
SUMX(
VALUES('YourTable'[GroupColumn]), -- e.g., TractorID
CALCULATE(DISTINCTCOUNT('CalendarLookup'[Date]))
)Hope this works. please check and let know.
Hi cheid_4838 ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution so that other community members can find it easily.
Best Regards,
Menaka
Community Support Team
Hi cheid_4838 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Best Regards,
Menaka.
Community Support Team