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! Learn more

Reply
DanJBay1978
Frequent Visitor

Calculate week count based on slicer selection

Hi,

 

Can anyone help with and problem I am facing.

 

I have dimdate table which feeds a slicer allowing the end user to select fiscal year e.g

 

FY2017

FY2018

 

What I need is -  if the end user selects  FY2017 I need a count of all weeks between Apr 01 2017 and Todays date e.g. 77 week

 

If the end user selects FY2018 I need the count of weeks to be 24 etc.....

 

The Dimdate relevant fields I use are below for reference,

 

DateFiscalWeekOfYearFiscalYearFull
01/04/201812018/2019
02/04/201812018/2019
03/04/201812018/2019
04/04/201812018/2019
05/04/201812018/2019
06/04/201812018/2019
07/04/201812018/2019
08/04/201822018/2019
09/04/201822018/2019
10/04/201822018/2019
11/04/201822018/2019
12/04/201822018/2019
13/04/201822018/2019
14/04/201822018/2019

 

All Help would be greatly appreciated.

 

Thanks

Dan

 

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @DanJBay1978,

From your description, I could not understand where could you set the slicer, I could not find any data in your table with the slicers and I also want to know how to calculate the data in this sentence "If the end user selects FY2018 I need the count of weeks to be 24" , could you please offer me more detailed information?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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