Forum Discussion
Help with adding if then statement?
- 1 year ago
Can you provide a sample of the data please? It may be better to use a calculated column that only performs the if statement, depending on how your data is presented
Here i've used the column
CalculatedColumn = IF('January2025Hours'[Hours] < 1, 1, 'January2025Hours'[Hours])to obtain the following results
Let me know if this fixes the issue, thanks
Hey, thanks, wardy912. That looks like it makes sense to me, but when I compared the new (TEST Jan 2025 Hrs) to the original (Jan 2024 Hrs) it isn't doing what I want:
Can you provide a sample of the data please? It may be better to use a calculated column that only performs the if statement, depending on how your data is presented
Here i've used the column
CalculatedColumn = IF('January2025Hours'[Hours] < 1, 1, 'January2025Hours'[Hours])
to obtain the following results
Let me know if this fixes the issue, thanks