Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I want to be able to dynamically display the sum of [Sales Amount] for each week of the current selected month.
For example, if I have 10/20/2021 selected then I want all the sums of each week ending for October.
EX: Week ending: 10/24, 10/17, 10/10, 10/3.
Solved! Go to Solution.
Hi @DSwezey ,
Assuming that your date slicer is using calendar[date], that your calendar is related to your fact table, and that you have a [week ending] field in your calendar table to be used in the visual, you could manage this by removing context filters from within the measure.
Something like this should work:
_monthSales =
VAR __cDate =
MAX(calendar[date])
RETURN
CALCULATE(
SUM(factTable[Sales Amount]),
FILTER(
ALL(calendar),
MONTH(__cDate) = MONTH(calendar[week ending])
)
)
This gives me the following ouput:
Pete
Proud to be a Datanaut!
Hi @DSwezey ,
Assuming that your date slicer is using calendar[date], that your calendar is related to your fact table, and that you have a [week ending] field in your calendar table to be used in the visual, you could manage this by removing context filters from within the measure.
Something like this should work:
_monthSales =
VAR __cDate =
MAX(calendar[date])
RETURN
CALCULATE(
SUM(factTable[Sales Amount]),
FILTER(
ALL(calendar),
MONTH(__cDate) = MONTH(calendar[week ending])
)
)
This gives me the following ouput:
Pete
Hi @DSwezey ,
Assuming that your date slicer is using calendar[date], that your calendar is related to your fact table, and that you have a [week ending] field in your calendar table to be used in the visual, you could manage this by removing context filters from within the measure.
Something like this should work:
_monthSales =
VAR __cDate =
MAX(calendar[date])
RETURN
CALCULATE(
SUM(factTable[Sales Amount]),
FILTER(
ALL(calendar),
MONTH(__cDate) = MONTH(calendar[week ending])
)
)
This gives me the following ouput:
Pete
Proud to be a Datanaut!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 7 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 15 | |
| 13 | |
| 12 | |
| 9 |