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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dgadzinski
Helper I
Helper I

Latest Date - TIMESTAMP dax

Hello, 
I have an issue, because Owner delivered the files with the name product and version but 2 times the most recent date is correct. I need to select the product with the version for the latest date. 
Example: 

TIMESTAMPProductVersion
17.10.2022P1_v01.8801.88
09.08.2022P1_v01.8701.87

 

Could you help me?

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

Hi @dgadzinski ,

According to your description, in my understanding, you want to filter out the product and version which has the latest date, if you want to do it in a visual, just create a measure.

Check =
IF (
    MAX ( 'Table'[TIMESTAMP] ) = MAXX ( ALL ( 'Table' ), 'Table'[TIMESTAMP] ),
    1,
    0
)

Put the measure in the visual filter and select its value to 1.

vkalyjmsft_0-1666595083720.png

After apply filter, get the result:

vkalyjmsft_1-1666595136347.png

If you want to mark it in the table, create a calculated column.

Flag =
IF ( 'Table'[TIMESTAMP] = MAXX ( ALL ( 'Table' ), 'Table'[TIMESTAMP] ), 1 )

Result:

vkalyjmsft_2-1666595252092.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @dgadzinski ,

According to your description, in my understanding, you want to filter out the product and version which has the latest date, if you want to do it in a visual, just create a measure.

Check =
IF (
    MAX ( 'Table'[TIMESTAMP] ) = MAXX ( ALL ( 'Table' ), 'Table'[TIMESTAMP] ),
    1,
    0
)

Put the measure in the visual filter and select its value to 1.

vkalyjmsft_0-1666595083720.png

After apply filter, get the result:

vkalyjmsft_1-1666595136347.png

If you want to mark it in the table, create a calculated column.

Flag =
IF ( 'Table'[TIMESTAMP] = MAXX ( ALL ( 'Table' ), 'Table'[TIMESTAMP] ), 1 )

Result:

vkalyjmsft_2-1666595252092.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

Hello @v-yanjiang-msft , 
What should I do if I want to do its for all date? Should I use Power Query? 

Samarth_18
Community Champion
Community Champion

Hi @dgadzinski ,

 

You can create a measure as below:-

Measure_ =
CALCULATE (
    MAX ( 'Table'[Product] ),
    FILTER ( ALL ( 'Table' ), 'Table'[TIMESTAMP] = MAX ( 'Table'[TIMESTAMP] ) )
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.