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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ghutchins
Helper II
Helper II

Count Months of No Recorded Data

I request help with a DAX measure to count the months that there was 0 or null risks per each site.  If there are 1 or more then it is not counted.  If there are 0 or a missing month it would be counted, requirement is to have at least 1 every month of the fiscal year.gard to 

 

Our fiscal year  starts on 9/1/2022.  Any help is greatly appreciated.

 

  • Site 1- Count should be '2' since there is no data entered for 9/2022 and '0' for 12/2022
  • Site 2 - Count should be '2' since there is no data entered for 10/2022 and no data entered for 1/2023, even though 2 entries are recorded for 12/2022
  • Site 3 - Count should be '1' since there is no data entered for 9/2022

 

risk.PNG

3 REPLIES 3
ghutchins
Helper II
Helper II

@Anonymous   I would like to send you the PBIX but the data is confidential.  It is however derived from a sharepoint list that has date the Risk Assessment is done, fiscal year, status, Site (where assessment is done), and  all the usual SPO List data.  The table above basically outlines the expected results. 

Short story i need to look at all the sites individually month-by-month and determine if someone has entered an assessment for that month for each site.   If a no entry is made for a month or a 0 is entered I must count that month. If Risk > 0 i do not count that month for that site.

Capture3.PNG

Anonymous
Not applicable

Hi @ghutchins,

It seems like you do not have enough permission to upload pbix file as attachment.

For this scenario, you can create some dummy data on excel side with current structure and replace/remove sensitive data to paste the excel table in your reply with table format.

After these steps, we can simply copy and enter these dummy data to power bi desktop to test and coding formulas.

Notice:

My formula logic is creating a variable table with all year month range based on the current side date start/end date.

Then you can use EXCEPT function to compare two list to get missed records and its count, add the result with filter raw list item count to get finial results.

Regards,

Xiaoxisn Sheng

Anonymous
Not applicable

Hi @ghutchins,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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