Forum Discussion
Percentage Calculation with multiple criterias
- 5 years ago
sujatakaran , Try like
a measure like
divide(calculate(count(Table[Campaign]), filter(Table, Table[status] ="Clicked")),calculate(count(Table[Campaign]), filter(Table, Table[status] in {"Open"})))
- 5 years ago
Hi sujatakaran
By your description, Your measure may be missing ")" after count().Here is the correct one :
CTR1 = DIVIDE ( CALCULATE ( COUNT ( 'Table'[Campaign Id] ), FILTER ( 'Table', [Status] = "Clicked" ) ), CALCULATE ( COUNT ( 'Table'[Campaign Id] ), FILTER ( 'Table', [Status] IN { "Open", "1-Opened", "2-Open" } ) ))Also, you could create a measure as follows:
CTR2 = COUNTROWS(FILTER('Table',[Status]="Clicked")) /COUNTROWS(FILTER('Table',[Status] in {"Open","1-Opened","2-Open"}))The final output is shown below:
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.
Hi sujatakaran
By your description, Your measure may be missing ")" after count().
Here is the correct one :
CTR1 =
DIVIDE (
CALCULATE (
COUNT ( 'Table'[Campaign Id] ),
FILTER ( 'Table', [Status] = "Clicked" )
),
CALCULATE (
COUNT ( 'Table'[Campaign Id] ),
FILTER ( 'Table', [Status] IN { "Open", "1-Opened", "2-Open" } )
))
Also, you could create a measure as follows:
CTR2 =
COUNTROWS(FILTER('Table',[Status]="Clicked"))
/COUNTROWS(FILTER('Table',[Status] in {"Open","1-Opened","2-Open"}))
The final output is shown below:
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.