This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
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
Hi,
For some reason my calculated column is no working - all values are a decimal number.
DAX is
TestRange70to79.9 =
IF(
AND(
[Supplier Percentage Conv] >= 'Time Penalty'[LeftValue],
[Supplier Percentage Conv] <= 'Time Penalty'[right position]
),
"Yes",
"No"
)
The value of Supplier percentage conv is 77.16 .
It is returning "No" for every row.
See image.
Any help appreciated.
Hi @Dhairya ,
Sure,
Time Penalty
| Percentage | Penalty |
| 90- 97.9 | 10% |
| 80- 89.9 | 20% |
| 70 - 79.9 | 30% |
| 60- 69.9 | 40% |
| <60 | 50% |
Calculated Columns
Hi @Dhairya ,
Thats interesting - I hardcoded the 77.16
In the PBI it is using
Though it is hard-coded, I think it should work with measures also.
and instead of creating this measure Supplier Percentage Conv = [Supplier Percentage]*100
you can format your previous measure as a percentage
I tried your code it is giving perfect output.
TestRange70to79.9 =
IF(
[Supplier Percentage Conv] >= 'Time Penalty'[LeftValue] AND
[Supplier Percentage Conv] <= 'Time Penalty'[right position],
"Yes",
"No"
)Please try this
That doesnt work it comes back with the error
The syntax for 'AND' is incorrect. (DAX(IF( [Supplier Percentage Conv] >= 'Time Penalty'[LeftValue] AND [Supplier Percentage Conv] <= 'Time Penalty'[right position], "Yes", "No"))).
I have also tried
TestRange70to79.9 =
IF(
[Supplier Percentage Conv] >= 'Time Penalty'[LeftValue] &&
[Supplier Percentage Conv] <= 'Time Penalty'[right position],
"Yes",
"No"
)Which doesnt work either
Hey @jak8282
Can you please share sample data and measures which are used for plotting so that I can try it on my machine?
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 |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |