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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
rolyzo
Helper I
Helper I

Dynamically display decimal

I have the next column:

tblDesviacionMovil[NDecimal]

This column tells me that the parameter must show its value with N Decimal

for example:

Parameter                NDecimal

Parameter1              1

Parameter2              0

Parameter3              2

 

and I have another measure column

 

Real = SWITCH(MAX(tblDesviacionMovil[TipoCalculo]),
3, sumx(tblDesviacionMovil, (tblDesviacionMovil[RealOrigen] * tblDesviacionMovil[ProductoCartesiano2]) / sum(tblDesviacionMovil[ProductoCartesiano2])),
1, SUM(tblDesviacionMovil[RealOrigen]),
2, AVERAGE(tblDesviacionMovil[RealOrigen]) )

 

Now, I want to display this measue column (Real) in Table visual with the following form.

Parameter                Real

Parameter1              120.1

Parameter2                 321

Parameter3              235.85

 

I need to do this

Thanks for you help.

1 ACCEPTED SOLUTION

I use a formula and then the FORMAT function.

Thanks for everything.

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Hmm, I'm not aware of a way to do that. You set the number of decimal places to show for a measure once per measure. Perhaps you could take the output of your formua and convert it to a string and then parse it to only the number of decimal places that you want?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I use a formula and then the FORMAT function.

Thanks for everything.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.