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 September 15. Request your voucher.

Reply
JKHATRAK
Frequent Visitor

Syntax for "Days" is incorrect

Hi, I am trying to find aging greater than 75 days for specific description and Pocket, however, i am getting error as syntax for "Days" is incorrect. I have highlighted the same in Red in below formula. Please help how can i correct this Dax.

 

Excuses by aging over 75 days  = CALCULATE(SUM('Raw Data 12 Sep to 12 Oct'[USD]),'Raw Data 12 Sep to 12 Oct'[Aging]>75 days,'Raw Data 12 Sep to 12 Oct'[Excuse Code Description] IN {{"0.Default","1.Initial Contact pre due date","7.Payment Awaiting Approval",,"4.Customer Researching","5.Credit Balance,In Research","6.Unresponsive Customer","7.Payment Awaiting Approval","9.Govmt/Institution Slow Pay/Funding","11.Pending Support from Business","15.Retention","19.Proposed for Third Party","Business Interruption","Contact Made","Credit Balance Known to customer","External Pathway Pending","Requires Reaging",'Raw Data 12 Sep to 12 Oct'[Pocket] IN {"61-90","91-120","Over 120"})
2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @JKHATRAK 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Below is the Sample data:

 

Customer NameInvoice NumberAmount Remaining USDAgingPocketExcuse Code Description
RE1232260.06801-300.Default
SO4561100.148430-601.Initial Contact pre due date
EE789250.537260-907.Payment Awaiting Approval
DD11201.9791Over 1204.Customer Researching

 

I need to find Sum of Amount remaining USD where aging column is greater than 75 days with excuse code description.

 

Below image is of Pivot Table excel for your reference. Need to prepare measure in Power BI to reflect similar data.

 

JKHATRAK_0-1665728386265.png

 

 

 

 

 

 

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.