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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.