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 a list from which I need to return the last value of a column.
This works with the following formula.
List.Last(List.RemoveItems(Record.ToList(_),{""}))
Now I wonder if it is also possible to return the second to last value in this way?
Can someone help?
Solved! Go to Solution.
Hi @Daniel28-DH,
Yes, you can. But in a slightly differnt fashion, e.g. :
let
Source = {1..9},
OneBeforeLast = Source{List.Count(Source)-2}
in
OneBeforeLast
Cheers,
John
Hi @Daniel28-DH,
Yes, you can. But in a slightly differnt fashion, e.g. :
let
Source = {1..9},
OneBeforeLast = Source{List.Count(Source)-2}
in
OneBeforeLast
Cheers,
John
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.