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
AllanBerces
Post Prodigy
Post Prodigy

Dynamic Date pass 2 weeks and advance 2 weeks

Hi good day can anyone help me on how can i make my date on my column chart be dynamic from pass 2 weeks and advance two weeks (for lookahead plan). I have two table Plan and Actual and both are connected to my calendar table, something like this

AllanBerces_0-1753776724450.png

AllanBerces_1-1753776770271.png

Thank you

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Add a column to your calendar table which you can then use as a filter on the column chart.

You could create the column in SQL, Power Query or DAX. Sample DAX might be

Within 4 week window =
'Calendar'[Date]
    >= TODAY () - 14
    && 'Calendar'[Date]
        <= TODAY () + 14

You can make the logic as simple or complex as you need to, perhaps working with week starting and ending dates.

Add the new column as a filter on your chart to only show when the column is true.

View solution in original post

4 REPLIES 4
johnt75
Super User
Super User

Add a column to your calendar table which you can then use as a filter on the column chart.

You could create the column in SQL, Power Query or DAX. Sample DAX might be

Within 4 week window =
'Calendar'[Date]
    >= TODAY () - 14
    && 'Calendar'[Date]
        <= TODAY () + 14

You can make the logic as simple or complex as you need to, perhaps working with week starting and ending dates.

Add the new column as a filter on your chart to only show when the column is true.

Hi @johnt75 thank you for the reply, but when I try the DAX its show all True on my calendar table, even 2023

I made a silly mistake, it was an or condition not an and condition. I've edited my original post to use && instead of ||.

Hi @johnt75 thank you very much, now working perfectly.

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.