Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I havae the following table
ID | DATE | QUESTION | ANSWER |
123 | 01/01/2023 | name | jorge |
123 | 01/01/2023 | age | 17 |
123 | 01/01/2023 | gender | male |
456 | 01/02/2023 | name | lara |
456 | 01/02/2023 | age | 24 |
456 | 01/02/2023 | gender | female |
I want to transform the rows into columns, like this:
ID | DATE | NAME | AGE | GENDER |
123 | 01/01/2023 | jorge | 17 | male |
456 | 01/02/2023 | lara | 24 | female |
is an example, the table I have has 19 questions and when I use the dynamic columns option and select the option to not summarize the data, the following error appears:
Expression.Error: There were too many elements in the enumeration to complete the operation.
Details:
[List]
Solved! Go to Solution.
=Table.Pivot(YourTable,List.Distinct(YourTable[QUESTION]),"QUESTION","ANSWER",each _{0}?)
=Table.Pivot(YourTable,List.Distinct(YourTable[QUESTION]),"QUESTION","ANSWER",each _{0}?)
Thank you!!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |