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 getting an error with this DAX formula:
Number of NW Accounts = CALCULATE(SUM('Table1'[CustomerName]),'Table2'[Region]="Northwest")
The error msg is this:
"Calculation error in measure: The function SUM cannot work with values of type String"
Solved! Go to Solution.
Hi @Anonymous ,
You can also use "COUNTROWS",is your issue solved?If so,could you mark the reply as answered to close it?
Much appreciated.
Correct. You can't really add up customer names. What were you trying to achieve?
The number of customers. There is no customer id, so I thought to use the 'Name' field to count the number of customers. Thanks.
Then you want to swap SUM for COUNT.
Thanks. I forgot.
Hi @Anonymous ,
You can also use "COUNTROWS",is your issue solved?If so,could you mark the reply as answered to close it?
Much appreciated.
Thank you!
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |