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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
DHB
Helper V
Helper V

Show percentage of all records rather than the top 5 shown in crosstab

I’m filtering a cross tab to show a top five (by sum).  I have the same top 5 in another cross tab by % of column total.  It calculates that % just from those 5 countries though, and add up to 100%, rather than from all countries (so that the sum of those five percentages ≠100), which is what I want.

 

DHB_0-1676857906543.png

 

 

Can anyone offer any suggestions?

 

Thank you!!

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.  See the last table.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
DHB
Helper V
Helper V

Thank you @Ashish_Mathur that does what I need perfectly.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

In the first place, the Top 5 do not seem to be Year wise becuase in different years, the top 5 countries could be different (so there should be more than 5 rows there).  Please clarify this even before we get on to getting the correct %'s.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

Yes, that's true.  I'm using the top 5 from all years combined.  So the five shown in any given year might all be different but I'm not worried about that.

 

DHB

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur sorry for the late reply.  I've recreated the issue with some sample data 

PBIX

XLSX

Hi,

You may download my PBI file from here.  See the last table.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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