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
edwardrmiles
Helper III
Helper III

find the scale & precision of a decimal number

How do I work out the precision and scale of a column of decimal numbers using DAX?

 

 

 

 

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @edwardrmiles,

 

On source table you can change it on Formating tab.

Capture.PNGCapture1.PNG

On report level, you can set it on Format tab>Data Labels>Display units
Capture2.PNG

 

Regards,

Charlie Liao

Thanks @v-caliao-msft but it's not a formatting issue. I want to return the scale & precision as integers, so 1.23 would return a precision of 3 and a scale of 2

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.