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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RolandBAV
New Member

Add Row with Percentage to Table visual

Hi everybody

 

This is my first post in this forum and I am new to Power BI.

 

Actually I am creating a dashboard on which I would like to show the total sum of sales in one row and the percentage in another row. So the result should look as follows:

 

RolandBAV_0-1718001323458.png

The source data would look like that:

RolandBAV_2-1718001606940.png

 

A secound table should show the customer count per MarketArea and look like that:

RolandBAV_3-1718001684221.png

 

Currently I am fetching the data from the database. In the database I created a view that aggregates the data and using a union I get the sums and the percentages in two rows.

 

The problem is, that the drill-trough is not possible as my view does not cotain the single customer records.

 

How can the result be achieved in Power BI?

 

Thanks in advance for your help.

 

Regards,

 

Roland

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@RolandBAV , Create measures

 

sales = Sum(Table[Sales Value])

 

Clients = distinctcount([client ID])

 

% of Sales = divide([sales], calculate([sales], removefilters(Table[Market Area])) )

 

% of client = divide([Clients], calculate([Clients], removefilters(Table[Market Area])) )

 

 

You can now use these measures on Matrix visual- With option - Switch values to row

 

Switch values to row - https://youtu.be/cN8AO3_vmlY?t=11650

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Hi @RolandBAV 

If you just wanted to do pivot ofyour data just take matrix visual and enable this option under value section

Uzi2019_0-1718007090567.png

 

 

take your market in column section and sales and percentage in value section

 

Uzi2019_1-1718007193602.png

 

 

I hope i answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

4 REPLIES 4
Uzi2019
Super User
Super User

Hi @RolandBAV 

 

Can you please show case your power bi dataset like how your data is look alike??

just simple take table visual add all your columns into it.  and share screenshot of that if possible.

 

bcz by looking at the source data your expected output seems quite simple but dont know about actual data ingested in power bi.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @Uzi2019

 

Sorry, my description was not clear. This is the data I would like to process, meaning the dataset contains this data:

RolandBAV_0-1718008462139.png

Regards,

 

Roland

Hi @RolandBAV 

If you just wanted to do pivot ofyour data just take matrix visual and enable this option under value section

Uzi2019_0-1718007090567.png

 

 

take your market in column section and sales and percentage in value section

 

Uzi2019_1-1718007193602.png

 

 

I hope i answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
amitchandak
Super User
Super User

@RolandBAV , Create measures

 

sales = Sum(Table[Sales Value])

 

Clients = distinctcount([client ID])

 

% of Sales = divide([sales], calculate([sales], removefilters(Table[Market Area])) )

 

% of client = divide([Clients], calculate([Clients], removefilters(Table[Market Area])) )

 

 

You can now use these measures on Matrix visual- With option - Switch values to row

 

Switch values to row - https://youtu.be/cN8AO3_vmlY?t=11650

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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