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,
I'm trying to get the sum of my inventory based on the maximum week # from my slicer.
For example, in the below image:
The Measure I'm trying to make can be seen in the tool bar below as well.
The metric should report the inventory for only the 37th week, but I'm having a challenge with this one.
Thank you for any help.
Solved! Go to Solution.
Inventory=
VAR maxweek = MAX( Calendar[week] )
RETURN
CALCULATE(
SUM( Sales[Amount] ),
Calendar[week] = maxweek
)
Inventory=
VAR maxweek = MAX( Calendar[week] )
RETURN
CALCULATE(
SUM( Sales[Amount] ),
Calendar[week] = maxweek
)
Amazing, thank you!
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!