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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

How do I get PowerBI to autocomplete empty time ranges from a dataset, in a visual.

I have a table called DWH_EVENT_CHANGES with basically saves records every time that occurs idEvents Status changes (idEvent status can be: 'ONLINE' , 'ARCHIVED' or 'UNAVAILABLE').  This table works in the following way: Lets take as example idEvent 10002. We want to analyze the evolution of the Status of this idEvent after 2023. As we see in the picture attached below, this idEvent in the 2023-01-17 its Status was UNAVAILABLE then it was maintained  3 days with the same status (Due to the fact that it manteined the SAME Status, we dont save those records on those days, so to save database resources) and the 2023-01-20 turned to ONLINE status. What I need to achieve in PowerBi is being able to display in a Line Chart and a Table this data "virtually autocompleted". What I mean by "virtually autocompleted" is that I need PowerBi to understand that between those 2 dates, there are 3 days in the middle were the idEvent had the same status and the visuals have to show this. Because of performance and server capacity, I dont have the possibility to save for every day and for every idEvent every record, and I can only save the dates where there was changes applied.

GuidoBaggi_0-1677842543080.png

How its currently displaid in PowerBI : 

GuidoBaggi_2-1677843237170.png

How I need it to be displayed: (in yellow the rows that should be added by PowerBI)

GuidoBaggi_3-1677843302487.png

 

 

 

 

 

2 REPLIES 2
andhiii079845
Solution Sage
Solution Sage

Both tables Status and date:

andhiii079845_0-1677845852442.png

andhiii079845_2-1677845908241.png

My new table:

newtable = SUMMARIZE('Date','Date'[Date],"laststatusdate",maxx(FILTER('Status','Status'[Date]<='Date'[Date]),'Status'[Date]))

 

And create a new column:

Column = CALCULATE(max('Status'[Status]),FILTER('Status','newtable'[laststatusdate]='Status'[Date]))
 
andhiii079845_3-1677845988267.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




andhiii079845
Solution Sage
Solution Sage

You need a second table with all dates and you have to fill a second column with the right status information from the first table. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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