Forum Discussion
sorting by month (text)
- 4 years ago
Anonymous Your calculation should be:
=YEAR([xxx Day]) * 100 + MONTH([xxx Day])
Set this as your Sort By column of your text month name.
Greg_Deckler Why multiply * 100
Anonymous See previous reply.
- Anonymous4 years agoNot applicable
Greg_Deckler so I added a new column with above calculation in the msbi tabular model
year(day_column) * 100 + month
and data format General, data type whole number, the power pivot shows correct values but power bi sums it up and shows wrong values
- v-jingzhang4 years agoCommunity Support
Hi Anonymous
This thread may be helpful: https://stackoverflow.com/questions/70458737/sort-a-calculated-column-ssas-tabular-model . After creating the new whole number data type column in the tabular model, select the original text data type Month column and set the Sort By Column property to the new whole number data type column.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.