Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello there, I need help. Based on the table below.
Equipment | Type | XLPE Outcome | PILC Outcome |
A | XLPE | BAD | - |
B | XLPE | GOOD | - |
C | PILC | - | BAD |
D | PILC | - | BAD |
I would like to make a table visualization show the equipment and the equipment type outcome automatically without showing unrelated type. The TABLE VISUALIZATION should show like this:
Equipment | Type | Outcome |
A | XLPE | BAD |
B | XLPE | GOOD |
C | PILC | BAD |
D | PILC | BAD |
Hope you guys can help me. thank you so much!
Solved! Go to Solution.
Hi @abgnfirdaus. There are a number of ways to do this, but I would probably do it in Power Query.
Hold the control key and click to selected the XLPE Outcome column and then with control still held click PILC Outcome column to select it also. Then Right Click and choose Replace Values, and in Value to Find put a "-", and in Replace With, leave it blank. This will get rid of the dashes.
Then with the two columns still selected, click the Merge Columns button on the Transform tab of the ribbon. Enter "Outcome" for the name of the new column and leave the Seperator as --None--.
Your data will now look as it is below, and you can Close and Apply your changes and create your table visual.
Alternatively, you could create a Conditional Column as below:
which is the same as creating a Custom Column with this code:
if [Type] = "XLPE" then [XLPE Outcome] else if [Type] = "PILC" then [PILC Outcome] else ""
I created a .pbix file that is linked here, in case it's helpful.
-Steve
Hi,
you can use the conditional column option in the power query editor to solve this.
@abgnfirdaus Attaching screen shot for your reference:
@abgnfirdaus Create a column like below:
Hi @abgnfirdaus. There are a number of ways to do this, but I would probably do it in Power Query.
Hold the control key and click to selected the XLPE Outcome column and then with control still held click PILC Outcome column to select it also. Then Right Click and choose Replace Values, and in Value to Find put a "-", and in Replace With, leave it blank. This will get rid of the dashes.
Then with the two columns still selected, click the Merge Columns button on the Transform tab of the ribbon. Enter "Outcome" for the name of the new column and leave the Seperator as --None--.
Your data will now look as it is below, and you can Close and Apply your changes and create your table visual.
Alternatively, you could create a Conditional Column as below:
which is the same as creating a Custom Column with this code:
if [Type] = "XLPE" then [XLPE Outcome] else if [Type] = "PILC" then [PILC Outcome] else ""
I created a .pbix file that is linked here, in case it's helpful.
-Steve
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |