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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors