Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Zyg_D
Continued Contributor
Continued Contributor

Return a dynamic list of values

This is the data:

col1col2
20122013
20122014
20172020

I cannot think of a way to get the 3rd column which would represent the full duration in text (from the value in the 1st column to the value in the 2nd column). Any guidance is well appreciated. 

col1col2col3
201220132012,2013
201220142012,2013,2014
201720202017,2018,2019,2020
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Zyg_D , Try a new column like

concatenatex( GENERATESERIES([year1] ,[year2],1), [Value])

 

In case it gives an error for value

Create a new table using this GENERATESERIES(1 ,10,1) and check column name and use that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Zyg_D , Try a new column like

concatenatex( GENERATESERIES([year1] ,[year2],1), [Value])

 

In case it gives an error for value

Create a new table using this GENERATESERIES(1 ,10,1) and check column name and use that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Zyg_D
Continued Contributor
Continued Contributor


@amitchandak wrote:

@Zyg_D, Try a new column like

concatenatex( GENERATESERIES([year1] ,[year2],1), [Value])


This worked well:

 

newcol = CONCATENATEX( GENERATESERIES( table[col1], table[col2], 1), [Value], ",")

 

Thanks

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors