Forum Discussion
Measure ignoring zero values
- 2 years ago
i think that problem with your code is that example the line you highlighted in red,
im assunmming that there is no row for this line item in 26/02.2023,
so in the total,
your code will return for max and min --> 12/03/2023 which is 1 - 1 = 0.. and that is why you are getting such results .
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍
Hi dtgold81
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly