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! Request now

Reply
Anonymous
Not applicable

help needed

 

I need to calculate the sum of VCI_RECEIVED_Head on group by feedyard ,pen_id and lot_id .can you help me here . even if the rationid is different but for example in below row2 and row3 are unique on mentioned above 3 columns so in the calcuation only 123 should be considered . total result should be =118+123+129+166+250 .Hope you got it

 calculate.jpg

8 REPLIES 8
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

I made one sample based on your sample data. We can create a calculated table.

 

Table = SUMMARIZE(Table1,Table1[FEEDYARD],Table1[lot_id],Table1[pen_id],Table1[VCI_RECEIVED_Head])

Capture.PNG

 

Also please find the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Arentir
Resolver III
Resolver III

Hi @Anonymous,

My understanding is that you want to have the sum of the unique value of VCI Received_Head group by Lot_Id and Pen_ID.

 

This measure should work for you.

 

Measure =
SUMX (
    SUMMARIZE ( Table, Table[LOT_ID], Table[PEN_ID], Table[VCI_Received_Head] ),
    Table[VCI_Received_Head]
)

 

Let me know if it works

Anonymous
Not applicable

I NEED ONE MORE COLUMN ON GROUP BY THAT IS FEEDYARD COLUMN ALSO .

then add it to the summarize function and you re good to go

Anonymous
Not applicable

i am getting error saying sumx should use the expression . VCI_RECEIVED_Head not being determined . can you please check once 

Hi @Anonymous,

 

Could you please share your pbix to me?

 

Regards.

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

can you guide me on how to attach the PBIX file ?

Hi @Anonymous,

 

Just upload your file to dropbox and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others 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.

Top Solution Authors