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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jcastr02
Post Prodigy
Post Prodigy

Conditional Column based on number ranges

See below in yellow , I'm doing a conditional column based on the total that's in the TotCallsAnswered Column, but having some difficulty with the conditions.  Any help or guidance is appreciated. 

Screenshot 2024-01-02 160058.png

3 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@jcastr02 

you should keep the operator in the same logic.

 

11.PNG12.PNG





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

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Hi  @jcastr02 ,

 

You can also try the dax function

Create calculated column:

Dax =
SWITCH(
    TRUE(),
    'Table'[Value]<1000,"<1000",
    'Table'[Value]>=1000&&'Table'[Value]<2000,"1001-2000",
    'Table'[Value]>=2000&&'Table'[Value]<3000,"2001-3000",
    ">=3000")

vyangliumsft_0-1704247855851.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Ahmedx
Super User
Super User

pls try in Power Query

Screenshot_5.png

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

pls try in Power Query

Screenshot_5.png

Anonymous
Not applicable

Hi  @jcastr02 ,

 

You can also try the dax function

Create calculated column:

Dax =
SWITCH(
    TRUE(),
    'Table'[Value]<1000,"<1000",
    'Table'[Value]>=1000&&'Table'[Value]<2000,"1001-2000",
    'Table'[Value]>=2000&&'Table'[Value]<3000,"2001-3000",
    ">=3000")

vyangliumsft_0-1704247855851.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@jcastr02 

you should keep the operator in the same logic.

 

11.PNG12.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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