Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.