Skip to main content
Announcements
April 9th: The AI Roadmap: 6 Landmarks for AI-ready Data and Analytics: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
davehutchinson
Creator

Help with Pivot table % by day

Hi all.  I'm totally stumped with pivot tables today.  Hopefully someone can spot where I'm going wrong as I just can't understand why my % isn't calculating properly.

 

So I havae a pivot table that is counting distinct incidents:

Measure: Count(distinct[INCIDENT_REFERENCE])

 

I then have 2 dimentions in my pivot:

[DAY] and then the category of [Over/Under Estimated Time]

 

The pivot table with a count looks like this and is correct:

davehutchinson_0-1743608037330.png

 

I then want the same pivot table but showing the numbers as a percentage of the day.  Simple right???

So I modified the measure to be:

Count(distinct[INCIDENT_REFERENCE])
/
Count(TOTAL<DAY>distinct[INCIDENT_REFERENCE])

 

however it comes out with the following results which are clearly wrong:

davehutchinson_1-1743608119780.png

 

Can anyone tell me what's wrong with my % measure?  I'm stumped.

 

Labels (4)
3 Replies
Chanty4u
MVP

Try this 

Count(DISTINCT INCIDENT_REFERENCE)

/

Aggr(Count(DISTINCT INCIDENT_REFERENCE), DAY)

Or

Count(DISTINCT [INCIDENT_REFERENCE]) 

Sum(TOTAL <DAY> Count(DISTINCT [INCIDENT_REFERENCE]))

davehutchinson
Creator
Author

No luck unfortunately.

davehutchinson_0-1743664296950.png

I think I might have to start from scratch.  I'm really stumped with this one....

 

davehutchinson
Creator
Author

It appears to be the discinct command that's causing the issue... If i remove it I can get the % to equal 100% per day.... I'm not sure how accurate the numbers are so will investigate!