Forum Discussion

RingoSun's avatar
RingoSun
Icon for Helper II rankHelper II
4 years ago
Solved

Calculating percentage

I am not quite sure how to word this question so please bear with me! So basically I want to get the percentage value of Client which is 15.26%. I got the table below by just simply choosing the Perc...
  • Fowmy's avatar
    4 years ago

    RingoSun 

    It's all about modifying the filter context using CALCULATE.
    Example: To get the % of grand total by brand would be as follows. Adjust this example as per your data model

    Calc % of Grand Total =
    DIVIDE (
        [Total Sales],
        CALCULATE ( [Total Sales], ALLSELECTED ( 'Product'[Brand] ) )
    )