Forum Discussion
Anonymous
6 years agoNot applicable
Row level calculation
Hi, i have created a measure but it is showing same value for all the months formula=CALCULATE(DISTINCTCOUNT(Query1[Id]),FILTER(ALL(Query1),Query1[Status]="Qualified"||Query1[Status]="D...
- 6 years ago
Hi Anonymous ,
Create a measure similarly as below:
Measure = var a= CALCULATE(DISTINCTCOUNT('Table'[Id]),FILTER(ALLEXCEPT('Table','Table'[Agent name ],'Table'[Country]),'Table'[Status]="Qualified")) var b= CALCULATE(DISTINCTCOUNT('Table'[Id]),FILTER(ALLEXCEPT('Table','Table'[Agent name ],'Table'[Country]),'Table'[Status]="Disqualified")) Return DIVIDE(a,b)And you will see:
For the related .pbix file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous
6 years agoNot applicable
Thanks, it is working
I'm doing a division which caculates the percentage
Perc= [#Qualifiedleads]/[#Disqualifiedleads]
THis is also showing 20 % for all months .
How can i overcome this?
v-kelly-msft
6 years agoCommunity Support
Hi Anonymous ,
Or you can try measure as below:
measure== DIVIDE(
CALCULATE(DISTINCTCOUNT(Query1[Id]), FILTER(Query1, Query1[Status]="Qualified")),
CALCULATE(DISTINCTCOUNT(Query1[Id]), FILTER(Query1, Query1[Status]="Disqualified"))
)
Best Regards,
Kelly
Kelly
Did I answer your question? Mark my post as a solution!