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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |