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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vinicius_ramos
Helper III
Helper III

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 @vinicius_ramos 

try like:

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

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @vinicius_ramos 

try like:

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

tks a lot !

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.