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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Jeo_Thomas
Frequent Visitor

Filter data based on multiple criteria in same column

Hi I want to calculate QTD total count of submissions rejected.

 

I am able to filter the data only with one criteria in same column for example where 3.Final Decision Date'[Final Decision Term] = "Reject" as soon as I add the second criteria the calculation don't work.

 

I am using the below dax, can some one please help me to resolve this issue.

 

"1.QTD Rejects =

CALCULATE

(CALCULATE([Submission count(FLDD)],DATESQTD(('3.Date_Final Decision Date'[Date])))

,'3.Date_Final Decision Date'[Completed Quarter] = "Yes"
,'3.Final Decision Date'[Final Decision Term] = "Reject"
,'3.Final Decision Date'[Final Decision Term] = "Pre-screen reject"
,'3.Final Decision Date'[Final Decision Term] = "Reject but invite resubmission"
,'3.Final Decision Date'[Final Decision Term] = "Pre-screen reject and transfer"
,'3.Final Decision Date'[Final Decision Term] = "Reject and transfer"
)"
 
// [Submission count(FLDD)] = unique count of submissions
 

 

1 ACCEPTED SOLUTION

I found a workaround I applied filter similar to like @amitchandak  suggested and I appled the "Yes" filter at report level. Below is the DAX I used.

 

QTD Rejections =
CALCULATE([Submission count(FLDD)],
DATESQTD(('3.Date_Final Decision Date'[Date]))
,FILTER('3.Final Decision Date','3.Final Decision Date'[Final Decision Term] in {"Reject", "Pre-screen reject","Reject but invite resubmission","Pre-screen reject and transfer","Reject and transfer"}))

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Jeo_Thomas , Try like

 

CALCULATE
(CALCULATE([Submission count(FLDD)],DATESQTD(('3.Date_Final Decision Date'[Date]))),
filter( '3.Date_Final Decision Date'
,'3.Date_Final Decision Date'[Completed Quarter] in{ "Yes", "Reject", "Pre-screen reject","Reject but invite resubmission","Pre-screen reject and transfer","Reject and transfer"}
))

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

This looks great, but "Yes" filter is from table '3.Date_Final Decision Date'[Completed Quarter] and rest of the filters are from table 3.Final Decision Date'[Final Decision Term]. @amitchandak would you be able to please advice?

 

I know the naming of the table is bit confusing I have added prefix at "Date_" for the date table, sorry about that.

@amitchandak i used below dax but it is giving me error 

 

Dax:

1.QTD Rejects =
CALCULATE
(CALCULATE
([Submission count(FLDD)],DATESQTD(('3.Date_Final Decision Date'[Date]))),
filter( '3.Date_Final Decision Date'
,'3.Date_Final Decision Date'[Completed Quarter] in{"Yes"} && FILTER('3.Final Decision Date','3.Final Decision Date'[First Decision Term] in {"Reject", "Pre-screen reject","Reject but invite resubmission","Pre-screen reject and transfer","Reject and transfer"}
)))
 
Error Message:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

I found a workaround I applied filter similar to like @amitchandak  suggested and I appled the "Yes" filter at report level. Below is the DAX I used.

 

QTD Rejections =
CALCULATE([Submission count(FLDD)],
DATESQTD(('3.Date_Final Decision Date'[Date]))
,FILTER('3.Final Decision Date','3.Final Decision Date'[Final Decision Term] in {"Reject", "Pre-screen reject","Reject but invite resubmission","Pre-screen reject and transfer","Reject and transfer"}))

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.