Forum Discussion
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 table with this formulas:
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
2 Replies
- Pragati11Super User
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
- AnonymousNot applicable
Hi
I filled in ur formula:
UPH_XD = divide(calculate(sum(Carico_uph[contenitori]), filter(ALLSELECTED(Carico_uph), Carico_uph[CIRCUITO]="XD" || Carico_uph[CIRCUITO]="XK")), calculate(sum(Carico_uph[op nr]), filter(ALLSELECTED(Carico_uph),Carico_uph[CIRCUITO]="XD" || Carico_uph[CIRCUITO]="XK")), 0)But the output is wrong yettot contenitori: 546ttot op nr= 88it should be 6,2 but it is 8,28