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.
Solved! Go to Solution.
ALL() is a filter function, it's not return any number to divide
try
Divide(
[CustomerShareOfSales],
CALCULATE(SUM(SalesInvoices[TotalSum]), ALL(SalesInvoices) )
)
ALL() is a filter function, it's not return any number to divide
try
Divide(
[CustomerShareOfSales],
CALCULATE(SUM(SalesInvoices[TotalSum]), ALL(SalesInvoices) )
)
Thank you this works! Do i understand the CALCULATE in this correctly: It creates a new filter context in which the SUM is evaluated in and is therefore mandatory?
well,CALCULATE() in this case allows you to evaluate ALL() context as a filter
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |