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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors