Forum Discussion

pbakaric's avatar
pbakaric
Frequent Visitor
8 years ago
Solved

Extract Entry from List

Hello, I'm looking for a way to extract a specific entry from a list. I have created the two columns below in the Query Editor. The "Sorted Cycle Time" column contains a list of values in each row. I would like to extract the corresponding value in the "20 Percentile Item" column. Said differently, in the first row I would like to extract the 1170th value from the corresponding list in the "Sorted Cycle Time" row. Is there a simple way to do this in another column? 

 

  • Anonymous's avatar
    Anonymous
    8 years ago

    pbakaric,

    Add a custom column in Query Editor of Power BI Desktop, then extract the custom column value.

    =List.Range([Sort Cycle Time],[20 Percentile Item]-1,1)



    Regards,
    Lydia

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    pbakaric,

    Add a custom column in Query Editor of Power BI Desktop, then extract the custom column value.

    =List.Range([Sort Cycle Time],[20 Percentile Item]-1,1)



    Regards,
    Lydia

    • pbakaric's avatar
      pbakaric
      Frequent Visitor

      Awesome! That worked, thank you so much. 

       

      I'm surprised that returned the value and not a count of 1. The documentation on list range doesn't make it seem like it would return a value. Thanks again!