Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
i am having hard time finding the max value product.
below is my table of data. for argentina 1336 is the max sold value and peripherals is the max sold item.
i am able to get the max sold value with this measure
@amitchandak @Anonymous @dax @Pragati11 @superDAX @EDW
Solved! Go to Solution.
@Anonymous , sorry my mistake, Try like
Rankx(filter(allselected('Sales'[Country], 'Sales'[Product]),'Sales'[Country] =max('Sales'[Country])), CALCULATE(SUM('Sales'[AMOUNT_SOLD])),,desc)
Max Amount Prod =
IF( not ISBLANK( [Total Amount] ),
CALCULATE(
MAX( T[Amount] ),
VALUES( Country[Country] ),
ALLSELECTED( )
)
)
Max Prod =
If( not ISBLANK( [Total Amount] ),
var MaxProdAmount = [Max Amount Prod]
return
CALCULATE(
MAXX(
FILTER(
SUMMARIZE(
T,
Country[Country],
'Product'[Product]
),
[Total Amount] = MaxProdAmount
),
'Product'[Product]
),
VALUES( Country[Country] ),
ALLSELECTED( )
)
)
@Anonymous , Based on what I got. Create a rank and apply visual filter for rank =1
Rankx(allselected('Sales'[Country], 'Sales'[Product]), CALCULATE(SUM('Sales'[AMOUNT_SOLD])),,desc)
@Anonymous , sorry my mistake, Try like
Rankx(filter(allselected('Sales'[Country], 'Sales'[Product]),'Sales'[Country] =max('Sales'[Country])), CALCULATE(SUM('Sales'[AMOUNT_SOLD])),,desc)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |