Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I am trying to write a DAX for sum of multiple where conditions. For ex:
CALCULATE(SUM(W_R[T]),W_R[S] = "C" || W_R[S] = "C_S" || W_R[S] = "R" || W_R[S] = "V"). The DAX is running but it's not showing me the correct number. Can some one please tell me where I am wrong?
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
If you want to put measure and other fields together, you need to add an all()
Create measure.
add_all = CALCULATE(SUM(W_R[T]),FILTER(ALL(W_R), W_R[S] = "C" || W_R[S] = "C_S" || W_R[S] = "R" || W_R[S] = "V"))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
I created some data:
If you want to put measure and other fields together, you need to add an all()
Create measure.
add_all = CALCULATE(SUM(W_R[T]),FILTER(ALL(W_R), W_R[S] = "C" || W_R[S] = "C_S" || W_R[S] = "R" || W_R[S] = "V"))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous
Please provide more details and explain your data and the expcted results
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group