Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vjnvinod
Impactful Individual
Impactful Individual

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]))))

1 ACCEPTED SOLUTION
Christann
Advocate IV
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!

View solution in original post

8 REPLIES 8
Anonymous
Not 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.

 

vjnvinod
Impactful Individual
Impactful Individual

@Anonymous@Christann

 

Actually the output is not showing in % and should be one place decimal

is there anything we need to tweek in this measure?

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.

vjnvinod
Impactful Individual
Impactful Individual

@Christann

 

Great, this helps & an easy one.

Can you also help me on more issue, i have a metrics, where i want to show the upward and downward trend, something like shown in below (which is basically an indicator )

 

Not sure, how do i achieve this, as i don't find any option to do that

 

Screenshot_20181025-112435.png

@vjnvinod

I am not sure what you are asking. Are you looking for how to create Conditional Formatting(i.e. text or background changes color based on the value), or are you wondering how to create the whole combination of graphics in your screenshot?

vjnvinod
Impactful Individual
Impactful Individual

@Christann

 

conditional formatting is something i am aware, if you noticed in the pic, there is some indicators(up & down in triangle shape), how can we build that indicators in the table?

Sure!, take a look at this link from Curbal.com, and see if this is what you needed.

Christann
Advocate IV
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!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.