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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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