Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
This is the data:
col1 | col2 |
2012 | 2013 |
2012 | 2014 |
2017 | 2020 |
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.
col1 | col2 | col3 |
2012 | 2013 | 2012,2013 |
2012 | 2014 | 2012,2013,2014 |
2017 | 2020 | 2017,2018,2019,2020 |
Solved! Go to Solution.
@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
@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
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |