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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Format a Calculation Group Item

Source Community: Power BI | Source Author Name: rpinxt

I did this calculation to group the items:

samaria_0-1714486899988.png

1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

To format a Calculation Group Item, you can utilize the Dynamic format string feature. This allows you to specify a DAX expression to create a format string, which can dynamically change the format of your calculation item based on its context. Here's a step-by-step guide:

 

1. Navigate to the Calculation Item: In Power BI Desktop, go to the Model view and locate your calculation group. Then, select the calculation item you wish to format.


2. Enable Dynamic Format String: In the Properties pane, find the Dynamic format string option and turn it on.


3. Specify the Format String: Enter a DAX expression that returns the format string you want to apply. For example, to display a percentage, you might use a simple format string like "#,##0.00%".

 

vbinbinyumsft_0-1714546457548.png

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

To format a Calculation Group Item, you can utilize the Dynamic format string feature. This allows you to specify a DAX expression to create a format string, which can dynamically change the format of your calculation item based on its context. Here's a step-by-step guide:

 

1. Navigate to the Calculation Item: In Power BI Desktop, go to the Model view and locate your calculation group. Then, select the calculation item you wish to format.


2. Enable Dynamic Format String: In the Properties pane, find the Dynamic format string option and turn it on.


3. Specify the Format String: Enter a DAX expression that returns the format string you want to apply. For example, to display a percentage, you might use a simple format string like "#,##0.00%".

 

vbinbinyumsft_0-1714546457548.png

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.