Forum Discussion

nmartinovic's avatar
nmartinovic
Regular Visitor
10 years ago
Solved

Create a calculated measure based on a column and measure

Hello,

 

I would like to create a table within Power BI Desktop.  I have a benchmark column, and a closed ticket measure.  I would like to create a new value that is the first two values multiplied by one another.  When I try and do this I get an error.

 

Any ideas?

 

Category TierBenchmarkClosed TicketsTicket Factor
MDA212
WEDCS428
BlueKaik6318

 

Sincerely,

 

Nick

  • Hi,

     

    The problem is that you need to apply a calcul on your column before multiply it with your measure.

    You have several solutions for that :

     

    Sum first then multiplication :

    New Measure = SUM( [benchmark] ) * [closed ticket]

    Multiplication then sum :

    New measure = SUMX( 'YourTable' ; [benchmark] * [closed ticket] )

     

    You can use SUMMARIZE fonction if the situation is more complicated, but those examples is sufficient to my opinion.

1 Reply

  • Rémi's avatar
    Rémi
    Icon for Resolver III rankResolver III

    Hi,

     

    The problem is that you need to apply a calcul on your column before multiply it with your measure.

    You have several solutions for that :

     

    Sum first then multiplication :

    New Measure = SUM( [benchmark] ) * [closed ticket]

    Multiplication then sum :

    New measure = SUMX( 'YourTable' ; [benchmark] * [closed ticket] )

     

    You can use SUMMARIZE fonction if the situation is more complicated, but those examples is sufficient to my opinion.