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 there,
I was wondering if anyone can help me understand how I can repeat a list of 5 values in a new column in a table of 100 rows. For example, I have created a list of values corresponding to "Class number" (1,1,8,50,10). Now I would like to add a column to this table in the screenshot which goes upto 100 rows and the column should have the values in the list in a repeating manner.
Thanks in advance
Solved! Go to Solution.
Hi @Anonymous
So, instead of hardcoding the list, just refer to your list like,
Hi @Anonymous
Go to Add Column > Custom Column, type your list as below
Later just expand the list
Hi @Mariusz Mariusz,
Thanks for your reply. The list is already created as I extracted the required values from the main table and turned it into a list, now I am looking to expand an existing list into a new column and stuck in that step. I am trying my best to not hard code any values and keep the process as generic as possible so that this sheet that I am working on can be used for transforming ongoing data sets without any changes in the code/steps/process. Kind of like a template or work flow.
Hi @Anonymous
So, instead of hardcoding the list, just refer to your list like,
Hi @Mariusz ,
I think I celebrated too soon :(. It appears that when the list expanded, it didn't expand each value corresponding to the rows in the Main Table, instead it duplicated the rows in the maintable to expand the whole list and then repeat the process.
See the difference between before and after expanding the list, notice how the values on the left duplicate themselves. I wanted the list to open corresponding to each row, any ideas on how I can achieve that?
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 |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |