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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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