Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Create a cumulative bar chart seeing value at each occurence

Hello everyone,

 

I'm trying to build a cumulative bar chart, showing the value at each occurence, I think it is not very clear so this a basical example

 

Shop A01/01/202310
Shop B12/01/20238
Shop A15/01/20235
Shop B20/01/20237
Shop A25/01/202310
Shop C30/01/20235
Shop A05/02/20233

 

So, my table , should returns the following information

Shop A01/01/202310
Shop B01/01/20230
Shop C01/01/20230
Shop A12/01/202310
Shop B12/01/20238
Shop C12/01/20230
Shop A15/01/202315
Shop B15/01/20238
Shop C15/01/20230
Shop A20/01/202315
Shop B20/01/202315
Shop C20/01/20230
Shop A25/01/202325
Shop B25/01/202315
Shop C25/01/20230
Shop A30/01/202325
Shop B30/01/202315
Shop C30/01/20235
Shop A05/02/202328
Shop B05/02/202315
Shop C05/02/20235

 

Any idea of how could I achieve that ?
Thank you for your help 🙂 

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Anonymous - First let's create a cumulative measure values as below

Cumulative Value =
CALCULATE(
SUM('Sales'[Value]),
FILTER(
ALLSELECTED('Calendar'),
'Calendar'[Date] <= MAX('Calendar'[Date])
)
)

 

for missing date another measure 

Fill Missing Dates =
VAR SelectedShop = MAX('Sales'[Shop])
RETURN
IF(
ISBLANK([Cumulative Value]),
CALCULATE(
MAX([Cumulative Value]),
FILTER(
ALL('Calendar'),
'Calendar'[Date] <= MAX('Calendar'[Date]) &&
'Sales'[Shop] = SelectedShop
)
),
[Cumulative Value]
)

 

Add this measure in your visual (Table or matrix) and check 

 

Hope it works





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Thank you for your help
I tested it with a simple dataset, but it is not working
There is no difference between the two measures

Testy_0-1723187923150.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.