Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tudo que estiver relacionado a tratamento de dados, Power Query editor e linguagem M
#54818
Pessoal, bom dia!

Estou quebrando a cabeça faz 1 mês tentando resolver isso e vim pedi ajuda no melhor fórum do Brasil:


Tenho uma tabela com os dados abaixo:

ID | Check-in | Check-out
1 | 01/10/2020 | 03/10/2020
2 | 01/03/2020 | 02/03/2020

Preciso transformar essa tabela no Power Query em:

ID | Ocupação
1 | 01/10/2020
1 | 02/10/2020
1 | 03/10/2020
2 | 01/03/2020
2 | 02/03/2020

Já tentei diversas formas e não conseguir, vocês conseguem me ajudar?
#54825
Tente isso
Código: Selecionar todos
AdicionaColOcupacao = Table.AddColumn(#"Tipo Alterado", "Ocupação", each {Number.From([#"Check-in"])..Number.From([#"Check-out"])}),
    RemoveOutrasColunas = Table.SelectColumns(AdicionaColOcupacao,{"ID", "Ocupação"}),
    ExpandeColuna = Table.ExpandListColumn(RemoveOutrasColunas, "Ocupação"),
    AlteraData = Table.TransformColumnTypes(ExpandeColuna,{{"Ocupação", type date}})
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord