The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 13 | |
| 8 | |
| 8 |