Forum Discussion
asdf1608
Helper V
3 years agoFacing problem in converting tableau calculated fields to power BI DAX measures
I am converting the tbleau measures to Power DAX measures. Help in this is needed. 1) column1 = DATEADD('hour',-6,[column2]) 2)column3= IF DATEPART('weekday',DATEADD('month',10,DATETRUNC('ye...
asdf1608
Helper V
3 years agolbendlin basically I need the datetrunc part.
In tableau datetrunc(year,column1)
For example if the date is 12/3/2021 after datetrunc if results "1/1/2021"
if the date is 3/5/2021 then the result is 1/1/2021
How to achieve this in power BI
lbendlin
Super User
3 years agoDATE(YEAR([column1]),1,1)