This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 able to create an input variable in serial number format.
In this way a user can easily select a reporting date (MM-YYYY) and the porfolio as per this particular date will be shown.
Solved! Go to Solution.
@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 , 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")
Thanks a lot for the very quick solution 🙂
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |