Forum Discussion
Map showing incorrect count but table is correct
I have a map that should show the number of issues per location for the selected time frame. I have the following measure:
13 Replies
- Greg_Deckler
Community Champion
Anonymous Your India location is showing 5 represented by the larger circle size.
- AnonymousNot applicable
Right but the label is showing Bangalore, India: 1
- LaasyaS
Microsoft Employee
Did you ever figure this out? I am experiencing the same issue
- v-xiaotang
Community Support
Hi Anonymous
it may have something to do with CALCULATE([P1P2 Count],ALLEXCEPT('Incidents','Incidents'[Short Location],'Incidents'[Created])).
what's the content of [P1P2 Count]? and could you share sample of related sheets?
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
The first pink formula shows how I got the value of P1P2 Count. The second formula seems to be counting the distinct Short Locations (thus, each location is counted once). What I need it to do is show the count of P1P2s for each location like it does in the table.
So, since there were 5 separate incident tickets created for Bangalore, the map label should read "Bangalore, India: 5".
I'm not sure what sheets you are asking for.
- v-xiaotang
Community Support
Hi Anonymous
I mean, could you share your sample data or sample file? tks
besides,
P1P2s by Location = 'Incidents'[Short Location] & ": " & CALCULATE([P1P2 Count],ALLEXCEPT('Incidents','Incidents'[Short Location],'Incidents'[Created])) The problem is my map is showing a count of 1 for each location (at least one of the locations has 5). When I click Show as Table, I get the proper counts.not sure how you put the measure into Category label, in my test, I can only put column into it.
Looking forward to receiving your reply.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- Ashish_Mathur
Super User
Hi,
What result do you get with this
P1P2s by Location = 'Incidents'[Short Location] & ": " & [P1P2 Count]
- AnonymousNot applicable
Ashish,
I got the same result as shown in the original screenshots (so, if there is no difference, the simple formula is best) but it still is not correct.
Please keep trying.
- Ashish_Mathur
Super User
I will need to see your file then. Share the download link and clearly show the problem there.