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
Rsanjuan
Advocate III
Advocate III

Creating a measure with multiple conditions

I am looking to calculate # of bids, when Job Phase equals certain conditions.  How do we do it for more than one condition?

 

NumberofSales = Calculate(DISTINCTCOUNT(Master[Bid_Number__c]),Master[Job.Job_Phase__c]="closed")

 

For example, I want to include not only "closed" but "in process", "confirmed"

 

Thanks!

2 ACCEPTED SOLUTIONS

check that the calculated colum is working as expected. Without seeing more of the model its hard to see whats wrong. 

 

 

//if this is a solution please mark as such

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @Rsanjuan,

 

You can use the follow DAX expression to get your expected result.
Count = CALCULATE(DISTINCTCOUNT(Master[ID]),FILTER(ALL(Master),Master[Job.Job_Phase__c]="closed"||Master[Job.Job_Phase__c]="in process"||Master[Job.Job_Phase__c]="confirmed"))

 

Capture.PNG

 

 

Regards,

Charlie Liao

 

 

View solution in original post

23 REPLIES 23

thats becasuse you are putting "" around the 1 making it text not numeric. Swap out a SUM() for the distinct count and put the FILTER()

 

NoOfSales = Calculate(SUM(Master[Bid_Number__c]),FILTER(Master[ConditionSales])=1)

 

 

//If this is a solution please mark as such

// if this is a solution please mark as such. Kudos always appreciated.

@samdthompson

 

The dax expression works, but it is not returning a number.  It's returning a (blank)

 

 

check that the calculated colum is working as expected. Without seeing more of the model its hard to see whats wrong. 

 

 

//if this is a solution please mark as such

// if this is a solution please mark as such. Kudos always appreciated.

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.