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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
KeithNeedsHelp
Frequent Visitor

Chart Display Units

Hi, I have data ranging from a few hundred thousand to a few million.  In one chart I would like my display units to show for example 200K, 400K, 600K, 800K, then switch to 1M, 1.2M, 1.4M, etc.  Possible?

 

thanks,

 

Keith

2 ACCEPTED SOLUTIONS
TotunG
Resolver I
Resolver I

Not sure on your exact data layout but could potentially look into dynamic string formats? 

 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings

View solution in original post

Dhairya
Super User
Super User

Hey @KeithNeedsHelp 
Yes it is possible with the new Dynamic string format
I recreated your scenario please follow below step to achieve your requiremnet

Input Data

Dhairya_0-1694692479734.png

 


Step 1: Create a simple measure 

Dhairya_1-1694692512044.png


Step 2: Go to Dynamic format

Dhairya_2-1694692543713.png


Step 3: Now type the condition in the format you want the end output

Dhairya_3-1694692610531.png


Now you will get your expected output as below

Dhairya_4-1694692646256.png

If this helps ypu then please kudo this post and mark it as a solution so that others can find it quickly while facing the similar issue. Thank You!

View solution in original post

4 REPLIES 4
Dhairya
Super User
Super User

Hey @KeithNeedsHelp 
Yes it is possible with the new Dynamic string format
I recreated your scenario please follow below step to achieve your requiremnet

Input Data

Dhairya_0-1694692479734.png

 


Step 1: Create a simple measure 

Dhairya_1-1694692512044.png


Step 2: Go to Dynamic format

Dhairya_2-1694692543713.png


Step 3: Now type the condition in the format you want the end output

Dhairya_3-1694692610531.png


Now you will get your expected output as below

Dhairya_4-1694692646256.png

If this helps ypu then please kudo this post and mark it as a solution so that others can find it quickly while facing the similar issue. Thank You!

Could I re-visit this issue briefly?  I have dynamic formatting working fine in a line chart, but want it to work on the y axis only and not on data labels.  It does not change to millions on the axis.  Here's the formula:  

IF([MSPriceMax] < 1000000, "$#,.K", "$#,,.00M").  Here's how it looks:
KeithNeedsHelp_0-1697572429272.png

 

KeithNeedsHelp
Frequent Visitor

Yes this is the right direction for me thanks!

TotunG
Resolver I
Resolver I

Not sure on your exact data layout but could potentially look into dynamic string formats? 

 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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