cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bethcurnutt Frequent Visitor
Frequent Visitor

How to prevent double-counting data

Hello,

 

I'm currently trying tog et some data for driver metrics. I have the following function set up:

 

Stops/Driver/Day = COUNTA(TMAP[TRP_STOP_ID])/DISTINCTCOUNT(TMAP[TMAP_PRIM_DVR_ID])/(DISTINCTCOUNT([TMAP_TRP_END_DT]))

 

The issue that I'm running into is that I think the TMAP_TRP_END_DT is being double counted, causing the numbers to be small than what they are. What can I do to prevent this?

 

Thank you!

3 REPLIES 3
bethcurnutt Frequent Visitor
Frequent Visitor

How to prevent double-counting of data

Hello,

 

I'm trying to get certain data metrics from driver performance. This is the formula I'm using:

 

Stops/Driver/Day = COUNTA(TMAP[TRP_STOP_ID])/DISTINCTCOUNT(TMAP[TMAP_PRIM_DVR_ID])/(DISTINCTCOUNT([TMAP_TRP_END_DT]))

 

The TMAP_TRP_END_DT is in a date format. The issue I'm running into is that the numbers are coming out lower than what I know they should be, so I believe this date is getting double-counted. How do I prevent this?

 

Thank you!

rajendran Super Contributor
Super Contributor

Re: How to prevent double-counting of data

Can you post some sample data and expected output, that will help to understand the root cause.

 

Thanks

Raj

Community Support Team
Community Support Team

Re: How to prevent double-counting data

Hi @bethcurnutt

As tested, I can't find TMAP_TRP_END_DT is double counted, what is your situation?

Column 4 = (DISTINCTCOUNT([TMAP_TRP_END_DT]))

4.png

 

 

Best Regards

Maggie

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 143 members 1,967 guests
Please welcome our newest community members: