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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Dynamic format not working for stacked column chart

Greetings,

 

I'd like to show the number in the data label as millions when it's over 1M and as K when it's below that number. I've confirmed the numbers display as I wish when I put the dynamic format measure in a draft table. 

 

Desired resultDesired result

 

I need to use this measure as a data label for the light blue columns in the following graph. However, when I try to do it I get this

Obtained resultObtained result

 

These are the settings I'm using for the data label. Just in case, my dynamic format measure is just the data label. The light blue column is a different measure I'm using as a placeholder.

 

 

Settings chosenSettings chosen

 

I could think of a workaround using two measures and giving them different fixed units (K and M), but I'd like to know whether this is a bug or something I'm not understanding correctly.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for @Tahreem24 reply, that's really helpful!

 

@Anonymous How do you create the measure? Here is my test for your reference.

Measure = VAR SV = SELECTEDVALUE('Table'[Value])
RETURN  IF(SV>1000000,ROUND(SV/1000000,1)&"M",ROUND(SV/1000,0)&"K")

vmengmlimsft_2-1729663137781.pngIf you just want use this measure as a data label for the light blue columns,  you can apply the setting to series of light blue column.

vmengmlimsft_1-1729663096434.png

vmengmlimsft_0-1729663057905.png

 

 

Best regards,

Mengmeng Li

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for @Tahreem24 reply, that's really helpful!

 

@Anonymous How do you create the measure? Here is my test for your reference.

Measure = VAR SV = SELECTEDVALUE('Table'[Value])
RETURN  IF(SV>1000000,ROUND(SV/1000000,1)&"M",ROUND(SV/1000,0)&"K")

vmengmlimsft_2-1729663137781.pngIf you just want use this measure as a data label for the light blue columns,  you can apply the setting to series of light blue column.

vmengmlimsft_1-1729663096434.png

vmengmlimsft_0-1729663057905.png

 

 

Best regards,

Mengmeng Li

Tahreem24
Super User
Super User

@Anonymous  You can refer this video. It has the solution which you're looking.

https://www.youtube.com/watch?v=s4jeX9EKON4

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.