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

calculating continuous months for selected company

Hello, 

 

I am looking to calculate continuous months of membership for any selected account (company). the main formula would be the following:

 

Selected company :  123 Company

Continuous  : if # of continuous months of coverage > 25 months, YES. if no, at what date will company 123 Company have >25 months of coverage?

 

I would also like to take into account that there could be break in coverage, so for example 123 Company could have been with us for 15 months, but left for 6 months, then returned. 

 

I apologize in advance if there is already a similar question that has already been answered. Any help is greatly appreciated!!

11 REPLIES 11
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Anonymous
Not applicable

Hi @amitchandak  and @Ashish_Mathur  here's a screen shot of what I am trying to accomplish.  I hope this helps!

 

Slimage_0-1631206522308.png

 

Hi,

I am not sure of how i will get the date of eligibility for you but i think i should be able to get the yes and No.  Also, since we are still in September 2021, the number of months for Customers A and B should be 8 complete months (not 9).  Am i correct?

If you are OK with the result of only Yes and No, then share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur ,

 

Yes I am ok with the result Yes or No, maybe a 2nd formula can be built after the Yes or No is solved. 

 

You are correct, it should be 8 completel months! Attached is sample data! 

I am unable to upload my sample data, is there another way I can get it to you?

 

thank you again for your help!

Hi,

Upload the file to Google Drive and share the download link here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur , just wanted to check in and see if you were able to open the link?

Hi,

You may refer to my solution in this file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur ,

 

Here's the link! thanks!

 

Test Data 

Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

also, refer to Continous Streak

https://community.powerbi.com/t5/Desktop/Need-help-in-DAX/m-p/1277302#M559393

https://community.powerbi.com/t5/Quick-Measures-Gallery/Power-BI-Continuous-Streak-One-Day-Difference/m-p/1290382#M592

Anonymous
Not applicable

HI @amitchandak , 

 

I posted a link with test data and a picture above!

 

thanks!

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.