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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rmeng
Helper II
Helper II

Dax IF Condition with a Concatenation

I want a Dax with a IF Statement like this:

 

if [counts] = "Yes" then [date]&[mdm ID]&[User ID] else null

Can you Help me?

Untitled.jpg

 

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

You already provided the solution yourself:

CC = IF ( [counts] = "Yes", [date] & [mdm ID] & [User ID], "null" )

 

View solution in original post

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @rmeng ,

 

Is this a Calculated Column or  a measure? 

 

For a Calculated Column

 

Calculated Column = if ('Table'[Count] = "Yes", 'Table'[date] & 'Table'[mdm ID] & 'Table'[User ID] , BLANK())


If [Count] is a measure.

Then create a measure

 

Measure = if ([Count] = "Yes", 'MAX(Table'[date]) & MAX('Table'[mdm ID]) & MAX('Table'[User ID]) , BLANK())

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

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

AntrikshSharma
Super User
Super User

You already provided the solution yourself:

CC = IF ( [counts] = "Yes", [date] & [mdm ID] & [User ID], "null" )

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.