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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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