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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help to Create Dax: applying filter for both Data Type(Text and Date)

Hi All,

I'm struck to create DAX in keep filters,

Condition: we need to create 1 dax for satisfing for below 2 conditions

1. Date: L3 Date<Date(2020,12,31)

2.Client feedback : Is Blank

Client feedbackL3 Date
done2021-01-16
fine2020-11-28
 2020-10-05
 2021-01-16
good2020-10-05
  
 2020-09-16

Required for Dax : 

L3 Date<=dec 2020 31  &&  isblank( client feedback)
 
Please help me to create correct DAX for above scenario.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Tried like this below mentioed DAX it's working fine 

DAX:

L3 Feedback Blank= CALCULATE(count(Table[L3 Date]), filter(Table, Table[L3 Date] <= DATE(2020,12,31) && ISBLANK('Table'[Client feedbac])))

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , Try a measure  formula like

calculate(count(Table[L3 Date]), filter(Table, isblank(Table[L3 Date]) || Table[L3 Date] <= date(2020,12,31)))

Anonymous
Not applicable

Hi Tried like this below mentioed DAX it's working fine 

DAX:

L3 Feedback Blank= CALCULATE(count(Table[L3 Date]), filter(Table, Table[L3 Date] <= DATE(2020,12,31) && ISBLANK('Table'[Client feedbac])))

@Anonymous , Try like this. If does not match share expected output

 

calculate(count(Table[L3 Date]), filter(Table, isblank(Table[Client feedback]) || Table[L3 Date] <= date(2020,12,31)))

Anonymous
Not applicable

Still facing issue count miss match 

Anonymous
Not applicable

I tried like below mentioned DAX but no luck

L3 Amber =
SUMX('Status',
ISBLANK('Status'[CLient feedback]) || 'Status'[L3 Date].[Date]>=DATE(2020,12,31))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors