• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Power Query Sort Returns Nulls

SHC

New Member
Hi,

I'm running a power query on a table of data. However, when I apply a sort, Power Query returns a table of Nulls. Any ideas why, please, and how to fix this?

My code is:
Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Opp_SF_Export"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Opportunity ID", type text}, {"Close Date", type datetime}, {"Account ID", type text}, {"Owner ID", type text}, {"Created Date", type datetime}, {"Name", type text}, {"Opportunity Type", type text}, {"Probability (%)", Int64.Type}, {"IsCreatedFromLead", type logical}}),
    #"Sorted Rows" = Table.Sort(#"Changed Type",{{"Created Date", Order.Ascending}, {"IsCreatedFromLead", Order.Descending}, {"Probability (%)", Order.Descending}})
in
    #"Sorted Rows"

Thanks.
 
Do you have Data Model and Load to Worksheet co-existing in same workbook? This can cause issue.

Can you upload sample data? It'll make it easier to trouble shoot your issue.
 
Back
Top