Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
saumitra
Helper I
Helper I

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.

saumitra_0-1662123604129.png

 

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

saumitra_1-1662124285456.png

 

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

 

 

 

1 ACCEPTED SOLUTION

Here is one of many possible implementations. Another option would be to combine your source tables.

View solution in original post

3 REPLIES 3
saumitra
Helper I
Helper I

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: 

 

saumitra_1-1662357550232.png

 

Kindly please provide some solution to get the above outcome. 

 

Regards,

Saumitra

 

 

 

Here is one of many possible implementations. Another option would be to combine your source tables.

lbendlin
Super User
Super User

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-...

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.