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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors