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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
joost_w
Regular Visitor

Dynamic dimension filtering based on date slicer

I have an issue with a filter I need to implement in a Power BI dashboard in a real estate environment The Power BI Dashboard is connected to Azure Analysis Services in Live Connection Mode, therefore the model and measures are in AAS.

 

The so called 'In Standing' filter must be a slicer or bookmarkfilter that filters the Rental objects that are in exploitation at the start of a selected time period (selected using a date slicer).

Whether a rental object is in standing is determined by its 1st contract date which is a column in the DimVastgoedobject (the rental object. 

The in standing filter must filter a matrix that has the number of Rental objects, Hire Rate, Abandon Rate sliced over dimRegion, dimComplex. This I managed to implement using a filter measure:  

InstandingFilter :=

    VAR EersteVerhuurdatum = MIN(dimVastgoedObject[dimVastgoedobjectEersteContractdatum])

    VAR BegindatumPeriode = CALCULATE (
                                                                     MIN(dimDate[DateDate]);
                                                                     VALUES(dimDate[DateDate])
                                                                     )
    RETURN
        IF( EersteVerhuurdatum <= BegindatumPeriode;
             1;0
            )

 

However if I want to do a trend analysis over time in a linechart then filtering using Instandingfilter = 1 doesn't work. 

Any ideas how to make this work?

 

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.