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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)