Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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
Thank you
Solved! Go to Solution.
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.
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 ||.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |