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

Fill in previous value if row value is not present in range (0:50)

Hello,

 

I don't know how to solve the following question. Maybe someone can help me. I have a dataset where I have the number of customers which joined per month and year (e.g. January 2018) and left x months later. 

Example dataset

 

Year_JoinedMonth_JoinedLeft_after_monthsAmount_of_customersStill_Left
20180102720
20180113718
20180134714

 

So you can see the "Left_after_months" = 2 is missing, but not for each month _joined+ year_joined combination. If this is the case there should be filled in a row with 0 churned customers

Year_JoinedMonth_JoinedLeft_after_monthsAmount_of_customersStill_left
20180120718

 

This should be done for all values of Left_after_months between 0 and 50 for each Year_Joined and Month_Joined combination.

 

I would use the information in a line chart. Currently it looks like this:

 

LSE95_1-1618479138883.png

 

 

So you can see one line chart per month in 2018, where each data point gives the number of customers which are still here after "Anzahl_Monate" (the amount of months). Unfortunately when no customer left in one specific month there is no row in the data.

You can see that at "Anzahl_Monate" = 0. Not every line has data there. How can I fill in rows per month and year if there is no row for example for "Anzahl_Monate" = 0?

 

I highly appreciate your answer and effort.

 

Best regards,

LSE95

 

1 ACCEPTED SOLUTION
LSE95
Frequent Visitor

I solved it by changing the underlying data in the SQL Server.

View solution in original post

2 REPLIES 2
LSE95
Frequent Visitor

I solved it by changing the underlying data in the SQL Server.

CTozzi
Resolver I
Resolver I

@LSE95 would you create a measure to calculate the total of customers on the last date of the month and use it for your visualization?

 

Balance of Customers :=
CALCULATE (
SUM ( TableName[StillLeft] ),
LASTDATE ( TableName[DateColumn] )

)

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.