Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi folks
I have a table called "Employee History", it has a column named "Salary".
Appreciate any help offered, much thanks!
I want to create a calculated column called "Salary Sort col" :
Idk what I'm doing wrong but my calculated column shows nothing 😅
File link : https://drive.google.com/file/d/1fX_QSxj3OVJhG3jGk9hLuZXz5sUFESPF/view?usp=sharing
Solved! Go to Solution.
Hi @holywasabi ,
I would suggest you to create a calculated column as below to achieve the requirement.
Salary Range = If(Salary >0 && Salary < 39999,"Below $40k",if(Salary >39999 && Salary < 59999,"$40 - $59k", and so on)
let me know if this helps.
Thanks,
Ankur
Salary Range col =
CALCULATE (
VALUES ( 'Salary sort'[Salary Range] ),
FILTER (
'Salary sort',
'Employee History'[salary] >= 'Salary sort'[Min]
&& 'Employee History'[salary] <= 'Salary sort'[Max]
)
)
@Ankur04 & @SachinNandanwar Thanks a lot guys!
I used both of your suggestions and they both work 🙂
Salary Range col =
CALCULATE (
VALUES ( 'Salary sort'[Salary Range] ),
FILTER (
'Salary sort',
'Employee History'[salary] >= 'Salary sort'[Min]
&& 'Employee History'[salary] <= 'Salary sort'[Max]
)
)
Hi @holywasabi ,
I would suggest you to create a calculated column as below to achieve the requirement.
Salary Range = If(Salary >0 && Salary < 39999,"Below $40k",if(Salary >39999 && Salary < 59999,"$40 - $59k", and so on)
let me know if this helps.
Thanks,
Ankur
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |