Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have created a list with 3 types of fruits {"apple", "banane", "blackberry"}. I have the function List.First to return the first record (apple) and the funktio List.Last to return the last record ("blackberry"). But how can I return the second, or thrid or Nth record of a list.
Thank you very much in advance!
Sammy
Solved! Go to Solution.
Hey Sammy, you want to review this reference:
https://msdn.microsoft.com/en-us/library/mt299038.aspx
Specifically, the answer to your question is:
ListName{1}
Here is test M code:
let MyList = {"apple", "banana", "blackberry"}, Output = MyList{1} in Output
Lists are essentially zero-based arrays.
Hey Sammy, you want to review this reference:
https://msdn.microsoft.com/en-us/library/mt299038.aspx
Specifically, the answer to your question is:
ListName{1}
Here is test M code:
let MyList = {"apple", "banana", "blackberry"}, Output = MyList{1} in Output
Lists are essentially zero-based arrays.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |