Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |