Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I tried to edit my previous topic but i don's see my new post... so I'm creating a new one. Sorry Admis if i do it wrong 😞
Hi, well, i'm facing another challenge in the same order...
I want to reproduce the same kind of data manipulation but when i'm doing it, i've an error:
"Expression.Error: There were too many elements in the enumeration to complete the operation.
Details:
List"
I've another XML in which i've several fields.
Here is an example of a record of the XML. Note that i can have up to 20 fields.
<r>
<p>
<name>Name</name>
<value>John doe</value>
</p>
<p>
<name>Company</name>
<value>my company</value>
</p>
<p>
<name>Email</name>
<value>my@email.com</value>
</p>
<p>
<name>Phone</name>
<value>phone</value>
</p>
<p>
<name>Comments</name>
<value>comment</value>
</p>
<p>
<name>title</name>
<value />
</p>
<p>
<name>coursenumber</name>
<value>61600006-01</value>
</p>
</r>
In PBI, i'm just interested by few fields, like name, country, email.. something like 5-10 fields maximum.
So this is how my data looks like.
and the query is: = Table.SelectRows(#"Expanded p", each [p.name] = "Company" or [p.name] = "Country" or [p.name] = "Email" or [p.name] = "First name" or [p.name] = "Last name" or [p.name] = "sitecore coursenumber")
So I want to do the same pivot mecanism.
1> I select the first column "p.name"
2> Pivot column
> And then i got this:
> And the error is:
Do I do something wrong ?
Thank you very Much
Pascal
Hi @PascalT,
As you have set the aggregation to Do Not Aggregate, if there were two or more rows that were pivoted had the same value, it will result in dupe column names. That was what was throwing error.
So if it is normal to have a name repeated in your source data, then an aggregation needs to be set properly.
Reference:
http://radacad.com/pivot-and-unpivot-with-power-bi
Regards
Hi and thank you for your comment.
I'm back on this topic as i didnt solve my issue.
How do you do not aggregate properly?
Thank you very much for your help.
P
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |