Forum Discussion

Jedrzej's avatar
Jedrzej
New Member
4 years ago
Solved

Table transformation

Hi, I would like to ask for help with an assignment, today is the first time I am using such advanced PowerQuery functions in this M. I have a graph like this: and I need to get that result:...
  • Jedrzej's avatar
    Jedrzej
    4 years ago

    I solved the problem. The problem was the space character in the LANGUAGE cells because by default they are in one cell as [PL, US, DE]. When split into rows I was getting:[PL], [ US] and [ DE]. Where at the next ones there was a space at the beginning. After removing the space and applying the code:

    Text.Combine(List.FindText(Text.Split([FIRST],"#(lf)"), [LANGUAGE]&":"))&
    "#(lf)"&
    Text.Combine(List.FindText(Text.Split([SECOND],"#(lf)"), [LANGUAGE]&":"))

    I got the expected result

    thanks for your help!