Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.