Forum Discussion
Anonymous
6 years agoNot applicable
New Column IF AND
Hi All, I am trying to make a new column for the following logic; IF Policy Period <= 90 day and % Turn Over >30% then true else false. Measures: % Turn Over Limit = DIVIDE([Available Limit...
- Anonymous6 years ago
Try to create calculated column as below
New column=if(
([Available_Annual_Limit]/[ANNUAL_LIM])*100) >=30 &&
Datediff(Max(DOCWA_Perpetual_Eligibilities[DATE_INCEPT]),today(),Days) <=90,TRUE,FALSE)
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
az38
Community Champion
6 years agoHi Anonymous
i think you'va got a completely wrong format if-statement for power query. try smth like this
= IF
([Available_Annual_Limit]/[ANNUAL_LIM])*100 >=30 &&
Duration.Days(Duration.From(DateTime.LocalNow()-[DATE_INCEPT])) <= 90
then true
else false
do not hesitate to give a kudo to useful posts and mark solutions as solution
- Anonymous6 years agoNot applicable
Thanks for the reply but I am getting a token Literal error.