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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Applicable88
Impactful Individual
Impactful Individual

Keeping the "nulls" after unpivot

Hello,

 

I have two tables which I want to make full outer join. 

One is Inbound the other is Outbound of the same orders. Since after inbound the orders are places in stock, and waiting for the time to be dispatch and got a record in the outbound table. 

Inbound:

Order Dateinbound
1 01.01.2021
2 01.01.2021
3 03.01.2021
4 04.01.2021
5 04.01.2021
6 01.01.2021

 

Outbound:

Order  Dateoutbound
1 30.01.2021
2 05.01.2021
3 17.01.2021
4 24.01.2021

5

 19.01.2021

6

 null

 

After the join:

 

Order DateinboundDateoutbound 
1 01.01.2021 30.01.2021
2 01.01.2021 05.01.2021
3 03.01.2021 17.01.2021
4 04.01.2021 24.01.2021
5 04.01.2021 19.01.2021
6 01.01.2021 null

After joining them I want to unpivot the Inbound and Outbound dates to bring them into a format that I can filter and count in the same columnn. But the problem for order no. 6 is that after unpivoting, it exist only for inbound but not for outbound. Is there a way to keep the Nulls? 

Order Date Type
1 01.01.2021 Dateinbound
2 01.01.2021 Dateinbound
3 03.01.2021 Dateinbound
4 04.01.2021 Dateinbound
5 04.01.2021 Dateinbound
6 01.01.2021 Dateinbound
1 30.01.2021 Dateoutbound
2 05.01.2021 Dateoutbound
3 17.01.2021 Dateoutbound
4 24.01.2021 Dateoutbound
5 19.01.2021 Dateoutbound
6 null Dateoutbound

 

Thank you very much in advance. 

Best. 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Applicable88 

Before doing the UnPiovt step, Use Replace Value to replace null with something else like zero or another value then it will stay, later you can do any operation with it

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@Applicable88 

Before doing the UnPiovt step, Use Replace Value to replace null with something else like zero or another value then it will stay, later you can do any operation with it

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.