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

Be 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

Reply
Anonymous
Not applicable

Function to show repeated repaired tools

Hello,

 

I have a list with thousands of tools our company repaired. What I want to see is, the tools which are more than one time repiard and that in a short period.

 

I have one column with the serial number which is unique per tool, and the date when the tool arrived in our company to be repaired in the other column.

 

Is it possible to see for example the tool (or serial number) when it was repaired two times or more in one month?

 

I thought about a function which calculate the days between the dates, but I think this can´t work because the dates are in only one column...

 

 

Thanks in advance!

Christopher

1 ACCEPTED SOLUTION
Anonymous
Not applicable

There are a few ways you could do this.

 

The simplest one is to use the following measure

 

Count = 
VAR RowCount =
    COUNTROWS ( Table1 )
RETURN
    IF ( RowCount > 1, RowCount, BLANK () )

then just have a table with the part column and this measure. Then add a date slicer and any parts that have more than one occurrence will show in the table.

 

If you want to do it in a measure it can depend on the final context for this use.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

can you please post some sample data, if you cannot share it then please make some dummy data that has the same issue

Anonymous
Not applicable

Hi Thomas,

 

here is some data I got from my report:

 

Equi Serial numberCreation date (inbound)
MASTERORDEREQUIPM08.01.2016 07:57:22
D47806108.07.2016 14:40:45
G559032026.09.2016 12:55:50
D838343305.09.2016 20:23:09
D47806105.09.2016 20:30:21

C661230

 

C661230

19.09.2016 15:57:29

 

30.09.2016 15:57:29

 

When it is there to be repaired, you can see the serial number twice. What I want to see is, when the same tool (same serial number) is more than one time in our workshop in for example one month.

 

Is there a function to show that?

Anonymous
Not applicable

There are a few ways you could do this.

 

The simplest one is to use the following measure

 

Count = 
VAR RowCount =
    COUNTROWS ( Table1 )
RETURN
    IF ( RowCount > 1, RowCount, BLANK () )

then just have a table with the part column and this measure. Then add a date slicer and any parts that have more than one occurrence will show in the table.

 

If you want to do it in a measure it can depend on the final context for this use.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.