Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply

Data structure issue and any powerbi work around

Hey Guys
So A weird issue I have been facing,
Currently because of new change I am getting data in excel file everyday in my email.
Column A has cust and the next ones are the values/spends.

Now these get populated everyday by date and the new columns are added on the left side somewhat data look s like:

Cust     3-Jan     2-jan    1-jan   and so on the new date keeps populating on the 2nd column making older columns shift to right 
1           £3           £4         £7

2            £1          £5         £4


Now in powerbi I can pull this and then unpivot the whole thing like:

Cust Date Value
1       1-jan  £3

1       2-jan  £4

1       3-jan  £7

2

2

2

the prb as you might have expected, as the new data gets populated old columns shift to right and powerbi throws error just before the unpivoting step saying cannot find date column as the columns shifted to right.

 

Any work around to sort this out in powerbi because it cannot be done from the source, 

 

 

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @eshanpacheriwal ,

 

Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.

 

Best regards,

Yadong Fang

amitchandak
Super User
Super User

@eshanpacheriwal , Choose the first column and use unpivot other columns in power query

 

https://radacad.com/pivot-and-unpivot-with-power-bi

@Amit Yes I do that only, like I said befor unpivoting step (applied steps in query) before pbi goes to unpivoting, it throws the error while scanning the data, just after promoting headers step. so unvipoting aint working

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.