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
NavaneethaRaju
Helper IV
Helper IV

Find Recent date for respective column

Hi,

 

I need to find the recent date for respective column. 

NavaneethaRaju_0-1656065034433.png

Tag_ID- TagUsageFact(Table)

Tag_Owner_Name= TagUsageFact(Table)

Order_Owner_Name= TagUsageFact(Table)

Order_date= Sales_Fact(Table)

 

KIndly advice about the measure, how can we find the recent date for respective column.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NavaneethaRaju , based on what I got you can get a column like this from the same table

 

new column on TagUsageFact

 

maxx(filter(TagUsageFact, [Tag_Owner_Name] =earlier([Tag_Owner_Name]) && [Tag_Owner_Name] = earlier([Tag_Owner_Name])),[Order Date])

 

new column on TagUsageFact

using different table

maxx(filter(Sales_Fact, Sales_Fact[Tag_Owner_Name] =(TagUsageFact[Tag_Owner_Name]) && Sales_Fact[Tag_Owner_Name] = (TagUsageFact[Tag_Owner_Name])),Sales_Fact[Order Date])

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @NavaneethaRaju ;

You could create a measure or column.

MAX_date = CALCULATE( LASTDATE('Table'[ORDER_ DATE]),ALL('Table'))

The final show:

vyalanwumsft_0-1656395843408.png


Best Regards,
Community Support Team _ Yalan Wu
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

@NavaneethaRaju , based on what I got you can get a column like this from the same table

 

new column on TagUsageFact

 

maxx(filter(TagUsageFact, [Tag_Owner_Name] =earlier([Tag_Owner_Name]) && [Tag_Owner_Name] = earlier([Tag_Owner_Name])),[Order Date])

 

new column on TagUsageFact

using different table

maxx(filter(Sales_Fact, Sales_Fact[Tag_Owner_Name] =(TagUsageFact[Tag_Owner_Name]) && Sales_Fact[Tag_Owner_Name] = (TagUsageFact[Tag_Owner_Name])),Sales_Fact[Order Date])

Hi @amitchandak , 
I think the syntax might be wrong, i tried that to create a column its not working, and one more thing, i dont have tag_owner_ name in sales fact table, sales fact table only have order date. Please advice me to figure it out.

 

 

Hi @amitchandak ,

I need help. 
I created this measures to find max order date for particular tag ID- 
Max OrderDate = MAXX(FILTER('Tag Usage Fact','Tag Usage Fact'[Tag ID]='Consignment Fact'[Tag ID] ),'Tag Usage Fact'[Date DD/MM/YYYY])

but i want the same to react with the date slicer.

I want the max date for particular tag id between that date range. 

Please advice.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.