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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RachyRoo
New Member

Power Query Editor custom column correct, but not when apply to model

Hi

 

I have created a custom column in Power Query Editor below which is working perfectly and returning the values that I want.

 

= Table.AddColumn(#"Changed Type1", "Duration", each if [End Time] > [Start Time]
then [End Time] - [Start Time]
else ([End Time] - Time.FromText ("00:00:00")) + (Time.FromText ("23:59:00") - [Start Time]))

 

When I close and upload the values in the model table aren't correct and I can't even really understand where they are coming from.  They are not all the same but large number of rows are returning the same value.

 

Any help would be appreciated.

 

Thanks

1 ACCEPTED SOLUTION

In PQ, bottom left, change "profile based on 1000 rows" to "profile based on entire data set". The issue may be coming further in the file processing. Then filter on rows to show the problem records. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2

In PQ, bottom left, change "profile based on 1000 rows" to "profile based on entire data set". The issue may be coming further in the file processing. Then filter on rows to show the problem records. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Hi Matt

 

It is always the simple things!  Thanks so much - works perfectly.

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors