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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vjnvinod
Impactful Individual
Impactful Individual

Measure help on decimal point

 

Dear community,

 

Below is my measure to calculate Margin %,  this is by default coming in 2 decimal point.

Can you help in tweaking this, so my output comes in 1 decimal point?

 

 

Margin% = IF(SUM(Inbound[NER_FYTD_Constant])=0,0,SUM(Inbound[MarginFYTD_Constant])/SUM((Inbound[NER_FYTD_Constant])))*100

3 REPLIES 3
Data_Cornering
New Member

If Formatting in Modeling tab does not do the thing, then try to add FORMAT function https://msdn.microsoft.com/en-us/query-bi/dax/format-function-dax

@Data_Cornering

 

Formatting in modelling doesn't helps..

Can you help to create that format function in my measure?

Margin% = IF(SUM(Inbound[NER_FYTD_Constant])=0,0,SUM(Inbound[MarginFYTD_Constant])/SUM((Inbound[NER_FYTD_Constant])))*100

HI @vjnvinod,

 

In fact, you can direct modify decimal place on format table.
Choose your measure and click on format tab, then you'll find the property to modify displayed decimal place:

15.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.