Forum Discussion
RenataOGardner
5 years agoHelper II
Dynamic text for TopN
Hello Folks! I would like to know if it's possible to add a dynamic text box to tell me which are the most sold product when I select a customer? Many thanks, Renata
- 5 years ago
Try using this measure:
Top10 = SumX(TOPN(10,SUMMARIZE(ProductTable,ProductTable[Product Name],"UnitsSale",[TotalSales]),[UnitsSale],DESC),[TotalSales])Put this measure in the values.
If this doesn't work, try:
Top10 = TOPN(10,TOPN (10, SUMMARIZE( ProductTable ,ProductTable[ProductName],"TotalUnits", SUM(ProductTable[UnitsSold]) ),"TotalUnits",DESC))Additionally, make sure the customer and the product information is related in some way, eiether using a relationship or is part of the same table.
- 5 years ago
Hi RenataOGardner ,
Try this:
Top 10 Products = CONCATENATEX ( TOPN ( 10, SUMMARIZE ( 'Table', 'Table'[Product], "Sales_", [Your Sales Measure] ), [Sales_], DESC ), [Product], ", " )Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
analytics_uk
5 years agoHelper I
Hello, thanks for your help.
I used the second and works pretyr good.
PC2790
5 years agoCommunity Champion
Thanks.
Can you please mark the relevant one as an accepted solution?
- analytics_uk5 years agoHelper I
How do I do that? I can't see this option.