Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
I am trying to write a DAX formula which forces the Quantity data field to go to zero after the "Due Date" has been reached, only for "Deal Type" B2. This report uses both the "Order Date" and "Due Date" as x-axes for several visualizations, and the different dates have been giving me trouble in DAX.
*This is a sample data created off of my actual very large data set.
Thank you so much for your help!!
Solved! Go to Solution.
Hello @Anonymous
Give this a try. This measure assumes you don't already have another measure that just sums quantity.
Quantity Adjusted =
CALCULATE (
SUM ( Table1[Quantity] ),
KEEPFILTERS (
FILTER (
ALL ( Table1[Deal Type], Table1[Order Date], Table1[Due Date] ),
NOT ( Table1[Deal Type] = "B2"
&& Table1[Due Date] >= Table1[Order Date] )
)
)
)
Hello @Anonymous
Give this a try. This measure assumes you don't already have another measure that just sums quantity.
Quantity Adjusted =
CALCULATE (
SUM ( Table1[Quantity] ),
KEEPFILTERS (
FILTER (
ALL ( Table1[Deal Type], Table1[Order Date], Table1[Due Date] ),
NOT ( Table1[Deal Type] = "B2"
&& Table1[Due Date] >= Table1[Order Date] )
)
)
)
Yes, that worked!! Thank you!!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 121 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |