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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.