Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to create a measure which sums another measure called " sum of total amount" where a measure "TotalTech" is <> 0 then divides this result by TotalTech. This is done in excel with a SUMIF. I have this, which works, but is very slow. Is there a faster way?
Solved! Go to Solution.
Hi @abcttt233
Maybe you can try the following DAX:
Agg =
VAR TotalAmount = CALCULATE(
[Sum of TotalAmount],
FILTER(
abc,
[TotalTech] <> 0
)
)
RETURN DIVIDE(TotalAmount, [TotalTech], 0)
Also, ensure your data model is as streamlined as possible. This includes removing unnecessary columns, creating appropriate indexes, and ensuring relationships are correctly defined.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @abcttt233
Maybe you can try the following DAX:
Agg =
VAR TotalAmount = CALCULATE(
[Sum of TotalAmount],
FILTER(
abc,
[TotalTech] <> 0
)
)
RETURN DIVIDE(TotalAmount, [TotalTech], 0)
Also, ensure your data model is as streamlined as possible. This includes removing unnecessary columns, creating appropriate indexes, and ensuring relationships are correctly defined.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |