Power BI: Dynamic Format String for Measures
Power BI
May 10, 2023 11:00 AM

Power BI: Dynamic Format String for Measures

by HubSite 365 about Dhruvin Shah [MVP]

Microsoft MVP (Business Application & Data Platform) | Microsoft Certified Trainer (MCT) | Microsoft SharePoint & Power Platform Practice Lead | Power BI Specialist | Blogger | YouTuber | Trainer

Data AnalyticsPower BILearning Selection

Recently Microsoft launched new Power BI feature - "Dynamic Format String for Measures". With dynamic format strings for measures, you can determine how measure

Recently Microsoft launched new Power BI feature - “Dynamic Format String for Measures”. With dynamic format strings for measures, you can determine how measures appear in visuals by conditionally applying a format string with a separate DAX expression.

Dynamic format strings overcome an inherent disadvantage of using the FORMAT function. That is, with FORMAT even numeric data types are returned as a string, which may not work with visuals that require numeric values, like charts. When using dynamic format strings, the measure keeps its data type and isn’t forced to change to a string data type. This applies different format strings to the measure depending on the context.

Dynamic format strings overcome an inherent disadvantage of using the FORMAT function. That is, with FORMAT even numeric data types are returned as a string, which may not work with visuals that require numeric values, like charts. When using dynamic format strings, the measure keeps its data type and isn’t forced to change to a string data type. This applies different format strings to the measure depending on the context.

Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn

Questions and Answers about Power Platform/Power Apps

Within PowerBI, click on the measure and then go to Modeling on the menu. You'll see a Formatting section. Make changes there.

To create custom format strings, select the field in the Modeling view, and then select the dropdown arrow under Format in the Properties pane. Once you've selected Custom from the Format dropdown menu, choose from a list of commonly used format strings.

Dynamic measurements are measurements of quantities with time-dependent values using measuring instruments that are mathematically modelled by dynamic measurement systems. Typical examples are quantities with rapidly changing values, such as pressure in a combustion engine or the forces acting in a crash test.

And you set it to Dynamic. And when you do that a new drop. Down will show here on format you put