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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
i have a date field and i need to analyze the data by aging slots like:
1- from 1 to 3 months.
2- from 3 to 6 months
3- from 6 to 12 months.
4- Greater than 12 months.
I know i can use group to perform that, but i need to use formula to get updated automatically.
Your support is highly appreciated.
Thank you,
Mohamed Samir.
Solved! Go to Solution.
hello please use this
Group =
SWITCH(
TRUE(),
'Table'[Date] <= TODAY() && 'Table'[Date] >= EDATE(TODAY(),-3), "1 to 3 Months",
'Table'[Date] <= EDATE(TODAY(),-3) && 'Table'[Date] >= EDATE(TODAY(),-6), "3 to 6 Months",
'Table'[Date] <= EDATE(TODAY(),-6) && 'Table'[Date] >= EDATE(TODAY(),-12), "6 to 12 Months",
'Table'[Date] < EDATE(TODAY(),-12) , "Greater than 12 Months"
)
hello please use this
Group =
SWITCH(
TRUE(),
'Table'[Date] <= TODAY() && 'Table'[Date] >= EDATE(TODAY(),-3), "1 to 3 Months",
'Table'[Date] <= EDATE(TODAY(),-3) && 'Table'[Date] >= EDATE(TODAY(),-6), "3 to 6 Months",
'Table'[Date] <= EDATE(TODAY(),-6) && 'Table'[Date] >= EDATE(TODAY(),-12), "6 to 12 Months",
'Table'[Date] < EDATE(TODAY(),-12) , "Greater than 12 Months"
)
Thank you very much, it is working with me.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |