Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bethcurnutt
New Member

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
v-juanli-msft
Community Support
Community Support

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

bethcurnutt
New Member

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!

Anonymous
Not applicable

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

 

Thanks

Raj

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.