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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Scarthart
Helper I
Helper I

Properly split values in Power BI

Very good days, I want to divide two columns but when checking the division in excel, I identify that power bi did the division wrong

 

How can I divide these values correctly?

Captura de pantalla (165).pngCaptura de pantalla (168).pngCaptura de pantalla (169).png

11 REPLIES 11
bolfri
Super User
Super User

Hi,

data that you're comparing with are different.

Record ArticuloSourceDispon ValueRotationCalculator
BUJA UNIVERSAL CORTAExcel on your screen13425355= 13425 / 355 = 37,8169014084507
BUJA UNIVERSAL CORTAPower BI134250352= 134250 / 252 = 381,3920454545455

 

Different data = Different results 🙂

Both programs did thier job and gave correct results based on provided data.

 

Dispon = SUM(Hoja1[Disponibilidad])
Rotation = SUM(Hoja1[Rotación Promedio Mensual])
Share = DIVIDE([Dispon],[Rotation])

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@bolfri How could I split the non-summarized data as it is splitting me only the grouped correctly

@bolfri Hi, 
How strange since all I did was export the data.

 

Even so, I already discovered what is happening, is that when dividing the data accumulates and I do not want it to accumulate, I only take the value visible in the table

 

@bolfri Captura de pantalla (172).pngCaptura de pantalla (173).pngCaptura de pantalla (174).pngCaptura de pantalla (175).png

Is that solved your problem or do you need a SUMX calculation (measure that performes row by row and then agregate the result)? I am sorry, but I don't understand the meaning of this columns and their business meaning.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




bolfri
Super User
Super User

Can you put in here like... I don't know 6-7 example rows from you data? You can share it via https://wetransfer.com/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




themistoklis
Community Champion
Community Champion

@Scarthart 

 

Try the following formula on a measure:

% Share =
VAR numerator =
SUM(INVENTARIO.....[Disponibilitad]])
VAR denominator =
[Rotacion Promedio Mensual]

RETURN
DIVIDE ( numerator, denominator )

@themistoklis Is there a way to do it without the need for SUM or SUMX , but to divide the values without grouping them

@themistoklis Hello, thank you very much, for answering it still does not give me what it should give me, that is, what is calculated for me in Excel, it should be the same calculation in Power BI

Captura de pantalla (170).png

1Daniel993
Helper III
Helper III

Hola, podrias mejor generar una columna formulada con la misma expresion y evitarias errores en la medidas

@1Daniel993 hello how can i do that

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.