Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everyone,
I would like to calculate
Q1. how many user been visit the store for {2-4 times, 5-7 times, 8 times and above};
Q2. how many user been spend for {RM100 and below, RM101-RM300, RM301 and above};
on the last 3 months, last 6 months and last 9 months.
Variable created:
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:
Expected Outcome:
Does anyone have any ideas what kind of formula I should apply?
Any help would be much appreciated.
Thanks in advance!
Kindly Regards,
Milan
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
All measures are in the attached pbix file.
Hi,
Please check the below picture and the attached pbix file.
I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
All measures are in the attached pbix file.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
8 |