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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Ratso
Frequent Visitor

Showing rows that are above or below a average time stamp.

Hi,

 

I hope someone can help me as I have been playing around with this for a couple of weeks now to no avail.

 

I have a measure that works out the average time of a start and end time from a column called TIME_STAMP

 

Average Time_Stamp = FORMAT(AVERAGE(Sheet1[TIME_STAMP]),"hh:mm:ss")
 
I also have another column called FIRST_LAST which has the comment FIRST INVOICE for the first invoice of the day and LAST INVOICE when it is the last invoice of the day
 
Ratso_2-1718202220639.png

 

This is then displayed on a table visual with a filter that  hides the blanks
 
Ratso_0-1718201110184.png

 

Ratso_1-1718201134377.png

 

What I am trying to achieve is to add a new measure that will populate a new table visualisation for anything exceeding the average of a FIRST INVOICE and less than the average of LAST INVOICE.

 

I kind of got this far with FIRST INVOICE but it is showing me everything that has FIRST INVOICE in the adjacent column when I only want to see data that is greater than the average FIRST INVOICE time stamp

 

Filter_First =
VAR FirstInvoice=
CALCULATE(
    [Average Time_Stamp],
    Sheet1[FIRST_LAST]="FIRST INVOICE"  
)
RETURN
FirstInvoice
 
Ratso_3-1718202401873.png

I have also applied a filter to show the FIRST INVOICE only

Ratso_4-1718202448647.png

So in theroy, I only want the visual to show the below as it exceeds the FIRST INVOICE average time 08:34:11

 

Ratso_5-1718202650914.png

I also need the same for LAST INVOICE below the average LAST INVOICE time of 15:17:54.

 

Can this be done?

 

Apologies for the long winded explanation, I'm pretty wet behind the ears regarding DAX and Power query as I am old school excel and VBA.

 

Any help would be greatly appreciated.

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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