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
PowerrrBrrr
Helper III
Helper III

how to get list of last readings of a particular item

I have a list of machines as below with timestamp and Value columns. Timestamps and Value are in different table and Machines are in different table. Both are connected by one-many relationship.

If a machine has a Value 0 then it is said to be inactive. I would like to show a visual in my Power Bi, which tells me when the Pump was last inactive i.e. when the value was 0 for pumps.

So I have input table :

ID               Machines
1               Machine1
2               Machine2
3               Machine3
4               Machine4
5               Machine5
6               Machine6
7               Machine7

 

 

Table 2:

IDValueTimestamp
1             0                   2021-12-12
1             54                  2021-11-21
2               22                   2021-11-20
3             43                    2021-10-01
2             2                     2021-10-12
4            11                     2021-12-12
4            0                      2021-12-12
5             0                      2021-11-12

 

Visual I would like to see in my Power Bi

Machine               Inactive Date
1                 2021-12-12
4                 2021-12-12
5                  2021-11-12
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PowerrrBrrr , Hope the two tables are connected Id. Take machine from the first table and this measure from the second table

 

maxx(filter(Table2, Table2[Value] =0), Table2[Date])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@PowerrrBrrr , Hope the two tables are connected Id. Take machine from the first table and this measure from the second table

 

maxx(filter(Table2, Table2[Value] =0), Table2[Date])

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.