Forum Discussion

uie07923's avatar
uie07923
Frequent Visitor
4 years ago

% from month - Calculate

Hi guys, 

 

Sorry for the simple question.

I have a measure with the simple SUM for a column (Tempo Ocupado CAL = SUM('ZCO08-CAL'[Atvd.a ser conf.])

 

I want to find out the % that it represents for each product family (Press/Prensa) for each month.

I need to build the measure for it, as I need to put it in a chart.

2 Replies

  • vanessafvg's avatar
    vanessafvg
    Icon for Community Champion rankCommunity Champion

    it depends on how you are going to display it on the visual, what is your expectation of how it will look as per the table you have provided?

     

    also its always best to provide sample data in text form.

  • v-jingzhang's avatar
    v-jingzhang
    Icon for Community Support rankCommunity Support

    Hi uie07923 

     

    You could try this measure:

    Percentage = DIVIDE(SUM('ZCO08-CAL'[Atvd.a ser conf.]),CALCULATE(SUM('ZCO08-CAL'[Atvd.a ser conf.]),ALLSELECTED('ZCO08-CAL'[Prensa])))

     

    Another option is that you can drag 'ZCO08-CAL'[Atvd.a ser conf.] column into the Matrix visual as Values field. Then right click on it and select Sum and Show value as > Percent of column total

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.