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

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.

Reply
sloeppky_pdga
Regular Visitor

Calculating records between 2 dates while allowing slicers

I'm working on a membership dashboard where I have a date dimension table, a member dimension table and a membership transaction table. The membership transactions have a start and end date field based on the amount of time the member subscribed for. I've been able to accurately calculate a measure which shows a running total of how many active memberships there are however, in so doing, it seems like my slicers no longer work. I've been able to program in a parameter for one dimension I want to filter on but I don't really want to be building out parameters for each dimension I want to filter on.

 

Is there a better way I can calculate this which will still allow me to use slicers?

This is my current DAX measure, the purple is the component I added to allow for reporting on gender, however, using this method means stacked bar/area charts don't work as expected.

Active Membership = CALCULATE(
    DISTINCTCOUNT('DIM Member'[MemberNum]),
    FILTER(
        ALL('FACT Member Transaction'),
        'FACT Member Transaction'[EffectiveDate] <= MAX('Date'[DATE])
        && 'FACT Member Transaction'[ExpirationDate] > MIN('Date'[DATE])
    )
,'DIM Member'[Gender] = SELECTEDVALUE('_Parameter Gender'[_Parameter Gender Fields])
)
1 ACCEPTED SOLUTION
sloeppky_pdga
Regular Visitor

For those that may stumble upon this in the future, the answer is quite simple, added all('Date') instead of all('FACT Member Transaction')

View solution in original post

1 REPLY 1
sloeppky_pdga
Regular Visitor

For those that may stumble upon this in the future, the answer is quite simple, added all('Date') instead of all('FACT Member Transaction')

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.