Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Total Count if

I am trying to get an expression to work for me that is getting the percentage of the total count if a certain criteria is met. I currently have the below:

as my count if - count(if([Rating Field]='2017 Performance Rating',[Grouping]))

The dimensions are the different groupings (there are 4). I need to get the percentage ofcount(if([Rating Field]='2017 Performance Rating',[Grouping]))/ the total count if the rating field  is '2017 Performance Rating' as a whole.

 

Any help would be greatly appreciated!

 

 

1 Solution

Accepted Solutions
Thiago_Justen_

I'm not sure if I got your point but you could try this out:

 

count(if([Rating Field]='2017 Performance Rating',[Grouping])) / count(total if([Rating Field]='2017 Performance Rating',[Grouping]))

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago

View solution in original post

2 Replies
Thiago_Justen_

I'm not sure if I got your point but you could try this out:

 

count(if([Rating Field]='2017 Performance Rating',[Grouping])) / count(total if([Rating Field]='2017 Performance Rating',[Grouping]))

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
sunny_talwar

Not entirely sure I understand what you want, but may be this

Count({<[Rating Field] = {'2017 Performance Rating'}>} [Grouping])
/
Count(TOTAL {<[Rating Field] = {'2017 Performance Rating'}>} [Grouping])