Forum Discussion
nmhung49
Helper II
1 year agoHow to create measure to CALCULATE Qty_In
I’m having trouble with the CALCULATE function for Qty_In, which is incorrect when I select the current year and month. I want the result to display the farm org for the selected month and year, and ...
nmhung49
Helper II
1 year agoSorry, if I add the Farm level into the matrix, the sum by farm is incorrect. Please help me edit the DAX again. Thanks!
- hnguy711 year ago
Super User
hi nmhung49
Can you share a sample of the expected value / output when you add the farm?
- hnguy711 year ago
Super User
Hi nmhung49 ,
There are times when you apply a filter criteria within your expression you would still receive the cumulative total even though at the line item is correct. To fix this, you would create a new measure to sum on top of that sum. For your example, create a new measure and replace the measure in your visual with this one:
Corrected.InQty = SUMX(dimFarmOrg, [Qty_InV1])