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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
FredBus
Frequent Visitor

Filter quantities by calendar weeks using a slicer

Hi @ all,
I need some help to create a measure or calculated column. I want to filter quantities by calendar weeks using a slicer.

Given data model: Dimension table "Date," fact table "Sales Line," and dimension table "Item." Relationships: "Date"[Date] 1 to N "Sales Line"[Date], and "Item" table[Nr] 1 to N "Sales Line"[Nr].

In the "Item" table, the order quantity from the "Sales Line" is aggregated. The order quantity should be filterable using a visual date filter. How can I achieve this?

 

 

 
can anyone help? 

4 REPLIES 4
some_bih
Super User
Super User

Hi @FredBus share more details about your model / file with example of outuput for given input.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi @some_bih Sorry for my late reply. In the meantime, I have posted a new question in a similar context. Maybe you can help with that?https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-production-Bom-table-to-... 

FredBus
Frequent Visitor

Hi @some_bih Thank you for your response. My date table is quite extensive. Each individual date is assigned to a calendar week.

some_bih
Super User
Super User

Hi @FredBus I understand you do not have Date table with week columns. On link below you can find details about WEEKNUM function to retreive number from Date column. Connect, if not already your Date table with fact and than use slicer. Hope this help

https://learn.microsoft.com/en-us/dax/weeknum-function-dax 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.