cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
uie07923
Frequent Visitor

% 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.

2021-09-29_15-38-29.jpg

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

2021-09-29_15-42-37.jpg

2 REPLIES 2
v-jingzhang
Community Support
Community 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

21100501.jpg

 

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

vanessafvg
Super User
Super User

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.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors