Reply
Topic Options
- 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

Calcualted column
09-26-2023
11:50 AM
I am subtrating two date column which is calculated but getting output as summed don't know why . Below is one example of that right one is good as it is 197 it calualyed in M query . left one is calculted in power bi desktop calulated column .
Actual Cycle Time = if(ISBLANK(SS[ActualShipDate]),BLANK(),IF(ISBLANK(SS[OrderReceivedDate]),BLANK(),(DATEDIFF(SS[ActualShipDate],SS[OrderReceivedDate],DAY))))
Solved! Go to Solution.
1 ACCEPTED SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023
06:07 PM

Hi @navneet0512
Try this DAX for calculated column :
Actual Cycle Time = if(ISBLANK('Table'[ship date])||ISBLANK('Table'[recieved date]),BLANK(),DATEDIFF('Table'[recieved date],'Table'[ship date],DAY))
Unfortunately, I am out of the limit of pictures that I can attach to the discussions, so I created a file with an example:
Unfortunately, I am out of the limit of pictures that I can attach to the discussions, so I created a file with an example:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023
06:07 PM

Hi @navneet0512
Try this DAX for calculated column :
Actual Cycle Time = if(ISBLANK('Table'[ship date])||ISBLANK('Table'[recieved date]),BLANK(),DATEDIFF('Table'[recieved date],'Table'[ship date],DAY))
Unfortunately, I am out of the limit of pictures that I can attach to the discussions, so I created a file with an example:
Unfortunately, I am out of the limit of pictures that I can attach to the discussions, so I created a file with an example:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023
11:00 PM

want to subtract order recieved date from actual ship date means [actual shipdate - order recieved date]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023
11:12 PM

Hi @navneet0512 you can replace the order of the parameters of the formula.
Just note that in your example start day is after the end day ...so the result will be (-197)
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
109 | |
90 | |
82 | |
55 | |
46 |