Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I am tryin to do the below and receicing this mesage: A table of multiple values was supplied where a single value was expected.
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] = ALL(SalesTargets[city])))
Solved! Go to Solution.
@A_H
ALL(SalesTargets[city]) returns a single column table containing unique values in City Column
Depending on what you are trying to achieve you could do any of the following
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] = MAX(SalesTargets[city])))
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] in ALL(SalesTargets[city])))
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] = SalesTargets[city]))
@A_H
ALL(SalesTargets[city]) returns a single column table containing unique values in City Column
Depending on what you are trying to achieve you could do any of the following
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] = MAX(SalesTargets[city])))
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] in ALL(SalesTargets[city])))
Actual sales = CALCULATE (SUM (ORDERDETAILS[Gross Total After Discount]), FILTER(ORDERDETAILS,ORDERDETAILS[city] = SalesTargets[city]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
100 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |