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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate with dates (30 days before)

Hello, 

 

I need to do a measurement that calculates only what appears 30 days back, for example:

considering today(yyyy-mm-dd): 2023-04-06.

 

Date (yyyy-mm-dd):After 30 days:
2023-03-15Y
2023-01-28Y
2023-04-01N
2023-04-03N
2023-03-20N
Total2

 

In this case i have 5 dates and only 2 dates are 30 days back. I need a measure that do this calculation.

 

Anybody can help me? 

 

Thanks a lot.

2 ACCEPTED SOLUTIONS
FreemanZ
Super User
Super User

hi @Anonymous 

try like:

Measure =
COUNTROWS(
    FILTER(
        TableName,
        TableName[Date]<TODAY()-30
    )
)

View solution in original post

Anonymous
Not applicable

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Anonymous 

try like:

Measure =
COUNTROWS(
    FILTER(
        TableName,
        TableName[Date]<TODAY()-30
    )
)
Anonymous
Not applicable

tks a lot !

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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