The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |