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
RvdHeijden
Post Prodigy
Post Prodigy

Calculate time bigger then ...

I have a simple question at least i hope so.

 

I have a table with a column in it called 'Technisch gereed' which has data/time values

for example "13-11-2017 13:00:00" or "7-11-2017 20:57:00"

 

My question is that i want to calculate the number of rows where the time in 'Technische gereed' is > 16:30:00

Basically i want to now (per row) how many times a tickets is solved after workinghours.

1 ACCEPTED SOLUTION

@Zubair_Muhammad just a small remark: a formula like if condition then true else false can be shortened to just condition.

 

Applied to your formula:

 

Column =
    TIME ( HOUR ( TableName[Technisch Gereed] ), MINUTE ( TableName[Technisch Gereed] ), SECOND ( TableName[Technisch Gereed] ) )
        > TIME ( 16, 30, 0 )
Specializing in Power Query Formula Language (M)

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

HI @RvdHeijden

 

May be this MEASURE

 

Count =
COUNTROWS (
    FILTER (
        TableName,
        TIME ( HOUR ( TableName[Technisch Gereed] ), MINUTE ( TableName[Technisch Gereed] ), SECOND ( TableName[Technisch Gereed] ) )
            > TIME ( 16, 30, 0 )
    )
)

Regards
Zubair

Please try my custom visuals

@Zubair_Muhammad

thanks for the info but i would rather have a calculated column so that i can use a linegraph to display the result

Hi @RvdHeijden

 

Do you simply need True or False in the Column?

 

Column =
IF (
    TIME ( HOUR ( TableName[Technisch Gereed] ), MINUTE ( TableName[Technisch Gereed] ), SECOND ( TableName[Technisch Gereed] ) )
        > TIME ( 16, 30, 0 ),
    TRUE (),
    FALSE ()
)

Regards
Zubair

Please try my custom visuals

@Zubair_Muhammad just a small remark: a formula like if condition then true else false can be shortened to just condition.

 

Applied to your formula:

 

Column =
    TIME ( HOUR ( TableName[Technisch Gereed] ), MINUTE ( TableName[Technisch Gereed] ), SECOND ( TableName[Technisch Gereed] ) )
        > TIME ( 16, 30, 0 )
Specializing in Power Query Formula Language (M)

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.