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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
EPJones
New Member

Text Field Counted Twice

I have a fairly simple excel spreadsheet but it's pretty long. I'm trying to visually represent how many trips per day for manpower reasons, and it counts all instances twice, I can't figure out why. I reimported the data, I copied/pasted the spreadsheet to a new one, tried countless DAX options, nothing works. It's a text field so the usual Max count doesn't work. I've tried everything in my meager arsenal, and I can't figure out why it counts everything twice. I would greatly appreciate any help, I spent my whole day on this and still didn't get anything. It seems much simpler than other queries I've managed to pull off, but this is text so I guess that's my issue. Thank you!

SERVICE DATECATEGORYROUTECOACH #LOCATIONINCIDENT / PROBLEM
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Dropped / Missed Trip123NoneNorth YardDue to manpower
Sunday, January 1, 2023Equipment3211505North YardEngine lights. No service delay. 
Sunday, January 1, 2023Customers / Operators3211703North YardPassenger put bike on rack and would not remove it, coach going out of service. 
Monday, January 2, 2023Equipment35211911North YardEngine lights.   no service delay. 
Tuesday, January 3, 2023Dropped / Missed Trip321NoneNorth YardDue to manpower
Tuesday, January 3, 2023Dropped / Missed Trip321NoneNorth YardDue to manpower
Tuesday, January 3, 2023Coach Substitution321553North YardAccident
Tuesday, January 3, 2023Coach Substitution123563North YardAccident
Tuesday, January 3, 2023Coach Substitution3211909North YardAccident
Tuesday, January 3, 2023Coach Substitution1231713North YardAccident
Tuesday, January 3, 2023Coach Substitution32131724North YardAccident
Tuesday, January 3, 2023Coach Substitution2139822North YardDue to manpower
Tuesday, January 3, 2023Equipment213565North YardCoach was no start. trip started delayed 12 minutes. 
Tuesday, January 3, 2023Coach Substitution3129815North YardMechanical issue
Tuesday, January 3, 2023Customers / Operators322563North YardAccident
Tuesday, January 3, 2023Coach Substitution2139909North YardMechanical issue
Tuesday, January 3, 2023Dropped / Missed Trip3213554North YardDue to manpower
7 REPLIES 7
ryan_mayu
Super User
Super User

what's the expected output based on the sample data you provided?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ah yes, my apologies!

This is what I want:

 

January 1   -  8trips missed due to manpower

                   - 1 trip missed due to mechanical/engine

                   - 1 trip missed due to other


This is what I currently get, it double counts everything:

January 1   -  16 trips missed due to manpower

                   - 2 trips missed due to mechanical/engine

                   - 2 trips missed due to other


I'm looking for a graph that will show how many trips were missed due to manpower (in particular, others too) each day YTD. 

Hi,

Check the steps in the Query Editor.  In the second/third step, then number of rows should be equal to the number of files lying in the folder from there you are importing data.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

don't know why what you get is counting twict.

i think you don't even need to create dax

pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I could indeed just do a pivot table, but I'm asked to plop this into PBI, hence why I'm fighting with it. I'll just go ahead and re-import as a csv, I haen't tried that yet, maybe it'll remove whatever odd thing is causing PBI to count everything twice.

Thank you for looking at my question, I really appreciate it!

so it's a data importing issue? pls provide the original file.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I figured it out, thank you! Turned out my original data was corrupted somehow, and it reported twice. Thank you!

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors