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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rufmau68
Helper III
Helper III

cumulative measure in sparkline

Hi

im new in pbi

 

i need to use sparkline in table .

 

i use this post https://community.powerbi.com/t5/Quick-Measures-Gallery/SVG-Sparklines-Line/td-p/486271

that works good but only with normally measure not in comulative measure...

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rufmau68 

It seems that show running total in sparkline is not supported in Power BI.

You can try to create a cumulative total measure and then use it to build a line chart.

I add a YearMonth column in your sample.

YearMonth = Foglio4[Anno]*100+Foglio4[Mese]

Measure:

Running Total = SUMX(FILTER(ALL(Foglio4),Foglio4[Codice WBS]=MAX(Foglio4[Codice WBS])&&Foglio4[YearMonth]<=MAX(Foglio4[YearMonth])),Foglio4[Rendicontato Consuntivo])

 1.png

Your demand is a good idea, while it is not supported to implement in Power BI currently.
You can vote up this idea for this function:Sparkline

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

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

3 REPLIES 3
amitchandak
Super User
Super User

@rufmau68 , is your cumulative measure working correctly ? Can you share formula .

 

Also check this, seem like a same approch - https://www.youtube.com/watch?v=xLD8HKwPWHE

 

Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Yes i use that tutorial to do it , but if U see, in the sparkline he dont shows a cumulated measure.

i have to shows a cumulated value to obtain a sparkline like this (the measure values allways goes up) 

rufmau68_0-1614941578755.png

 

here U download a data sample

https://drive.google.com/file/d/1xagsTWGBYt7SsHjQTcxUEeSBplcfcfUk/view?usp=sharing

 

 

 

 
 
 
Anonymous
Not applicable

Hi @rufmau68 

It seems that show running total in sparkline is not supported in Power BI.

You can try to create a cumulative total measure and then use it to build a line chart.

I add a YearMonth column in your sample.

YearMonth = Foglio4[Anno]*100+Foglio4[Mese]

Measure:

Running Total = SUMX(FILTER(ALL(Foglio4),Foglio4[Codice WBS]=MAX(Foglio4[Codice WBS])&&Foglio4[YearMonth]<=MAX(Foglio4[YearMonth])),Foglio4[Rendicontato Consuntivo])

 1.png

Your demand is a good idea, while it is not supported to implement in Power BI currently.
You can vote up this idea for this function:Sparkline

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors