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! It's time to submit your entry. Live now!
Hello, I want to create a custom table based on a time comprasion.
I have a table that lists item sold from 01/01/0217 up until today.
I want to create a table with the item sold only in 2017.
My idea would be to do something like
LastYear=CALCULATETABLE('Table';Table[date]<01/01/2018).
However this does not work.
Solved! Go to Solution.
Hi @Anonymous
Try LastYear=CALCULATETABLE('Table';Table[date]<YEAR(2018,1,1))
Hi @Anonymous
Try LastYear=CALCULATETABLE('Table';Table[date]<YEAR(2018,1,1))
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |