We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |