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
Anonymous
Not applicable

Creating Production Model

In my data model, there are 
1. Monthly Planned Ratio table

2. Monthly Actual Production table

3. Calendar table

 

To know exact conumpstion based on planned ratios, i am using the formula

IO Ratio_CP_CSL =
CALCULATE(
    MAXX(
        Ratio_CSL,
        Ratio_CSL[QTYperDMT]
    ),
    USERELATIONSHIP(
        Ratio_CSL[Month],
        'A. Calendar'[Dates]
    )
)

Now it is working fine as long as any one month is selected in slicer but as soon as multiple months are filtered, it is selecting the maximum value of Ratio from selected month and multiplying it by each month's production.

 

What i want is to get
Jan= Ratio * Production

Feb = Ratio * Production

Multiple Months selected = 
sum (Jan= Ratio * Production + Feb= Ratio * Production)

 

Hope this makes sense. Looking forward to get some guidance on this.

1 REPLY 1
bhelou
Responsive Resident
Responsive Resident

Dear , Kindly share an example if possibile , 

see if this measure works with you : 

Kindly accept as a solution if it works with you and a kudo will be great . 

Regards , 


IO Ratio_CP_CSL =
SUMX (
    VALUES ( 'A. Calendar'[Month] ),
    VAR SelectedMonth = 'A. Calendar'[Month]
    RETURN
        CALCULATE (
            MAXX ( Ratio_CSL, Ratio_CSL[QTYperDMT] ),
            USERELATIONSHIP ( Ratio_CSL[Month], 'A. Calendar'[Dates] ),
            'A. Calendar'[Month] = SelectedMonth
        ) * [Actual Production]
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.