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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Relative Filter Help Please

Hi All,

 

I am trying to work out how, when i select a month filter (from a calendar table) to apply a filter (>90 days from the selected month) to a card.

 

So the >90 days always references the selected month filter...

 

thanking you in advance.

 

Regards,

Peter

 

 

 

3 REPLIES 3
TomMartens
Super User
Super User

Hey @Anonymous ,

 

I have to admit that I have my difficulties to understand what you are tring to achieve.

 

Nevertheless, may this is what you are looking for.

I assume that your calendar table is called Calendar.

measure = 
var maxdate = max('calendar'[date]) // this returns the max date in the context of the slicer
return
CALCULATE(
 <here comes the numeric expression>
, DATESBETWEEN('calendar'[date] , maxdate - 90 + 1 , maxdate)
)

Hopefully, this provides what your are looking for.

 

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi Tom and thank you for replying.

 

Let me attempted to explain in more detail-

 

When I select a month from the left side radio buttons, I require (for example) the top right card to only show data that is >90 days from the month selected

 

The visual filter I have displayed works when there is only one month of data, but now that I have two months it does not work as the visual filter (CORP_LASTLOGONTIME) is fixed...

 

Regards,

Peter

 

 
 
 

Capture.JPG

Hey @Anonymous ,

 

it's still not clear, what you want to achieve.

 

Please describe what has to happen when you select August 2020 from the leftmost slicer, what days have have to used to filter the measure(s) that you want to display on the card visuals.

 

It's also not clear what you mean by the "visual level filter is fixed".

Can you remove the visual level filter, and "just" rely on measure(s) that honor the month selection from the single-select slicer?

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors