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
supriyad
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.

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

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.

 

Capture.PNG

 

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,

Cherry

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

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.