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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Analitika
Post Prodigy
Post Prodigy

Divide from total value in visual table in Power BI

Hi,

 

I would like to ask how I could divide total value from each line in visual. I mean to find percent of each quantity.

Analitika_0-1687157778419.png

Here 496744,54 is total value I need delete total from each line value for example,  496,744.54/22 939.16 and so on. To get percent of total for each line. now I am getting 100 of each line it is not ok. 

 

 

2 REPLIES 2
AnkitKukreja
Super User
Super User

Hi @Analitika 

 

You can use All function with your Sand Eur/ VNT measure while dividing. This will ignore the filter context from the matrix and gives you the total every time and then you can divide the same measure with the one which is using All. So it should show something like: Percentage = Divide ( ALL ( Sand Eur/VNT) , ( Sand Eur/VNT) , 0 )

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
PhilipTreacy
Super User
Super User

Hi @Analitika 

 

Download sample PBIX file

 

This DAX is what you need

 

 

 

total_per_eur_vnt = DIVIDE(SELECTEDVALUE('DataTable'[Sand Eur / VNT]), CALCULATE(SUM('DataTable'[Sand Eur / VNT]), (ALL('DataTable'))))

 

 

You need to divide the value for the line (using SELECTEDVALUE) by the total for the whole table.

 

sumtot.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors