This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I have a table that looks similar to this. I want to create a measure that returns the most recent value and I want it to be responsive with my date selection. Thank you.
Solved! Go to Solution.
You should be able to get there from here:
CategoriesLatest = SUMMARIZE(Categories,Categories[Product Category],"Transacation Date",MAX(Categories[Transaction Date]),"Value",CALCULATE(SUM(Categories[Value ($)]),FILTER(Categories,Categories[Transaction Date]=MAX(Categories[Transaction Date]))))
You would want to create a measure using MAX([Transaction Date]). Not entirely sure what you are going for here but you could you could use this in a CALCULATE for [Value ($)] for example.
My goal is to create measure maybe for a card that displays the total value. The value would be the total of last value of the stock (in the example on 104 for Gold Mining A, 57 for Invest Co and 122 for Airline A).
I also want to use the Transaction date column as a slicer that when I select July I'm only seeing the total of Gold Mining A and Invest Co.
Create a measure that extracts the latest Date for your context:
MaxDate = CALCULATE(MAX(Stock[Date]), ALLEXCEPT(Stock,Stock[Category]) )
and a measure that summarizes Value based on MaxDate:
SumStockValue = CALCULATE(SUM(Stock[Value]), FILTER(ALLSELECTED(Stock),Stock[Date] = [MaxDate]))
This assumes you have only one row per date and category. The measures will respect the context created by any selection (by slicer for example) based on [Date].
You should be able to get there from here:
CategoriesLatest = SUMMARIZE(Categories,Categories[Product Category],"Transacation Date",MAX(Categories[Transaction Date]),"Value",CALCULATE(SUM(Categories[Value ($)]),FILTER(Categories,Categories[Transaction Date]=MAX(Categories[Transaction Date]))))
Thank you.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 45 | |
| 42 | |
| 41 | |
| 21 | |
| 18 |