Forum Discussion

greVia's avatar
greVia
New Member
5 years ago
Solved

Revenue in matrix

Hello,

 

I need to have a matrix with total revenue measure as Revenue =Unit_Price*Quantity the problem is that these fields are in two differente table.

My db is:

OrdersordersRowOrdersShipped
OrderNumber(1)OrderNumber(m)Index(m)
Customer NameIndex(1)Quantity_Shipped
WBSPart_numberShipping_Date
 Quantity 
 TotalValue 
 UnitPrice (useless) 

 

My idea was to use this measure in Matrix: 

revenue= SUM(OrdersRows[TotalValue])/SUM(OrdersRows[Quantity])*SUM(Ordershipped[Quantity_Shipped])
it is right (it should)  with row but it is totally wrong with subtotal and total.
 
Could you please help me?
 
many thanks

3 Replies

    • greVia's avatar
      greVia
      New Member

      I read part of your blog it is so interesting, thanks.  

      But I have some doubts:

      1) Multiplication should done at line" It means that I should create a column? I didn't understand

      2)What is common group (I am looking for on internet but I am not finding), if I use this common group then I can use your formula?

       

      Sorry for questions and thanks

    • greVia's avatar
      greVia
      New Member

      I solved the problemi with 

      SUMX(Ordershipped,Ordershipped[Quantity]*RELATED(OrdersRows[UnitPrice]))
       
      thank  your reply i found the solution many thanks