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
Hi, I am trying to write a simple IF statement in Power Query, I want to return a value every time an odd value appears in a rank column. I am writing
if [rank] = Number.IsOdd then [ExampleColumn] else [ExampleColumn2]
The Number.IsOdd section is picking up, can anyone help point me in the right direction?
Thanks
Tom
Solved! Go to Solution.
Hi @tomshaw83 ,
You need to use the Number.IsOdd function correctly:
if Number.IsOdd([rank]) then ... else ...
Pete
Proud to be a Datanaut!
Hi @tomshaw83 ,
You need to use the Number.IsOdd function correctly:
if Number.IsOdd([rank]) then ... else ...
Pete
Proud to be a Datanaut!
Thank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 17 | |
| 9 | |
| 9 | |
| 7 | |
| 7 |