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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Need help with dynamic sum of open order values

Hi,

 

I have an issue which I cannot make it dynamic. I have to calculate sum of Quantity and Order value for open orders based on the date selected in the slicer. Any help is much appreciated! 🙂

Below is the sample data :-

 

OrderNoStatus  Productkey  OrderDate OrderChangeDate Quantity Value
100Open22020100520201005105000
100Invoiced2202010052020111400
101Open52020100920201009201200
101Open52020100920201114201200
101Invoiced5202010092020120400

 

Result of measure    
     
Date(is dynamic from the slicer selection)Measure_QtyMeasure_Value 
20201009306200(Both 100 and 101 are open)
20201114201200(Only 101 is open)
2020120400(No orders are open)
2 REPLIES 2
pawel_osipowski
Frequent Visitor

I don't see any 20201009 under order 100 in your source data. sth is contradictory here? Would be nice if you were specific on the date column in the slicer too.


If I read your intentions well, this should work:

 

Measure_value = 
CALCULATE(
   SUM('Table'[Value]),
    'Table'[Status] = "Open"
)

Measure_qty = 
CALCULATE(
   SUM('Table'[Quantity]),
    'Table'[Status] = "Open"
)

 

Best,

Pawel

Anonymous
Not applicable

Hi,

Maybe I should explain better.

If data selection on slicer is date 20201009 so that date both orders 100 and 101 are Open and not invoiced so the order value will be the sum of both orders.

Order number 100 was invoiced on 20201114. So on 20201114 only value for open order 101 will be shown.

The measure you mentioned would not work as I select the date from slicer and based on that all order which are open till that date should be summarized and showed in the measure value.

 

Best Regards,

PG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors