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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.