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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Formatting numbers in Matrix visual

Hi all,

 

I am using a Matrix visual and some of the values in one column are in the millions while other numbers in the same column are in the thousands. How can I format the column to show 1M for 1 million while other values show 2k for 2 thousand?

 

thank you!

1 ACCEPTED SOLUTION
mhossain
Solution Sage
Solution Sage

@Anonymous 

 

You can try calculation group, see below blog:

https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/

 

Hope this helps.

View solution in original post

3 REPLIES 3
mhossain
Solution Sage
Solution Sage

@Anonymous 

 

You can try calculation group, see below blog:

https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/

 

Hope this helps.

amitchandak
Super User
Super User

@Anonymous , you may have to write measure using format function and value range

 

Can you share sample data and sample output in table format?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  I will share a sample in a bit. I have seen someone use a table that was placed in the "Columns" section of the visual that did all the formatting, I have no idea how that was done though

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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