The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi, how to show the Top 10 clients with sales of current month, previous month and last 2 months? For example, when April is selected on the Month slicer, the table shows top 10 clients based on sales amount in April. The table also shows the sales amount for previous month and past 2 months for the current top 10 clients.
Here is the sample data.
Top 10 Client | Sales Amount | Month |
A | 32 | April |
B | 57 | April |
D | 85 | April |
E | 96 | April |
F | 93 | April |
G | 84 | April |
H | 53 | April |
I | 6 | April |
J | 80 | April |
K | 41 | April |
A | 88 | March |
B | 41 | March |
D | 71 | March |
E | 89 | March |
F | 72 | March |
G | 65 | March |
H | 93 | March |
I | 38 | March |
J | 40 | March |
K | 41 | March |
A | 51 | February |
B | 13 | February |
D | 70 | February |
E | 62 | February |
F | 28 | February |
G | 52 | February |
H | 67 | February |
I | 3 | February |
J | 70 | February |
K | 16 | February |
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
The question itself is easy enough; but I'd not bother to spend more time making mock-up data than authoring the solution. Paste some copiable mock-up data.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
Hi @ThxAlot , thank you for the solution! It works. How about bottom 10? Can you show me how to do it? Thanks a lot! 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
79 | |
78 | |
39 | |
36 |
User | Count |
---|---|
158 | |
111 | |
64 | |
59 | |
54 |