cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
KeithNeedsHelp
Regular 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
Solution Supplier
Solution Supplier

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
Solution Supplier
Solution Supplier

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
Regular 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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors