cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

DAX statement with Dates in Period not yielding correct results

Can someone tell me the error in this DAX?

It does not yield the correct sum of values in the datesinperiod function

 

TermCnt1YR =
    CALCULATE (
    SUM ( FactTermsActive[TermCnt]),
    FILTER ( FactTermsActive, FactTermsActive[EMPStatus] = "Terminated" ) ,
    FILTER ( FactTermsActive, DATESINPERIOD(FactTermsActive[TerminationDate], Today(),-365,DAY) )    )
1 REPLY 1
nmck86 Member
Member

Re: DAX statement with Dates in Period not yielding correct results

Hello! can you share a sample report with the expected output vs the output received?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 366 members 4,245 guests
Please welcome our newest community members: