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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
norazlina0210
Regular Visitor

Multiply two measures column

Hi Power BI superuser,

 

I have problem with my Matrix table below:

 

norazlina0210_0-1650956349596.png

The Yield Rate is the measures value with Dax as below:

Yield Rate = 1-(SUM('BTE Raw Data'[Rejected Qty.]) / SUM('BTE Raw Data'[Inspection Qty.]))
 
My problems is how to multiply Yield Rate Acoustic and Yield Rate Listening become single value named Overall Yield Rate?
2 ACCEPTED SOLUTIONS
tamerj1
Super User
Super User

Hi @norazlina0210 

you can try

Overall Yield Rate =
VAR AcousticRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "ACOUSTIC TEST"
    )
VAR ListeningRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "LISTENING"
    )
RETURN
    ( 1 - AcousticRate ) * ( 1 - ListeningRate )

View solution in original post

Hi @norazlina0210 
Actually I was waiting you to ask me for this 🙂 
Yes there is a way but is not perfect. This would be using row totals as follows:

  1. From the format settings > activate row totals.
  2. Modify the existing measure [Yield Rate] as follows:
Yield Rate =
VAR YieldRate =
    DIVIDE (
        SUM ( 'BTE Raw Data'[Rejected Qty.] ),
        SUM ( 'BTE Raw Data'[Inspection Qty.] )
    )
VAR AcousticRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "ACOUSTIC TEST"
    )
VAR ListeningRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "LISTENING"
    )
RETURN
    IF (
        HASONEVALUE ( 'BTE Raw Data'[Taype] ),
        1 - YieldRate,
        ( 1 - AcousticRate ) * ( 1 - ListeningRate )
    )

Now the problem would be that there will be two totals. One for [Yield Rate] and one for [Inspection Quantity] which might not make sense to you. but If it does based on whatever logic then we can apply this logic the [Inspection Quantity] measure's formula same as we did with the [Yield Rate] measure. Otherwise, we can just blank out the values of the total or just hide the column manually. Please advise how you would like to proceed.

View solution in original post

6 REPLIES 6
tamerj1
Super User
Super User

Hi @norazlina0210 

you can try

Overall Yield Rate =
VAR AcousticRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "ACOUSTIC TEST"
    )
VAR ListeningRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "LISTENING"
    )
RETURN
    ( 1 - AcousticRate ) * ( 1 - ListeningRate )

Hi @amitchandak ,

 

Thank you, its work. But it is appear 2 duplicated column as below

norazlina0210_0-1651018969788.png

Is there any possibility to remove the circle column? 

Hi @norazlina0210 
Actually I was waiting you to ask me for this 🙂 
Yes there is a way but is not perfect. This would be using row totals as follows:

  1. From the format settings > activate row totals.
  2. Modify the existing measure [Yield Rate] as follows:
Yield Rate =
VAR YieldRate =
    DIVIDE (
        SUM ( 'BTE Raw Data'[Rejected Qty.] ),
        SUM ( 'BTE Raw Data'[Inspection Qty.] )
    )
VAR AcousticRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "ACOUSTIC TEST"
    )
VAR ListeningRate =
    CALCULATE (
        DIVIDE (
            SUM ( 'BTE Raw Data'[Rejected Qty.] ),
            SUM ( 'BTE Raw Data'[Inspection Qty.] )
        ),
        'BTE Raw Data'[Taype] = "LISTENING"
    )
RETURN
    IF (
        HASONEVALUE ( 'BTE Raw Data'[Taype] ),
        1 - YieldRate,
        ( 1 - AcousticRate ) * ( 1 - ListeningRate )
    )

Now the problem would be that there will be two totals. One for [Yield Rate] and one for [Inspection Quantity] which might not make sense to you. but If it does based on whatever logic then we can apply this logic the [Inspection Quantity] measure's formula same as we did with the [Yield Rate] measure. Otherwise, we can just blank out the values of the total or just hide the column manually. Please advise how you would like to proceed.

Hi @tamerj1 ,

 

I prefer to hide the duplicated column instead, thanks for your advices. Really appreciate it 😃

amitchandak
Super User
Super User

@norazlina0210 ,Try a measure like

Productx(Values(Table[Type]), [Yield Rate])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

I have tried, but it comes out as below, did i do something wrong?

 

norazlina0210_0-1650957686306.png

My dax as below:

Measure = Productx(Values('BTE Raw Data'[Type]), [Yield Rate])

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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