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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Hide visuals / Target line based on Roles

Hello All,

 

can we hide a visual / Target line from line or bar chart based on Roles.

 

main purpose is we don't want to show target or some confidential KPI to all user.

 

 

Thanks

Pragati

8 REPLIES 8
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Maybe you can consider creating different pages for different roles and showing corresponding pages based on roles.

Did you know you can now selectively show report pages for specific users in Power BI? - Reporting/Analytics Made easy with FourMoo and Power BI

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Anonymous
Not applicable

@v-jingzhang  what i understand from page navigation is just hiding the url , but what happen if someone share the the url of that page 

@Anonymous yes that is correct. This is not fully secure but a hide/show behavior at the view layer. If someone shares the url of a hidden page, other people can view the page too.

 

To my knowledge, constant lines in Analytics pane are not able to be shown or hidden according to roles. 

Greg_Deckler
Community Champion
Community Champion

@Anonymous In theory, yes using RLS but hard to tell you specifics with the information provided.



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...
Anonymous
Not applicable

Hi @Greg_Deckler ,

Ex:- lets say
1. we have a line graph with Target constant line which are showing to every user but client don't wanna to show target line to every employee. so we have to hide target line for some user/Role.

 

2. we have to also hide some KPI or visuals based on Role.

 

is there any way we can achieve this thing 


 

@Anonymous That's great. Where does TargetLine come from? If you put this into it's own table using an Enter Data query then you could restrict access to this table via RLS and then no target line.



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...
Anonymous
Not applicable

@Greg_Deckler no , its just a constant line

Spoiler
@Anonymous right, so just put it into a table using an enter data query. Create a measure for it, any aggregation. Implement RLS on that table. Add the measure to your visual.


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...

Helpful resources

Announcements
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.