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.
Hi all,
I have a dataset in the form:
Code | Duplicate Number |
Manual | 2 |
Camera | 2 |
123 - Data | 2 |
I want to duplicate each row two times so that I get output in the format:
Code |
Manual |
Manual |
Camera |
Camera |
123 - Data |
123 - Data |
To achieve the output, I created a custom column using: List.Repeat([Code],[Duplicate Number])
However, I am getting an error: We cannot convert the value "Manual" to type List.
Can someone please advise on how to achieve the output I am trying to get?
Solved! Go to Solution.
Hi @anshpalash ,
You could add a new custom column with the following code:
{1..2}
This should give you an expandable list column that you can 'Expand to New Rows'.
Pete
Proud to be a Datanaut!
Hi @anshpalash ,
You could add a new custom column with the following code:
{1..2}
This should give you an expandable list column that you can 'Expand to New Rows'.
Pete
Proud to be a Datanaut!
Thank you!
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.