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
Anonymous
Not applicable

Date from previous Friday to Next Friday and Lookup Function in Power BI Report Builder

@links to member ,content

All,

 

I have a report I am using PowerBI Report Builder.  I need to show default dates in my start date and end date.  I used this function to get the start date to work, but when I run the report it only shows weekdays.  i need the weekend dates to show as well.  I also need the end date to be the upcoming friday from the date the report is ran.  Example:  today is 5/31/2020 the start date should be 5/29/2020 I have that part working.  The end date should be 6/5/2020, I cant get that to work.

 

dates.JPG

 

 

 

Also,  fo the PrimaryDept parameter I need to show the department of the person who is running the report.  I am using this lookup function but gettng an error message: "A value expression used for the "PrimaryDept" report parameter refers to a field. Fields cannot be used in parameter expression.  "

 

=Lookup(Fields!Name.Value,Fields!Name.Value,Fields!PrimaryDept.Value,"DataSet2")

 

Help appreciated!  Thanks

 

 

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous,

It sounds like your requirement is more relate to PBRS design, I'd like to suggest you post to Report server subforum to get further support.

Microsoft Power BI Community/Forums/Get Help with Power BI/Report Server 
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors