Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
matrix date in col header is driven by calculated calendar and works perfectly. Except the oldest date is on the far left and user has to scroll all the way to the right to see latest data. All we want to do is set the date the other way around.. and prevent all this unnecessary scrolling..
We have tried multiple fixes that have been suggested but nothing we do works, like this one adding the index col https://community.powerbi.com/t5/Desktop/Sort-Date-Column-in-Matrix/m-p/602217
It doesnt matter how the calendar is sorted in the data veiw, the matrix headers will not change..
Feels like a really stupid problem to have, any help appreciated
thanks
J
Solved! Go to Solution.
Hi @JamesBowdidge ,
Based on your description, I have created a simple sample:
Please try:
First create a calendar table like this:
Calendar =
var _a = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))
var _b = MAX('Table'[Date])
return ADDCOLUMNS(_a,"ORDER",DATEDIFF([Date],_b,DAY))
Then sort by column:
Manage relationship:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JamesBowdidge ,
Based on your description, I have created a simple sample:
Please try:
First create a calendar table like this:
Calendar =
var _a = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))
var _b = MAX('Table'[Date])
return ADDCOLUMNS(_a,"ORDER",DATEDIFF([Date],_b,DAY))
Then sort by column:
Manage relationship:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |