Forum Discussion

doubleclick's avatar
doubleclick
Resolver I
4 years ago
Solved

Change from Countx to DistinctCount

Hi All,   I have a cool formula here but i'm having trouble converting it to a distinct count  I want to change the below into a distinctcount of a column called [Worker] - how can i change this? ...
  • amitchandak's avatar
    4 years ago

    doubleclick , Try like

     


    calculate( distinctcount(MainTableDE[Worker]) ,All('Calendar'),filter( MainTable,(DATEDIFF(MainTable[Start Date],EoM,DAY)>=365)),MainTable[Start Date]<=EoM,ABS(
    MainTable[End Date]>=SoM))