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 moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi to all,
Can someone help me to edit my measure to add IF condition from the current measure, I have a table with column of Week no. What i need is if the value is lessthan this week make it zero.
Solved! Go to Solution.
Hi @AllanBerces ,
You can achieve the desired result by using this DAX:
_5 Delta PY Line Negative AC =
VAR CurrentWeek = MAX(DateTable[Week No]) -- Get the current week number
RETURN
IF(
MAX(DateTable[Week No]) < CurrentWeek, -- Check if the week is less than the current week
0, -- Set the value to zero
IF(
[_5 Delta PY] < 0,
[_5 Delta PY Line] + [_5 Delta PY],
BLANK()
)
)
Hi @AllanBerces ,
You can achieve the desired result by using this DAX:
_5 Delta PY Line Negative AC =
VAR CurrentWeek = MAX(DateTable[Week No]) -- Get the current week number
RETURN
IF(
MAX(DateTable[Week No]) < CurrentWeek, -- Check if the week is less than the current week
0, -- Set the value to zero
IF(
[_5 Delta PY] < 0,
[_5 Delta PY Line] + [_5 Delta PY],
BLANK()
)
)
hi @Bibiano_Geraldo @Uzi2019 Thank you very much for the reply, work as i need.
Hi @AllanBerces
Can you share the sample data and expected output??
would be better for us to understand your scenario.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 32 | |
| 25 | |
| 23 |