Forum Discussion

mlozano's avatar
mlozano
Icon for Helper III rankHelper III
4 years ago
Solved

DAX CALCULATE ERROR

Hello, I have the following problem.   I have a measure built in DAX called Share % SKU ACT Volume, it is the percentage participation that each SKU has in the total ACT Volume, with that measure I...
  • mlozano's avatar
    4 years ago

    I solved it like this:

     

     

    VAR Numerator = CALCULATE(SUM(Worksheet[ACT Volume]), ALLSELECTED(Worksheet), VALUES(Worksheet[Month]),VALUES(Worksheet[Category]))
    
    VAR Denominator = CALCULATE(SUM(Worksheet[ACT Volume]), ALLSELECTED(Worksheet))
    
    RETURN
    
    DIVIDE(Numerator, Denominator)