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
vijaykaali811
Helper I
Helper I

how to get only specific list items in power M query

Hi  i am import json which comments as list column 

this list has 

totalcount number ,

comments record  and record has  following fields 

    id number 

   context text 

 

now i dont want multiple rows , but i extract value of context only for id=3 . how to get it. i have written getcommenttxt with list as argument and then return only text . 

but it throws errors says cannot convert from type list to type function 

 

How to achieve this 

1 ACCEPTED SOLUTION

yes i got the answer by using recordfield funcation. thanks for your response 

View solution in original post

3 REPLIES 3
Omid_Motamedise
Super User
Super User

The result usually in type list and you can add {2} add the end of ofrmula to reached the 3rd item. 

If it doesnt work, please provide the sample data I can provide you specific solution.

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

yes i got the answer by using recordfield funcation. thanks for your response 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.