March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear Tutors,
I am trying to sum all values up to last year yesterday ( 1/1/2016 ~ 4/2/2016) (when today is 4/3/2017)
For example
I hope PY Calc stops at 21,455, which is April 2nd value. So, I want 21,455 at April 5th as well.
My equation is
CY Calc = CALCULATE(SUM(Table[Sales], DATESYTD('Date'[Date]))/1000
PY Calc = CALCULATE([CY calc], SAMEPERIODLASTYEAR('Date'[Date].[date]))
Thanks in advance
Best Regards,
Jiin Son
Hi @jiinson,
>>I hope PY Calc stops at 21,455, which is April 2nd value. So, I want 21,455 at April 5th as well.
You can add filter to the calculate formula to limit the calculation range or directly add a date filter at visual level filter.
Regards,
Xiaoxin Sheng
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |