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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors