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
jreade
Frequent Visitor

Get total up to and including currently selected date in slicer

I have a table with user registration dates. Each row in the table is the date the user registered. Counting all the rows in the table will give you all the users that registered. When I add a date slicer to this report I can get all the users that registered within a specified timeframe. Now what I am trying to get is the number of users that registered up to and including that last date in selected in the slicer.

 

For example:

 

Registered_on

2017-01-20

2017-01-21

2017-02-15

2017-03-16

 

If 2017-02 is selected the number of users registered in that month is 1 but the total number of users registered up to that point is 3. How do I get something to return 3?

 

I know I can get a total all time registered using ALL to get 4.

 

Thank you,

 

1 ACCEPTED SOLUTION
jreade
Frequent Visitor

I think I figured it out... I created the following measure:

 

Total Registered Users = CALCULATE(COUNTROWS(users_table),FILTER(ALL(users_table),users_table[user_registered]<=MAXX(users_table,users_table[user_registered])))

View solution in original post

2 REPLIES 2
jreade
Frequent Visitor

I think I figured it out... I created the following measure:

 

Total Registered Users = CALCULATE(COUNTROWS(users_table),FILTER(ALL(users_table),users_table[user_registered]<=MAXX(users_table,users_table[user_registered])))

jreade
Frequent Visitor

https://community.powerbi.com/t5/Desktop/Using-the-displayed-date-slicer-for-measure/td-p/119835

 

This posted helped me a lot. Took me a long time to find a post like this.

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
Top Kudoed Authors