The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a sales table with below columns
And I want to create a calculated table that will store bottom n retailer sales per product with the following columns
How can I achive this result?
Solved! Go to Solution.
Hi @pravkan ,
I have built a data sample, please try to add two columns:
Rank Flag = RANKX('Table',[Total each Retailer],,ASC,Dense) *10+
RANKX(FILTER('Table',[Total each Retailer]=EARLIER('Table'[Total each Retailer])),[RETAILER_NAME],,ASC,Dense)
Final Rank = RANKX('Table',[Rank Flag],,ASC,Dense)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pravkan ,
I have built a data sample, please try to add two columns:
Rank Flag = RANKX('Table',[Total each Retailer],,ASC,Dense) *10+
RANKX(FILTER('Table',[Total each Retailer]=EARLIER('Table'[Total each Retailer])),[RETAILER_NAME],,ASC,Dense)
Final Rank = RANKX('Table',[Rank Flag],,ASC,Dense)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share data in format that can be pasted in an MS Excel file. On that data, please also show the expected result very clearly.
Hi @Ashish_Mathur ,
This what I want to achieve with Power BI
I have a table called V_BOTTOM_SALES and I want to create a measure that will rank my bottom n retailer with their product subcategory.
I don't know if this is possible in dax?
Please read my previous post.
you can try this
Table 2 =
VAR tbl=TOPN(3,'Table','Table'[sales],ASC)
return SELECTCOLUMNS(tbl,"retailer",'Table'[Retiler_name],"product",'Table'[product],"sales",'Table'[sales])
pls see the attachment below
Proud to be a Super User!
User | Count |
---|---|
58 | |
56 | |
53 | |
49 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |