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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
jackj
Helper I
Helper I

Customer LTV

I am struggling with this and could use some help in solving the below problem:

 

I am looking to create a calculated column that totals the cumulative lifetime sales associated with each customer ID, and allows for me to use that total in other visuals.  For example, if I want to see the group of customer IDs who visited during last month, I would be able to filter down the visual to those IDs who appeared last month, and show me those individuals' cumulative total sales (not for the month, but for their entire lifetime).   I do not want any external filter to adjust the value of their total lifetime sales. I basically want this value to stick with the customer ID in any other table, matrix, etc. that I run.  Any help would be appreciated.  Thanks!!

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @jackj ,

If you want the table measure do not affect by the slicer, you can use 'Edit Interaction' to disable the interaction between the table and the slicer.

interaction.png

 

Best Regards,
Community Support Team _ Yingjie Li
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

@jackj , With help from Date table try measure like

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('date'),'date'[date] <=max('date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=maxx(date,dateadd(date[date]),-1,Month)))

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

Thank you!  My only issue is that I would like it to always ignore any other filters being applied.  So, for example, if I have a table showing User ID's that were here at any given point in time, I want it to always show their total Cumm Sales regardless of the time period selected in the filter.  Does that make sense?

 

If I place the following table visuals I get different results:

 

If I filter the table by date = last 1 calendar weekIf I filter the table by date = last 1 calendar weekIf I remove the filter.  This shows the true lifetime sales.  This is the value I always want to see associated with UserID 379449 in any filter context.If I remove the filter. This shows the true lifetime sales. This is the value I always want to see associated with UserID 379449 in any filter context.

 

In the first screen capture, I am filtering dates by the last calendar week to see users who placed an order in that week.  In the second screen capture, I removed the filter.  Essentially, when I see a list of users who placed orders in the last week, I want to always see their total Cumm Sales - in the case of UserID 379449, it should always be $494.00, regardless of filter context.

 

Thank you again for the quick reply!

v-yingjl
Community Support
Community Support

Hi @jackj ,

If you want the table measure do not affect by the slicer, you can use 'Edit Interaction' to disable the interaction between the table and the slicer.

interaction.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.