Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I am trying to figure out how to add a formula that will look at two coloums and will return one value based on the critera. I want it to return value "Yes" where the resource is pricing and the TaskId is >=90 and "No" when either 1 or both of those if false. I keep on getting an error when i try to make the formula. Something about the dax comparison operations do not support comparing values of type True/False with values of type Text. Below is a table to help.
Solved! Go to Solution.
The [TaskId] = "03" has to be type text. Try as:
Column =
IF(
'Table'[Resource] = "Pricing" && VALUE('Table'[TaskId]) >= 90,
"Yes",
"No"
)
or as a measure:
Measure =
IF(
SELECTEDVALUE('Table'[Resource]) = "Pricing" && VALUE(SELECTEDVALUE('Table'[TaskId])) >= 90,
"Yes",
"No"
)
Proud to be a Super User!
Perhaps your taskId column is of type text? If so, change that to numeric type and try the formula again.
The same error appears.
The [TaskId] = "03" has to be type text. Try as:
Column =
IF(
'Table'[Resource] = "Pricing" && VALUE('Table'[TaskId]) >= 90,
"Yes",
"No"
)
or as a measure:
Measure =
IF(
SELECTEDVALUE('Table'[Resource]) = "Pricing" && VALUE(SELECTEDVALUE('Table'[TaskId])) >= 90,
"Yes",
"No"
)
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 35 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |