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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
SelflearningBi
Helper III
Helper III

How to refer to a column in measure.

SelflearningBi_0-1653562451345.png

OTIF Quantity % =
divide(CALCULATE(SUM('FW22_5 25'[Confirmed Quantity(Total)]),'FW22_5 25'[OTIF]="Yes"),SUM('FW22_5 25'[Confirmed Quantity(Total)]))
 

I have this function.  Since ther are empyt value in OTIF column. I would like my confirmed quantity exclused those sum of OTIF missing value. 

SelflearningBi_1-1653562580729.pngSelflearningBi_2-1653562601289.png

 

How should l

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @SelflearningBi ,

 

I am not sure if I understood your question correctly. Your measure [OTIF Quantity %] formula is correct, if you want to convert the calculated column [OTIF] to a measure, please use the MAX or SELECTEDVALUE function.

 

 

OTIF =
IF (
    ISBLANK ( MAX ( 'FW22_5 25'[on Time] ) ),
    BLANK (),
    IF (
        AND (
            MAX ( 'FW22_5 25'[In Full] ) = "Yes",
            MAX ( 'FW22_5 25'[on Time] ) = "Yes"
        ),
        "Yes",
        "No"
    )
)

 

 

If you want to calculate the percentage of the total value of the values listed as "Yes" in the [OTIF] column, try the following formula.

 

OTIF Quantity % = 
DIVIDE (
    CALCULATE (
        SUM ( 'FW22_5 25'[Confirmed Quantity(Total)] ),
        'FW22_5 25'[OTIF] = "Yes"
    ),
    SUMX ( ALL ( 'FW22_5 25' ), 'FW22_5 25'[Confirmed Quantity(Total)] )
)

vkkfmsft_0-1653903117098.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.