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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
apamix
Regular Visitor

SUMX till amount of value

Hello All, 

 

I have below pivot table : 

 

WeeksOrdersBoxesRecommended boxesCreate HoursPacking Hours
1     
Monday4505113501715
Tuesday2353143501110
Wednesday2603433501210
Thursday19724335088
Friday18023435087

 

To create column "Boxes" I have been used below measurement : 

 

 

Sum-Boxes:=SUMX ( FILTER ( Range, Range[Rep] = "Outgoing" ), Range[Lines] )

 

 

 

And to calculated "Create Hours" I have been used below measurement : 

 

 

 

Outgoing Boxes:=ROUNDUP(SUM(Range[Boxes CycleTime])/3600,0)

 

 

 

I would like to add column called "Recommended Boxes" which will present a static value of 350 boxes and to create a measurement which will  calculdated the "Create Hours" only for those 350 lines. 

 

Thanks in avance for shared ideas and details.  

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

your sample data does not match your formulas. Please provide sanitized sample data that fully covers your issue. 

Please show the expected outcome based on the sample data you provided. 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @apamix 

 

Can you provide more sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

your sample data does not match your formulas. Please provide sanitized sample data that fully covers your issue. 

Please show the expected outcome based on the sample data you provided. 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors