Forum Discussion
Count pending status every month until done
Hi everyone,
I have a table status of product like below:
| Product code | Initial | Release |
| AA | 1-Mar-21 | 1-Jun-21 |
and I must calculate the pending between Initial date and Release date (Initial is considered as Pending):
| Product code | Mar | Apr | May | Jun |
| AA | Initial | Pending | Pending | Release |
| Total Pending | 1 | 1 | 1 | 0 |
I will count from month the products are created (Initial date) and each month until previous month of Release date.
How can I do that? Please help me for this.
Thank you so much.
Hi, Anonymous
I have created a sample pbix file based on your sample data.
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
All measures are in the sample pbix file.
https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi, Anonymous
Thank you for your feedback.
In this sample, I did not distinct-count (for instance, Product CC).
If you want to disctinct-count, then you can change a little bit of the measures in the sample.
The sample pbix file's link is down below.
One thing to note is that it is better (and I prefer it in this case, 🙂 ) to have inactive relationships, like the below picture.
https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0
5 Replies
- Jihwan_Kim
Super User
Hi, Anonymous
I have created a sample pbix file based on your sample data.
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
All measures are in the sample pbix file.
https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
- AnonymousNot applicable
Hi Jihwan_Kim
Thank you, that's greate. But can you help me a little more from that? The same output but I want to return only Status table and count on it (total Initial/Pending/Release) ^^. What should I do?
- Jihwan_Kim
Super User
Hi, Anonymous
Thank you for your feedback.
In this sample, I did not distinct-count (for instance, Product CC).
If you want to disctinct-count, then you can change a little bit of the measures in the sample.
The sample pbix file's link is down below.
One thing to note is that it is better (and I prefer it in this case, 🙂 ) to have inactive relationships, like the below picture.
https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0
- amitchandak
Super User
Anonymous , refer if this blog can help, you have additional logic in current employee code