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.
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 |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |