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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Doh!!Thanks

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.