Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Count pending status every month until done

Hi everyone,

 

I have a table status of product like below:

Product codeInitialRelease
AA1-Mar-211-Jun-21

and I must calculate the pending between Initial date and Release date (Initial is considered as Pending):

Product codeMarAprMayJun
AAInitialPendingPendingRelease
Total Pending1110

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