Forum Discussion
MTD based on condition
- 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 , You can join all 4 of them with one date table. there will be inactive joins which can be activated using userelationship
example
calculate( calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Sales'[CreateDate], 'Date'[Date])),DATESMTD('Date'[Date]))
- Anonymous4 years agoNot applicable
My requirment is to count number of yes divided by number of rows for each account under each vertical.
Thanks !
- amitchandak4 years ago
Super User
Anonymous , 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