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 September 15. 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 |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
7 | |
5 |