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
AnkitKukreja
Super User
Super User

Calculate Last Date basis change in data.

Hi All,

 

I'm trying to calculate date as per the change in my data.

DateCasesCountry/Region
1/11/21665223Belgium
1/10/21664263Belgium
1/9/21662694Belgium
1/8/21660703Belgium
1/7/21658655Belgium
1/6/21655732Belgium
1/11/2153538Afghanistan
1/10/2153489Afghanistan
1/9/2153400Afghanistan
1/8/2153332Afghanistan
1/7/2153207Afghanistan
1/6/2153105Afghanistan
1/11/218586Andorra
1/10/218586Andorra
1/9/218586Andorra
1/8/218489Andorra
1/7/218348Andorra
1/6/218348Andorra
1/11/21173Brunei
1/10/21173Brunei
1/9/2021173Brunei
1/8/2021173Brunei
1/7/2021173Brunei
1/6/2021172Brunei


So ideal solution should be

Belgium1/11/21
Afghanistan1/11/21
Andorra1/9/21
Brunei1/7/2021

 

This is derived as per the last change in data. I'm struggling to display the last change data in my visualization.
Any help would be appreciated, please suggest a dax solution if possible, other way around would also be appreaciated.

 

Thanks,

Ankit

www.linkedin.com/in/ankit-kukreja1904

If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.
Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi @AnkitKukreja ,

 

Payeras_BI_1-1611570718953.png

Regards,

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

2 REPLIES 2
Payeras_BI
Super User
Super User

Hi @AnkitKukreja ,

 

Payeras_BI_1-1611570718953.png

Regards,

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
amitchandak
Super User
Super User

@AnkitKukreja , Try a measure like

 


calculate(max(table[Date]), allexcept(Table,Table[Country/Region]))

 

or

 

calculate(max(table[Date]), filter(allselected(Table),Table[Country/Region]) = max(Table[Country/Region]))

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.

Top Solution Authors