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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
naoyixue1
Post Patron
Post Patron

How to add the decimal in the measure (Switch True) , which catches either A measure or B Measure

Hey there,

 

I created below measure to catch Weekly Ending Inventory or WOS based on the selection. Right now, I want to add one decimal into the WOS calculation but still don't impact the ending inventory calculation. I tried fixed and round function, but it doesn't work. Does anyone know how to handle that? Thanks.

naoyixue1_0-1648661008572.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @naoyixue1 ,

Has your problem been solved? 

If the WOS is of number type, you can directly change the number of decimal places in the Format pane.

vkalyjmsft_0-1649067446371.png

If the WOS is of text type, you can use FORMAT function as @lbendlin mentioned like this:

Measure = FORMAT([A],"0.0000")

Best Regards,
Community Support Team _ kalyj

If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @naoyixue1 ,

Has your problem been solved? 

If the WOS is of number type, you can directly change the number of decimal places in the Format pane.

vkalyjmsft_0-1649067446371.png

If the WOS is of text type, you can use FORMAT function as @lbendlin mentioned like this:

Measure = FORMAT([A],"0.0000")

Best Regards,
Community Support Team _ kalyj

If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You will likely need to treat both outputs as text, and then use FORMAT() to get to your decimals.  Or you can consider using Calculation Groups. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors