cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RUSSGOVE
New Member

Filter SharePoint list by ID

I got a sharepoint site that stores data in various lists in a 'master-detail' type setup. There is a list called Incident Flash report and a list called Incident Classification. The Incident Classification list has a column called ReportID that identifies which row in the Incident Flash report list it  appies to. It contains the Id of the related item in the Incident Flash report list.

 

I am trying to create a powerBI report that will accept the ID as a parameter and then filter the lists to show only items with the selected ID (using the ID field in the pasterlikst and the ReportID field in the details list)

 

So in  POwerBI Desktop,  I connected to my two lists and opened powerquery editor.

I editied the queries in advance ediitor to get the queries to filter down to just a single known row (id 115) and it worked great:

 

So now I define a parameter called Parameter ReportID and set OIts value to the same ID (115)
s2.PNG

 

Then I go into the advanced editor and tell it to use the parameeter rather than my hard coded value:

s3.PNG

After doing that it doesnt find any values:

s4.PNG

 

The ID field is numeric so i figured i need to remove the quites around the parameter , but that gave a syntax error.  

 

Anybody know how i do this?

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Also remove the ampersand?

 


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Also remove the ampersand?

 


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

Doh!!Thanks

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.