Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
PKPK90
Helper I
Helper I

Maximum date from minimum date (measure)

Hi, I am trying to create measure that will return Maximum date from another measure.

First measure is in Site, Group, Item level

Second, should be on Site, item level only.

First measure is calculating first available date. Second shoould return max from MinAvailableDate_WC for Site Item.

PKPK90_0-1707146531783.png

result for second measure should be 2/5/2024 for 0000-214692-02 and 2/12/2024 for A110-20003-01

 

MinAvailableDate_WC =
VAR __DS0Core =
    ADDCOLUMNS(
        SUMMARIZE(
            'Calendar',
            'Calendar'[Site],
            'Calendar'[WorkCenterDescription],
            'New_CapacityTable'[Date],
            "M_RunningSub_Balance5", '_Measures'[M_RunningSub-Balance5]
        ),
        "TotalCapacity", CALCULATE(MAX('New_CapacityTable'[TotalCapacity]))
    )

VAR FilteredDS0Core =
    FILTER(
        __DS0Core,
        '_Measures'[M_RunningSub-Balance5] >= [TotalCapacity]
    )

VAR MinDateWithCapacityExceededScalar =
    MINX(FilteredDS0Core, 'New_CapacityTable'[Date])

RETURN
    MinDateWithCapacityExceededScalar
1 REPLY 1
lbendlin
Super User
Super User

You cannot measure a measure.  Implement your business logic from scratch.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.