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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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.

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
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.

 

Picture4.png

 

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.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

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.

 

Picture1.png

 

https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0 

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
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.

 

Picture4.png

 

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.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not 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?

 

ChienTrinh_0-1618537345669.png

 

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.

 

Picture1.png

 

https://www.dropbox.com/s/vftf5dmp1sq6166/ChienTrinh.pbix?dl=0 

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Thank you so much 😍

amitchandak
Super User
Super User

@Anonymous , refer if this blog can help, you have additional logic in current employee code

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.