Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I am trying to add an if statement to the code below. The if needs to be "if less than 40, make the output = to 40". Here is the code:
Solved! Go to Solution.
Hello @cpatton10
you can try using variable (direct conditional if should be worked as well but the DAX line would be quite long).
Hello @cpatton10
you can try using variable (direct conditional if should be worked as well but the DAX line would be quite long).
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 19 | |
| 12 | |
| 10 |