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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
reynaldo_malave
Helper III
Helper III

Aggregation on Matrix

Hi Guys,

 

I am trying to aggregate a measure on a matrix column. This is what it looks like now. But I want it to be aggregated as you go up the matrix

 

reynaldo_malave_0-1616427918669.png

I am using the following measure :

Costo Oportunidad = 

var precio_producto =

    LOOKUPVALUE(
        DM_productos[pvp],
        DM_productos[simi_code],
        SELECTEDVALUE(
            DM_productos[simi_code]
        )
    )

return

IF(
[Brecha]<0,
[Brecha] *-1*precio_producto
)

 Thanks,

Reynaldo

2 REPLIES 2
amitchandak
Super User
Super User

@reynaldo_malave ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. And logic what are you trying to achieve here

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

Thanks man, you can download de pbi sample file here

 https://farmaciasdesimilares-my.sharepoint.com/:u:/g/personal/inreynaldo_porunpaismejor_com_mx/Ecv0X...

 

 

What I am trying to achive is an aggregation on column [Costo de Oportunidad]. Take a look at the image i shared and notice how all columns are aggregated but the last one. First one adds up 57 then the second 50 and the third one 7. I want to be the same with the last one.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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