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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
JenM
Advocate II
Advocate II

variable decimal precision

This may be a feature request, but just want to check first that this functionality isn't hidden somewhere that I've missed.

 

I have measures with 2 decimals of precision, and I want to retain that precision.

 

However, I don't always want to display that full level of precision... In other words, I want to be able to configure the precision based on where/how I'm displaying or using the measure.

 

At this point, I'm guessing my only option is measure proliferation. i.e., I have to create new measures for each precision needed, which clutters up my measure list, not to mention requires creation of ugly long measure names.

 

My usage scenario in this particular case is a matrix.

Ideas are welcome!

1 ACCEPTED SOLUTION
KGrice
Memorable Member
Memorable Member

I think you're out of luck on individual formatting for each placement of a measure. One of the nice features of PowerBI is formatting something once and then never again. If you have the measure in a table here and a matrix there, changing the formatting on either one will apply to the whole report.

 

The creation of duplicate measures with only the formatting different is probably the only route. Hopefully you don't need too many.

View solution in original post

4 REPLIES 4
KGrice
Memorable Member
Memorable Member

I think you're out of luck on individual formatting for each placement of a measure. One of the nice features of PowerBI is formatting something once and then never again. If you have the measure in a table here and a matrix there, changing the formatting on either one will apply to the whole report.

 

The creation of duplicate measures with only the formatting different is probably the only route. Hopefully you don't need too many.

Thanks for the input. Sadly, I think you're right, I'm out of luck.

chrisu
Responsive Resident
Responsive Resident

Could you use the FORMAT function for this?  

 

See http://www.kasperonbi.com/dynamic-format-using-dax/ and https://msdn.microsoft.com/en-us/library/ee634924.aspx for instructions/examples.   

 

You may need to wrap it in another function to define each of the different display scenarios.  So you could say if filtered like this, then display 1 decimal place, if filtered some other way, display two decimal places.

 

Some visuals also allow you to customize the level of precision for that particular visual.  

 

 

Thanks for the suggestion. Great functionality to know about!

 

This solution provides dynamic formating, but not context-sensitive formating. I don't know how I would programmatically be able to grab something that indicated the context the measure was being used in - which is what I need.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.