The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
13 | |
9 | |
7 |