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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Chris03_
Frequent Visitor

Desfiltrar al colocar en matriz

Buenas tardes, Tengo una medida que me calcula un factor de conversión 

CNVS = DIVIDE([Kg alimento]*[%Part],[Sum Peso T],0)
 
Este valor me da el factor por galpon, hasta ahi no hay problemas y sale perfecto. El problema es que quiero colocar en una matriz por granja y de ahi desagregar a por galpon. El problema es que el factor de conversion por granja me sale erroneo y debe de ser por que le afecta el %Part que se encuentra en la medida (ya que ese valor ayuda a hallarlo por galpon). No le asigno ningun porcentaje de participacion a cada granja, solo a los galpones dentro de cada granja.
Chris03__0-1710877842645.png

Obs: el error se ve en Gja Don Ignacio con CNVS 0.80. Sin embargo el de arriba parece estar correcto.

Necesito que me salga el valor por granja. 

Desde ya gracias

1 REPLY 1
Anonymous
Not applicable

Hi@Chris03_ 

You can do this by modifying the calculations to aggregate the components of the measure at the farm level before performing the division

CNVS_Farm = 
DIVIDE(
    SUMX(ALLSELECTED(Farm[Shed]), [Kg feed]) * SUMX(ALLSELECTED(Farm[Shed]), [%Part]),
    SUMX(ALLSELECTED(Farm), [Sum Weight T]),
    0
)

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.