We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
Solved! Go to Solution.
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.
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
Thanks, it is working
I'm doing a division which caculates the percentage
Perc= [#Qualifiedleads]/[#Disqualifiedleads]
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"))
)
hi @az38 / @v-kelly-msft
One last help,
i have created a heirarchy having 2 fields country and agent name. But when i'm selecting the measures it's value is same for all countries and agents .
But I'm confused. Now i want the value first changed at country level and then at agent level.But in the formula which Az38 mentioned , we can mention only 1 column using filter except , How do i implement this heirarchy??
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.
@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"))
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 24 |