Forum Discussion
Gonqq
Helper I
5 years agoOptimizing a DAX Formula
Hi everyone. I'm having trouble with a small dax formula: it consumes a lot of memory and i can't add anymore rows to a mtarix because of it. The formula is the following: It was one of my fir...
Greg_Deckler
Community Champion
5 years agoGonqq One way would be to have your GE row be this:
VAR GE = DIVIDE(R; P; "N/Orc")
- Gonqq5 years ago
Helper I
Hi Greg_Deckler , thank you. I tried it out and it still pulls a lot of memory. I'm almost certain that it's the switch condition that's causing the problem but i really must have that condition.
- Greg_Deckler5 years ago
Community Champion
Gonqq Try: VAR C = IF(gc + R + P = 62, "n.a";GE)
Arithmatic is faster than comparison operators and no need for a SWITCH if it is just a single condition.