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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
biuser431
New Member

Different Calc Results

Hi All - I seem to be getting different results using the same filter critieria in the following functions - I'm basically trying to count open invoices on the last day of a month in a new summary table. My source data has 2 columns I'm using to filter - Advanced Date and Paid Date : 

 

This function gives me the correct value of open invoices: 

EOM Open Invoices = COUNTROWS(FILTER(ALL('Data'),

        'Data'[Advanced Date]<(EOMONTH('Summary'[YearMonthShort],0)+1) &&
        OR(ISBLANK('Data'[Paid Date]),'Data'[Paid Date]>(EOMONTH('Summary'[YearMonthShort],0)))))
 
This function gives me an incorrect value omitting several values that should properly be included:
EOM Open Invoices = CALCULATE(COUNT('Data'[Advanced Date Day]),FILTER(ALL('Data'),
        'Data'[Advanced Date Day]<(EOMONTH([YearMonthShort],0)+1) &&
        OR(ISBLANK('Data'[Paid Date Day]),'Data'[Paid Date Day]>EOMONTH([YearMonthShort],0))))
 
Trying to understand the difference? 
2 REPLIES 2
Anonymous
Not applicable

Hi  @biuser431 ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Anonymous
Not applicable

Hi @biuser431 ,

As checked the formula of the above these measures, I found that there are some conditions which applied on the formulas are different between them (Please check the below screenshots). I'm not sure if it cause the result of the second measure is incorrect... By the way, is there any blank values in the field 'Data'[Advanced Date Day]?

[Advanced Date] and  'Data'[Paid Date][Advanced Date] and 'Data'[Paid Date]

[Advanced Date] and 'Data'[Paid Date][Advanced Date Day] and  'Data'[Paid Date Day][Advanced Date Day] and 'Data'[Paid Date Day]

Best Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.