Forum Discussion

doingwork's avatar
doingwork
Frequent Visitor
3 years ago

How do I calculate specific Rows that are created by other measures

I am still pretty new at Power BI. Basically I have the table below 

Line Item DescriptionMonthPlanLast Year Month
Total Sales:   
Salesxxxxxxxxxxxx
Freight Billedxxxxxxxxxxxx
Gross Sales   
    
Cost of Sales:   
Standardxxxxxxxxxxxx
Freight Costxxxxxxxxxxxx
Manufacturing Costsxxxxxxxxxxxx
Gross Cost   

 

I use 3 measures to come up with the Month/Plan/Last year Month columns to get all of my data into the table

Month = CALCULATE(
    SUM('GELMAS'[Month Total]),
   INTERSECT(
        VALUES('GELMAS'[Group Number]) , VALUES('Income Statement Template'[Group Number])
    )   
)

I do the same for both Plan and Last Year Month.
 
My question is what would be the best way or how would I go about adding the values that are created from the measures to get my gross sales and gross cost?
 
Gross Sales would be Sales + Freight Billed
Gross Cost would be -Standard -Freight Cost - Manufacturing Costs

Any help would be greatly appreciated!

1 Reply