Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Ratax
Helper I
Helper I

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 🙂
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
v-lili6-msft
Community Support
Community Support

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
v-lili6-msft
Community Support
Community Support

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.

hey Lin.

 

Thanks alot, works perfectly

 

Cheers mate 🙂

v-lili6-msft
Community Support
Community Support

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.

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.