Forum Discussion

coliveira03_'s avatar
coliveira03_
Frequent Visitor
3 years ago
Solved

Total using ALL in a DAX

Hi there, In my data set, I have many folders and in each folder, many products inside e.g.:    I need to user a slicer using product type description field, and when doing so automatically...
  • tamerj1's avatar
    3 years ago

    Hi coliveira03_ 

    Please try

    Sales Total =
    SUMX (
    DISTINCT ( Folder[FolderNumber] ),
    CALCULATE ( SUM ( Folder[SellAmount] ), ALL ( Folder[ProductTypeDescription] ) )
    )