Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Data is like shown above. How to handle such data as dates will change every day. It is last 30days data which we display
Solved! Go to Solution.
You will need to edit/delete steps in the query transformation to remove anything which is related to the names of the 'date' columns (because they will cause a problem when the next set of data is imported).
So, The first step will import the data.
Then there will probably be a 'Changed Type' step - you can delete anything to do with 'date' columns and leave anything to do with 'fixed' columns.
You will then select the 'fixed' columns and 'Unpivot Other Columns'.
And then the dates will be in one column so you can set the datatype to date.
This makes the query steps generic.
You will need to edit/delete steps in the query transformation to remove anything which is related to the names of the 'date' columns (because they will cause a problem when the next set of data is imported).
So, The first step will import the data.
Then there will probably be a 'Changed Type' step - you can delete anything to do with 'date' columns and leave anything to do with 'fixed' columns.
You will then select the 'fixed' columns and 'Unpivot Other Columns'.
And then the dates will be in one column so you can set the datatype to date.
This makes the query steps generic.
Thank you, i was able to do what you suggested, but i have another issue in this .
Current view is as show below. Is it possible to make it look in descending order( latest date first) otherwise i will have to scroll towards right and see latest date.
Is that a matrix visual? I think you have to make a custom column and use 'sort by column' feature
Can you elaborate what exactly we need in custom column
Thanks for suggestion. I tried to unpivot and do like you suggested but still getting error as previous dates are getting deleted in source file on every refresh
This is a useful format for a visual but it's not good for storage format or for simplifying the writing of measures.
--
Typically there will be an ID column for each row and we Unpivot all the date columns. This solves the problem of new columns as well