Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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! 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |