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 August 31st. Request your voucher.

Reply
Miss_A
Regular Visitor

Expression Error

I want to get total days of tx day in my table. When I write the below code, I get the error message for 

"Expression.Error: 1 arguments were passed to a function which expects 3.
Details:
Pattern=
Arguments=[List]"

 

=List.Dates( #date("yyyy-mm-dd"), Duration.Days( Date.From( DateTime.LocalNow() ) -[#"Treatment Registrar Date#(lf)(please fill in date format: 1-Jan-2021)"]))

 

How can i solve for this.

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1697430098763.png

the function of #date needs three parameters, such as #date(2023,10,1)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

List.Dates needs a start date, end date, and interval.

 

---Nate

wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1697430098763.png

the function of #date needs three parameters, such as #date(2023,10,1)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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