Forum Discussion
Anonymous
7 years agoNot applicable
count rows with multiple condition
Hi i have two tables here below. From the first table, i want to count the opp no. but just status of won,open and lost. Then I want to calculate the average no. of opportunity by month (of just wo...
- Anonymous7 years ago
Hi v-piga-msft. Thanks for your answer but that wasn't exactly the answer I was looking for.
I instead found out the funciton.
total opp = CALCULATE(COUNT('Opportunity'[Opp number]),'Opportunity'[Status]IN{"won","lost","did not proceed"})Thanks.
v-piga-msft
7 years agoResident Rockstar
Hi Anonymous,
If you only want to calculate the count of opportunity id of open, lost and in porocess.
You have two ways to achieve that.
1. Drag the Status column to filed and select Count.
Then unclick Won under visual level filter as below.
2. Create the measure directly.
Count =
CALCULATE (
COUNT ( 'Table1'[Opp no] ),
FILTER ( 'Table1', 'Table1'[Status] <> "Won" )
)
If you want to calculate the average no. of opportunity by month, I'm afraid that you should have a relationship between the two tables, but I cannot find the date column in your first table so it seems that we cannot create the relationship between the two tables.
Best Regards,
Cherry