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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AlxFelipe
New Member

Measure as filter

Hello, i want use two measure as interval to filter another visual. First measure return the initial date, and the another, a final date.
These measures comes from the first and the last monitoring date, using segmentation filter on page for select the local. Diferent locals, diferents results.

AlxFelipe_0-1683029644000.png

 

It shows all the dates when it rained, must show the dates where rained between first and last monitoring. Like this:

AlxFelipe_1-1683030008578.png

 

At the side bar Filters, i can't use measure as filters.

I tried create another table using this DAX:

 

 

 

 

IntervaloChuvaFen = 
FILTER('pluviometer_monitoring_list',
    'pluviometer_monitoring_list'[Date_short] >= [Min Fen] &&
    'pluviometer_monitoring_list'[Date_short] <= [Max Fen]
)

 

 

 

 

 But goes wrong and do not showed the correct interval. Any idea?

2 REPLIES 2
johnt75
Super User
Super User

Create a new measure like

Date is visible =
VAR ReferenceDate =
    SELECTEDVALUE ( 'pluviometer_monitoring_list'[Date_short] )
RETURN
    IF ( ReferenceDate >= [Min Fen] && ReferenceDate <= [Max Fen], 1 )

and use that as a visual level filter, to only show when the value is 1.

Works!! Thanks a lot

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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