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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ivamuno
Regular Visitor

Join SQL Query + CSV doesnt work

Hi,

 

I am having the following problem and I dont know why it is failing... I dont know if it is a bug or it is because of permissions/privacy.

 

 I merge two queries, one from CSV and another one from SQL query, like this:

Merge.PNG

And the merge (left join) is done correctly as you can see below (it is Power Query Editor):

Merge2.PNG

Then, I try to show the data in any chart but column is always blank (it is Power BI Desktop (March 2018)). See data view:

Merge3.PNG

 

Do you know why?

 

P.S. For now "Private Levels: Always ignore."

Merge4.PNG

Thanks in advance.

1 ACCEPTED SOLUTION

Hi,

 

I found the error! It is because string comparision.

 

I dont know why PowerBI Editor applied lower case function to GUID to the first query. If you see the two first pictures the GUIDs are in lower case but in the third picture (PowerBI Desktop) it is in upper case.

 

I realized because PowerBI Editor start working well, it returned GUID in upper case for SQL query and lower case for excel query.

 

P.S. PowerBI needs GUID data type, XP. 

 

Thank guys for helping!

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

That's a very difficult problem to troubleshoot in a forum. Perhaps you could paste your query code from Advanced Editor?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

Sorry, I am very new in PowerBI, is it what you need?

 

let

   Source = Table.NestedJoin(SlowTrxsByDate,{"ProcessedTransactionGuid"},HSMSlow,{"TraceCorrelationKey"},"HSMSlow",JoinKind.LeftOuter),

   #"Expanded HSMSlow" = Table.ExpandTableColumn(Source, "HSMSlow", {"HSMTime"}, {"HSMSlow.HSMTime"})

in

   #"Expanded HSMSlow"

 

P.S. If I join two excels it works.

 

Thanks!

OK, that's very strange. On the odd chance that @ImkeF has seen something like this I will tag her but this really seems like something that you should post to the Issues forum here:

 

https://community.powerbi.com/t5/Issues/idb-p/Issues

 

Or if you have a Pro account...I would submit this as a support issue. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

I found the error! It is because string comparision.

 

I dont know why PowerBI Editor applied lower case function to GUID to the first query. If you see the two first pictures the GUIDs are in lower case but in the third picture (PowerBI Desktop) it is in upper case.

 

I realized because PowerBI Editor start working well, it returned GUID in upper case for SQL query and lower case for excel query.

 

P.S. PowerBI needs GUID data type, XP. 

 

Thank guys for helping!

That looks like a bug to me as well (just be aware that the sort order might have changed. So if there are empty values in it, the values you're looking for might be further down).

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.