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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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)))

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.