This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
morning all
believe it or not, i did not find the solution here...:)
i have a Clustered Column chart with values forlast 6 months , based on "SignatureDate". to get these values, I use a filter on SignatureDate for the last 6 months.
I created a measurement to get the same numbers last years
Solved! Go to Solution.
Hi @DavidM06 ,
Here I add a range [Date]<=_RANGESTART && [Date]>=_RANGEEND in my FILTER. So we don't need to use SAMEPERIODLASTYEAR in our code.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DavidM06 ,
Here I suggest you to try ALL() code to create a measure.
LY =
VAR _RANGESTART =
EOMONTH ( MAX ( CRM[DateSignature] ), -13 ) + 1
VAR _RANGEEND =
EOMONTH ( MAX ( CRM[DateSignature] ), -12 )
RETURN
CALCULATE (
SUM ( Haraka[TCV] ),
FILTER (
ALL ( CRM ),
CRM[DateSignature] >= _RANGESTART
&& CRM[DateSignature] <= _RANGEEND
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thanks, but where is the SAMEPERIODLASTYEAR parameter ?
Hi @DavidM06 ,
Here I add a range [Date]<=_RANGESTART && [Date]>=_RANGEEND in my FILTER. So we don't need to use SAMEPERIODLASTYEAR in our code.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 43 | |
| 41 | |
| 41 | |
| 21 | |
| 21 |