Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 39 | |
| 29 | |
| 24 |