Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Expression.Error: There were too many elements in the enumeration to complete the operation. Details

Hello. I have json files from Azure Blob Storage as a data source. In the files there are energy consumption values. I would like to only graph the power consumption over time. For this reason I deleted all the other values and ended up with this table:

 

Name                                       Value

power_mw0
timestamp2019-04-24T11:34:26.472475
power_mw0
timestamp2019-04-24T11:34:41.602568
power_mw0
timestamp2019-04-24T11:34:56.377102
power_mw0
timestamp2019-04-24T11:35:11.332657
power_mw1843
timestamp2019-04-24T11:35:26.430702
power_mw1762
timestamp2019-04-24T11:35:41.381805
power_mw1787
timestamp2019-04-24T11:35:56.333847
power_mw4112
timestamp2019-04-24T11:36:11.303751
power_mw1596
timestamp2019-04-24T11:36:26.403370
power_mw2048
timestamp2019-04-24T11:36:41.496519
power_mw1630
timestamp2019-04-24T11:36:56.302972
power_mw0
timestamp2019-04-24T11:37:11.417660
power_mw0
timestamp2019-04-24T11:37:26.375462
power_mw0
timestamp2019-04-24T11:37:41.471550

 

 

Since I only want to graph the power over time, I though I need to end up with a table with only two columns  (one for the timestamp and one for the power). I used the function "pivot column" and I selected "don't aggregate". This is the error I get. Can anyone please help? I am new to this. 

 

Expression.Error: There were too many elements in the enumeration to complete the operation.
Details:
    List

               

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

1.Keep the "Name" and "Value" columns in the sort order as your screenshot, then create a index column from 1

2. click on "Name", used the function "pivot column" and I selected "don't aggregate" for "Value" column

6.png

3. fill up for "timestamp", fill down for "power_mw"

7.png

4.remove index column, 

then click on "power_mw" and "timestamp" columns, remove duplicates columns,

reoder columns-drag column "timestamp" from right to left

8.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors