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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors