Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
If i have 2 columns, the start of a range and the end of the range, how do i show all the year with in that range?
here [Years] is the example that i want to show:
| Start_Year | End_Year | Years |
| 2012 | 2017 | 2012,2013,2014,2015,2016,2017 |
| 2023 | 2024 | 2023,2024 |
| 2003 | 2006 | 2003,2004,2005,2006 |
Here are my current solution, using List.generate(). but it didn't work out after i use Text.Combine().
= Table.AddColumn(#"Table1", "Years", each
let EY = [End_Year]
in
List.Generate(() => [x=[Start_Year]],each [x] <= EY, each [ x = [x] +1], each [x]))
Solved! Go to Solution.
Text.Combine(List.Transform({[Start_Year]..[End_Year]},Text.From),",")
Stéphane
Text.Combine(List.Transform({[Start_Year]..[End_Year]},Text.From),",")
Stéphane
Hi
= Table.AddColumn(#"Table1", "Years", each {[Start_Year]..[End_Year]})
Stéphane
how Do i convert the list with number to a string
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 5 | |
| 3 |