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
Wokster
Frequent Visitor

From the timestamp only the first date

Hi,

 

At this moment im stuck i one of my power bi reports.

 

I want to do the following, in my dataset a incidentnumber has multiple timestamps. I tried some measures but still i cannot get only the first date as shown in the picture below. Is there someone who can help me with this problem?

 

Wokster_0-1673351784081.png

 

Kind regards,

Kay Wokke

 

 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Wokster ,

 

Please try:

Measure = CALCULATE(MIN('Table'[TimeStamp]),ALLEXCEPT('Table','Table'[incidentNumber]))

vcgaomsft_1-1673405363121.png

Column = CALCULATE(MIN('Table'[TimeStamp]),FILTER(ALL('Table'),'Table'[incidentNumber]=EARLIER('Table'[incidentNumber])))

vcgaomsft_0-1673405123196.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

6 REPLIES 6
v-cgao-msft
Community Support
Community Support

Hi @Wokster ,

 

Please try:

Measure = CALCULATE(MIN('Table'[TimeStamp]),ALLEXCEPT('Table','Table'[incidentNumber]))

vcgaomsft_1-1673405363121.png

Column = CALCULATE(MIN('Table'[TimeStamp]),FILTER(ALL('Table'),'Table'[incidentNumber]=EARLIER('Table'[incidentNumber])))

vcgaomsft_0-1673405123196.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hi Gao,

 

The problem is is that incidentnumber is not in the same table as the timestamp.. so the column one is not working also the measure one is not working.

 

But what you show me as column is exactly what i need!

Does anyone has a solution for this? 

I did something wrong above it is working verry well! 

 

Thanks for it.

AlB
Super User
Super User

Hi @Wokster 

1. Place incidentNumber in a table visual

2. Create this measure and place it in the table visual

 

Measure_ =
MIN ( Table1[timeStamp] )

 

Note this will provide date and time. You talk about getting the date, so if it's only the date that you are after (excluding the time):

 

Measure2_ =
DATEVALUE( MIN ( Table1[timeStamp] ) )

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Greg_Deckler
Super User
Super User

@Wokster Measure = MIN('Table'[timeStamp]) 

 

?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.