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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
swarnalvr
Frequent Visitor

Excel Power query

Excel Power Query : First tab contain drop of dates for ex.. MonthEnd

Any date is selected in the first tab filters the data in secon tab file ex FSBV

Below logic retrieves first row, 

let
monthEnd = Excel.CurrentWorkbook(){[Name="MonthEnd"]}[Content]{0}[MonthEnd],
#"Converted to List" = {monthEnd}
in
#"Converted to List

 

but i need the selected row date?

Any help

7 REPLIES 7
Anonymous
Not applicable

Hi @swarnalvr ,

 

Thanks for reaching out to our community.

Could you please tell us if your problem has been solved?

If so, please accept the reply as solution and more people will benefit from it.

Thanks.

 

Best Regards,

Stephen Tao

PwerQueryKees
Super User
Super User

Change the 9 in [Content]{9} to the name of your parameters like [Content]{#"The parameter giving the number of the desired month end"}

swarnalvr
Frequent Visitor

thanks but i have approached parameters concept

Omid_Motamedise
Super User
Super User

Use this formula for year 2023


= List.Transform({1..12}, each Date.EndOfMonth(#date(2023,_,1)))


If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
swarnalvr
Frequent Visitor

swarnalvr_2-1727530065141.png

 

 

monthEnd = Excel.CurrentWorkbook(){[Name="MonthEnd"]}[Content]{9}[MonthEnd],

 

for example above query pulls the 9th record since i gave content 9, but i want it be dynamically update

so not sure how to replace the code?

 

but i want it be dynamically update

based on what? Where does your desired row index come from?

lbendlin
Super User
Super User

What does "selected"  mean?  Power Query has no concept of that.

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.

Top Solution Authors