Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I am trying to write some DAX that looks for an earlier non-zero value of a column based on multiple column criteria.
e.g. for row 3 below it would return the most 'recent' non-zero value where both SKU and Country match i.e. 15.40
I've had some joy using the below but it's not really working as I want it to:
Thanks!
@AdamRobC , this one seems correct. check do you have any other row, which is causing that or you need any additional filter
you can try this too
Test = MAXX(FILTER('Price Lookup','Price Lookup'[Config-SKU]=EARLIER('Price Lookup'[Config-SKU]) && 'Price Lookup'[Country]=EARLIER('Price Lookup'[Country])),'Price Lookup'[Current Price (€)])
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 6 | |
| 6 |