cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rajmohan33 Regular Visitor
Regular Visitor

Multiple if conditions

Hi 

I have a requirement that, if the value of Agieng(count in days) below 15 then  i have to give the ageing bucket(new column) as 0-15, if the value greater than 15 and less than or equal to 30 then 16-30 and if the value greater than 30 i have to give it as >30, i am not able to write multiple if conditions in conditional column in edit query. So can anyone help me on this.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Multiple if conditions

Hi @Rajmohan33,

 

What I would suggest is to go into the Query Editor and then create a Conditional Column. In doing that it is a lot easier to create your requirments.

 

Then that will load it into your data model available for you to use it?


Did I answer your question? Mark my post as a solution!

"Proud to be a Datanaut!"
5 REPLIES 5
Super User
Super User

Re: Multiple if conditions

Cool Dude,

 

 

Switch ( True(),

Agieng < 15 , "0-15",

AND( Agieng >= 15 ,Agieng <= 30,  "15-30",

etc........

 )

 

 

Let me know if any help futher 

Rajmohan33 Regular Visitor
Regular Visitor

Re: Multiple if conditions

Thanks Baskar

 I have already got the logic, thanks for ur valuable reply

Super User
Super User

Re: Multiple if conditions

Cool dude.

v-huizhn-msft Super Contributor
Super Contributor

Re: Multiple if conditions

Hi @Rajmohan33,

If you have resolved your issue, please mark the corresponding reply as answer which will help other people clearly. Thanks a lot.

 

Best Regards,
Angelia

Super User
Super User

Re: Multiple if conditions

Hi @Rajmohan33,

 

What I would suggest is to go into the Query Editor and then create a Conditional Column. In doing that it is a lot easier to create your requirments.

 

Then that will load it into your data model available for you to use it?


Did I answer your question? Mark my post as a solution!

"Proud to be a Datanaut!"