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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ShreyasK
Frequent Visitor

How to use AND function in Power BI

I have table in which I want to keep rows which contains "null" and In time is greater than 05:20 from "InTime" column. And exclude rest other rows. Can anyone please help me.

 

Current Table:

User NameInTimeOutTime
Stevenull16:00
Lucy5:3417:10
Jamesnull18:05
Mike1:3014:00
Eric0:30null
Vincent6:0017:30

 

Expected result:

User NameInTimeOutTime
Stevenull16:00
Lucy5:3417:10
Jamesnull18:05
Vincent6:0017:30

 

I have tried with conditional column using OR function and advance filtering for InTime column using AND function but not getting expected results.

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @ShreyasK , you can use this measure:

In_Time = if(MAX('Table'[InTime])>TIME(5,20,0) || 
ISBLANK(max('Table'[InTime])),1,0)   

 

Follow, insert the measure "In_Time", in Filter, and give it the value 1, like the image:

Bifinity_75_0-1668708942977.png

Best regards

View solution in original post

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @ShreyasK , you can use this measure:

In_Time = if(MAX('Table'[InTime])>TIME(5,20,0) || 
ISBLANK(max('Table'[InTime])),1,0)   

 

Follow, insert the measure "In_Time", in Filter, and give it the value 1, like the image:

Bifinity_75_0-1668708942977.png

Best regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.

Top Kudoed Authors