Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a role in row level security set up like this:
But when I test this role, a line chart with the [CalendarYear] on the X axis is still showing all the values from the [CalendarYear] column.:
If I'm not mistaken, only 2001 and 2004 should be visible? This seems like an odd bug/security hole?
I appreciate any suggestions.
Thanks!
Solved! Go to Solution.
Hi @Yamabushi ,
The default type of X-axis is Continuous , so even though you only select 2001 and 2004, the 2002 and 2003 will also be shown on X-axis . But you could not see values for 2002 and 2003.
Please change the type of X-axis from Continuous to Categorical
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Yamabushi ,
The default type of X-axis is Continuous , so even though you only select 2001 and 2004, the 2002 and 2003 will also be shown on X-axis . But you could not see values for 2002 and 2003.
Please change the type of X-axis from Continuous to Categorical
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great, this works. Still, it seems strange that I see the values despite RLS being set up. If I understand correctly, the values in between (2002, 2003) are auto-generated?
Thanks
Hi,
I'm testing this with the "View as" command in PBI Desktop. Other roles work fine. For example, if I view as this role:
I get the correct/anticipated result:
Best regards
How are you testing this ?
If you are using power BI desktop then you need to view as user?
Otherwise you hace superuser developer access and can see everything
Hi,
I'm testing this with the "View as" command in PBI Desktop. Other roles work fine. For example, if I view as this role: [Color] IN {"Red", "Black", "Silver"}
I get the correct/anticipated result:
Best regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |