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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
matpat1284
New Member

Calculate % of total value of each category

Hi,

 

I've got a large dataset of volumes per each category, my table looks like this:

 

DateCategoryVolume
1.01.2023A1023
1.01.2023B421
1.01.2023C241
1.01.2023D144

 

 

I would like to build up a visual that shows % of each category per day vs the total sum of the volume. 

 

How to write a formula in Power BI to achieve this?

11 REPLIES 11
matpat1284
New Member

It doesn't work for me 🤔

matpat1284_0-1675953244050.png

 

Could you please provide the Measure that you have used

 

Payments % = Divide (CALCULATE(SUM(FT[ORDERS_VOLUME])), CALCULATE (SUM(FT[ORDERS_VOLUME]), ALLSELECTED (FT)))


Looks ok. Could you please increase decimals to 2 in the format of the measure?

 

it is ok, if you look at grand total, however, I would like to include the same for each day, so it seems like it does not count it for each day but only for the overall period

matpat1284_0-1675955815341.png

 

If you want Sub totals for each day, you may try turning subtotals on in the formatting of the visual

I want to build it this way: 

matpat1284_0-1675956199678.png



However, with this formula it gives me inaccurate percentages. For each day each category should give 100% as a sum, whereas here it's showing % of all per selected period of time I guess

If you could giveme the pbix file, I can explore

Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1675951315743.png

 

This one worked perfectly for me, thanks a lot! I've got another question on how to use the percentage values for further actions? So what I want to achieve is to keep this table and using another table containing a Sum of Costs and those costs should be spreaded based on the percentage values to the products from your example. Any chance to achieve this?

Thanks in advance!

Hello,

You will have select the second table and create another measure , such as cost %, in that table. You may use the same formula by changing the column name to Cost .

Hope this helps

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors