Forum Discussion

karun_r's avatar
karun_r
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago
Solved

DISTINCT over SUMMARIZE

I have a measure that follows the pattern as mentioned below   Test Adds = CALCULATE ( SUMX ( DISTINCT ( SUMMARIZE ( Sales, Sales[Order Date], Sales[Order Number] ) ), IF ( Sal...
  • Greg_Deckler's avatar
    6 years ago
    I do not see the need for DISTINCT, SUMMARIZE already makes things distinct.

    Maybe, but don't know your data to be sure. Should just be able to use COUNTROWS and FILTER the table returned from SUMMARIZE but not sure that is more efficient or not.