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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi Everybody,
I am struggeling with the translation of an Excel formula "StartDate" into Power BI (DAX)
StartDate = "="&(Today()-DATE(1970;1;1))*60*60*24,
EndDate = "=1646092800"
It appears to me that the "date" & "today" formula concept of excel, which returns an according serial number
doesn't exist in PowerBi
Solved! Go to Solution.
Ohhhh..
I know, in Power Query , you should use m language, not dax
change the 0 to your timezone
StartDate = (Today()-DATE(1970,1,1))*60*60*24
I put it exactly like this,
but today and date couldn't be recognized
In Power BI, create a new measure
StartDate = (Today()-DATE(1970,1,1))*60*60*24
Thanks for your fast reply
but how do get the measure then into:
Ohhhh..
I know, in Power Query , you should use m language, not dax
change the 0 to your timezone
sorry I didn't know that
your solution works perfect
I wouldn't have been able to solve this on my own with Query M.
Thanks
Thanks,
but I don't got it to work
StartDate = "="&((Date(2022,6,10)-DATE(1970,1,1))*60*60*24)
doesn't recognize Date/DATE
Any hints
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |