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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
SamRounsevell
New Member

Formatting X Axis - display all values in order

I'm trying to show a count of sales alongside the quantity of outgoing communications on the same day:

 

If I choose Continuous it shows the dates in the correct sort order but hides most values:

Continuous.PNG

 

If I choose Categorical it shows all values but loses the correct date order:

Categorical.PNG

 

How can I display every day while keeping it in date order?

 

I have both a Date Hierarchy and the raw Date field (set as a date type in the query) changing between them doesn't seem to help.  

 

 

 

1 ACCEPTED SOLUTION

The other thing I noticed in your first post - in the second picture (when the X-Axis is Categorical)

 

Thy sorting the Chart - Sort by the Date - it looks like it was Sorted by Transactions

 

Click the ... in top right corner of the Chart and Sort By Date

 

Sort By Date.png

 

Yes if you have all dates you can create a column

Column = 0 and place it in the chart - that will force all dates to be seen

however you won't be able to use the legend if you do this...

 

HTH! Smiley Happy

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

Is it also set as date in the Modeling tab?

Aha!


My Date field (not the Hierarchy) is Data Type: Date in the modelling tab.  

 

This is great but for some reason I can only

 

 

Modelling Date.PNG

 

That is in order but only displaying values with data (transaction count in this case).  
The Categorisation option under the X-Axis to show all values is not available now.  

 

The Date Hierarchy field has all the Modelling buttons greyed out when I select it.

I'm planning to upload a table of Dates and a Count of mail pieces, TV spots ,etc...could I cheat and just put a value in for every day with 0's for empty days?  Would that force the graph to display each day?

Edit: Thank you very much for helping 🙂  

The other thing I noticed in your first post - in the second picture (when the X-Axis is Categorical)

 

Thy sorting the Chart - Sort by the Date - it looks like it was Sorted by Transactions

 

Click the ... in top right corner of the Chart and Sort By Date

 

Sort By Date.png

 

Yes if you have all dates you can create a column

Column = 0 and place it in the chart - that will force all dates to be seen

however you won't be able to use the legend if you do this...

 

HTH! Smiley Happy

Ah, I never knew the sort function was there 🙂  Perfect, thank you very much!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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