Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217069

Power BI cannot apply operator & to numbers?

$
0
0

I was following this article but when it comes to this part adding a new column: "YearQuarter = IF([Quarter] = 1,[Year]-1 & "4",[Year] & [Quarter]-1)" I get errors: "Expression.Error: The name 'IF' wasn't recognized. Make sure it's spelled correctly.".

 

Then I tried to change "IF" to "if" in the "Add Custom Column" it shows error "Token RightParen expected".

 

Then I tried to change the formula to "if [Quarter] = 1 then [Year]-1 & "4" else [Year] & [Quarter]-1" the formula seemed ok, but the new column shows all the values as "Error". When I click on "Error" it took me to the error details which states

Capture.JPG

I wonder why the formula in the original article doesn't work on my computer (I use Power BI August 2016 version), and how I can concatenate two numbers in Power BI?


Viewing all articles
Browse latest Browse all 217069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>