Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
70 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
61 | |
44 | |
42 |