Forum Discussion
anjugauriunni
2 years agoFrequent Visitor
Rankx function is not returning correct values when used with dimension table
Hi, I made a item rank dax Item rank = RANKX(All(Brand[Brand]), [Total Sales]) Brand is one of the dimension table containing brand name and brand id. Fact table contains brand id. The above funct...
Dangar332
2 years agoResident Rockstar
Hi, anjugauriunni
try below
item rank =
var a = addcolumn(
values(brand[brand]),
"amt", [total sales]
)
return
rankx(
a,[amt]
)