Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
6 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |