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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
The_Clam
Helper I
Helper I

Value Repeating within Last 15 Days

Hi.  I have data with 3 columns...ID, AlarmName, Date Created.  I need to count how many times an AlarmName repeats within the last 15 days.  Please help.  Thanks!

 

Sample data:

ID               Date CreatedAlarmName  
289104476/19/20211024OIAP01
287329646/15/20211024OIAP01
287291746/15/20211024OIAP01
280883665/31/20211024OIAP01
278954795/26/20211024OIAP01
278645405/25/20211024OIAP01
277721645/23/20211024OIAP01
277209295/21/20211024OIAP01
273886305/12/20211024OIAP01
272283045/7/20211024OIAP01
269665124/28/20211024OIAP01
269207844/27/20211024OIAP01
267832284/23/20211024OIAP01

 

Expected Result: 
AlarmNameCount
1024OIAP01 3
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@The_Clam , Please try this with help from date table

Rolling 14 = CALCULATE(count(Table[ID]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date]),-14,DAY))

 

This will be for selected date or each date in trend 

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

2 REPLIES 2
amitchandak
Super User
Super User

@The_Clam , Please try this with help from date table

Rolling 14 = CALCULATE(count(Table[ID]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date]),-14,DAY))

 

This will be for selected date or each date in trend 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That worked!  Thanks so much!

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors