Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hola, tengo 2 secciones de la empresa descompensadas, una tiene la capacidad de producir más que la otra, dependiendo de los operarios que tenga, ya que influye en las horas productivas.
Estoy intentando crear una corrección automática, cuando una de las dos seciones esta por debajo de producción de la otra y tengo que equilibrar reduciendo la que trabaja más para equipararla con la que trabaja menos.
Tengo estos datos:
Quiero conseguir que:
Según la sección menor hago los siguientes calculos:
¿Cómo consigo que según la menor sección calcule Chapa o Pintura?
Muchas gracias de antemano
Solved! Go to Solution.
Hi @rimbi ,
Thank you for reaching out to Microsoft Fabric Community.
In order to get the smallest section to calculate Sheet Metal or Paint, please try with the below logic:
VAR SheetMetalProd = [NRadireMakeableSheetMetals]
VAR PaintProd = [NRaperdicalRepairsPaint]
-- Identify the Minor (less productive) Section
VAR MinorProduction = MIN(SheetMetalProd, PaintProd)
-- Calculate Base Correction Value
VAR CorrectionBase = MinorProduction * [TotalAnnualWorkingDays]
-- Calculate Correction for each section
VAR CorrectionSheetMetal = CorrectionBase * [MediumHFSheetMetal]
VAR CorrectionPaint = CorrectionBase * [MediumHFPaint]
-- Return the correct correction based on which section is minor
RETURN
IF(
SheetMetalProd < PaintProd,
CorrectionSheetMetal,
CorrectionPaint
)
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I'd truly appreciate it!
Thank you.
Hi @rimbi ,
Thank you for reaching out to Microsoft Fabric Community.
In order to get the smallest section to calculate Sheet Metal or Paint, please try with the below logic:
VAR SheetMetalProd = [NRadireMakeableSheetMetals]
VAR PaintProd = [NRaperdicalRepairsPaint]
-- Identify the Minor (less productive) Section
VAR MinorProduction = MIN(SheetMetalProd, PaintProd)
-- Calculate Base Correction Value
VAR CorrectionBase = MinorProduction * [TotalAnnualWorkingDays]
-- Calculate Correction for each section
VAR CorrectionSheetMetal = CorrectionBase * [MediumHFSheetMetal]
VAR CorrectionPaint = CorrectionBase * [MediumHFPaint]
-- Return the correct correction based on which section is minor
RETURN
IF(
SheetMetalProd < PaintProd,
CorrectionSheetMetal,
CorrectionPaint
)
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I'd truly appreciate it!
Thank you.
Muchas gracias por ayudarme.
Si quisiera indicar a través de Texto que sección es la de Menor Produccion, como debería hacerlo?
Saludos
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
56 | |
38 | |
34 |
User | Count |
---|---|
99 | |
56 | |
51 | |
44 | |
40 |