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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Condition Combining columns

Hi All, 

 

I have a data set that looks something like this:

MinimumMaximum
1 
5 
36
 7
24

 

 I want to create a new column in DAX so that the data will look something like this:

MinimumMaximumNew Column
1 >=1
5 >=5
363<=>6
 7<=7
242<=>4

 

Is there any way to do this in DAX using a formula? Need help with it. Thanks a lot for the help.

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

New column =
SWITCH (
    TRUE (),
    NOT ISBLANK ( Table1[Minimum] ) && NOT ISBLANK ( Table1[Maximum] ),
        Table1[Minimum] & "<=>" & Table1[Maximum],
    NOT ISBLANK ( Table1[Minimum] ), ">=" & Table1[Minimum],
    NOT ISBLANK ( Table1[Maximum] ), "<=" & Table1[Maximum]
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Create a new column like

 

Switch( true(),
isblank([Maximum]) , ">=" & [Minimum] ,
isblank([Minimum]) , "<=" & [Maximum] ,
[Minimum] & "<=>" & [Maximum]
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AlB
Community Champion
Community Champion

Hi @Anonymous 

New column =
SWITCH (
    TRUE (),
    NOT ISBLANK ( Table1[Minimum] ) && NOT ISBLANK ( Table1[Maximum] ),
        Table1[Minimum] & "<=>" & Table1[Maximum],
    NOT ISBLANK ( Table1[Minimum] ), ">=" & Table1[Minimum],
    NOT ISBLANK ( Table1[Maximum] ), "<=" & Table1[Maximum]
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

AilleryO
Memorable Member
Memorable Member

Hi,

 

You can use those functions to do the trick.

IF or SWITCH functions to test

ISBLANK([mini]) and ISBLANK([maxi]) to check if you have a value or not.

and finaly CONCATENATE (or uing &) with ">=" and "<=" symbols.

 

Hope it helps

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.