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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Youri98
Helper I
Helper I

DAX - cumulative % small difference. Rounding?

Hi!

I've got a simple DAX showing the % per month. Dividing the new products / total per month. The % for each month is correct. Now, I would like to show a line in my chart, showing the cumulative values, but this differences slightly. How do I fix this? If I select April it says 3,07%, but if I select January till May it jumps from 1,70% to 4,74% in April (3,04% difference). Is this because of rounding? 

 

Thanks in advance! 

 

Month% per monthNew per monthTotal per monthCumulative %
2025-january0,44%1738960,44%
2025-february0,54%2138920,98%
2025-march0,72%2838811,70%
2025-april3,07%12139414,74%
2025-may0,23%939414,97%
Total5,01%1963910,25,01%
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Youri98 The discrepancy you're seeing in the cumulative percentage values is likely due to the way cumulative percentages are calculated and possibly due to rounding differences

Calculate the cumulative total of new products:

DAX
CumulativeNewProducts =
CALCULATE(
SUM('Table'[New per month]),
FILTER(
ALLSELECTED('Table'),
'Table'[Month] <= MAX('Table'[Month])
)
)

 

Calculate the cumulative total of all products:

DAX
CumulativeTotalProducts =
CALCULATE(
SUM('Table'[Total per month]),
FILTER(
ALLSELECTED('Table'),
'Table'[Month] <= MAX('Table'[Month])
)
)

 

Calculate the cumulative percentage:

DAX
CumulativePercentage =
DIVIDE(
[CumulativeNewProducts],
[CumulativeTotalProducts],
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

5 REPLIES 5
v-hashadapu
Community Support
Community Support

Hi @Youri98 , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @Youri98 , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @Youri98 , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider marking the answers that helped 'Accept as Solution', so others with similar queries can find them easily. If not, please share the details.
Thank you.

Sahir_Maharaj
Super User
Super User

Hello @Youri98,

 

Can you please try this approach:

Cumulative % True = 
DIVIDE(
    CALCULATE(SUM('Table'[New per month]), FILTER(ALLSELECTED('Table'), 'Table'[Month] <= MAX('Table'[Month]))),
    CALCULATE(SUM('Table'[Total per month]), FILTER(ALLSELECTED('Table'), 'Table'[Month] <= MAX('Table'[Month])))
)

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ The Tech Journal Blog: https://sahirmaharaj.tech
➤ About: https://sahirmaharaj.com/about.html
➤ Email: [email protected]
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
bhanu_gautam
Super User
Super User

@Youri98 The discrepancy you're seeing in the cumulative percentage values is likely due to the way cumulative percentages are calculated and possibly due to rounding differences

Calculate the cumulative total of new products:

DAX
CumulativeNewProducts =
CALCULATE(
SUM('Table'[New per month]),
FILTER(
ALLSELECTED('Table'),
'Table'[Month] <= MAX('Table'[Month])
)
)

 

Calculate the cumulative total of all products:

DAX
CumulativeTotalProducts =
CALCULATE(
SUM('Table'[Total per month]),
FILTER(
ALLSELECTED('Table'),
'Table'[Month] <= MAX('Table'[Month])
)
)

 

Calculate the cumulative percentage:

DAX
CumulativePercentage =
DIVIDE(
[CumulativeNewProducts],
[CumulativeTotalProducts],
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.