Forum Discussion
Min and All except in Power Query
- 2 years ago
NewStep=let a=Table.Group(YourTable,"Combination",{"min",each List.Min([Index])}) in Table.AddColumn(YourTable,"MinIndex",each a{[Combination=[Combination]]}[min])
NewStep=let a=Table.Group(YourTable,"Combination",{"min",each List.Min([Index])}) in Table.AddColumn(YourTable,"MinIndex",each a{[Combination=[Combination]]}[min])
Hi wdx223_Daniel,
Thanks for the reply, wow that is quite complicated compared to DAX 🙂
I have added the column with your formula but unfortunately still comes back blank. I have included the screenshot below to show it.
So as you can see I have many lines for 2 entities in the Combinations Column, would like it to say 1 as the Min Index
- m_dekorte2 years agoResident Rockstar
Hi villa1980
To resolve the issue, share your implementation of the provided solution by wdx223_Daniel and make sure that code section includes at least the previous and next step as well
- wdx223_Daniel2 years agoCommunity Champion
could you please show your hard code?