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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Question about Measure "till today"

Hello Power BI Community 🙂


A beginner question to the experts, How can I limit the time period in my measure so that only the period "until today" is displayed?

 

Sum of Concession YTD =
TOTALYTD(SUM('Target_Total_DIM'[Concession]), 'Calendar_DIM'[Date])

 

Thanks for your help

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try tgis

Maesure=
VAR _today = TODAY()
RETURN
calculate( SUM('Target_Total_DIM'[Concession]), filter( all('Calendar_DIM') , 'Calendar_DIM'[Date] <= _today ))

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

pls try tgis

Maesure=
VAR _today = TODAY()
RETURN
calculate( SUM('Target_Total_DIM'[Concession]), filter( all('Calendar_DIM') , 'Calendar_DIM'[Date] <= _today ))
Anonymous
Not applicable

Thanks, that works 🙂

Anonymous
Not applicable

Hi 🙂

Thanks for help. With the formula I get the same value out. I have values in the table that are in the future, and I want the measure to show only the values up to today.

amitchandak
Super User
Super User

@Anonymous , in case you need life to date

 

calculate( SUM('Target_Total_DIM'[Concession]), filter( all('Calendar_DIM') , 'Calendar_DIM'[Date] <= max('Calendar_DIM'[Date]) ))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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