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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Lycian
New Member

[Help] Creating Monthly Test frequency visualization (Year-Independent)

Test Items overview

I have test items, and each item includes the following information:

  • Coverage: Two types, Front and Back.

  • Test Frequency: Six different intervals: Quarterly, Bi-Annually, Annually, Every 2 years, Every 3 years, and Every 5 years.

  • Test Date: The date when the test was executed.

     

    Ex)

    ItemTest Coverage Test FrequencyTest Date
    Unit1BackBi-Annually2025-03-11
    Unit1Front Quarterly2024-08-04
    Unit1Front Quarterly2024-11-11
    Unit1Front Quarterly2025-01-24
    Unit1Front Quarterly2025-06-04
    Unit2BackAnnually2022-03-09
    Unit2BackAnnually2023-09-16
    Unit2BackAnnually2024-10-25
    Unit2Front Quarterly2025-01-07
    Unit2Front Quarterly2025-04-03
    Unit2Front Quarterly2025-07-03
    Unit3BackEvery 2 years2024-05-07
    Unit3Front Every 3 years2023-09-07
    Unit4BackAnnually2022-08-04
    Unit4BackAnnually2023-05-07
    Unit4BackAnnually2024-06-07
    Unit4BackAnnually2025-04-07
    Unit4Front Bi-Annually2024-08-09
    Unit4Front Bi-Annually2025-02-07
    Unit4Front Bi-Annually2025-08-04

     

    Goal: Monthly Test Count (Year-Independent)

    I want to count the number of tests per month, regardless of the year.

    Example:

    1. If a test item (e.g., "Unit1") has:

    • Coverage: Front

    • Frequency: Quarterly

    • Most Recent Test Date: 2025/05/25

    Then, based on the May 25th date and a quarterly frequency, I want to count this test in the months of February, May, August, and November.

     

    2. If a test item (e.g., "Unit1") has:

    • Coverage: Back

    • Frequency: Bi-Annually

    • Most Recent Test Date: 2025/03/11

    Then, based on the Mar 11th date and a Bi-Annully frequency, I want to count this test in the months of Mar and Sep.

     

    Here's an example of the bar chart visualization I'm expecting:

    Lycian_0-1753321136588.png

    Could you please guide me on how to implement this in Power BI?
    I'm encountering difficulties because the corresponding months vary dynamically based on the Frequency.

1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@Lycian Hi! Attack you can find the pbix with the solution. The output:

BeaBF_0-1753340282452.png

 

Hope it works! if you need to fix something, please send me details!

 

BBF


💡 Did I answer your question? Mark my post as a solution!

👍 Kudos are appreciated

🔥 Proud to be a Super User!

Community News image 1920X1080.png

View solution in original post

4 REPLIES 4
BeaBF
Super User
Super User

@Lycian Hi! Attack you can find the pbix with the solution. The output:

BeaBF_0-1753340282452.png

 

Hope it works! if you need to fix something, please send me details!

 

BBF


💡 Did I answer your question? Mark my post as a solution!

👍 Kudos are appreciated

🔥 Proud to be a Super User!

Community News image 1920X1080.png

Hi @Lycian 

Just checking in on your query regarding the monthly test count based on test frequency and last test date, independent of the year.

As mentioned earlier, @BeaBF  has shared a detailed response along with a sample Power BI file demonstrating how to dynamically generate the expected monthly distribution based on the frequency type (Quarterly, Bi-Annually, etc.) and most recent test date.

 

Whenever you get a chance, please take a look at the provided solution and let us know if it meets your expectations or if any part needs further clarification.

Thanks again for reaching out!

Hi @Lycian 

Just following up on your question about calculating the monthly test count based on test frequency and the last test date, regardless of the year.

As previously mentioned, @BeaBF  provided a detailed explanation along with a sample Power BI file that demonstrates how to dynamically generate the expected monthly breakdown based on the frequency type (e.g., Quarterly, Bi-Annually) and latest test date.

 

When you have a moment, please review the shared solution and let us know if it aligns with your expectations or if you need any further clarification.

Appreciate your engagement!

Hi @Lycian 

 

Just following up regarding your query on calculating Monthly Test Counts (year-independent) for your test items dataset, where each item includes:

  • Coverage types (Front / Back),

  • Test frequencies (Quarterly, Bi-Annually, Annually, etc.),

  • And Test Dates with expected repeating patterns across the calendar year.

As per your requirement identifying the recurring test months based on the most recent test date and frequency, @BeaBF has already reviewed the sample data you shared and provided:

  • A customized solution
  • A sample PBIX file with your logic implemented
  • Output aligned with your expectations (e.g., Quarterly & Feb, May, Aug, Nov)

If we don’t hear back, we may close this thread in line with our community guidelines, but you’re always welcome to post a new query anytime.
Thank you for being part of the Microsoft Fabric Community!

Thanks for your attention, and looking forward to hearing from you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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