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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create a table of future dates of coming 4 Monday from selected range of end date in the slicer

I have a date slicer where user has the option to select date range

RamyaSaiGMK_0-1687507471450.png

 

so end date would be may 8th 2023,Now i want the projection/future weeks [Only monday dates] for 4 weeks in a table visual w.r.t measure values.

eg:

Projection DatesValues
15-May-23208
22-May-23343
29-May-23some number
5-Jun-23some number


Please help on this.



1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You need to have a second date table in the model for the future dates. Then create the following measure as a flag to filter the dates from the second date table. 

Flag = 
VAR vDate = SELECTEDVALUE('DateTable'[Date])
RETURN
IF(WEEKDAY(vDate,2)=1 && vDate > MAX('Date'[Date]) && vDate < MAX('Date'[Date])+29 , 1, 0)

vjingzhang_0-1687832963975.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

You need to have a second date table in the model for the future dates. Then create the following measure as a flag to filter the dates from the second date table. 

Flag = 
VAR vDate = SELECTEDVALUE('DateTable'[Date])
RETURN
IF(WEEKDAY(vDate,2)=1 && vDate > MAX('Date'[Date]) && vDate < MAX('Date'[Date])+29 , 1, 0)

vjingzhang_0-1687832963975.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors