Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I hope you can help me.
I have a table with number of sale id, sales ammount, date and client. I need to make a table visualization with each client and the last 3 sales to each client.
Do you know how can I do this?
Thank you very much.
Best regards,
Lucía
Solved! Go to Solution.
Hi @lmiguez
Try adding a RANK calculated column....(RANKING transactions for each CLIENT by date)
Then you can choose RANK(1,2,3) as your filters
RANK = RANKX ( FILTER ( Table1, Table1[Client] = EARLIER ( Table1[Client] ) ), Table1[Date], , DESC, DENSE )
May be you can use this RANK measure and use it as a VISUAL filter for top3
Please see attached file as well
RANK Measure = RANKX ( FILTER ( ALLSELECTED ( Table1 ), Table1[Client] = SELECTEDVALUE ( Table1[Client] ) ), CALCULATE ( MAX ( Table1[Date] ) ), , DESC, DENSE )
Hi @lmiguez
Try adding a RANK calculated column....(RANKING transactions for each CLIENT by date)
Then you can choose RANK(1,2,3) as your filters
RANK = RANKX ( FILTER ( Table1, Table1[Client] = EARLIER ( Table1[Client] ) ), Table1[Date], , DESC, DENSE )
Thanks for your reply. It works perfectly but I need to do this through a measure because I need to interact with date slicer.
Do you know how can I do that?
Best regards,
Lucía
May be you can use this RANK measure and use it as a VISUAL filter for top3
Please see attached file as well
RANK Measure = RANKX ( FILTER ( ALLSELECTED ( Table1 ), Table1[Client] = SELECTEDVALUE ( Table1[Client] ) ), CALCULATE ( MAX ( Table1[Date] ) ), , DESC, DENSE )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |