Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi and good day,
Pls need help on my table to create calculated column or in PQ. What we required is
-IF the location is Project type then used trade column value
-IF the location is MNT type then used the location value
DESIRED OUTPUT
Thank you
Solved! Go to Solution.
Hi @AllanBerces - can you add a new column in power query editor steps:
Open Power Query Editor>>Select the table>>Click Add Column > Custom Column.
if [Type] = "Project" then [Trade] else [Location]
Click OK and rename the column to Output.Click Close & Apply.
Hope this helps.
Proud to be a Super User! | |
Hi @AllanBerces
Try this calculated column:
IF(
'table'[Location] = "Project",
'table'[Trade],
'table'[Location]
)
Hi @AllanBerces - can you add a new column in power query editor steps:
Open Power Query Editor>>Select the table>>Click Add Column > Custom Column.
if [Type] = "Project" then [Trade] else [Location]
Click OK and rename the column to Output.Click Close & Apply.
Hope this helps.
Proud to be a Super User! | |
| User | Count |
|---|---|
| 60 | |
| 46 | |
| 32 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 82 | |
| 68 | |
| 43 | |
| 26 | |
| 23 |