- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sum Days
Hi everybody
I'm try to understand a query with date.
I'm working with financial data.
I've three bank.
Bank 1
Bank 2
Bank 3
And I receive this
Bank 1 - Receipts one day after maturity = D + 1
Bank 2 - Receipts one day after expiration = D + 1
Bank 3 - Receipts three days after maturity = D + 3
But my question is:
How I sum days.
I try dateadd but isn't funciont.
I want to take the date and sum more days.
For example.
If bank = bank 1; sum 3 days.....
Thanks Powers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!!!
I got it!
It's simple.
I use M language.
if [Banco] = "Safra" then Date.AddDays([Data pagamento],1) else Date.AddDays([Data pagamento],3)
Date.AddDays save me
Thanks everyone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@igorabdo,
Could you please share sample data of your table and post expected result based on the sample data here?
Regards,
Lydia
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For example.
If Bank = Bradesco or Brasil, I want to sum more 1 day
but if the bank = Safra, I want to sum more 3 days.
https://1drv.ms/u/s!ArefD68Or43mhzDgVwxb2oxtN5NQ
Tks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use a Custom Column as below
NewDate = if(Orders[Banko] = "Safra",Orders[Order Date] +3,Orders[Order Date] +1)
Please change "Orders" to your Table Name and
"Order Date" to field name in your file
Let me know if it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!!!
I got it!
It's simple.
I use M language.
if [Banco] = "Safra" then Date.AddDays([Data pagamento],1) else Date.AddDays([Data pagamento],3)
Date.AddDays save me
Thanks everyone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @igorabdo,
Sorry, I've looked at your model and your posts and still don't understand your requirement.
Perhaps you could fill out the column with your expected result to help us understand what you're trying to do
Thanks
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
11-21-2024 09:58 PM | |||
04-29-2024 03:37 PM | |||
10-07-2024 03:24 AM | |||
12-27-2024 02:01 AM | |||
07-25-2022 09:37 PM |
User | Count |
---|---|
122 | |
104 | |
83 | |
52 | |
45 |