Forum Discussion
Sort Months o
- 4 years ago
I advise and Ashish, others also mentioned the same above. (separate date table concept)
a) Create a table for our needs i.e., simple month table "Month Names"
The table is static and create as using enter data
The table data has always only 12 rows i.e., month names. The names are the same values in the Transaction table. January, February ...
Table: "Month Names"
b) Create "DisplayMonthSort" in the transaction table. Which Ashish is called as Month Order column. Steps are
Create relationship between "Month Names" and your Tx table "Mail V..."
Bring the column "DisplayMonthSort" to your transaction table
DisplayMonthSort = related('Month Names'[Display Month Sort])and do the sort order like we talked above.
Try the other steps like Sort by column, hide in report view ...
See if this works
Note: Sample mockup data .pbix file always helps
Thanks
Thanks for your resposne., how to create transaction table?
What I meant is in your data table AKA transaction table. You can create a column and hide it.
DisplayMonthSort =
var _m = Month('Table'[DateCol])
var _startMonth = 7 -- July
return If( _m >= _startMonth, _m - 6, _m + 6)
If your table is huge, then you can do the same behavior in the date table and link to it and use the date table's month.
- sdhn4 years agoResponsive Resident
I am getting error beacuse my date column is using TEXT datatype. I am trying to change datatype but not succesfull yet. any suggestion
- sdhn4 years agoResponsive Resident
Cannot convert value 'July' of type Text to type Date.
- sevenhills4 years agoSuper User
Please can you post the screenshot, remove the personal/identifier data
- sdhn4 years agoResponsive Resident
I am trying to create caluclated colum in the existing table.