March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello All,
I created the DAX in the following way to get bottom sales.
Var a=2
Var rank=rankx(all(products [product]),[sales],,ASC,Dense)
return
If(rank=a,[sales])
With the above measure I'm getting correct values. Values aren't showing at category level,but I'm showing it in matrix category and product, the category is the first hierarchy and then it has to show which particular product has lowest sales in that category.
Can someone help me out..TIA
Hi @likhithar ,
Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@likhithar , Try TOPN
Var a=2
return CALCULATE([sales], TOPN(a,ALL(products [product]),[gross],asc), VALUES(products [product]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
99 | |
64 | |
54 |