Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mithiladas02
Helper I
Helper I

calculated column

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.

 

mithiladas02_0-1637337138384.png

 

mithiladas02_1-1637337307488.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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:

vyangliumsft_0-1637653022219.png

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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:

vyangliumsft_0-1637653022219.png

 

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

mithiladas02
Helper I
Helper I

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.

amitchandak
Super User
Super User

@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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.