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

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

Reply
peteru9067
Helper III
Helper III

Counting occurrences as a single occurrence if within a timeframe

Good Day,

 

I am creating a dashboard to show the number of trips by tag for my organization. My data is being pulled from the PI server. I am having challenges in presenting this data due to the nuisance trips that are recorded in the dataset. The nuisance trips are as a result of either starting up the unit or performing maintenance activities that requires testing of functionality, hence numerous occurances are logged of the same trip tag. 

To eliminate these nuisance trips from my dataset, I am thinking of a way to only count the tag once if it appears numerous times within a specific duration i.e. 24hrs. 

I am definitely open to any other Ideas on how I can display the message on the dashboard. Many many thanks

 

unitIPL Tagl3Capsule StartCapsule EndDuration
U30LXSHH-0002Trips7/29/2021 1:107/29/2021 1:100
U30LXSHH-0002Trips7/29/2021 1:137/29/2021 3:026537.739
U30LXSHH-0002Trips7/29/2021 3:567/29/2021 3:560
U30LXSHH-0002Trips7/29/2021 3:587/29/2021 4:151021.786
U30LXSHH-0002Trips7/29/2021 4:187/29/2021 4:20152.612
U30LXSHH-0002Trips7/29/2021 4:277/29/2021 4:2867.7230072
U30LXSHH-0002Trips7/29/2021 4:337/29/2021 4:3465.6090088
U30LXSHH-0002Trips7/29/2021 4:387/29/2021 4:380
U30LXSHH-0002Trips7/29/2021 4:417/29/2021 4:410
U30LXSHH-0002Trips7/29/2021 4:547/29/2021 4:5566.9769897
U30LXSHH-0002Trips7/29/2021 4:597/29/2021 4:590
U30LXSHH-0002Trips7/29/2021 5:037/29/2021 5:030
U30LXSHH-0002Trips7/29/2021 5:097/29/2021 5:090
U30LXSHH-0002Trips7/29/2021 5:187/29/2021 5:20118.018997
U30LXSHH-0002Trips7/29/2021 5:237/29/2021 5:230
U30LXSHH-0002Trips7/29/2021 5:577/29/2021 5:5866.7720031
U30LXSHH-0002Trips7/29/2021 6:147/29/2021 6:140
U30LXSHH-0002Trips7/29/2021 6:437/29/2021 6:430
U30LXSHH-0002Trips7/29/2021 7:207/29/2021 7:200
U30LXSHH-0002Trips7/29/2021 7:287/29/2021 7:280
U30LXSHH-0002Trips7/29/2021 8:057/29/2021 8:050
U30LXSHH-0002Trips7/29/2021 8:327/29/2021 8:320
U30LXSHH-0002Trips7/29/2021 8:567/29/2021 8:560
U30LXSHH-0002Trips7/29/2021 9:007/29/2021 9:000
U30LXSHH-0002Trips7/29/2021 9:067/29/2021 9:060
U30LXSHH-0002Trips7/29/2021 9:157/29/2021 9:150
U30LXSHH-0002Trips7/29/2021 9:237/29/2021 9:230
U30LXSHH-0002Trips7/29/2021 9:397/29/2021 9:390
U30LXSHH-0002Trips7/29/2021 10:557/29/2021 10:550
U30LXSHH-0002Trips7/29/2021 14:027/29/2021 14:020
U30LXSHH-0002Trips7/29/2021 16:217/29/2021 16:210
U30LXSHH-0002Trips7/29/2021 16:467/29/2021 16:48132.462997
U30LXSHH-0002Trips7/29/2021 16:567/29/2021 16:560
U30LXSHH-0002Trips7/29/2021 17:187/29/2021 17:180
U30LXSHH-0002Trips7/29/2021 17:217/29/2021 17:210
U05FXSHH-0012Trips2/20/2021 6:082/20/2021 6:271126.646
U05FXSHH-0012Trips3/9/2021 19:103/9/2021 19:16383.140991
U05FXSHH-0012Trips3/9/2021 19:203/9/2021 19:27410.959992
U30LXSHH-0004Trips4/11/2021 9:444/15/2021 18:44377973.975
5 REPLIES 5
peteru9067
Helper III
Helper III

Please any help on the original question on the thread

Hi, @peteru9067 

Not fully sure what you want.

Can you share you expected result in excel?

 

Best Regards,
Community Support Team _ Eason

 

I have found help on this issue through another board thread "Dax".

amitchandak
Super User
Super User

@peteru9067 , You can measure like

 

Sumx(summarize(Table, [Unit], [IPL Tag], "_max", Max([Duration]), [_1])

 

or

 

Sumx(summarize(Table, [Unit], [IPL Tag], [Capsule Start], "_max", Max([Duration]), [_1])

 

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

Thanks a lot for the quick response........ what is the last value "[_1]"

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.