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
Hi,
I'm new to powerbi dax and any help is appreciated.
What I'm trying to achive and I don't succeed is to create a new column or a measure in a table where the below condition takes place :
if(table.[due date] >=FirstDayofCurrentYear and table.[due date] <= LastDayofCurrentYear , table[amount] , 0)
What I have done so far : I created a new column named CurrentYearAmount
Solved! Go to Solution.
@PowerBiName , what are trying to achieve here
you can join due date with date table and you can have a year there and filter
ot have formula like
measure =
var _min = date(year(today()),1,1)
var _max = date(year(today()),12,31)
return
calculate(countrows(Table) , filter(Table, table[date]>=_min && table[date] <=_max))
@PowerBiName , what are trying to achieve here
you can join due date with date table and you can have a year there and filter
ot have formula like
measure =
var _min = date(year(today()),1,1)
var _max = date(year(today()),12,31)
return
calculate(countrows(Table) , filter(Table, table[date]>=_min && table[date] <=_max))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |