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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sanman
Helper I
Helper I

Setting a default filter with zero output and using Query string parameter filters in URL

We can filter the data in report by adding url paramter ?filter=Table/Column eq 'value'

I want to use this scenario to show customer related data for customers who are logged into my web app.

 

I know there might be some savvy user who takes out the filter parameters and see all other customer related data. 

Is it possible to have the default set to some fake customerID then only show correct report if a correct customerID is included in the URL filter?

1 ACCEPTED SOLUTION

@sanman ,

//making measure blank

if(isfiltered(Table[Customer]), [Measure], blank())

//use this measure at visual level filter , =1, will make visual blank if not filered

if(isfiltered(Table[Customer]), 1, 0)

 

Also refer

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @sanman ,

 

Your demand is a good idea, while it is unsupported to set Row Level Security for different customer roles in URL parameter in Power BI currently. You may post your new idea in Idea Forum , add your comments there to improve Power BI and make this feature coming sooner.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

Greg_Deckler
Community Champion
Community Champion

@sanman You could use ISFILTERED and if it is not filtered return BLANK()?



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I am new at this so would appreciate if you could explain further where to use the isfiltered and where to return blank() ?

@sanman ,

//making measure blank

if(isfiltered(Table[Customer]), [Measure], blank())

//use this measure at visual level filter , =1, will make visual blank if not filered

if(isfiltered(Table[Customer]), 1, 0)

 

Also refer

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.