How to get the minimum value in two columns in Power BI?
To get the lowest value in two columns in Power BI, you can use the MINX DAX function below
Lowest discount = MINX(Products,MIN(Products[Jan Discount],MIN(Products[Feb Discount])))
In the above example, the MINX DAX function returns the smallest value that results from evaluating an expression for each row of a table.
MINX DAX Considerations
- The MINX function takes as its first argument a table or an expression that returns a table.
- The second argument contains the expression that is evaluated for each row of the table.
- Blank values are skipped.
- TRUE/FALSE values are not supported.
- This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
Check also Power BI Samples