Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I want to calculate the % Chnage of Revenue from the past 3 months vs the 3 months prior. I need to formula to be dynamic as the year goes on and more data is added.
Below is what I used to calculate the revenue for the last 3 months, but calculting it for 3 months prior is what I'm having issues with.
Solved! Go to Solution.
Hi @negbc
You can try the following measure
Measure =
VAR a =
CALCULATE (
MIN ( 'Date Table'[Date] ),
DATESINPERIOD (
'Date Table'[Date],
CALCULATE ( MAX ( Transactions[Invoiced] ), ALL () ),
-3,
MONTH
)
)
RETURN
CALCULATE (
SUM ( Transactions[Revenue] ),
DATESINPERIOD ( 'Date Table'[Date], a, -3, MONTH )
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @negbc
You can try the following measure
Measure =
VAR a =
CALCULATE (
MIN ( 'Date Table'[Date] ),
DATESINPERIOD (
'Date Table'[Date],
CALCULATE ( MAX ( Transactions[Invoiced] ), ALL () ),
-3,
MONTH
)
)
RETURN
CALCULATE (
SUM ( Transactions[Revenue] ),
DATESINPERIOD ( 'Date Table'[Date], a, -3, MONTH )
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |