Forum Discussion
Anonymous
4 years agoNot applicable
MTD based on condition
Hi Team, I have to calculate MTD as I have a table which has 4 columns as below, I have caluclate MTD based on the date. Requirment = Number of yes under each account and divded by nuumber of rows ...
- 4 years ago
Hi, Anonymous ,
You could create a measure as follow:
percent = DIVIDE ( CALCULATE ( COUNT ( [Account] ), FILTER ( ALLSELECTED ( 'Table' ), [Account] = MAX ( 'Table'[Account] ) && [Task Submision Status] = "Yes" ) ), CALCULATE ( COUNT ( [Account] ), FILTER ( ALLSELECTED ( 'Table' ), [Account] = MAX ( 'Table'[Account] ) ) ) )The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
My requirment is to count number of yes divided by number of rows for each account under each vertical.
Thanks !
amitchandak
Super User
4 years agoAnonymous , Unless you want Avg of Avg or Sum of Avg
This type of measure should help
Divide(countx(Filter(Table, Table[Task Submission Status]= "Yes") ,[account]), Count(Table[account]) )
- Anonymous4 years agoNot applicable
- amitchandak4 years ago
Super User
Anonymous , the measure is still not complete. can share formula with me
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.- Anonymous4 years agoNot applicable