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 good day,
Can someone help me on how can i convert my PQ Timezone custom column to calculated column.
"Today", each if [PlanDate] < Date.From(DateTime.From(DateTimeZone.RemoveZone(DateTimeZone.UtcNow()) + #duration(0,8,0,0))) then 0 else [PlanDate])
Thank you
Solved! Go to Solution.
Hello @AllanBerces
Please try the below DAX column :
Let me know if it works or not.
Thank you.
Hi @AllanBerces
Please try this:
test =
IF (
// Convert the current UTC date-time to an integer (removing the time component)
// 'UTCNOW()' returns the current UTC timestamp.
// 'DIVIDE(8,24)' converts 8 hours into a fraction of a day (since 1 day = 24 hours).
// Adding this fraction to 'UTCNOW()' adjusts the time to UTC+8.
// 'INT(...)' ensures we only compare the **date part**, discarding the time.
'Table'[Plan Date] < INT( UTCNOW() + DIVIDE(8,24)),
// If 'Plan Date' is earlier than the adjusted current date, return 0.
0,
// Otherwise, return the original 'Plan Date'.
'Table'[Plan Date]
)
Hi @AllanBerces
Please try this:
test =
IF (
// Convert the current UTC date-time to an integer (removing the time component)
// 'UTCNOW()' returns the current UTC timestamp.
// 'DIVIDE(8,24)' converts 8 hours into a fraction of a day (since 1 day = 24 hours).
// Adding this fraction to 'UTCNOW()' adjusts the time to UTC+8.
// 'INT(...)' ensures we only compare the **date part**, discarding the time.
'Table'[Plan Date] < INT( UTCNOW() + DIVIDE(8,24)),
// If 'Plan Date' is earlier than the adjusted current date, return 0.
0,
// Otherwise, return the original 'Plan Date'.
'Table'[Plan Date]
)
Hello @AllanBerces
Please try the below DAX column :
Let me know if it works or not.
Thank you.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
50 | |
36 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |