Forum Discussion

Farooqh's avatar
Farooqh
New Member
6 years ago

Percentage monthly wise for Matrix tabled Data

HI,

 

I have a measure which does calculation to get Net sales values based on the slicer selection.

 

Net sales Monthly wise total measure: 

MSR_MON_FCST_NET_SALES =
VAR SELECTED_DIV = ALLSELECTED(DIVISION[Division])
VAR SELECTED_BU = ALLSELECTED(BUSINESS_UNIT[Business_unit])
VAR SELECTED_SEG = ALLSELECTED(SEGMENT[Segment])
RETURN
CALCULATE(SUM(INCOME_STATEMENT_DATA[MONTHLY_CURRENT_FORECAST]),FILTER(
INCOME_STATEMENT_DATA,INCOME_STATEMENT_DATA[DIVISION] IN SELECTED_DIV && INCOME_STATEMENT_DATA[Segment] IN SELECTED_SEG && INCOME_STATEMENT_DATA[Order_Line_items]= 2 && INCOME_STATEMENT_DATA[Business_unit] IN SELECTED_BU && INCOME_STATEMENT_DATA[FIN_GROUP] = INCOME_STATEMENT_DATA[FIN_GROUP] && INCOME_STATEMENT_DATA[BUID] = INCOME_STATEMENT_DATA[BUID] && INCOME_STATEMENT_DATA[MONTH] = INCOME_STATEMENT_DATA[MONTH]))

 

This measure will give me the net sales value, and i got to divide this with other line items value.

For example:  Gross sales, ADITA, and etc.

 

So, I have this measure 
MSR_MON_%_FCST_NET_SALES = DIVIDE(SUM((INCOME_STATEMENT_DATA[MONTHLY_CURRENT_FORECAST])),CALCULATE([MSR_MON_FCST_NET_SALES],ALLSELECTED()))

 

Now what I want is, Matrix visualization. When I put this measure in the values and Line times in the rows and Month in columns, the total is getting distributed, 

But what i want is, total should not be distributed and it should strict with month wise.

 

Net sales should always be 100% and this net sales measure should divide with other and give percentage monthly wise.

 

Any suggesstions, please?

 

 

2 Replies