Forum Discussion
Sorting chart by date
- 2 years ago
Hi,
Refer to the attached PBI file.
- 2 years ago
To add on
- to sort 'Date name' by 'Date number' and sort 'Month name' by 'Month number'
Hi,
You should create a Calendar Table with a relationship (Many to One and Single) from the Exit Date to the Date column of the Calendar Table. To your visual, drag Date from the Calendar Table.
Actually i have 3 new columns created in order to toggle the x-axis display between DAY, MONTH and YEAR
DAY = format(table1(EXIT_DT],"dd/mm/yyyy")
MONTH = format(table1(EXIT_DT],"mm/yyyy")
YEAR = format(table1(EXIT_DT],"yyyy")
if DAY selected,expected display is 01/04/2023, 02/04/2023, 03/04/2023.......
if MONTH selected, expected display is 04/2023, 05/2023, 06/2023/.....
if YEAR selected, expected display is 2022, 2023
By creating calendar table with relationship, can the x-axis be sorted accordingly?
Possible to provide a simple pbix for reference? Thanks