Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
two tables:
Balances:
| Date | Account | Amount | 
| 2024-05-27 | 1 | 10 | 
| 2024-05-27 | 2 | 10 | 
| 2024-05-27 | 3 | 15 | 
| 2024-05-27 | 4 | 20 | 
| 2024-05-27 | 6 | 50 | 
| 2024-04-30 | 1 | 5 | 
| 2024-04-30 | 2 | 5 | 
| 2024-04-30 | 5 | 40 | 
| 2024-04-30 | 3 | 10 | 
Acounts:
| Account | Client | 
| 1 | A | 
| 2 | B | 
| 3 | C | 
| 4 | A | 
| 5 | D | 
| 6 | E | 
A client can have more than one account, pretty basic.
When I try to do a distinct count of clients for the max date (in this case may 27th) I get the
Solved! Go to Solution.
Hi @Sibrulotte - You need to follow a structured approach to ensure that you're considering only the clients that have transactions on the maximum date without duplication
Use the below measure
DistinctClientCountOnMaxDate =
can you please use the above logic and let know.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
| 
 Proud to be a Super User! |  | 
| Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) | 
Hi,
Create a Calendar Table with a relationship (many to One and Sigle) from the Date column of the Balances table to the Date column of the Calendar Table. In the Balances tables, write this calculated column formula to bring over the Client from the Accounts table
Client = related(Accounts[Client])
Write this measure
Measure = calculate(distinctcount(Balances[Client]),datesbetween(calendar[date],max(calendar[date]),max(calendar[date])))
Drag this measure to a card visual.
Hope this helps.
Hi
Please help me with how I prepared for the Microsoft Power BI exam.
Hi @Sibrulotte - You need to follow a structured approach to ensure that you're considering only the clients that have transactions on the maximum date without duplication
Use the below measure
DistinctClientCountOnMaxDate =
can you please use the above logic and let know.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
| 
 Proud to be a Super User! |  | 
Please can someone help me with what I can buy to practice for the Microsoft Power BI exam after two weeks I have an exam
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |