Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hai all, Please help and Guide me to achieve this logic,
I want to return one pivot table it should dynamically show the current date first and previous days.
I applied the date field in the column layer at the pivot table visual and I tried using ascending and descending also, but the latest date does not start at the first
the expected output is down:
| 10/3/2022 | 10/2/2022 | 10/1/2022 | 30/9/2022 | 29/9/2022 | 28/9/2022 | 27/9/2022 |
Solved! Go to Solution.
Hi @AlanP514 ,
I would add a column to your date table and use that to sort the date field. Something like
ReverseSort = DATEDIFF([Date],TODAY(), DAY)
then sort by column
Now when you add the date to the matrix it should be sorted how you want.
Hi @AlanP514 ,
I would add a column to your date table and use that to sort the date field. Something like
ReverseSort = DATEDIFF([Date],TODAY(), DAY)
then sort by column
Now when you add the date to the matrix it should be sorted how you want.
Hi @AntonioM ,
When i am trying to sorting , i am getting error like this, Please support me
Dim calendar dax above
Data model above
Hi @AlanP514 ,
Apologies, I mean add the column as part of the Dim_Calendar = , so at the end like:
Dim_Calendar =
...
...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |