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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
95Bigbluetoy
Helper I
Helper I

Assign numeric value to various job titles

I need to assign a numeric value to various job titles. I can use the IF statement to make this work for two titles, but i have about a dozen various job titles that i need to assign a value to and havent been able to figure out how to accomplish this. Some of the titles will have the same value. For instance, i need PMs to have a value of 5,  whereas Superintendents, Foreman and Field Engineers will have a value of 0. APMs will have a value of 2 and VPs will have a value of 75, etc.

 

Any and all help is greatly appreciated.

 

 

 

 

1 ACCEPTED SOLUTION

Hi @95Bigbluetoy 

 

If the value is exactly defined by the title name, you need to use IF/SWITCH function to do it. such as write to: IF([Title]= "SUPERINTENDENT", "0", IF([Title]= "VICE PRESIDENT", "90"))..one by one. there's no easy way to do this.  probably SWITCH function can be simpler than IF.

 

Community Support Team _ Dina Ye
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

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @95Bigbluetoy 

 

Not quite understand your requirement, could you please post some captures to clarify more details?

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Thanks for responding. what i am looking to do is to assign a numeric value to various job titles so as to then use that value in another calculation. I can use the IF statement to say that 

IF([Title]= "SUPERINTENDENT", "0", IF([Title]= "VICE PRESIDENT", "90")), but i have numerous job titles to assign a value to.
 
my data table has a column "Title", so what i am looking for is to add a new column that has a value based on the job title. here is an example of what i am looking for:
 
TitleValue
Superintendent0
Project Manager5
Assistant Project Manager2
Project Manager Assistant90
Vice President75
Assistant Superintendent0
General Superintendent5
 
 

Hi @95Bigbluetoy 

 

If the value is exactly defined by the title name, you need to use IF/SWITCH function to do it. such as write to: IF([Title]= "SUPERINTENDENT", "0", IF([Title]= "VICE PRESIDENT", "90"))..one by one. there's no easy way to do this.  probably SWITCH function can be simpler than IF.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

thanks for the input. I didnt know that i could keep using the IF statement for the number of times i needed within the same equation. It is working.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors