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
PowerFabian
Frequent Visitor

After Cross-join, expanding column filters my records

Hello,

 

i have a problem in Power BI Query editor. I cross-joined two tables (left-cross-join) and added the value of a parent table like that (see picture below). The column Dim_Customer is the joined table of the related data. By expanding the columns of it, all of my data is filtered for the null values in the column CustomerNo. I know that it can not find a value for it in the related table, but i want to keep my records that contains a null value and write  a null value in the expanded Column.

PowerFabian_0-1608217063549.png

 

How can I adjust the power query editor, so it doens't filter for the null values?

Hope someone can help me with that.

 

Regards,

Fabian

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @PowerFabian 

Are you sure that null value is being filtered out?  It's not just being pushed down the column by the expanding table(s)?

In the ReceiptNo column in Row 1, in yor image before the Tables are expanded the number is 332979, and after expansion the number is 332980.  How is that happening?  Same on Row 2, the ReceiptNo changes.

Before you expand the tables, add an Index column, then when you expand the tables that will give you a visual clue as to where the rows have shifted to.

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @PowerFabian 

Are you sure that null value is being filtered out?  It's not just being pushed down the column by the expanding table(s)?

In the ReceiptNo column in Row 1, in yor image before the Tables are expanded the number is 332979, and after expansion the number is 332980.  How is that happening?  Same on Row 2, the ReceiptNo changes.

Before you expand the tables, add an Index column, then when you expand the tables that will give you a visual clue as to where the rows have shifted to.

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi @PhilipTreacy,

 

i was quite sure about it, because i had a measure that counts the rows of blank CustomerNo's and an other measure giving me the percentage share of rows without a blank CustomerNo's. Especially the last one was 100% afterwards. 
But your tip with the index helped me indeed. After inserting the index column my records aren't filtered for blank customer no's. When deleting the step (inserting index) after i expanded the crossjoined column, my records are missing again. I really have no clue why this happens but I guess i just keep the index column now as it works this way.

 

Thank You very much.

 

Regards,

Fabian

 

AlB
Community Champion
Community Champion

Hi @PowerFabian 

Can you share the pbix? or the M code you are using and the original table you are processing?

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Hi,

 

sorry i cant share the pbix with you because it contains confidential data. But i tried to reproduce my issue with a test excel and it works fine at it. But doing the same with my original pbix still filters for the null values.

Here is what it looks like before:

PowerFabian_1-1608280849006.png

Than i Do my crossjoining and expanding like that in M Language:

PowerFabian_0-1608280778547.png

And this is my result: (After crossjoining, still looks fine)

PowerFabian_2-1608280976770.png

 and after expanding my null value is missing: (I have a measure that counts for the null values and it's blank afterwards as well.

PowerFabian_3-1608281128538.png

 

Hope you can help me like that aswell.

Thank you!

Regards,

Fabian

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.