Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all! I'll start of by saying I'm new to Power BI, my skills are at a beginner level...
I have a table with two different columns, "Service" and "Configuration Item."
An Example:
Service | Configuration Item |
1 | A |
2 | B |
3 | C |
4 | D |
5 | E |
I would like to combine the two columns into one new column so it looks like this (there may be duplicates, which would need to be removed):
Service and CI |
1 |
2 |
3 |
4 |
5 |
A |
B |
C |
D |
After some Googling, I can only find information on "merging columns," but the results are not what I need. For example:
Incorrect Result |
1 A |
2 B |
3 C |
4 D |
5 E |
Is there a DAX command for this?
Solved! Go to Solution.
Hi @Natasha93 ,
It seems to be easy to achieve.
Please try what I do below.
Select two columns at the same time, and then click 'Unpivot Columns'.
You'll get the column you want.
Rename the Value column and remove the Attribute column. Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Natasha93 ,
It seems to be easy to achieve.
Please try what I do below.
Select two columns at the same time, and then click 'Unpivot Columns'.
You'll get the column you want.
Rename the Value column and remove the Attribute column. Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-stephen-msft . Thank you so much for the genius simplicity of your solution! Much gratitude.
@Natasha93 , In a new blank query create this list and return it
List.Combine(Table[Service], Table[Configuration Item])
refer video if needed - https://youtu.be/yySRoH51Sb0
Hi thanks, but I don't understand. I'm a beginner and can't work out how to list that command and your video is difficult to follow.
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |