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
walterdp
Helper I
Helper I

I need to extract absolute Firstdate and Lastdate for calculating average

Hi all:

 

I have a table a couple of columns with dates and other data. I need to calculate the average number of deployments per day, considering the complete time period between the oldest date and the newest one (that info changes when updating data on the table).

 

I created a couple of measures, using FIRSTDATE and LASTDATE, but the problem is that when I use a filter, those days change, based on the filter, and I need those days to be "absolute", based on the first and last date of the entire column, disregarding the filters.

 

I hope I'm clear enough.

 

Thanks in advance.

 

Have a great 2023!

 

W.

1 ACCEPTED SOLUTION
adudani
Super User
Super User

Hi walterdp,

 

Wrap try the following measure:

Min Date in Table=CALCULATE(MIN(Table[Column]),All())
Max Date in Table =CALCULATE(MIN(Table[Column]),All())

Please accept this solution if it resolves the query.
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

View solution in original post

4 REPLIES 4
Arul
Super User
Super User

@walterdp ,

try this

Min date = 
MINX(ALL('Tablename'),'Tablename'[columnname])
Max date = 
MAXX(ALL('Tablename'),'Tablename'[columnname])

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Ashish_Mathur
Super User
Super User

Hi,

Share some data (in a format that can be pasted in an MS Excel file), explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
adudani
Super User
Super User

Hi walterdp,

 

Wrap try the following measure:

Min Date in Table=CALCULATE(MIN(Table[Column]),All())
Max Date in Table =CALCULATE(MIN(Table[Column]),All())

Please accept this solution if it resolves the query.
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Thanks, @adudani !

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.