Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Need A Help with DAX Formula

Hello,

Can you please help me writing  DAX formula. I want to calculate the total products consumed by a customer. Can you please help me to write the formula? Really appreciate your time and efforts.

Customer IDProductTotal Product Purchase by Customer 
1A 
1B2
2A1
3A1
4B1
5B 
5B2
1 REPLY 1
Fowmy
Super User
Super User

@Anonymous 

Create  the following measure  by right-clicking on the table, and choosing New Measures:

Total Products = COUNT(Table[Product])


Then, add the Customer ID and the measure to a Table Visual.

Fowmy_0-1623095908585.png

 

 



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.