March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I have a table of [Activities] with the columns "Case ID", "Activity Type" and "Created On", The "Activity types" can be "email", "phone call", etc...
I need to pull a table of cases with the Case ID and the date of the last email
I've created a measure: LatestActivity = MAX(Activities[createdon])
It is working for me as a calculated column:
But not as a measure:
Solved! Go to Solution.
Hi@setis
Create a measure
Measure = CALCULATE(MAX([Created On]),FILTER(ALLEXCEPT(Sheet10,Sheet10[Case ID]),[Activity Type]="email"))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi@setis
Create a measure
Measure = CALCULATE(MAX([Created On]),FILTER(ALLEXCEPT(Sheet10,Sheet10[Case ID]),[Activity Type]="email"))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
measure will always give you single value for a given filter context, therefore if you have a visual that gived single value it will do exactly that
if you create a table in which emails are in rows then each row will have a different filter context, and the measure should return different values for them
Hi @setis
I'm a bit confused because from what you describe I believe your measure should work but your column shouldn't. Exactly the opposite of what you claim
The calc column would need to get rid of the context transition effect to work properly. Otherwise it will calculate the max only on the current row when the activity is email.
The measure, however, looks fine to me. How/where exactly are you using it? If you place Activities[Case ID] in the rows of a matrix visual for instance and the measure in values, I see no reason for it not to work (with the info you provide).
Your description is quite good but remember it's always best to show a sample of your tables/data in text format. It's very helpful for people trying to answer. Or sharing the pbix if possible
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |