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!View all the Fabric Data Days sessions on demand. View schedule
Solved! Go to Solution.
Hi @Anonymous
What about trying
Opening time = IF (FIRSTNONBLANK(DWPROD [ST_CODE],1)= "VEL"; CALCULATE (DWPROD [Time stamp 2] -1800) / 3600; (CALCULATE (DWPROD [Time stamp 2] - 3600) / 3600))
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan
what you described should work fine as a calculated column in DWPROD, why not do that?
Opening time =
IF (
DWPROD [ST_CODE] = "VEL";
(DWPROD [Time stamp 2] - 1800) / 3600;
(DWPROD [Time stamp 2] - 3600) / 3600)
)
thanks for your answer but the STP code is not supported because it's a column
Code dax
Hi @Anonymous
What about trying
Opening time = IF (FIRSTNONBLANK(DWPROD [ST_CODE],1)= "VEL"; CALCULATE (DWPROD [Time stamp 2] -1800) / 3600; (CALCULATE (DWPROD [Time stamp 2] - 3600) / 3600))
If this helped you, please mark this post as an accepted solution and like to give KUDOS .
Regards,
Affan
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!