Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I applied this dax to get a new month column from date : FORMAT(Table[calendar_date],"MMM")
But I'm getting following result:
Now how can I get this month column in actual order of months?
Solved! Go to Solution.
@Anonymous
Ok I think you just want to oder them. Create a new a month number column (if you don't already have it) whcih is MONTH (Table[calendar_date])
Then use the option "Sortb By Column" to sort the Month column by the Month Number column
@Anonymous
Ok I think you just want to oder them. Create a new a month number column (if you don't already have it) whcih is MONTH (Table[calendar_date])
Then use the option "Sortb By Column" to sort the Month column by the Month Number column
Reverting FORMAT(DATE (1, MONTH (Table[calendar_date]), 1), "MMM") to FORMAT(Table[calendar_date],"MMM") and then sorting by Month Name by Month No. worked.
Thank you @tamerj1 as always
I created new month no. column but on sorting month name by month no. it is showing this
@Anonymous
Please share a screenshot of the table
it is not allowing the sort because FORMAT(DATE (1, MONTH (Table[calendar_date]), 1), "MMM") gave "Dec" even for null values, so now "Dec" has month no. as 12 and null (since month no. has null for null date)
can only share this much with you 😞
Hi @Anonymous
please use
FORMAT(DATE (1, MONTH (Table[calendar_date]), 1), "MMM")
@Anonymous
YOu are creating a calculated column right. Please share a screenshot to the result you got from the table itself not from the visual.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |