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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jaouad
Frequent Visitor

How to display "080510" instead of "80510" in my dashboard ?

Hi,

 

I would like to display "080510" instead of "80510" in my dashboard.

 

Which modification do I have to do on my table ?

 

 

Please see the attached file.

 

Thanks for your support.

 

Regards,

 

Jaouad

 

 

 

 

7 REPLIES 7
alanhodgson
Solution Supplier
Solution Supplier

Hey @jaouad,

 

I don't see an attached file, but if you want the leading zero to stay (assuming this is like a serial number, not a date), then you can change the data type to text and format to text as well.

 

If it is a date, then you can set the data type to Date and the format will be MMddyy.

 

Hope this helps,

 

Alan

Dear All,

 

Thanks for your reply.

 

I don't know how to dispaly the number "0" for HS code.

 

Also, for the Net Weight values column, I don't know why the values are "sticked", at the bottom tile of the dashboard.

 

Please check the dashboard.

 

https://app.powerbi.com/view?r=eyJrIjoiOTkzYjgwNzktNWQ5YS00NDE1LWJmZDEtOWI4YmM2NzZkYTAyIiwidCI6ImEzM...

 

Regards,

 

Jaouad

 

I assume your current column is of data type number.

 

you can add another column using dax, let's it is called MyNumber = CONCATENATE("0", YourExistingColumn) and then use this new calculate column to display number with "0"

 

Let me know if you need help with how to add new column?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi,

 

I would like to add a picture but it doesn't work.

 

dashboard

 

Thanks for your help,

 

Jaouad

@jaouad

 

Based on your shared link, it seems the "HS CODE" you put in slicer is a "Category" field for grouping data. You can change the its data type into "text" in Power BI Desktop. Then use CONCATENATE() to add "0" into text.

 

1234.PNG

 

Regards,

Can you answer my question? What is the data type of your existing column?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

You can also add new column and use extract, see below

 

extract1.PNG

 

Seems like it is a text column and if it contains numeric value, change its data type to whole number will do the job. If you can tell more about your data, it will help to provide the apporpirate solution, although there are many ways to achieve this.

 

Thanks,



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors