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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Dk_bbr
Regular Visitor

how to find interval between dates

My english too bad for this hope you can understand. I have problem like some guide comes 10 time in year to my store and i need to find how much days to take between that 10 comes?

1 ACCEPTED SOLUTION

not sure if this is what you want

 

Column =
VAR _last=maxx(FILTER('Table','Table'[GuideID]=EARLIER('Table'[GuideID])&&'Table'[Date]<EARLIER('Table'[Date])),'Table'[Date])
return if(ISBLANK(_last),blank(),DATEDIFF(_last,'Table'[Date],DAY))
 
11.PNG
 
then create a measure
measure = AVERAGE('Table'[Column])
12.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Uzi2019
Super User
Super User

Hi @Dk_bbr 

Give sample data of your model so we can provide you the solution.
How many columns are there in your report?

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
ryan_mayu
Super User
Super User

could you pls provide some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




DateGuideIDGuideNameComesInSales
1/1/2310051Bam15000
2/1/2310051Bam115022
3/14/2310051Bam1151563
5/24/2310051Bam115400
5/30/2310051Bam13600
6/15/2310051Bam19500
7/23/2310051Bam14500
8/1/2310051Bam13250
8/15/2310051Bam18900

 That ComesIn only equils to 1 and i want to know average interval days in these between 10 dates? is that possible like similar to in year 10 times and in a month 2 times?

not sure if this is what you want

 

Column =
VAR _last=maxx(FILTER('Table','Table'[GuideID]=EARLIER('Table'[GuideID])&&'Table'[Date]<EARLIER('Table'[Date])),'Table'[Date])
return if(ISBLANK(_last),blank(),DATEDIFF(_last,'Table'[Date],DAY))
 
11.PNG
 
then create a measure
measure = AVERAGE('Table'[Column])
12.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors