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
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
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.