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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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