Forum Discussion
Need date sorting on bar graph
- Anonymous9 years ago
Create a new column in your table using the following DAX, then use the column to sort your Date column. For more details, please review this modified PBIX file.
Column = DATE(YEAR(OutageTrending_hour[cte_start_date]),MONTH(OutageTrending_hour[cte_start_date]),DAY(OutageTrending_hour[cte_start_date]))
Regards, - 9 years ago
Anonymous MattAllington
The key to sorting a *text* date column by another column is that the column used for sorting is set to Datetype: Date or Datetype: Whole number.
No you don't need these columns in the visual
Are you setting "sort by column" in the modelling tab when in the Data view? That is where you make the change
Yes, I'm in the modelling view using the sort by function, selecting the sort by column from drop down.
Can you pls take a look visual and suggest? I've put a copy of pbix here
dropbox https://www.dropbox.com/sh/6kgldb1fhfichy4/AAAbXQhUr8VvyD65qTEOvIPFa?dl=0