Как посчитать долю от суммы категории из одной таблицы?

Eremina, Anastasia 21 Reputation points
2020-12-07T11:58:08.32+00:00

Привет.
Скажи есть способы отразить в одной таблице процентную долю продукта от суммы всей категории, (а не от суммы всех продуктов), если у меня много категорий и очень много продуктов?
Пример таблицы 45588-%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81.jpg

Например, я хочу знать % долю Gordons от суммы всех продуктов категории Gin, ниже я хочу увидеть % долю baileys от суммы Liqueur - как сделать такую таблицу?

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2020-12-07T15:42:08.127+00:00

    QnA forums are currently English only. They're actively answering question in dedicated forums here.
    https://social.technet.microsoft.com/Forums/ru-ru/home

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Lz._ 9,016 Reputation points
    2020-12-07T15:34:44.067+00:00

    Hi @Eremina, Anastasia

    To help others, could you please change the title of your post with something like: How do I calculate the percentage of Product by Category?

    Bing translation of your post:
    Tell me there are ways to reflect in one table a percentage of the product from the amount of the entire category, (rather than the amount of all products) if I have many categories and a lot of products?
    For example, I want to know a % share of Gordons from the sum of all Gin category products, below I want to see a % share of baileys from the amount of Liqueur - how to make such a table?

    Assuming myTable as below on the left side (picture truncated):

    45833-demo.png

    3 measures:

    • TotalProduct =SUM(myTable[Sell-Out Value])
    • TotalCategory =CALCULATE([TotalProduct],ALLEXCEPT(myTable,myTable[Category]))
    • Product %age =DIVIDE([TotalProduct],[TotalCategory],0)

    Corresponding Excel sample is available here

    If this solves your problem please mark this reply as answer to help others. Otherwise, if I misunderstood what you want to acheive please post an example of the expected result. Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.