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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
How do I convert this tableau function to Power BI Dax. datetrunc()
@asdf1608 If my understanding of DATETRUNC is correct, that would be:
Column =
VAR __Date = [Date]
VAR __Date1 = [Date1]
VAR __DateTrunc = DATE(YEAR(__Date), MONTH(__Date), 1)
VAR __DateTrunc1 = DATE(YEAR(__Date1), MONTH(__Dat1), 1)
VAR __Result = IF(__DateTrunc < __DateTrunc1, 0, [column1])
RETURN
__Result
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
15 | |
7 | |
5 |