Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
The Tableau Calculated Field is
if DATETRUNC('week', [Date]) < DATETRUNC('week', Date])
then 0
else zn([column1]) + zn([column1])
How do I get Datetrunc in power BI Dax
Help in this is needed.
Thanks in advance
Solved! Go to Solution.
Hi @asdf1608 ,
Please try this:
Column =
IF(
DATEDIFF('week', [Date], [Date].[Date]) < 0,
0,
IF(
ISBLANK([column1]),
0,
[column1] + [column1]
)
)
You may find it helpful to refer to similar posts:
Please convert the below Tableau Expression to Dax... - Microsoft Power BI Community
Replicating Tableau Calculated Formula - Microsoft Power BI Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @asdf1608 ,
Please try this:
Column =
IF(
DATEDIFF('week', [Date], [Date].[Date]) < 0,
0,
IF(
ISBLANK([column1]),
0,
[column1] + [column1]
)
)
You may find it helpful to refer to similar posts:
Please convert the below Tableau Expression to Dax... - Microsoft Power BI Community
Replicating Tableau Calculated Formula - Microsoft Power BI Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |