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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
evano_oruvan
Frequent Visitor

Filter a report using query string parameters in the URL - not working because of &

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
v-yangliu-msft
Community Support
Community Support

Hi  @evano_oruvan ,

You can try the following forms:

xxx?filter=Tablename/ASSET_NAME eq 'mats%26service'

vyangliumsft_0-1662618742640.png

Refer to:

Filter a report using query string parameters in the URL - Power BI | Microsoft Docs

 

Best Regards,

Liu Yang

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

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @evano_oruvan ,

You can try the following forms:

xxx?filter=Tablename/ASSET_NAME eq 'mats%26service'

vyangliumsft_0-1662618742640.png

Refer to:

Filter a report using query string parameters in the URL - Power BI | Microsoft Docs

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.