Join 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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 ID | Product | Total Product Purchase by Customer |
1 | A | |
1 | B | 2 |
2 | A | 1 |
3 | A | 1 |
4 | B | 1 |
5 | B | |
5 | B | 2 |
@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.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group