Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis

I will have to do that. I'm trying do a comparison of products, where I need to find my most sold product that wasn't sell the previous year.

1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum({<ProductName = {"$(=FirstSortedValue({<ProductName = e({<Year = {$(=Max(Year) - 1)}>})>}ProductName, -Ventas))"}, Year = {"$(=Max(Year))"}>}sales)

View solution in original post

6 Replies
sunny_talwar

May be this

Sum({<ProductName = {"$(=FirstSortedValue({<ProductName = e({<Year = {$(=Max(Year) - 1)}>})>}ProductName, -Ventas))"}, Year = {"$(=Max(Year))"}>}sales)

Anonymous
Not applicable
Author

Do you know something about DAX??

sunny_talwar

DAX? Not sure what that is?

Anonymous
Not applicable
Author

A programming language for Power BI

sunny_talwar

Nope, no idea sorry

Anonymous
Not applicable
Author

Ok, thanks for all