Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
My goal is to be able to show "code 1 ran for this long and had a total downtime of however many minutes" and same for code 2.
I have a column that is holds either a 1 or a 2 representing the different codes I'm looking at. I also have a datetime column that increases by a minute since that is how often data it coming in. What would be the best way to go about doing this? I eventually plan to have this in a measure so when the user clicks a shift, date, and which code they want to look at, it will display on a card how long it ran and what the downtime is... I already have a downtime measure that is based off of a downtime column, so I just need to figure out how to get the amount of time the code ran for. Any ideas?
Solved! Go to Solution.
What I ended up doing since each row is one minute, is makking a column where it is always equal to 1. I then did a measure like this:
What I ended up doing since each row is one minute, is makking a column where it is always equal to 1. I then did a measure like this: