Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
My calendar table was created in Power Query(= Table.AddColumn(#"Changed Type", "DateTable", each List.Dates(#date(2019,01,01), 365*6, #duration(1,0,0,0))).
I have a slicer that shows the most recent 'Start of Week' first (see below, from a different report, using a date field on a table instead of a calendar table). I want to see if I can get this same sort on the right in the filters pane on my current report. I have tried sorting the column by another column, but it's not working.
Here is the filter pane view.
Is it possible to have the most recent week show first?
Solved! Go to Solution.
Thank you, yes, six years for forecasting purposes. I created a reference table that had a relationship to my date table. On that table, I kept columns Start of Week, Year, Name of Day, Week of Year, then filtered 'Name of Day' = 'Sunday.' Then created a column for the 'Current Week' with DAX below.
I hope this helps someone else.
Table.AddColumn(#"Changed Type", "DateTable", each List.Dates(#date(2019,01,01), 365*6, #duration(1,0,0,0))).
You are creating a six year calendar for each row of your table?!?
In DAX you can sort one column by another column. Subtract each date from TODAY() and use that for sorting.
Thank you, yes, six years for forecasting purposes. I created a reference table that had a relationship to my date table. On that table, I kept columns Start of Week, Year, Name of Day, Week of Year, then filtered 'Name of Day' = 'Sunday.' Then created a column for the 'Current Week' with DAX below.
I hope this helps someone else.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
82 | |
57 | |
41 | |
37 |