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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Cactus26
Helper I
Helper I

Measure for particular week based on data of whole table

I would like to create measure to divide the sum of the amount sold until now (so consider whole table) for the distinct items in particular week.

 

Input

NumberWeekNumberQuantity
175
174
182
284
292
591

 

Output: For Week 9; sum of quantity=7

NumberWeekNumberQuantity
284
292
591

 

Thanks!

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@Cactus26,

Based on that above sample data, I am not quite clear about your logic for Weeknumber 9. What is the result do you want to return for WeekNumber 7 or WeekNumber 8?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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