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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
AdrianLock
Helper I
Helper I

Filter date table using measure

I have an issue with a KPI report I have.  The report shows KPI for our it tickets for example if the Breached response or if they where fixed first time.   The report has number of KPI per page and shows last month % and below 3 months % in line chart.  We currently use basically the following code.   

 

 

  IF(
            ISFILTERED(
                IV_dim_CALENDAR_ResolvedDate[YearMonthShort])
                , CALCULATE([_KPI_FirstCallRes]
            ),
            CALCULATE([_KPI_FirstCallRes]
                ,  IV_dim_CALENDAR_ResolvedDate[Is Current Month] = "True"
            )
        )

 

However I want to change this so that Specific date table is filter useing a measure.  If no specific month is selected then use last month as the filter.    Because currently way we do will not carry the last month date through to our drill-through page properly.  It only works if you select a specific date.  In our caase from small line chart shown under the KPI % .

I feel this should be simple enough but I cannot get it to work  (I would supply pbix to help but ours has over 30+ tables in it)

2 REPLIES 2
AdrianLock
Helper I
Helper I

I'm not sure I understand.  I don't want to create a new table but  in some way filter the date table I have to just show required date range.   Ie 

IF ISFILTERED(IV_dim_CALENDAR_ResolvedDate[YearMonthShort]) , filter the table to that year\month, filter to year\month where IV_dim_CALENDAR_ResolvedDate[Is Current Month] = "True"

Then be able to put that onto each of the required visuals as a filter

If this cannot be done then I need away to pass through the date to the drill through page.  Initially the measures check if is filtered then dose a calculation.  If it is not filtered then it does a calculation based on those rows in date table which have column [is current month] = "true".  However the [is current month] value is not filtering the drill through page 
amitchandak
Super User
Super User

@AdrianLock , You can not create a new table, which will filter by measure. As it will only take the static value of the measure.

You can create a measure that will filter based on another measure and use that in visualization

 

Sumx(filter(Table, [Measure] >1),[Measure]) 

 

or

 

Sumx(filter(Values(Table[Visual Column]), [Measure] >1),[Measure]) 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.