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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dynamically formatting the number when a filter is implemented

Hi everyone, 

 

I have a measure which it's let's say the sales amount and a filter with all the shops in a country and i represent the sales amount in a measure.  The value formatting within the Data label is in thousands so when i have fitered all the shops the number looks ok e.g "20k" but when i filtered a shop for example the value could be 150 or even 50 so i see "0.0k" in the second case. 

Is there a way to make the measure dynamically change so when i select a shop and the number is in hundreds to see a 3 digit number and when is less than 100 to see to digits ?

 

Thanks.

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

What view are you using to display the results? In Card view, when you set the value format to Auto, it enables automatic switching.

vzhangti_2-1657165973161.png vzhangti_0-1657165939293.pngvzhangti_1-1657165949313.png

Does this match your desired outcome? If not, please advise what view you expect the output to be in?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

What view are you using to display the results? In Card view, when you set the value format to Auto, it enables automatic switching.

vzhangti_2-1657165973161.png vzhangti_0-1657165939293.pngvzhangti_1-1657165949313.png

Does this match your desired outcome? If not, please advise what view you expect the output to be in?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more.

amitchandak
Super User
Super User

@Anonymous , refer to the old solution on same topic

 

https://community.powerbi.com/t5/Desktop/Format-currency-to-millions-and-thousands-symbol-based-on-the/m-p/623856

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors