Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
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)
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)
I don't seem to be able to get the syntax correct?
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)?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |