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.
Hi all,
I'm struggling with creating a measure with the sum of revenue of products on a receipt. Please see below:
For total revenue per receipt I wrote the following formula to create a calculated measure:
Solved! Go to Solution.
Hi @Anonymous , Please try:
CALCULATE(SUM(sales[revenue]),ALLEXCEPT(sales[receipt code]))
Hi @Anonymous , Please try:
CALCULATE(SUM(sales[revenue]),ALLEXCEPT(sales[receipt code]))
Thanks @Anonymous! That fixes it!
Only one small edit: ALLEXCEPT requires 2 values: first the table name then the column name. So ALLEXCEPT(sales,sales[receipt code]).
Yes, sorry. Forgot about that.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |