cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ratax Regular Visitor
Regular Visitor

Counter that resets

Hi all

Is it possible to make a counter that reset when something is logged in another column?
The company run sticks on machine and we wanna see how many sticks it runs before crashing Smiley Happy
Is it also possible to log all counts and show the highest

We have a StickID column and a column that logs the type of mistake and date

Regards
Ratax

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Counter that resets

hi,@Ratax

     After my research, you do these as below:

Step1:

Add a conditional column like this

1.PNG

Step2:

select this new column then fill down it

2.PNG

3.PNG

 

Close&Apply

Step3:

Add the result column by this formula

reset Counter = IF(Table1[count]=Table1[Custom],Table1[count],Table1[count]-Table1[Custom])

Result:

4.PNG

 

here is demo, please try it.

https://www.dropbox.com/s/dwy238t445vzyyq/new%20Counter%20that%20resets.pbix?dl=0

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Counter that resets

hi,@Ratax

     After my research, you do these as below:

for example:

basic data

9.PNG

 

add a measure

Measure = CALCULATE(COUNT(Table1[ID]),ALLEXCEPT(Table1,Table1[ID]),Table1[Record]<>"crashing")

Result:

10.PNG

here is pbix, please try it.

https://www.dropbox.com/s/vt3g8x3ci3oeknn/Counter%20that%20resets.pbix?dl=0

 

If it is not your case, please share some data sample and expected output. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ratax Regular Visitor
Regular Visitor

Re: Counter that resets

Not quite what i wanted, should have expressed my self more clearly, i am sorry about that

 

The column M is what i want. A count that resets everytime something is logged in column L

 

Skitse (1).png

Community Support Team
Community Support Team

Re: Counter that resets

hi,@Ratax

     After my research, you do these as below:

Step1:

Add a conditional column like this

1.PNG

Step2:

select this new column then fill down it

2.PNG

3.PNG

 

Close&Apply

Step3:

Add the result column by this formula

reset Counter = IF(Table1[count]=Table1[Custom],Table1[count],Table1[count]-Table1[Custom])

Result:

4.PNG

 

here is demo, please try it.

https://www.dropbox.com/s/dwy238t445vzyyq/new%20Counter%20that%20resets.pbix?dl=0

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Ratax Regular Visitor
Regular Visitor

Re: Counter that resets

hey Lin.

 

Thanks alot, works perfectly

 

Cheers mate Smiley Happy

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 84 members 2,841 guests
Please welcome our newest community members: