Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
JoannaManibo
Contributor II
Contributor II

Data count not reflecting correctly

I am using this formula "=Count({<[Gender]={'Male'}>}[Gender])" to get the total count per gender but the total count is not showing correctly. See the screen shot and correct total count per gender below:

Male: 4,439

Female : 4,583

Screenshot.PNG

2 Solutions

Accepted Solutions
NitinK7
Specialist
Specialist

Hi,

see below screenshots

in backend write script like

count1.PNG

 

and in measure field  your expression like 

"=Count({<[Gender]={'Male'}>}[Gender])"

and

"=Count({<[Gender]={'Female'}>}[Gender])"

 

count.PNG

 

View solution in original post

niccolo_chiodar
Contributor II
Contributor II

You can try this, 

Count( {< Gender={'Male'} >} DISTINCT ID)

It's working for me.

 

Nik

View solution in original post

10 Replies
sunny_talwar

The expression looks okay to me... would you be able to share a sample where we can see the issue?

NitinK7
Specialist
Specialist

hi,

can you provide data file for the same then it will be easy to find out what is problem

because your expression is looking correct

regards,

Nitin.

Tanalex
Creator II
Creator II

Any chance you have filters chosen somewhere else in the application?

NitinK7
Specialist
Specialist

No it is not a right way because sometime your data file have space or some additional symbol

so better to give your sample data file

JoannaManibo
Contributor II
Contributor II
Author

Here's the sample data. 

NitinK7
Specialist
Specialist

Hi,

see below screenshots

in backend write script like

count1.PNG

 

and in measure field  your expression like 

"=Count({<[Gender]={'Male'}>}[Gender])"

and

"=Count({<[Gender]={'Female'}>}[Gender])"

 

count.PNG

 

JoannaManibo
Contributor II
Contributor II
Author

Tried the new script but it is still not reflecting the correct total count per gender

 
NitinK7
Specialist
Specialist

Hi

Use double qoate or bracket to date field 

"Date Received"

or

[Date Received]

it will be work

JoannaManibo
Contributor II
Contributor II
Author

Got it! Thanks! But I'm still having issue in reflecting the correct total count per gender