Forum Discussion
Adity
4 years agoRegular Visitor
MIN Function giving wrong total
I have 2 measures say Total_Sales & Sales_LastYear. I needs to find the MIN of these two column and sum the MIN value. When I do so, It shows the sum of Sales_LastYear. Dax used: Minimum...
- 4 years ago
Hi, Adity
Maybe it need a little modified ,try to add another formula as below:
Measure = SUMX('Table',[Minimum (Incorrect Total)])or
Measure = SUMX('Date'[Month Year],[Minimum (Incorrect Total)])If it doesn't work , please share your sample file for further research.
Best Regards,
Community Support Team _ Eason
amitchandak
4 years agoSuper User
Adity , For total you need force a row context
example
Sumx(Values('Date'[Month Year]), calculate( MIN( [Total Sales], [Sales LY] )))
- Adity4 years agoRegular Visitor
amitchandak For some reason I dont find any change in the solution. By giving your query i wasnt able to see the MIN values in my column.