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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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