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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to Fill Data for Missing Periods/ Transactions

Hi , I have taken the below data by applying Left Join from sql (Table A Left Join Table B on PeriodSNW vs PeriodECR). I am getting null values against period 202011 (Ref: Table A) for all columns , since there is no transaction done for that period. But i want data as highligted (Red text) against period 202011. I need the data in this format to create a Power BI chart , like CPLE vs CPActual@PlanRateECR , Period wise (X Axis). How to achieve it in Power BI or in SQL.

 

PeriodSNW(Table A) ProjectIDSNW (Table B)CYLESNW (Table B)PeriodECR (Table B)CPActual@PlanRateECR (Table B)CPLE (Table B)
202001 PRJ001124920428796.82020011730.7003691702.399733
202002 PRJ001124920428796.82020021092.6476371702.399733
202003 PRJ001124920428796.82020032123.6778491702.399733
202004 PRJ001124920428796.8202004792.6752421702.399733
202005 PRJ001124920428796.8202005467.76539831702.399733
202006 PRJ001124920428796.82020062395.1492891702.399733
202007 PRJ001124920428796.8202007571.27567211702.399733
202008 PRJ001124920428796.82020084500.9008161702.399733
202009 PRJ001124920428796.82020092359.9724071702.399733
202010 PRJ001124920428796.82020103212.3530261702.399733
202011 PRJ001124920428796.820201101702.399733
202012 PRJ001124920428796.82020122648.2125391702.399733
202101 PRJ001124920428796.8202101123.57557111702.399733
2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Do the join in Power Query and then replace null values with whatever you need.

View solution in original post

Anonymous
Not applicable

Hi @Anonymous,

So you mean you want to use the previous value to fill the following zero part in power bi?
If that is the case, you can use SQL connector with t-sql query to generate the corresponding table and replace the 0 part to null. Then you can use the 'fill down' feature to use the previous value to fill the blank records.

SQL Server connector 

How to Fill Down Blank or Null Cells in Power Query 
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

So you mean you want to use the previous value to fill the following zero part in power bi?
If that is the case, you can use SQL connector with t-sql query to generate the corresponding table and replace the 0 part to null. Then you can use the 'fill down' feature to use the previous value to fill the blank records.

SQL Server connector 

How to Fill Down Blank or Null Cells in Power Query 
Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

Do the join in Power Query and then replace null values with whatever you need.

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.

Top Solution Authors
Top Kudoed Authors