CantGetRight
New Member
- Joined
- Jul 21, 2015
- Messages
- 21
Hi there,
I am struggling with a data issue and want to find a way to clean up using Power BI. My data looks like this:
You'll notice that the ID number 12346 has 2 in the second column. My end result should look like below:
In a nutshell, when there are >1 "# of Products" I want the row to be duplicated the number of times listed in "# of Products" and for there to be a new column which tracks the ID Number followed by "-" and the iteration of this ID number, thus creating a unique value for each Product #. In addition, a new column should only count "# of Products" as =1
I am a very new user to Power Bi so if it is possible to layout in detail how one would transform the data to achieve this desired outcome that would be really appreciated.
Thanks,
Mark
I am struggling with a data issue and want to find a way to clean up using Power BI. My data looks like this:
ID Number | # of Products | Classification |
12345 | 1 | Tools |
12346 | 2 | Manufacturing |
12347 | 1 | Hardware |
You'll notice that the ID number 12346 has 2 in the second column. My end result should look like below:
ID Number | ID Number (Adjusted) | # of Products | # of Products (Adjusted) | Classification |
12345 | 12345-1 | 1 | 1 | Tools |
12346 | 12346-1 | 2 | 1 | Manufacturing |
12346 | 12346-2 | 2 | 1 | Manufacturing |
12347 | 12347-1 | 1 | 1 | Hardware |
In a nutshell, when there are >1 "# of Products" I want the row to be duplicated the number of times listed in "# of Products" and for there to be a new column which tracks the ID Number followed by "-" and the iteration of this ID number, thus creating a unique value for each Product #. In addition, a new column should only count "# of Products" as =1
I am a very new user to Power Bi so if it is possible to layout in detail how one would transform the data to achieve this desired outcome that would be really appreciated.
Thanks,
Mark