cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
samurijv2 Regular Visitor
Regular Visitor

IF AND formula for Conditional Column

I am trying to create a column that does something like the following:

 

IF cell in [TextColumn] = "value" AND cell in [DateColumn] is empty THEN "value2" ELSE do nothing

 

What would a dax forumla that accomplishes the above look like? 

 

Does it matter that the data in one column is text and the other is a date? 

3 REPLIES 3
vega Member
Member

Re: IF AND formula for Conditional Column

Column = 
IF(
    Table1[TextColumn] = "value" && ISBLANK(Table1[DateColumn]),
    "value2",
    BLANK()
)
samurijv2 Regular Visitor
Regular Visitor

Re: IF AND formula for Conditional Column

@vega Thanks for the reply! When I use your formula I get the error "Token Literal expected." When I click "show error" the second ampersand is highlighted (&&

vega Member
Member

Re: IF AND formula for Conditional Column

Are you sure that you are using DAX? That formula works correctly as is if you are creating a calculated column in DAX. Are you trying to do the same thing that is being done here?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 104 members 1,156 guests
Please welcome our newest community members: