Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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
GilbertQ
Super User
Super User

Hi @Anonymous,

 

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 Super User!







Power BI Blog

View solution in original post

5 REPLIES 5
GilbertQ
Super User
Super User

Hi @Anonymous,

 

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 Super User!







Power BI Blog

Baskar
Resident Rockstar
Resident Rockstar

Cool Dude,

 

 

Switch ( True(),

Agieng < 15 , "0-15",

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

etc........

 )

 

 

Let me know if any help futher 

Anonymous
Not applicable

Thanks Baskar

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

Cool dude.

Hi @Anonymous,

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.