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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply

Extracting values causes duplication

For some context, I am pulling data from an API which lists the CPU usage on an hourly basis. There is 72 records in the date and values column, or at least there should be when I expand it.

 

1.png

 

 

However, I get 730 rows when I just expand the date.

 

This is the JSON format:

 

2.PNG

 

 

Any ideas? Spent far too long already trying to get it to match

2 REPLIES 2
PhilipTreacy
Super User
Super User

@dinosainsburys 

 

Why are you expecting 72 records?  NOTE a Record has a special meaning in Power Query as it's a data structure so I assume you mean rows of data.

 

That JSON shows 5 data points per response so I'm assuming each list in the Timestamps and Values column contains these.  Extracting the data in the ists will giev you as many rows as there is data.

 

What is your expected final result/what does the table look like at the end?

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Sorry if I am not making sense, I think I would expect 730 rows in actuality. So when I expand the timestamps column, it brings out 730 rows which is correct based on the fact that there is chronological hourly timeline.

 

11.PNG

 

However, I have noticed when expanding the results.data.values, it then duplicates it 

 

22.PNG 

 

There should only be one data value for each timestamp but now get multiple duplicate values which isn't right. When I use a visualisation on this dataset, I then just get a solid static line which of course isn't accurate. 

Any ideas, appreciate the response 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.