Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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 am trying to create a Line and Clustered Column Chart to represent actual and outstanding cumulative values (Line) and period values (Clustered Columns) for a dataset. The shared axis represents week ending date (Friday) and is intentionally set to Type = Continuous in the format tab even though my dataset does not have period values for every week ending data point. I have managed to complete most of what I need but am running into a few issues.
The cumulative outstanding line should start where the cumulative actual line ends however if there is a gap in the continuity of the dataset on the week ending where they should meet it is shown as a gap between the lines. Please see the table below for an example.
Week Ending | Actual Period | Actual Cumulative | Outstanding Period | Outstanding Cumulative | Actual Cumulative (Desired) | Outstanding Cumulative (Desired) |
18-Sep-20 | 8 | 8 | 8 | |||
25-Sep-20 | 2 | 10 | 10 | |||
02-Oct-20 | 10 | |||||
09-Oct-20 | 10 | |||||
16-Oct-20 | 10 | |||||
23-Oct-20 | 18 | 28 | 28 | |||
30-Oct-20 | 11 | 39 | 39 |
I have created a measure to calculate the week ending of the previous week Previous Week Ending =
The Actual Cumulative value needs to populate up to the Previous Week Ending date that is calculated in the measure ignoring the fact that there are blank period values. The Outstanding Cumulative needs to begin the week following the Previous Week Ending measure.
The measures for Actual and Outstanding Cumulative are as follows:
@COBRIEN , Try like
Actual Cumulative =
IF(max(Table[Week Ending])>=today(),BLANK(),
CALCULATE(SUM(Table[Actual Period]),
FILTER(
ALLSELECTED(Table[Week Ending]),
ISONORAFTER(Table[Week Ending],MAX(Table[Week Ending]),DESC)
)
))
Outstanding Cumulative =
IF(max(Table[Week Ending])<=today(),BLANK(),
CALCULATE(
SUM(Table[Outstanding Period])+SUM(Table[Actual Period]),
FILTER(
ALLSELECTED(Table[Week Ending]),
ISONORAFTER(Table[Week Ending], MAX(Table[Week Ending]), DESC)
)
))
Thanks for the reply, unfortunately this did not seem to solve my problem.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
15 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |