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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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