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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have data with registrations for the past two years, each registration is attached to a group and I've created a matrix with how many registrations each group has.
I want to next create a matrix with each column showing registrations by group in X days, 30, 60, 90, 6 months, etc. I know I can do a dynamic filter but that effects the entire table.
I've tried creating measures for each column but the DAX expressions aren't returning what I want it to. For example, when I try DATEINPERIOD I get an error because there are date repeats. I've tried a few others to filter but it doesn't seem to work.
For example:
Measure 2 = CALCULATE(COUNT('Schools over 5registrations'[email]),DATESINPERIOD('Schools over 5 registrations'[created_at],TODAY(),-1,MONTH))
Any ideas for a DAX expression to do dynamic filtering for each column?
Solved! Go to Solution.
@dinoscool3 , You should use date table for time intelligence
Measure 2 = CALCULATE(COUNT('Schools over 5registrations'[email]),DATESINPERIOD('SDate'[Date],TODAY(),-1,MONTH))
before joining make sure created_at do not have timestamp , other wise create a date first
example
Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
@dinoscool3 , You should use date table for time intelligence
Measure 2 = CALCULATE(COUNT('Schools over 5registrations'[email]),DATESINPERIOD('SDate'[Date],TODAY(),-1,MONTH))
before joining make sure created_at do not have timestamp , other wise create a date first
example
Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |