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
PwrBI01
Post Patron
Post Patron

Change the total in a table

Hi guys,

 

I have the following table:

 

Imagen2.png

 

In the column real number, the total is a sum of all the groups (each of them calculated as Sales Comercial 1/Total Sales) and I would like to get the average.

 

I will appreciate your help.

 

Thanks in advance.

 

Regards.

1 ACCEPTED SOLUTION

Hi @amitchandak, thank you for your answer.

 

I tried your measure but it did not calculate the right result, I solved it with this measure:

Forced number = IF(NOT(ISFILTERED('GROUP'[Group]));[Sales of comercial 1]/[Total sales];Real number))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@PwrBI01 , Better to have measure like this

divide(sum(Table[Sales Comercial 1]),sum(Table[Total Sales]))

 

if you need simple avg

Averagex(Table, divide((Table[Sales Comercial 1]),(Table[Total Sales])))

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

Hi @amitchandak, thank you for your answer.

 

I tried your measure but it did not calculate the right result, I solved it with this measure:

Forced number = IF(NOT(ISFILTERED('GROUP'[Group]));[Sales of comercial 1]/[Total sales];Real number))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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