cancel
Showing results 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

Regular Visitor

Max Date from a store visit

Hello guys i´m with case that i have a date used in modelling of a store.

My main problem is i need to create a measure that depends from a max date per month

ex:

For that example in that store, i should have a measure bring me the max date of that visit. In the example 24-10-2022

the problem is i cant use a calculated column to solve this situation, i should do using just a measure.

Someone could give me a light on this?

1 ACCEPTED SOLUTION
Community Support

Hi @Vnidias ,

This is my date table:

Another table:

Relationship between two tables:

Create a measure:

``Measure = CALCULATE(MAX('Date'[Date]),FILTER(ALL('Table'),'Table'[Attribute] = SELECTEDVALUE('Table'[Attribute])))``

You will get the max date of that visit

Best regards,

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

3 REPLIES 3
Regular Visitor

Guys thanks for the help!

Super User

Measure=CALCULATE(MAX(FactTable[Date]),ALLEXCEPT(FactTable,Factable[StoreID]))

Community Support

Hi @Vnidias ,

This is my date table:

Another table:

Relationship between two tables:

Create a measure:

``Measure = CALCULATE(MAX('Date'[Date]),FILTER(ALL('Table'),'Table'[Attribute] = SELECTEDVALUE('Table'[Attribute])))``

You will get the max date of that visit

Best regards,

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

Announcements

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Monthly Update - August 2024

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

Microsoft Fabric & AI Learning Hackathon

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

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors