Forum Discussion
PaulusB
4 years agoFrequent Visitor
How to create an input variable with date format?
I have data of a stock portfolio with purchases and sellings of stocks (date, quatity, price). I need an input variable for the single reporting date in normal date format MM-YYYY. So far I was only ...
- 4 years ago
PaulusB , You can use automatic date Hierarchy, but you will not get that format.
You can choose the format in column tools
Or create a new column in table or date table
Month Year = FORMAT([Date],"mm-yyyy")
Sort it on the sort column below
Month Year sort = FORMAT([Date],"yyyymm")
amitchandak
4 years agoSuper User
PaulusB , You can use automatic date Hierarchy, but you will not get that format.
You can choose the format in column tools
Or create a new column in table or date table
Month Year = FORMAT([Date],"mm-yyyy")
Sort it on the sort column below
Month Year sort = FORMAT([Date],"yyyymm")
PaulusB
4 years agoFrequent Visitor
Thanks a lot for the very quick solution 🙂