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?
az38
6 years agoCommunity Champion
Anonymous
divide this measure by your, like
= DIVIDE(
CALCULATE(DISTINCTCOUNT(Query1[Id]), FILTER(ALLEXCEPT(Query1, Query1[Month]), Query1[Status]="Qualified" || Query1[Status]="Disqualified")),
CALCULATE(DISTINCTCOUNT(Query1[Id]), FILTER(ALL(Query1), Query1[Status]="Qualified" || Query1[Status]="Disqualified"))
)