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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
joshua1990
Post Prodigy
Post Prodigy

Incremental Refresh with Year-Week Column

Hi all!

I have a impala datasource with a huge table that just contains a date column for year-week 'YYYY-WW'.

Is there any chance to implement an incremental refresh in here?

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @joshua1990 ,

Is your problem solved? If so, would you mind accept the helpful reply as solution? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

 

Best Regards,
Community Support Team _ kalyj

mahoneypat
Microsoft Employee
Microsoft Employee

If your YW column had YYYYWW and was an integer, you could just follow the approach shown in this video.

Incremental Refresh with Integers in Power BI - YouTube

 

Since it is a text format, a different approach is needed (same basic steps as in video, but different logic). You can use a query like this, which still folds back to your database (at least it did with SQL Server). You need to create the RangeStart and RangeEnd paramaters with DateTime type first and the YYYYMM_List step generates a distinct list of the YearMonths (use same approach for YearWeeks), and then List.Contains in the filter will fold back to your source to only incrementally load the proper YearWeek rows.

 

mahoneypat_0-1660523439439.png

let
    Source = Sql.Database("localhost", "Sandbox"),
    dbo_Dates =
        Source{[
            Schema = "dbo",
            Item = "Dates"
        ]}
            [Data],
    YYYYMM_List =
        List.Distinct(
            List.Transform(
                List.Dates(
                    Date.From(RangeStart),
                    Duration.TotalDays(
                        Date.From(RangeEnd)
                        - Date.From(RangeStart)
                    )
                    + 1,
                    #duration(1, 0, 0, 0)
                ),
                each Date.ToText(_, "yyyy-MM")
            )
        ),
    Custom1 = dbo_Dates,
    #"Filtered Rows" =
        Table.SelectRows(
            Custom1,
            each List.Contains(YYYYMM_List, [YM])
        )
in
    #"Filtered Rows"
 
Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors