Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Experts,
I have Raw data as following
let S = {{1},{0},{0},{2}}, CT = Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), AC= Table.AddIndexColumn(CT, "Index", 1, 1) in AC
Is there a way to select this table with where Column1 lists <>{0} after AC in one step
let S = {{1},{0},{0},{2}}, CT = Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), AC= Table.AddIndexColumn(CT, "Index", 1, 1), #"Expanded Column1" = Table.ExpandListColumn(AC, "Column1"), #"Filtered Rows" = Table.SelectRows(#"Expanded Column1", each ([Column1] <> 0)) in #"Filtered Rows"
Desired Output
I want to reach to output from AC in one step. Is it possible ?
Thank you in advance.
Solved! Go to Solution.
let S = {{1},{0},{0},{2}}, CT = Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), AC= Table.AddIndexColumn(CT, "Index", 1, 1), Custom1 = Table.SelectRows(AC, each [Column1]<>{0}) in Custom1
Maybe something like this?
let S = {{1},{0},{0},{2}}, AC= Table.AddIndexColumn(Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), "Index", 1, 1), #"Filtered Rows" = Table.SelectRows( Table.ExpandListColumn(AC, "Column1"), each ([Column1] <> 0)) in #"Filtered Rows"
Could also write a fucntion with all the steps and when you call it it will only show the function name. Just a thought
Maybe something like this?
let S = {{1},{0},{0},{2}}, AC= Table.AddIndexColumn(Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), "Index", 1, 1), #"Filtered Rows" = Table.SelectRows( Table.ExpandListColumn(AC, "Column1"), each ([Column1] <> 0)) in #"Filtered Rows"
Could also write a fucntion with all the steps and when you call it it will only show the function name. Just a thought
great @Anonymous appreciate it. Thank you very much for stopping by. Better to have more aresnal and I prefer that way. Thanks for the contribution.
My pleasure. This place is great to see the different ways of solving problems. And always in for a good Power Query question 🙂
let S = {{1},{0},{0},{2}}, CT = Table.FromList(S, Splitter.SplitByNothing(), null, null, ExtraValues.Error), AC= Table.AddIndexColumn(CT, "Index", 1, 1), Custom1 = Table.SelectRows(AC, each [Column1]<>{0}) in Custom1
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
39 | |
31 | |
26 |
User | Count |
---|---|
97 | |
87 | |
43 | |
40 | |
35 |