Showing results for 
Search instead for 
Did you mean: 
supriyad Frequent Visitor
Frequent Visitor

calculate MIN and MAX time in given Time period

Hi All, I need to calculate Minimum time & Maximum Time spent in office in given time period data. I have used MIN and MAX function...But Its not giving me proper solution. Please suggest me related to this.

Community Support Team
Community Support Team

Re: calculate MIN and MAX time in given Time period

Hi @supriyad


From your description, if I understand your scenario correctly, you could refer to the scenario below.


Assuming that you have table with two columns date and  spent_time. You want to calculate the Max and Min spent time by a Slicer (a given time period data).


You could create the measure below.


Max_time = MAX('Office'[Time])
Min_time = MIN('Office'[Time]


The result of the picture is below.




If that is not the case in your scenario, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)


Best Regards,


Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 6 members 1,773 guests
Please welcome our newest community members: