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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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