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.
This code works for me fine but as I can not hard code n and i would know it from "some other code" how would I make this into a loop that would run n times?
//some other code
in
result1,
a = Query1{0}[list],
b = Query1{1}[list],
......
n = Query1{n}[list]
c = List.Combine({a,b,...n})
in
c
Solved! Go to Solution.
What about this? Just change Number 100 to your n value - it can be stored also in [Column1] for example, so replace 100 with [Column1] if you add this as custom column.
= List.Combine(List.Transform({0..100}, (n)=> Query1{n}[list]))
What about this? Just change Number 100 to your n value - it can be stored also in [Column1] for example, so replace 100 with [Column1] if you add this as custom column.
= List.Combine(List.Transform({0..100}, (n)=> Query1{n}[list]))
just realized that my n is in //some other code and not accessible in that part of the code
it is inside Query1
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |