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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Getting the full year of data

This formula If( MAX(YourTable[YourDateColumn]) <= EDATE(TODAY(), -60), 1, 0 ) takes me back to 2019 but It excludes some of the months from 2019. How can I change this formula to go back 5 years and get the full year of 2019?

 

Thanks

1 ACCEPTED SOLUTION
FotFly
Helper II
Helper II

You forgot to add the arguments for when the condition is true or the condition is false. Like this


IF(MAX(tblSTD_MASTER[ISSUEDATE]) <=DATE(YEAR(TODAY9()),1,1), 1, 0)

 

View solution in original post

3 REPLIES 3
FotFly
Helper II
Helper II

You forgot to add the arguments for when the condition is true or the condition is false. Like this


IF(MAX(tblSTD_MASTER[ISSUEDATE]) <=DATE(YEAR(TODAY9()),1,1), 1, 0)

 

Anonymous
Not applicable

I don't seem to be able to get the syntax correct?

U156531_0-1724942763096.png

 

FotFly
Helper II
Helper II

Hi,

Why don't you change the EDATE... part with DATE(YEAR(TODAY())-5,1,1). This will give you the whole year that was 5 years ago (meaning from the start of 2019)?

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.