Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi PowerBi community,
I am new to Powerbi and DAX, I am trying to solve an issue of selecting the MAX/Last date from a column (payment date) where there were multiple same numbers (Invoice Key column). if there is no multiple keys then just display the 1 payment date. i get the concept of what needs to be done but i just cant get my head wrapped around how to partition the distinct invoice keys and then use that to find the max/last date from that partition. any help or advice is really appreciated. thank you!!
Solved! Go to Solution.
Hi Magnus,
Thank you for your response, i just so happen to came across a solution to my issues earlier using the below query:
Hi Magnus,
Thank you for your response, i just so happen to came across a solution to my issues earlier using the below query:
 
					
				
		
You can create the following new measure and add it to your visual.
 
					
				
				
			
		
| User | Count | 
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |