cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gaizka Frequent Visitor
Frequent Visitor

How to condense rows with diferent number of columns

I have an excel file with the first column the date, that fix always, but in the following columns are listed numbers of services that have provided in that date. The point is that:

 

- one day they might have 2 services, next day 8 services, next one 1 and so on.

- A service can appear in the second column one day and the 10th next day

 

 

Day1  Service1  Service2 Service 3

Day2  Service3

Day3  

Day4  Service3 Service1 Service5 Service2 Service2

 

And so on

 

How can I handle this with power BI to be able to be able to filter per Service?

 

I know that ideally for Power BI that data should be something like this:

Day1  Service1

Day1  Service2

Day1  Service3

Day2  Service3

Day4  Service3 

 

and so on

 

But is there a quick way to amend it?

 

Thanks a lot 

1 ACCEPTED SOLUTION

Accepted Solutions
jthomson New Contributor
New Contributor

Re: How to condense rows with diferent number of columns

Fairly sure that in the query editor you can just pick your day column and then unpivot others, and it should automatically adapt to however many there are

View solution in original post

2 REPLIES 2
jthomson New Contributor
New Contributor

Re: How to condense rows with diferent number of columns

Fairly sure that in the query editor you can just pick your day column and then unpivot others, and it should automatically adapt to however many there are

View solution in original post

Gaizka Frequent Visitor
Frequent Visitor

Re: How to condense rows with diferent number of columns

Wow! amazing, thanks a lot! you´re a star Smiley Happy

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors