Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a query that looks like Query 1, and I want to create a Query 2 where I duplicate Query 1, remove duplicates on the "Item" column, and then pull the latest "Case Size" result.
The issues with this are that LOOKUPVALUE wont work with multiple results, I need to only use the latest result, and that I need to ignore results that are blank (without removing the data from Query 1). I believe that the solution requires utilizing FILTER, MAX, and FIRSTNONBLANK functions, but I am having trouble with creating a solution that works. Below is the closest thing I can think of that is similar to other formulas I've got to work, but I cant seem to get this one to work as intended. Any ideas on how to get this to work, or for a different solution altogether?
Solved! Go to Solution.
pls try this
Measure =
VAR _last=maxx(FILTER('Table','Table'[Item]=max('Table'[Item])&¬(ISBLANK('Table'[Case Size]))),'Table'[Date])
return maxx(FILTER('Table','Table'[Item]=max('Table'[Item])&&'Table'[Date]=_last),'Table'[Case Size])
pls see the attachment below
Proud to be a Super User!
pls try this
Measure =
VAR _last=maxx(FILTER('Table','Table'[Item]=max('Table'[Item])&¬(ISBLANK('Table'[Case Size]))),'Table'[Date])
return maxx(FILTER('Table','Table'[Item]=max('Table'[Item])&&'Table'[Date]=_last),'Table'[Case Size])
pls see the attachment below
Proud to be a Super User!
This worked perfectly, thanks!
you are welcome
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |