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
Anonymous
Not applicable

Include a level in grand totals?

For excel, we had to make the Total section into its own pivot table where we collapsed the columns between the two to make them appear as one table. Is there a way in Power BI that we can achieve this same layout in one matrix? The Type(US/Interdivisional) is one column header and Debit/Credit is the other. We want a way for the grand totals to be broken out between debit and credit still but I have not seen any options that would enable me to do this. 

 

 

Pivot_Headings.jpg

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous how does your raw data looks like? And what is your expected output, please provide an example



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Here is an example of my data. If you put this into a pivot with year as the row, ProdType and Debit/Credit as columns, and a count of PolicyNum and sum of Amount as values you will see in your grand totals you just have Total Count and Total Amount. I would like to be able to do something like the picture in my original post where I can still have the Debit/Credit differentiated in the Grand Totals.

 

Year

PolicyNum

ProdTypeDebit/CreditAmount
20181

US

Debit100
20182USCredit-10
20193InterdivisionalDebit200
20194InterdivisionalDebit10
20185

US

Credit-250
20196USDebit300
20187USCredit-200
20178InterdivisionalCredit-10
20199InterdivisionalDebit100
201910USDebit150

Hi @Anonymous ,

 

Is this what you want?

count.PNG

You can refer to this pbix.

 

Best Regards,

Liang

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

Anonymous
Not applicable

No. I can get a matrix like that. What we are looking to do is also have the totals broken out by Debit and Credit as well. If you look my picture in the first post you will see an example. In excel we can do this by collapsing the columns between two pivot tables to make it LOOK like it is one pivot table. Ideally, we are looking for a work around to get it into one. I think I have an idea for columns, but we also have areas where we need to do this for rows.

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.