March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Requiero obtener el % de venta el cual se calcula
Gastos / Ventas
Pero los datos los tengo en categoria Planta y subcategoria Rubro como en el ejemplo de la imagen:
Planta = PLANTA 1 Y PASTAS
Rubro = [Kilos Ventidos],Ventas,Gastos
Values = Columna Anterior
El problema:
Al momento de dividir gastos / venta = ERROR
Lo correcto seria lo siguiente:
13,204,780 / 74,215,884 = 0.177922936281403
Gracias por la ayuda.
Solved! Go to Solution.
Hi @Edimar90 ,
Add the ALL or ALLSELECETED function in front of the tb_Admon_Gastos_Planta table, I'm not sure if it meets your expected results, please show the sample data in a usable form as well as the expected results.
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Edimar90 ,
Add the ALL or ALLSELECETED function in front of the tb_Admon_Gastos_Planta table, I'm not sure if it meets your expected results, please show the sample data in a usable form as well as the expected results.
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
ya tengo los dos valores separados pero sigue mandando error en la divicion:
I need to split the rows
Row Expenses / Row Sales
But I have the data in the Plant category and the Category subcategory, as in the example in the image:
Plant = PLANT 1 AND PASTA
Item = [Kilos Sold],Sales,Expenses
Values = Previous Column
The problem:
At the time of splitting expenses/sales = ERROR
My table:
act = Value
Rubro = subcategory
Planta = category
My operation is:
DIVIDE(SUMX(tb_Admon_Gastos_Planta,tb_Admon_Gastos_Planta[Gastos]),SUMX(tb_Admon_Gastos_Planta,[Ventas]),0)
The correct thing to do would be the following:
13,204,780 / 74,215,884 = 0.177922936281403
Thanks for the help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |