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
Milan14
Frequent Visitor

Filter by Customer Segment

Hi everyone,

 

I would like to calculate 

Q1. total count of visit;

Q2. total spend 

for each user on the last 3 months, last 6 months and last 9 months.

 

Filter created:

3 filters are required as per user requested.

Milan14_3-1678789325793.png

 

Formula applied for time period:

Last 3 months: EOMONTH(TodayDate, -3)

Last 6 months: EOMONTH(TodayDate, -6)

Last 9 months: EOMONTH(TodayDate, -9)

 

Date Outcome:

Last 3 months: From 1 December, 2022 until yesterday

Last 6 months: From 1 September, 2022 until yesterday

Last 9 months: From 1 June, 2022 until yesterday

 

Sample Data:

Milan14_7-1678790448905.png

 

Expected Outcome:

When user selected Time Period = "Last 3 Months" and Frequency = "2 to 4 times"

Milan14_8-1678790518164.png

 

When user further filter by selected Amount = "RM100 and below"

Milan14_9-1678790672165.png

 

Does anyone have any ideas what kind of formula I should apply?

 

Any help would be much appreciated.

 

Thanks in advance!

 

Kindly Regards,

Milan

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Milan14 ,

I have created a simple sample, please refer to my pbix file.

vpollymsft_0-1678934626040.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @Milan14 ,

I have created a simple sample, please refer to my pbix file.

vpollymsft_0-1678934626040.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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.

Top Solution Authors