- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Show YOY Cumulative values on line chart
I have a line chart that shows cumulative number of leads received vs target leads. Nothing fancy.
I wish to add a third line to show the Previous Year cumulative leads received.
The cumulative measure is calculated as follows:
CumLeadsActual = CALCULATE(SUM('Leads'[Leads Actual]),FILTER(ALLSELECTED('Leads'),'Leads'[Month]<=MAX('Leads'[Month])&&'Leads'[IsCurrentMonth]="Past Month"))
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @vicsinc ,
You can try below formula to create measures:
LYCumLeads =
VAR CurrentMonth = MAX('Leads'[Month])
RETURN
CALCULATE(
[CumLeadsActual],
FILTER(
ALLSELECTED('Leads'),
'Leads'[Month] <= EOMONTH(CurrentMonth, -12)
)
)
CumLeadsActual =
CALCULATE(
SUM('Leads'[Leads Actual]),
FILTER(
ALLSELECTED('Leads'),
'Leads'[Month] <= MAX('Leads'[Month]) && 'Leads'[IsCurrentMonth] = "Past Month"
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @vicsinc ,
You can try below formula to create measures:
LYCumLeads =
VAR CurrentMonth = MAX('Leads'[Month])
RETURN
CALCULATE(
[CumLeadsActual],
FILTER(
ALLSELECTED('Leads'),
'Leads'[Month] <= EOMONTH(CurrentMonth, -12)
)
)
CumLeadsActual =
CALCULATE(
SUM('Leads'[Leads Actual]),
FILTER(
ALLSELECTED('Leads'),
'Leads'[Month] <= MAX('Leads'[Month]) && 'Leads'[IsCurrentMonth] = "Past Month"
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
11-16-2024 01:05 AM | |||
08-21-2024 01:05 AM | |||
07-30-2024 12:17 PM | |||
07-18-2023 04:27 AM | |||
07-31-2024 03:01 PM |
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |