Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |