Forum Discussion
Measure help
Dear Community,
i have created a margin, which is throwing error, can you let me know what could be the right way to do it?
Margin% = IF(SUM(Inbound[NER_FYTD_Constant]=0,0,SUM(Inbound[MarginFYTD_Constant]/SUM(Inbound[NER_FYTD_Constant]))))
You have put all of your parentheses at the end! Try:
Margin% = IF(SUM(Inbound[NER_FYTD_Constant])=0,0,SUM(Inbound[MarginFYTD_Constant])/SUM(Inbound[NER_FYTD_Constant]))
Hope this helps!
8 Replies
- Christann
Advocate IV
You have put all of your parentheses at the end! Try:
Margin% = IF(SUM(Inbound[NER_FYTD_Constant])=0,0,SUM(Inbound[MarginFYTD_Constant])/SUM(Inbound[NER_FYTD_Constant]))
Hope this helps!
- AnonymousNot applicable
Hi vjnvinod,
You forgot to close some parenthesis.
IF(SUM(Inbound[NER_FYTD_Constant])=0,0 , SUM(Inbound[MarginFYTD_Constant])/SUM(Inbound[NER_FYTD_Constant]))
Tell us if it works for you.
- Christann
Advocate IV
The formatting is not included in the actual Measure. You can simply select the measure in your Fields pane, and then modify the formatting on the Modeling tab > Formatting.