Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
Fairly new to Power BI and DAX so I was hoping someone might be able to help me out here. I'm currently trying to create an IF statement using a field and it's not co-operating. The field is in the screenshot below, it's basically a list of job titles - I want the IF statement to say something along the lines of
Solved! Go to Solution.
Hi @Anonymous ,
My test table:
Please try below steps:
1.Create a measure
Measure =
VAR cur_jobtitle =
MAX ( 'Rate'[JobTitle] )
VAR cur_payrate =
MAX ( 'Rate'[Pay_Rate] )
RETURN
IF ( cur_jobtitle = "Accounts Payable" && cur_payrate <= 45, 15.79, 15.00 )2.Visualize data with table visual
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
My test table:
Please try below steps:
1.Create a measure
Measure =
VAR cur_jobtitle =
MAX ( 'Rate'[JobTitle] )
VAR cur_payrate =
MAX ( 'Rate'[Pay_Rate] )
RETURN
IF ( cur_jobtitle = "Accounts Payable" && cur_payrate <= 45, 15.79, 15.00 )2.Visualize data with table visual
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You could try the following measure:
MyMeasure =
VAR ThisJobTitle =
MIN( 'Rate'[JobTitle] )
VAR ThisPayRate =
MIN( 'Rate'[Pay_Rate] )
RETURN
IF(
ThisJobTitle = "AccountsPayable"
&& ThisPayRate <= 15.83,
"Return This",
"Return That"
)Regards
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 |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |