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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
naifAhmedB
Helper II
Helper II

How to show the first value in certain hour?

Hi every one,

I really need help on making a dax or filter.

 

General Details: I have data for every store door opening and closing time

request: to show the first store-door opening time between 5- 6 AM.

Example: The first open in 16 Nov is at 5:41 AM. 

 

Filter use: I have created a hour column and filtered the 5 AM.

Problems with that: I still see other opening and closing time

 

Dax required : something like = show value(open/closed), if first( open) in 5 -6 AM. or show the first value (open/close) in certain hour=5 Other notes: The dax has to allow auto-update for date since it will show the report for every day.

 

1.PNG2.PNG3.PNG4.PNG

3 REPLIES 3
amitchandak
Super User
Super User

@naifAhmedB , Not very clear. But you might have to create a time table and have hours there and then create two measures open and close. https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

I have create a table to show only opendoor with filter 5 AM.

 

Now I want to show only 5:41 AM on nov 16 and  5:50 AM on Nov 17

since they are the first door open time. 

 

 open table.PNGopen.PNG

HI again,

I was able to reach this :

min.PNG

 

any other daxs i can use? 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.