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
evano_oruvan
Frequent Visitor

Filter a report using query string parameters in the URL - not working due to &

This is my column name and value below.

ASSET_NAME
mats&service
 


Below is the dax code i use to get data from table and create a link to filter the my page, but it wont work when value(mats&service) in column(ASSET_NAME) has & in it, the link gets terminated at & like this 
https:/app.powerbi.com/?filter/somerandomtextand%20andthesemats
and the filter wont work, can someone help me escape this & so that value is accepted and filtered in my page,

RawData =
MAX ('Raw data'[Raw Data])&"?filter=Table/ASSET_NAME eq"&" '"
& MAX ( CurrentData[ASSET_NAME] )&"' and Table/LEVEL1 eq"&" '"
& MAX ( CurrentData[LEVEL])&"' and Table/DOS_NO eq"&" ' "
& MAX ( CurrentData[RULE_NO] )&" ' "

1 ACCEPTED SOLUTION
evano_oruvan
Frequent Visitor

Solution:

 

SUBSTITUTE( MAX ( CurrentData[ASSET_NAME] ),"&","%26").

View solution in original post

2 REPLIES 2
evano_oruvan
Frequent Visitor

Solution:

 

SUBSTITUTE( MAX ( CurrentData[ASSET_NAME] ),"&","%26").

amitchandak
Super User
Super User

@evano_oruvan , Are you trying something like this

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.