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
GARYSS
Regular Visitor

Dashboard

How do I get, in a dashboard, the x-axis to show individual date (12/01/2022; 12/02/2022; 12/03/2022; etc.) as the legend for the columns that appear above when my source Date field has hundreds of rows with the same date?  

 

Example:

               Field 1 (Transaction ID)             Field 2 (Model Type)                          Date

Row 1               1234                                      20                                  12/01/2022 3:25:08 PM

Row 2               2345                                      20                                  12/01/2022 4:25:18 PM

Row 3               3456                                      30                                  12/01/2022 5:05:22 PM

Row 4               4567                                      20                                  12/02/2022 1:25:08 PM

Row 5               5678                                      30                                  12/02/2022 4:27:08 PM

 

I want the dashboard to have a separate column for each date and reflect the count of the transaction by Model.

So, would have a 12/01/2022 legend entry and a 12/02/2022 legend entry with stacked bar chart above each date, showing quantity of Model Type for each date.  Minutes and seconds not displayed in the date legend of the dashboard.

 

Thanks, in advance, for your help!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@GARYSS , Not very clear,

But you can create a date table and use Axis Type = Categorical 

New column

Date  only = DateValue([Date])

 

Axis_type.png

View solution in original post

v-tangjie-msft
Community Support
Community Support

Hi @GARYSS ,

 

According to your description, here are my steps you can follow as a solution.

(1)We can create a calculated column.

 

Date Column = DATE(YEAR('Table'[Date]),MONTH('Table'[Date]),DAY('Table'[Date]))

 

(2)Format date columns.

Picture1.png

(3)Create a visual and place [Date Column] on the legend field and field selection for y-axis [count].

vtangjiemsft_0-1669962394715.png

(4)Set the x-axis type to "Categorical" and turn on "Data labels".

vtangjiemsft_1-1669962433930.png

vtangjiemsft_2-1669962451283.png

Please refer to my PBIX file.

 

Best Regards,

Neeko Tang

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

View solution in original post

4 REPLIES 4
v-tangjie-msft
Community Support
Community Support

Hi @GARYSS ,

 

According to your description, here are my steps you can follow as a solution.

(1)We can create a calculated column.

 

Date Column = DATE(YEAR('Table'[Date]),MONTH('Table'[Date]),DAY('Table'[Date]))

 

(2)Format date columns.

Picture1.png

(3)Create a visual and place [Date Column] on the legend field and field selection for y-axis [count].

vtangjiemsft_0-1669962394715.png

(4)Set the x-axis type to "Categorical" and turn on "Data labels".

vtangjiemsft_1-1669962433930.png

vtangjiemsft_2-1669962451283.png

Please refer to my PBIX file.

 

Best Regards,

Neeko Tang

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

Thank you very much, Neeko.  Working on it.  Will follow-up!

Regards,
Gary

amitchandak
Super User
Super User

@GARYSS , Not very clear,

But you can create a date table and use Axis Type = Categorical 

New column

Date  only = DateValue([Date])

 

Axis_type.png

Thank you very much, Amitchandak.  Will follow-up!

Regards,
Gary

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.