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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.