用于计算一组完整 table 中的最小值的 Dax 度量

Dax measure to calculate minimum value with in a group of a complete table

要求创建一个度量(不是使用 Earlier 的计算列),以按年份和“UnitofMeasure”获取产品组的最低单价并将它们显示为“UnitPriceMin”针对单独列中的完整数据列表,如下所示-

您可以尝试以下措施。

I have considered column "Year", "description" and "unitmeasure" for the grouping. You can add/remove columns as per your necessity.

Considered your table name - "product_details". change it as per your table name.

group_wise_min = 

VAR current_row_year = MIN(product_details[year])
VAR current_row_product = MIN(product_details[description])
VAR current_row_unit_measure = MIN(product_details[unitmeasure])

RETURN
CALCULATE(
    MIN(product_details[unitprice]),
    FILTER(
        ALL(product_details),
        product_details[year] = current_row_year
            && product_details[description] = current_row_product
            && product_details[unitmeasure] = current_row_unit_measure
    )
)

输出如下-