cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kwokster
Frequent Visitor

Show outstanding quantity per order and item number

Hi All,

 

Did already some researched but did not find a solution.

 

I want to show/calculate per order the outstanding quantity of each item number.

The challenge here is the order and item number can exist of 1 or 2 positions in the source file.

You can find here an example of the desired solution.

Naamloos.png

 

Any help will be appreciated.

 

Kind regards,

 

Kwokster

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Show outstanding quantity per order and item number

Hi @Kwokster ,

 

Try to create a measure like so:

 

Open = 
VAR Ordered_ =
    AVERAGE ( 'Table'[Ordered] )
VAR Received_ =
    SUM ( 'Table'[Received] )
RETURN
    Ordered_ - Received_

 

ORDER2.PNG

 

Best Regards,

Icey

 

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

View solution in original post

4 REPLIES 4
Super User II
Super User II

Re: Show outstanding quantity per order and item number

Hi @Kwokster 

try a measure like

Measure = 
var _totReceived = CALCULATE(SUM(Table[Received]), ALLEXCEPT(Table, Table[Order nr.], Table[Item number]) )
var _totOrdered = CALCULATE(AVERAGE(Table[Ordered]), ALLEXCEPT(Table, Table[Order nr.], Table[Item number]) )

RETURN
_totOrdered - _totReceived 

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Community Support
Community Support

Re: Show outstanding quantity per order and item number

Hi @Kwokster ,

 

Try to create a measure like so:

 

Open = 
VAR Ordered_ =
    AVERAGE ( 'Table'[Ordered] )
VAR Received_ =
    SUM ( 'Table'[Received] )
RETURN
    Ordered_ - Received_

 

ORDER2.PNG

 

Best Regards,

Icey

 

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

View solution in original post

Kwokster
Frequent Visitor

Re: Show outstanding quantity per order and item number

@Icey Got this code to work, big thanks!

Kwokster
Frequent Visitor

Re: Show outstanding quantity per order and item number

@az38 I will try your solution, thanks!

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors