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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |