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
Mikael_B
New Member

Dynamic customer segment size with x-y days since last purchase

Hi.
I need aid with how to create dynamic timeseries analysis of segment size with days since last purchase rule.

End goal is to see size of customer segments with x-y amount of days since their last purchase on timeseries visual (picture below).
Note 1: If user changes max(date) on date slicer, measure should take this in to account.
Note 2 optional: There is going to be multiple segments with different "days since.." filters

Mikael_B_0-1667976223964.png


Data model:

Mikael_B_1-1667977346076.png

Due circumstances I can not share pbix.

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Mikael_B 

Based on your description in CASE, it seems that you want to dynamically filter and slice the number of columns and the size of the displayed columns in the line chart in your report based on your date slicer selection? If this is the case, you can do it with Power BI's default visual interaction turned on;

Change how visuals interact in a report - Power BI | Microsoft Learn

 

For your needs, if your y-axis only shows the values in the corresponding table, you don't need to write measures.

If you want to express something that is not what you mean or you have other concerns, you need to provide some sample data in text format if it is convenient for you, and paste your expected output in the figure or table to reply in the case, which will help us understand your meaning and find a solution to your problem! Thank you for your support and understanding!

 

Best Regards,

Aniya Zhang

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.