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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sujit_Thakur
Solution Sage
Solution Sage

Number format

Dear all , 

I have a measure which returns me value such as 

1000

23

3200

2

500000

 

I want to return 

1k

23

3.2k

500k

 

I tried using format into thousand but it converts all numbers to K format 

I want only those numbers to turn in K format which are greater than 1000 

 

Need help 

Regards 

Sujit 

1 ACCEPTED SOLUTION
Sujit_Thakur
Solution Sage
Solution Sage

Ok friends 

I tried and I reached to conclusion

 

Loss = var a = MEASURE 

RETURN IF(a>=1000,Format(a,"#,.#K"),a)

 

If you have more optimized solution please feel free to shoot your advices in comments down 👍

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Sujit_Thakur , In model view , you have property. Once you click on a column then you will be able set its property there you can set format -https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

 

or you can use the format command. Or can mention format in measure/column tools

 

The above article also contain how to give format string

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
Sujit_Thakur
Solution Sage
Solution Sage

Ok friends 

I tried and I reached to conclusion

 

Loss = var a = MEASURE 

RETURN IF(a>=1000,Format(a,"#,.#K"),a)

 

If you have more optimized solution please feel free to shoot your advices in comments down 👍

@Sujit_Thakur , Thanks for sharing.

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

No problem sir 🙏😀

@amitchandak 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.