March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
How can I determine the first intance the running total is less than or equal to 0?
In this case I want the result to be 6.
As its the first week that is non-zero.
Thank you!
Solved! Go to Solution.
Hi,
This measure works
Measure = COUNTROWS(FILTER(VALUES('Resource Priority'[RT Good Week]),[10K 2PLD RT]>0))+1
Hope this helps.
Hi,
Why should the answer be 6?
That is the first instance when the RT is <0. In your original post, you mentioned that you wanted to know the first instance when the RT is >0.
You are correct, I mispoke. I'll fix it in the original request.
Share the download link of the PBI file with the RT measure already written.
I'll need the file.
Sorry, stupid question. How do I share it?
Google Drive/One Drive.
Google Drive It Is
Hi,
This measure works
Measure = COUNTROWS(FILTER(VALUES('Resource Priority'[RT Good Week]),[10K 2PLD RT]>0))+1
Hope this helps.
Works, for counting ALL dates less than or equal to zero.
BUT, I'm looking for the number of weeks to the FIRST and only the FIRST negative value.
https://drive.google.com/file/d/1BnqZDDm8UjoIObpoM-m5tWv31EwLx-K6/view?usp=sharing
I do nto understand your expected result. Show that very clearly.
I'm trying to figure out the periods of time (weeks) to the green box of each running total.
For the Wide RT column. Your formula is returning 3. It should be 1 as the frist row is negative.
I listed the correct answer in green below the "Lead Time - Weeks" table.
Hi,
I can try but before that you will need to create a Calendar Table in the file with a week column in there. Create a relationship (Many to One and Single) from the Good Build Date column to the Date column of the Calendar Table. Share the download link of the revised PBI file.
Does this reply above make sense Ashish?
This YouTube video is a really close solution, but my Running Total is a measure.
So CALCULATEDTABLE(VALUES (Sales[Order Date]), ALLSELECTED()) does work from the video.
Counting consecutive days with sales - Unplugged #47 (youtube.com)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |