Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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!
Solved! Go to Solution.
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
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"))
Regards,
Charlie Liao
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
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |