Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to generate a list in PQ based on a filed value. I always want the list to be the same number of items. So for earch record in the table I want a list 12 items long. The value of all 12 items would be equal to the Amount Field on the record.
I can get the right value in the list but I cant figure out how to limit the list to just 12 items. How do I add a counter or something to limt it to 12 times?
List.Generate(
() => [Amt], // the starting value
each _ > 0, // as long as the value greater than 0
each _
)
Solved! Go to Solution.
12 items equal to [Amt] field???
each List.Repeat({[Amt]}, 12)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |