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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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