Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi gooday can anyone correct my If condtion. What i need is if the week is already pass it should be equal to 0, so from Week 1 to 11 it should be zero and from Week 12 onward should be equal to my forecasthour
Solved! Go to Solution.
Hii @AllanBerces
Your logic is slightly incorrect. You should compare the week column with the current week (WEEKNUM(TODAY())), not the forecast value.
FORECAST =
IF(
'Table'[Week] < WEEKNUM(TODAY()),
0,
'Table'[FORECASTHOURS]
)
Hii @AllanBerces
Your logic is slightly incorrect. You should compare the week column with the current week (WEEKNUM(TODAY())), not the forecast value.
FORECAST =
IF(
'Table'[Week] < WEEKNUM(TODAY()),
0,
'Table'[FORECASTHOURS]
)
| User | Count |
|---|---|
| 58 | |
| 46 | |
| 31 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 77 | |
| 66 | |
| 46 | |
| 22 | |
| 22 |