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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Dsch1971
Frequent Visitor

Filter a measure until today

Hi

 

I have the following measure in a line chart but wnat the line to stop as of today.

 

This is my measure.

 

How can i achieve this please? 

 

Total Wins FY 22 running total in MonthShortName 2 =
CALCULATE(
    [Total Wins FY 22],
    FILTER(
        CALCULATETABLE(
            SUMMARIZE(
                'Date Table',
                'Date Table'[Month Sort],
                'Date Table'[MonthShortName]
            ),
            ALLSELECTED('Date Table')
        ),
        ISONORAFTER(
            'Date Table'[Month Sort], MAX('Date Table'[Month Sort]), DESC,
            'Date Table'[MonthShortName], MAX('Date Table'[MonthShortName]), DESC
        )
    )
)
1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @Dsch1971 ,

 There are several ways to do this. Here is one option.

 

Create a calculated column in your date table Is Before Today.

 

Something like this:

IsBeforeToday =
var currentrowdate= Dates[Date]
var today = TODAY()
RETURN
IF(currentrowdate < today,TRUE(),FALSE())
 
Then use that calcualted column as a filter for your visual like below:
isbefore.PNG

View solution in original post

1 REPLY 1
djurecicK2
Super User
Super User

Hi @Dsch1971 ,

 There are several ways to do this. Here is one option.

 

Create a calculated column in your date table Is Before Today.

 

Something like this:

IsBeforeToday =
var currentrowdate= Dates[Date]
var today = TODAY()
RETURN
IF(currentrowdate < today,TRUE(),FALSE())
 
Then use that calcualted column as a filter for your visual like below:
isbefore.PNG

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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