Forum Discussion

sheap069's avatar
sheap069
Icon for Helper III rankHelper III
6 years ago
Solved

Get Column Percentage and Line Chart Values as Percentage

Hello,   I have 25 regions and I'm currently displaying the count of applications made to each region based on time in a line chart, as shown in the following image.  This is working the way...
  • v-alq-msft's avatar
    6 years ago

    Hi, sheap069 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

     

    Table:

     

    You may create a calculated column and two measures as below.

    Calculated column:
    YearMonth = FORMAT('Table'[Date],"yyyy-mm")
    
    Measure:
    Percentage for each region = 
    DIVIDE(
        SUM('Table'[Value]),
        CALCULATE(
            SUM('Table'[Value]),
            ALLEXCEPT('Table','Table'[Region])
        )
    )
    
    Percentage of applications for each region for each month = 
    DIVIDE(
        SUM('Table'[Value]),
        CALCULATE(
            SUM('Table'[Value]),
            ALLEXCEPT('Table','Table'[Region],'Table'[YearMonth])
        )
    )

     

    Result:

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.