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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi everyone,
I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016).
I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice on the same formula.
Thank you 🙂
Solved! Go to Solution.
@Thomas897 wrote:
Hi everyone,
I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016).
I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice on the same formula.
Thank you 🙂
You can try to create a measure as
Measure =
(
SUM ( Table1[expense] )
- CALCULATE ( SUM ( Table1[expense] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)
/ (
SUM ( Table1[volume] )
- CALCULATE ( SUM ( Table1[volume] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)
@Thomas897 wrote:
Hi everyone,
I'd llike to calculate : (expense 2017 - expense 2016) x (volume 2017 - volume 2016).
I have a problem because of the sameperiodlastyear filter, it is not possible to use it twice on the same formula.
Thank you 🙂
You can try to create a measure as
Measure =
(
SUM ( Table1[expense] )
- CALCULATE ( SUM ( Table1[expense] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)
/ (
SUM ( Table1[volume] )
- CALCULATE ( SUM ( Table1[volume] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) )
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |