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.
Hello,
I am still new to Power BI and DAX Coding. I am working on creating columns to calculate our work in process. We do this by taking the cummulative orders and then subtract cummulative shipped products. Anyway, I have a DAX to do this but need to add two filters to the codes to specify orders and remove a sales type. The code I currently have is:
Solved! Go to Solution.
@1125NEWBIUSER , 1 of the three ways
CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate , 'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard')
CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate , filter('Orders/WIP' ,'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard') )
CALCULATE (CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate) , filter('Orders/WIP' ,'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard') )
Thank you, this did the trick!
@1125NEWBIUSER , 1 of the three ways
CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate , 'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard')
CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate , filter('Orders/WIP' ,'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard') )
CALCULATE (CALCULATE ( Sum('Orders/WIP'[Quantity]),
'Order/Wip Calculations'[Date] <= LastVisibleDate) , filter('Orders/WIP' ,'Orders/WIP'[Invoiced] <>"Return" && 'Orders/WIP'[SalesTranType] = 'Standard') )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |