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
I am using the following code to return the value for the first year of the slicer. However, the value returns as the sum of all years. What am I doing wrong? Any help is appreciated!
BeginningValue =
VAR BeginningDate = CALCULATE(MIN('Calendar'[Year]), ALLSELECTED('Calendar'[Year]))
RETURN
CALCULATE(SUM(Data1[Total Revenue]), FILTER('Calendar', 'Calendar'[Date] = BeginningDate))
Cheers
Shashank
Solved! Go to Solution.
Hi, @sgupta22
You can try the following methods.
Sample data:
BeginningValue =
VAR BeginningDate = CALCULATE(MIN('Calendar'[Year]), ALLSELECTED('Calendar'[Year]))
RETURN
CALCULATE(SUM(Data1[Total Revenue]), FILTER('Data1', YEAR([Date]) = BeginningDate))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sgupta22
You can try the following methods.
Sample data:
BeginningValue =
VAR BeginningDate = CALCULATE(MIN('Calendar'[Year]), ALLSELECTED('Calendar'[Year]))
RETURN
CALCULATE(SUM(Data1[Total Revenue]), FILTER('Data1', YEAR([Date]) = BeginningDate))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sgupta22 ,
try to substitute
'Calendar'[Date] = BeginningDate) with
'Calendar'[Year] = BeginningDate)
Thanks for your reply Mangaus. Still doesn't work unfortunately.
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!