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
pbiuser1234
Helper I
Helper I

Add filter to URL by a uniqueidentifier field type

Hello 

I've tried to add a filter to a report url for a field type uniqueidentifier like this:

?filter=[table name]/[field name] eq '[uniqueidentifier  value]' ,but unfortunately it doesn't work.

Is there any other way to filter a url?

Or alternatively is there another way to pass a parameter value to a report parameter on a report server?

Thank you

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

I just did a test putting some random guids in a table and this worked fine. There is no special GUID data type in Power BI so these are just strings.

 

The following URL produces the output below for me.

 

http://localhost/reports/powerbi/Guid%20Filter?filter=Test/Guid%20eq%20%277e833f81-bc28-42e6-a6ca-44...

 

d_gosbell_0-1639090023866.png

Does your table or column name contain any spaces or special characters? if so make sure you are encoding them correctly. see https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#special-characters-i... 

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @pbiuser1234 ,

 

Here is an example which is mentioned in the document @d_gosbell provided:

  • Power BI Report Server also supports the ability to specify additional filters using the “filter” URL parameter. Here's an example of what the URL might look like in Power BI Report Server: https://reportserver/reports/powerbi/Store Sales?rs:Embed=true&filter= Store/Territory eq 'NC' and Store/Chain eq 'Fashions Direct'

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

d_gosbell
Super User
Super User

I just did a test putting some random guids in a table and this worked fine. There is no special GUID data type in Power BI so these are just strings.

 

The following URL produces the output below for me.

 

http://localhost/reports/powerbi/Guid%20Filter?filter=Test/Guid%20eq%20%277e833f81-bc28-42e6-a6ca-44...

 

d_gosbell_0-1639090023866.png

Does your table or column name contain any spaces or special characters? if so make sure you are encoding them correctly. see https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#special-characters-i... 

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.