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!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

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!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

Doh!!Thanks

 

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!