Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |