Filtering based on profile and Hierarchy
Hi Peers and experts.
I'm working on a solution where we have to implement card content filtering based on the profile of the Domo user. We have PDP in place of content filtering but we are also looking to filter at drilled down level by default based on user profile and Hirerachy
Suppose for a sales chart there are 4 drill-downs. 1 country, 2 Regions 3 States 4 locations, and in profile Category hierarchy we have Country head → ZM → MM → LM, . LM is at the lowest level. What Im trying to achieve is if Country Head views the card, Card should display country data, and if ZM looks at it , The same card will be drilled to first level of Regions, If MM views the card Same card further drilled to the State level by default with no user interaction. Is it possible that way?
Please advise or point me in the right direction if this issue has been faced by anyone previously
Best Answer
-
To achieve this without the aid of DDX Bricks or Devloper Tools, you will need to "stack" the data by the location types. If you have a separate column for Country, Regions, Cities, etc. Those will need to be a single column holding those values and then another column with the type of location for each would be added. This will enable PDP policies to filter on the location type and thus apply based on the person who is logged in.
Creating the stacked data can be done in multiple ways. I prefer using the ETL's Dynamic Unpivot tile, but you can also create different branches in your ETL path with each holding the same data, but each with a different value in the location type colum. Then append these back together.
This has come up before and my first inclination is to discourage this. I don't see that this provides advantages over different Pages/Dashboards where you assign permissions based on the user login. My second inclination it to remember that I don't know every use case, and provide caveat I just did but offer an answer nonetheless.
If what I've described isn't too clear, I have a YouTube video showing it the method with chapters to make getting what you want easier:0
Answers
-
To achieve this without the aid of DDX Bricks or Devloper Tools, you will need to "stack" the data by the location types. If you have a separate column for Country, Regions, Cities, etc. Those will need to be a single column holding those values and then another column with the type of location for each would be added. This will enable PDP policies to filter on the location type and thus apply based on the person who is logged in.
Creating the stacked data can be done in multiple ways. I prefer using the ETL's Dynamic Unpivot tile, but you can also create different branches in your ETL path with each holding the same data, but each with a different value in the location type colum. Then append these back together.
This has come up before and my first inclination is to discourage this. I don't see that this provides advantages over different Pages/Dashboards where you assign permissions based on the user login. My second inclination it to remember that I don't know every use case, and provide caveat I just did but offer an answer nonetheless.
If what I've described isn't too clear, I have a YouTube video showing it the method with chapters to make getting what you want easier:0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive