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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Babycakes
Helper II
Helper II

Minimum Value met on BI report

Hi There

 

I have data in a report 

 

Staff have a requimrent to get x (minimum) hours per f/n , i have data that shows they are getting x hours

 

How do I show if it is not met.

 

Kind regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Babycakes ,

 

According to your statement, I think you want to create a Flag column for Staff based on logic like that somethin meet f/n then Hour >= MinHour (X).

Here I create a sample, in my sample, the logic is that day diff >= 8 (F/N) and MinHour should meet 8 (X).

Flag =
VAR _F_N = 7
VAR _X = 8
VAR _DAYDIFF =
    DATEDIFF ( 'Table'[Start Date], TODAY (), DAY )
RETURN
    IF (
        _DAYDIFF >= _F_N,
        IF ( 'Table'[Hours] >= 8, "Meet Min Hour X", "Not Meet Min Hour X" ),
        BLANK ()
    )

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Babycakes ,

 

According to your statement, I think you want to create a Flag column for Staff based on logic like that somethin meet f/n then Hour >= MinHour (X).

Here I create a sample, in my sample, the logic is that day diff >= 8 (F/N) and MinHour should meet 8 (X).

Flag =
VAR _F_N = 7
VAR _X = 8
VAR _DAYDIFF =
    DATEDIFF ( 'Table'[Start Date], TODAY (), DAY )
RETURN
    IF (
        _DAYDIFF >= _F_N,
        IF ( 'Table'[Hours] >= 8, "Meet Min Hour X", "Not Meet Min Hour X" ),
        BLANK ()
    )

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Babycakes , The information you have provided is not making the problem clear to me. Can you please explain with an example.

 

Min value across selected data

minx(allselected(Table), Table[Hour])

 

 

Min after adding it up to a level

Minx(Values(Table[F/N]), calculate(sum(Table[Hour])))


Appreciate your Kudos.


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.