The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
When using the #shared or #section constructs, FirstN rows seems to result in an stack overflow error. Range or RemoveLastN functions work fine. Test case:
let
Query1 = #shared,
#"Converted to Table" = Record.ToTable(Query1),
#"Kept First Rows" = Table.FirstN(#"Converted to Table",2),
#"Expanded Value" = Table.ExpandTableColumn(#"Kept First Rows", "Value", {"Namn", "Varde"}, {"Value.Namn", "Value.Varde"})
in
#"Expanded Value"
as soon as this is "closed & appied" to the model, it will result in a stack overflow. Changing the "Kept First Rows" step to a Table.Range or Table.RemoveLastN makes everything work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.