This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I want to calculate the difference in % between two dated values, like in this example:
January 2016: 10
January 2017: 11
%diff: +10%
This is what i've managed to do until now:
Solved! Go to Solution.
Hi,
If I understand you correctly, you can use SAMEPERIODLASTYEAR().
Amount (same time last year)
= CALCULATE(
SUM(FactInternetSales[SalesAmount]),
SAMEPERIODLASTYEAR(OrderDate[FullDateAlternateKey]),
ALL(OrderDate)
)
For example, this should give you:
Order Date (Year) Sale Amount Calc Sale Amount Same Last Year
2016 10
2017 11 10
From there, you should be able to calculate %diff.
There's a good article about Time Intelligence function, including SAMEPERIODLASTYEAR() - http://radacad.com/secret-of-
time-intelligence-functions-in-power-bi
Hope this helps.
Hi @nzboan,
Have you tried the solution provided by @Anonymous above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?
If you still have any question on this issue, feel free to post here. ![]()
Regards
Hi,
If I understand you correctly, you can use SAMEPERIODLASTYEAR().
Amount (same time last year)
= CALCULATE(
SUM(FactInternetSales[SalesAmount]),
SAMEPERIODLASTYEAR(OrderDate[FullDateAlternateKey]),
ALL(OrderDate)
)
For example, this should give you:
Order Date (Year) Sale Amount Calc Sale Amount Same Last Year
2016 10
2017 11 10
From there, you should be able to calculate %diff.
There's a good article about Time Intelligence function, including SAMEPERIODLASTYEAR() - http://radacad.com/secret-of-
time-intelligence-functions-in-power-bi
Hope this helps.
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 |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |