Forum Discussion

saumitra's avatar
saumitra
Helper I
4 years ago
Solved

Totals Are For Only For One Column

Hi Everyone,

 

In my previous question - which got resolved (Link: https://community.powerbi.com/t5/Desktop/Grouping-Measures/m-p/2742630#M955968), I had to group the measures to show it under "Actuals", "Projections" and "Targets" category. 

 

However, after getting the solution, I am unable to get the Column subtotals for all the three categories in table 1.

 

And in 2nd table, I'm getting column totals only for "Projections". 

 

I have made calculation groups for 1st table namely - "Projection", "Actual" and "Target" and for the 2nd table, all the names in Rows are calculation groups for Actuals and Projections category. 

 

Any help would be appreciated.

 

Regards,

Saumitra

 

 

 

3 Replies

  • Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
    Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
    https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

    Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

    https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

  • Hi lbendlin,

     

    The sample data is as follows: 

     

    - Target Table

    DepartmentMonthF.YTargetType
    AJan2022-20231000Target
    BFeb2022-20231050Target
    CMar2022-20231100Target
    AApr2022-20231000Target
    BMay2022-20231050Target
    CJun2022-20231100Target

     

    - Revenue table

     

    DepartmentMonthF.YRevenueType
    AJan2022-2023900Actual
    BFeb2022-2023950Actual
    CMar2022-20231000Actual
    AApr2022-2023900Actual
    BMay2022-2023950Actual
    CJun2022-20231000Actual

     

    - Projections table 

    DepartmentMonthF.YProjectionType
    AJan2022-2023975Projection
    BFeb2022-20231025Projection
    CMar2022-20231075Projection
    AApr2022-2023975Projection
    BMay2022-20231025Projection
    CJun2022-20231075Projection

     

    I have used a simple DAX for each i.e., Projection/Revenue/Target = SUM('table' [<projection/target/revenue>])

     

    In order to get a matrix, I had created a calculation group of each i.e. Revenue, Target and Projection. However, after pulling the calculation group in the matrix, I am not getting column subtotals in Power BI Visualization.

    Required output is column subtotals after each quarter for each Revenue, Target and Projections as below: 

     

     

    Kindly please provide some solution to get the above outcome. 

     

    Regards,

    Saumitra