HI,
is it possible to declare a variable in the add custom column dialog of power query so ;
Financial quarter:
if Date.QuarterOfYear([#"Date "]) - 1 = 0 then 4 else
Date.QuarterOfYear[#"Date "]-1 ,
so in dax VAR abc = "Quarter"
RETURN if ( "Quarter"-1 = 0, 4 , "Quarter )
Or somthing similar, I think I have done this at some point but can't remember how, whether I had to use a let statemnt ?
Richard
is it possible to declare a variable in the add custom column dialog of power query so ;
Financial quarter:
if Date.QuarterOfYear([#"Date "]) - 1 = 0 then 4 else
Date.QuarterOfYear[#"Date "]-1 ,
so in dax VAR abc = "Quarter"
RETURN if ( "Quarter"-1 = 0, 4 , "Quarter )
Or somthing similar, I think I have done this at some point but can't remember how, whether I had to use a let statemnt ?
Richard