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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Riley-Byrne
Frequent Visitor

DATEADD and Sum

Hello,

 

I am trying to write a DAX formula to calculate a quantity of items I will receive at a future date.

Based on a ship date for a list of items, we want to say that 80% of them will be returned to us 30 days in the future. 

I have the date add part of the DAX: DATEADD( 'DAYSTABLE'[DAYS],30,DAY) , but I am not sure about how to calculate the 80% of the quantity shipped of the original date.

 

Does anyone have any ideas, or have done something like this previously? Thanks so much in advance! 

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Riley-Byrne ,

 

Please illustrate your requirement with sample data and desired output.

How to Get Your Question Answered Quickly

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@Riley-Byrne I believe your full measure is somethign like this

 

Future Qty = 
CALCULATE ( SUM ( Table[Qty] ), 
<your date add calculation> 
) 
* .80

Multiply your measure .80 to get you 80% of qty.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.