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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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])))

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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