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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
FidelC
Frequent Visitor

Problem plotting accumulative count

I am trying to plot an accumulative count. When one value is missing in the X-axis, it is replaced by the total value of the counting. I have been trying to fix this setting the VALUES() parameter. But when I do that I can not use the filters with more than one column. Is there something wrong in the following code?

N_acum= CALCULATE(sum(data[NumBills]);filter(ALLSELECTED(Data);data[MDays] >= max(data[MDays])))

 

preguntaPOWERBI.PNG

 

N_acum= CALCULATE(sum(data[NumBills]);filter(ALLSELECTED(Data);data[MDays] >= max(data[MDays])); VALUES(data[ID]))

 

preguntaPOWERBI2.PNG

 

 

the structure of the data base is like that:

 

preguntaPOWERBI_estructura.PNGpreguntaPOWERBI_datos.PNG

 

 

thank you in advance

1 ACCEPTED SOLUTION

@FidelC

 

I selected Mdays for Axis and N_acum for Line chart as below. Is it same as your chart?

BTW, what do you mean “one value is missing in the X-axis”?

Problem plotting accumulative count_1.jpg

 

Best Regards,

Herbert

View solution in original post

4 REPLIES 4
v-haibl-msft
Microsoft Employee
Microsoft Employee

@FidelC

 

Could you please provide your table structure and which columns/measures do you select in the visual chart?

I try to repro your problem according to your measure formula but have no success.

 

Best Regards,

Herbert

hi Herbert, I've already changed the original message.

 

thank you for your help

@FidelC

 

I selected Mdays for Axis and N_acum for Line chart as below. Is it same as your chart?

BTW, what do you mean “one value is missing in the X-axis”?

Problem plotting accumulative count_1.jpg

 

Best Regards,

Herbert

It work, I didnt't understand correctly the values parameter, sorry...

 

Thank you for your help

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.