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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Stack area chart with cumulative

Hi there,

 

Could any one help me understand where my mistake is and how to fix it? I'm trying to depicture how our team has been dealing with issues over time (number of issues created vs number of issues resolved). In order to do that, I'm using a stack area graph setted with the following fields:
X axis = [Data Criação Ref] it's the date when the issue was created
Legend = [Fechada] it's a boolean field indicating if the issue is closed (true) or is open (false)
Values = [Qtd Acumulada por data] this field calculates the cumulative number of issues (its formula is presented on the image bellow).

Stacked Area Graph with cumulative countStacked Area Graph with cumulative count


By checking the image above, you might see the problem. The "True" values is been calculated cumulative, but False  values are not. False values has been calculated only for some specific days and not cumulative. Could anyone help me out here?

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

By my test, you need to modify the measure. The following is my sample you reference.

 

I have two tables. The table of Date is a calendar table. And there is a many-to-one relationship between them.

Date = CALENDARAUTO()

0.png

Measure = var a = CALCULATE(SUM(Table1[column]),FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])))

var b = CALCULATETABLE(VALUES('Table1'[Date]),ALLSELECTED(Table1))

return

IF(MAX('Date'[Date]) in b,a,BLANK())

 

Note : You have to add the column of Date from the calendar table to Matrix, not the Date from others.

2.jpg

Best Regards,

Xue Ding

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

By my test, you need to modify the measure. The following is my sample you reference.

 

I have two tables. The table of Date is a calendar table. And there is a many-to-one relationship between them.

Date = CALENDARAUTO()

0.png

Measure = var a = CALCULATE(SUM(Table1[column]),FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])))

var b = CALCULATETABLE(VALUES('Table1'[Date]),ALLSELECTED(Table1))

return

IF(MAX('Date'[Date]) in b,a,BLANK())

 

Note : You have to add the column of Date from the calendar table to Matrix, not the Date from others.

2.jpg

Best Regards,

Xue Ding

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

thanks a lot for your help, @v-xuding-msft. It worked perfectly

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors