Forum Discussion

mohit_K's avatar
mohit_K
Helper I
5 years ago

Row Level

Hi v-jingzhang 

 

There is a slight change in the data structure can you please help me in resolving this

 

Current Database Structure:

 

Territory IDZone IDRegion IDMarketing Manager IDTerritory ValueZone ValueRegion ValueMarketing ValueSKU ID
11111110012025302522
11111110023035403523
21111110025055605523
21111110016065656522
32211110013035403522
32211110024035403523
322111100350455045

24

 

 

 

I have following users:

Territory IDEmail Id 
1[email protected] 
2[email protected] 
3[email protected] 
   
   
   
Zone IDEmail ID 
11[email protected] 
22[email protected] 
   
   
   
Region IDEmail ID 
111[email protected] 
   
   
Marketing Manager IDSKU IDEmail ID
100122[email protected]
100223[email protected]
100324[email protected]

 

 

Desired Output: I have created single table with single value which will be filtered based on user 
     
For     
Territory IDEmail Id   
1[email protected]  
Territory IDZone IDRegion IDMarketing Manager IDValue (This will come from Territory Value Column)
111111100120
111111100230
     
     
For    
Zone IDEmail ID   
11[email protected]  
Territory IDZone IDRegion IDMarketing Manager IDValue  (This will come from Zone Value Column)
111111100125
111111100235
211111100255
211111100165
     
For    
Region IDEmail ID   
111[email protected]  
Territory IDZone IDRegion IDMarketing Manager IDValue (This will come from Region Value Column)
111111100130
111111100240
211111100260
211111100165
322111100140
322111100240
322111100350
     
For    
Marketing Manager IDSKU IDEmail ID  
100122[email protected] 
     
Territory IDZone IDRegion IDMarketing Manager IDValue (This will come from Marketing Value Column)
111111100125
211111100165
322111100135

 

And how do we do it on Direct Query Database ???

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mohit_K ,

     

    Create an Email ID role, and write the following expressions in the four user tables respectively.

    After publishing to Power BI Service, in the security of the dataset, add your email address in the user table. Note: The person or group added to the security needs to be within the organization.

     

    Test result

     

    You can view the creation content of my role in the attachment. But note that you need to replace the Email ID with the mailboxes of members in your organization, otherwise it will not succeed.

     

    Best Regards,

    Stephen Tao

     

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

  • Anonymous  Thanks, I will check it once and let you know

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mohit_K ,

    Could you tell me if your problem has been solved?
    If it is, kindly Accept it as the solution. More people will benefit from it.
    Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


    Best Regards,
    Stephen Tao