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]="Disqualified"))
I have got the count if id's by above formula.
can anyone help me how can i get values for individual month
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!
6 Replies
- az38Community Champion
Hi Anonymous
try smth like
formula=CALCULATE(DISTINCTCOUNT(Query1[Id]),FILTER(ALLEXCEPT(Query1, Query1[Month]),Query1[Status]="Qualified" || Query1[Status]="Disqualified"))but it depends on how exactly do you store a month column
- AnonymousNot 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?- az38Community 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")) )