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 All
Im using the COALESCE function (same problem happens with an IF) to return a 0 when a measure is blank. Without the COALESCE the measure works fine.
I have a table that lists customers which is filtered by salesperson. If I add the measure to the table, it filters the table to only those customers where the measure is > blank. I selected Show Items With No Data and now I see all filtered customers with blanks.
The COALESCE was used to swap this blank out for a 0. However when I add the measure to the table it lists every customer in the raw table and completely ignores my filter. Adding the salesperson into the table shows the selected salesperson against every customer which is incorrect.
Without COALESCE:
With COALESCE:
See how the customer number is now every customer.
Any help would be greatly received
Solved! Go to Solution.
Ok. I found the issue.
Issues was in the relationship between two other tables (it's a big model)
Good day, I have the same problem with a database and I can't quite understand the solution of this case. Could you help me please?
Thank you, greetings
@MCornish , +0 , coalesce all those force a left join with the table and this shows all other values.
While yes I agree it forces a left join, it should still respect the filters placed on the customer table
Ok. I found the issue.
Issues was in the relationship between two other tables (it's a big model)
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 |
---|---|
111 | |
94 | |
82 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |