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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
LewisH
Helper II
Helper II

Measure is changing based on filters

I have a graph which is based on a date and this measure 

Yield = ('Put Away lines'[Number of Returned Boards] / 'Put Away lines'[Shipped Take Returned]) * 100

 

Number of Returned Boards = SUMX('Put Away lines','Put Away lines'[Quantity])

 

Shipped Take Returned = 'Shipment Lines'[Total Number Shipped] - 'Put Away lines'[Number of Returned Boards]

 

Total Number Shipped = SUM('Shipment Lines'[Quantity])

 

In my Bar chart if i filter for a specific value (Item) in this case this shows the correct figure.

1.JPG
However with no filter ( All items) the value is taking a sum of the average im guessing im not too sure.

2.JPGCan anyone guide me on how to resiolve this. Thanks

5 REPLIES 5
Anonymous
Not applicable

HI @LewisH,

 

I think you formula works properly, when you use sum or other functions, it will auto summary by group label or column and also affected by filter/slicer.

 

For your requirement, you need to add some conditions to filter table to let your formula only work on current row contents instead all table.

 

Regards,

Xiaoxin Sheng

Hi do you have any suggestions on how I can do this? 

Anonymous
Not applicable

HI @LewisH,

 

>>Hi do you have any suggestions on how I can do this? 

Please share some sample data or pbix file to test.

 

Regards,

Xiaoxin Sheng

How can I share my pbix file with you?

Anonymous
Not applicable

HI @LewisH,

 

Upload to onedrive or google drive and share the link here.
Notice: please do mask on sensitive data before share.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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