Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
53 | |
46 | |
15 | |
12 |