Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Divide with filters error

Hallo, I've got a problem with this table.   https://www.dropbox.com/s/ii6q02bn9kltvef/Cartel1.xlsx?dl=0    iN this file we have are 2 tables: 1: Carico_4 2: Carico_uph   Ive made the second...
  • Pragati11's avatar
    6 years ago

    Hi Anonymous ,

     

    Try modifying your DAX as follows:

    UPH_XD = divide(

    calculate(sum(Carico_uph[contenitori]), filter(ALLSELECTED(Carico_uph), Carico_uph[CIRCUITO]="XD")), calculate(sum(Carico_uph[op nr]), filter(ALLSELECTED(Carico_uph),Carico_uph[CIRCUITO]="XD")), 0

    )

     

    Thanks,

    Pragati