Forum Discussion

palchaw's avatar
palchaw
Frequent Visitor
2 years ago
Solved

Divide all attributes into specific attribute value

Hello,   I am creating a balance sheet financial statement output that shows line items with their actual values for each of the past three years. I need to add in a percentage column that shows ho...
  • vicky_'s avatar
    2 years ago

    To fix your measure (keeping the same dataset), i would do something like:

    __TotalBS =
    CALCULATE(
        SUM('Financials'[Value]),
            ALL('Financials'[Attribute]),
            'Financials'[Attribute] = "Total Assets"
            )

    Is there any reason you have total assets as an attribute? if you get rid of the total assets attribute, and your data looks like:

    then you can just remove that last line:

    __TotalBS =
    CALCULATE(
        SUM('Financials'[Value]),
            ALL('Financials'[Attribute])
            )