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.
Hoping someone can help....
I have a Excel spreadsheet connected to our active directory, which pushes out date values such 'Last login' as a power value (e.g. 1.32066E+17). In excel I had a formula that converted the number into a value to show the correct date. Excel Formula is [@[user.lastLogon]]/(8.64*10^11)-109205, which when formatted as a date column shows '03/07/2019'
I have connected PBI directly to the same AD source and trying to do the same calculation in PowerBI as a custom column, with the following formula:
Last Login Date = DIVIDE([user.lastLogon],(8.64*10^11)-109205)
However, the date is now showing as the year 2315
Any ideas how to correct this as i would have thought the source values being the same would work out of the box?
Thanks
Solved! Go to Solution.
your formula is not the same, you subtract from the denominator in PowerBI, this one is just like in Excel
Last Login Date = DIVIDE ( [user.lastLogon], 8.64 * 10 ^ 11 ) - 109205
Thank you - spot on!!!
your formula is not the same, you subtract from the denominator in PowerBI, this one is just like in Excel
Last Login Date = DIVIDE ( [user.lastLogon], 8.64 * 10 ^ 11 ) - 109205
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |