Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I have dataset like below.here i mention for few source name. In my actual dataset its more then 150 row. My client want to see some particular source name for each source category remain name will add like the 2nd Table. How can i make a calculated column for this table.
Thanks in advance.
Solved! Go to Solution.
Hi @mithiladas02 ,
Here are the steps you can follow:
1. Create calculated column.
New Sources =
IF('Table'[Source Category]="Job Boards"&&'Table'[Source] in {"Dice","Boss","Job Street"},
'Table'[Source],
IF('Table'[Source Category]="Social Media"&&'Table'[Source] in {"Instagram","Linkdin"},
'Table'[Source],
IF('Table'[Source Category]="Sources","Sources ALL",
IF(
'Table'[Source Category]="Job Boards","Job board others","Social Media Others"
))))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @mithiladas02 ,
Here are the steps you can follow:
1. Create calculated column.
New Sources =
IF('Table'[Source Category]="Job Boards"&&'Table'[Source] in {"Dice","Boss","Job Street"},
'Table'[Source],
IF('Table'[Source Category]="Social Media"&&'Table'[Source] in {"Instagram","Linkdin"},
'Table'[Source],
IF('Table'[Source Category]="Sources","Sources ALL",
IF(
'Table'[Source Category]="Job Boards","Job board others","Social Media Others"
))))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for you quick reply.
In your solution i am not able to make hirarchy . i want to show under job boards 3 source name and other name of jobs borads will go to the "job boards others". same way other category will also show.
@mithiladas02 , If you want change the name you can use if is power query and switch in dax
example
Switch( True() ,
[Source] in {"A", "B", "C"}, [Source],
[Source] ="D", "A',
// Add others
)
if you want to remove filter in power query
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
73 | |
65 |