Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there
I need help with this code:
Top Clients = VAR Prod = [Top product] VAR Client = VALUES(Clients[CompanyName]) RETURN CALCULATE([Total Sales]; FILTER(Client; RANKX(ALL(Clients[CompanyName]); Total Sales];;DESC) <= 10); Orders[ProductName] = Prod)
I need to put in a table the companies thtat have bought my Top Product Prod, but the reuslt is not coherent.
It ruturns 10 clients, when it should only return 6 and the #1 company should be Warp AG no Sunny Ski Store and I don't know how to solve this.
PSD:
Top Product measure
Top Product = FIRSTNONBLANK(TOPN(1; ALL(Products[ProductName]); [ProdV];DESC); 1)
ProdV measure
ProdV = VAR Actual = [ActualSales] VAR Previous = [PreviousSales] RETURN IF(Actual > 0 && Previous = 0; CALCULATE([Total Sales]))
Actual measure is the actual year, Previous is the previous year and Total Sales is just what it says.
ProdV measure's goal is to return me the total sales of products were not sold the previous year but sold in the actual year.
Hi @amilkarigi,
It's hard to troubleshoot your issue without sample table, please share your .pbix file for further analysis.
Best Regards,
Angelia
Here's the link, I'll be in touch for whatever question you have, Thanks for everything
https://drive.google.com/file/d/1CHv9ejaaboVk7kS-7V0W61GPzb8uS7qs/view?usp=sharing
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |