Forum Discussion

volkanbygl's avatar
volkanbygl
Regular Visitor
8 years ago
Solved

Divide two columns DAX

Hello,   I need to calculate percentage and this is the DAX formula which isnt working:   PercentDifference= DIVIDE('Query1'[SALES]*100; 'Query1'[PLANNED_SALES] )   Divide function works if I p...
  • volkanbygl's avatar
    8 years ago

    Hello all, 

     

    Thank you for you efforts. I finally found the solution. 

     

    What I needed to do was:

    - create three measures:

        Sale = SUM(Query1[SALES])*100

        PlannedSale = SUM(Query1[PLANNED_SALES])

        Percentage= DIVIDE([Sale];[PlannedSale])

     

    Only this way worked for me and it is cool. Thank you guys