Forum Discussion

Sam_Bolsover's avatar
Sam_Bolsover
Frequent Visitor
5 years ago
Solved

How to handle data source column headers changing?

Hi,

 

Each month I recieve a .csv file where each row represents a material that we order from a supplier and columns 7 and onwards represent the forcast for each month, starting with the current month. Example below.

 

MaterialDescriptionUomVendor MaterialWarehouseOrd TypeJun-21Jul-21
8000023T/SEAL EA  On Order1200
8000023T/SEAL EA  Planned0200
A41-1L1L PIS POS TTEA  On Order0100

 

Next month I will get a new file that starts with 'Jul-21'. I would like to make it so any visuals I create using this data can handle the change and still accurately display the column headers.

 

An ideal solution for me would be a way to refer to a column in a query by column number instead of by name in DAX, but any other workarounds would be much appreciated. 

8 Replies