I am pretty new to RLS and have been trying to implement it in a certain way.
My table above is a sample. I am trying to create RLS here based on the levels. Normally I can create 3 roles for 3 levels where,
Level 1 is regular employees
Level 2 is supervisor of employees
Level 3 is the manager/head of the building (based on the BuildingID)
I am trying to create RLS where the manager (Level 3) will be able to see the data for people below them by filtering through. For example when the manager of BuildingID='233' logs in, they can filter through the report to see people they are assigned to.
It would be clickable in the filter pane. However, I am more used to on doing DAX calculations when the manager ID is on a different column and this seems to be a new scenario. I have tried a couple of methods and so far have not been successful. Any kind of help here would be much appreciated.
I could only advise you review something like this to see if you can use the comparable logic in your scenario https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
Related
I am using RLS in SSAS and it works fine:
I filter the table Project... Therefore, if a certain group has access only to Project X. They only see that.
(I use visuals in POWER BI that use a mix of fact measures with the Project dimension).
No issues there, the RLS works fine.
My question is: if the Project dimension is not pulled/used; the access does not get enforced... (I have control over POWER BI, and I pull/use the Project dimensions in all my visuals... But any user can connect to the model (through excel for example) and see ALL the data in the fact. How can I avoid this?
(I am not too worried, since in the fact I have mostly keys data, but they can still see 'revenue' for example...)
But any user can connect to the model (through excel for example) and see ALL the data in the fact. How can I avoid this?
If there's a filter path from Project to Fact, and you have RLS rules on Project Fact will be filtered for all users in the RLS role, regardless of whether they query Project directly.
Anyone have experience with Drilldown Choropleth recently? I have taken a step back to try ArcGIS, but want to have a multi-layer map built in Power BI with shading using this add-in. I am having issues with loading the json- one for States (USA), one for Metro Area (MSA, USA). Also, not seeing the fields to add data points. This info I researched on the app my info has a json file link that is going to a 404.
If anyone wants to provide tips to transfer over to a contained ArcGIS, I would accept that.
More on the app: https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381044?tab=overview
I basically need one layer shading on drill down for geo with points, then add one layer for demographic stats, one layer for population stats. Help?
for topojsons that work:
https://github.com/deldersveld/topojson
I used the US Counties one, so that's all I can comment on working.
I have setup my RLS quite successful. I collect the user who is logged on, have setup roles and also manage to limit rows to use in the reporting.
There is a field, that contains the row's responsible person (john#doe.com).
The DAX filter [RowResponsible] = [UsersEmail] works just fine.
The thing is, that the [RowResponsible] may contain multiple values. For example john#doe.com;jane#doe.com.
The DAX filter [RowResponsible] = [UsersEmail] will no longer work, obviously.
I'd like to be able to use some form of 'contains' in this filter, but SEARCH / CONTAINSSTRING will not do the trick (they seem to be not supported).
Any thoughts?
This following code should work for you as I am using a same code for one of mine RLS and its working fine-
CONTAINSSTRING(
[RowResponsible],
[UserEmail]
)
I need some help getting past a road block I've come across in creating my application in APEX.
This application will be to track financial disbursements from a company. It will utilize a one to many relationship. One associate to many different transaction details.
Using Quick SQL in APEX 19.2 I have created a couple tables. DISB and DISB_DTLS
DISB
Assignor vc
Processor vc
RCVD_DA date
PROC_DA date
ACT_NO number
APPROVER vc
STATUS vc
NOTES vc
DISB_DTLS
AMT number
etc
etc...
The problem I'm having is that I want to have the primary table DISB be for the associate. Hence "One Associate to Many Disbursements. However, we have so many details that it would make the interactive grid APEX uses way to big and squished when doing a Master Detail form. Yet the only way to modify two tables or a view would be a master detail form. That's why I put some disbursement info in the primary table DISB and not the DTLS table.
I know there are some creative applications out there, and need some help discovering what I can do in regards to updating multiple tables from one form, if possible. Or alternatives. I want to make this process easy for the associates. This was all in one spreadsheet at one point.
Thanks,
Joe
I recommend you don't compromise Database design over the UI.
What you can do in this case is filter segmentation.
Complete your Master-Detail as initially thought.
Some detail columns can be logically grouped so I would put some filters somewhere on the page which the users selects a Logical group of columns to be displayed. That way you hide/show the columns to ensure they fit on the screen. Think of Filters as radio buttons or even checkboxes, let the user choose what shows on the screen.
I need a formula to calculate how much inventory is left on had after a work order has been completed. The work order I am developing is a separate list in sharepoint and I have an inventory list as well.
In the inventory list I have a field called amountinventoried and itemname which the user would put the amount of the item we had on hand during the last manual inventory.
On the work order list I have a field called itemused and amountused I need to find a formula to use on a calculated field in the Inventory list that would go out and simply subtract the amountused from the amountinventoried but only if the itemused and itemname fields matched.
I have been working on this for quite a while and have hit a wall, I'm probably overlooking something extremely easy but I'm still new to sharepoint 2010.
Thanks!
You may be able to do this in a grouped view of the work order list (sort of like this), but I think the design of what you are doing is not suited to using SharePoint lists.
You may be much better off using an SQL database to host and calculate the data and connect it into SharePoint as External Lists using the Business Connectivity Services (brief explanation here).
This gives you the benefit of CRUD functionality in SharePoint, with the extra calculations and trickery available within SQL views and tables.