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.
I have table like below
when i try to replace value From Source field- Linkdln, it is changing social media- Linkdln also. How can i change only jobboards-linkdln name?
Source Category | Source |
Social Media | Linkdln |
JOb Boards | job street |
JOb boards | Linkdln |
How can i show below table in power query?
Source Category | Source |
Job Boards | Job Boards-Linkdln |
Social Media | Linkdln |
Job Boards | Job Street |
Solved! Go to Solution.
@mithiladas02 , A new column in power query
if [Source Category] = "Job Boards" and [Source]="Linkdln" then [Source Category] & "-" & [Source] else [Source Category]
Hi @mithiladas02 ,
Try something as follows in Power Query editor in Power BI.
This is the data:
Now under Add Column:
Then a new window appears:
Formula that I have written can be seen below in editor window:
if
([Source Category] = "JOb boards"
and [Source] = "Linkdln")
then "Job Boards-Linkdln"
else [Source]
You will get following:
Just remove the Source column:
Modify data-type of New Source to text and rename it to Source. You will get required results:
Thanks,
Pragati
Hi @mithiladas02 ,
Try something as follows in Power Query editor in Power BI.
This is the data:
Now under Add Column:
Then a new window appears:
Formula that I have written can be seen below in editor window:
if
([Source Category] = "JOb boards"
and [Source] = "Linkdln")
then "Job Boards-Linkdln"
else [Source]
You will get following:
Just remove the Source column:
Modify data-type of New Source to text and rename it to Source. You will get required results:
Thanks,
Pragati
@mithiladas02 , A new column in power query
if [Source Category] = "Job Boards" and [Source]="Linkdln" then [Source Category] & "-" & [Source] else [Source Category]
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 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |