Forum Discussion

Water's avatar
Water
Icon for Helper II rankHelper II
5 years ago
Solved

Count based on distinct values in another column of same table – DAX for measure?

Hello, New to Power Bi, so pardon my probably novice (and first!) question. Below is my simplified dataset. I want to create a table counting the number of units worked on in a year as per distinct...
  • Ashish_Mathur's avatar
    5 years ago

    Hi,

    Try this measure:

    Measure = SUMX(SUMMARIZE(VALUES(Data[WO]),Data[WO],"ABCD",DISTINCTCOUNT(Data[Unit Number])),[ABCD])

    Hope this helps.