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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Date Parameters for Filtering and DAX formula

Hi, I am trying to create a report that shows how many users carried out more than X number of "actions" per month over a particular time period. For example, X% of users used the app 5x per month during the reporting period, Y% of users used the app 10x per month during the reporting period. For this I need:

 

- Report date start and end parameter

- Reporting period duration in month DAX formula (end - start) in months. This seems easy.

- Compute aggregate per month activity per user. Also seems easy.

 

The problem is that there is no date parameter support from what I can see. Any advice on how to go about this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1707272680195.png

vtianyichmsft_1-1707272689310.png

Count = var _date1 = MIN('Table 2'[Date])
var _date2 = MAX('Table 2'[Date])
RETURN COUNTAX(FILTER('Table',[Date]>=_date1&&[Date]<=_date2),[ID])

Table 2 = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Also this format is for visual:

vtianyichmsft_2-1707272768712.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1707272680195.png

vtianyichmsft_1-1707272689310.png

Count = var _date1 = MIN('Table 2'[Date])
var _date2 = MAX('Table 2'[Date])
RETURN COUNTAX(FILTER('Table',[Date]>=_date1&&[Date]<=_date2),[ID])

Table 2 = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Also this format is for visual:

vtianyichmsft_2-1707272768712.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

 I should also note that I don't think that tooltip is correct. 

 

Screenshot 2024-02-06 163241.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors