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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
LSE95
Frequent Visitor

I think I have found a bug in the line chart in PowerBI Desktop.

I have a dataframe where each row corresponds to a customer joining or churning. The Balance (in german "Saldo") column showing either +1 or -1 corresponding to a customer joining or churning. I plot the sum of each as a line chart against the date. It looks like:

 

LSE95_0-1619783571643.png

 

The grey line gives the cumulative sum over all days. You can already see it in the plot, there is a dip in September. If I look in the underlying data everything works as expected till the 4th of September:

 

LSE95_2-1619783667196.png

Column 1 and 3 are churners on that day and 2 and 4 are joiners. The last column gives the sum. On the 4th of September then the dip comes:

 

LSE95_3-1619783720961.png

You can see the 81 there. WHAT? Why the hell is there an 81? There should be 2107 as in all other rows. Hmm.

 

Can someone help me?

 

1 ACCEPTED SOLUTION

Hi  @LSE95 ,

 

I see,thanks for your notification,btw,is your issue solved now?

If so,could you pls mark the reply as answered to close it?

 

Best Regards,
Kelly

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

View solution in original post

5 REPLIES 5
LSE95
Frequent Visitor

@Greg_Deckler 

 

The formula is:

 

Cumulative Balance =
CALCULATE(
SUM('Table'[Balance]),
FILTER(
ALLSELECTED('Table'[Date]),
ISONORAFTER('Table'[Date], MAX('Table'[Date]), DESC)
)
)

 

Where the column Balance contains the -1 and 1s.

Hi  @LSE95 ,

 

As tested here,the function works fine.

v-kelly-msft_1-1620092248428.png

 

Could you pls try below formula instead?

Cumulative Balance =
CALCULATE(
SUM('Table'[Balance]),
FILTER(
ALLSELECTED('Table'[Date]),
'Table'[Date]<=MAX('Table'[Date]))
)

If it still doesnt work,could you pls upload your .pbix file for test?Remember to remove the confidential information.

 

 

Best Regards,
Kelly

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

 

Hi @v-kelly-msft ,

 

it didn't solve my problem, but I know now what it was. In the Date column there can be NULL values sometimes if the employees in the Back Office don't write a receipt. If Date is null, but Balance is 1 or -1 this leads to problems. You have to be careful when there are Nulls.

 

Best regards,

Armin

Hi  @LSE95 ,

 

I see,thanks for your notification,btw,is your issue solved now?

If so,could you pls mark the reply as answered to close it?

 

Best Regards,
Kelly

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

Greg_Deckler
Community Champion
Community Champion

@LSE95 What is the formula you are using?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.