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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mohit_K
Helper I
Helper I

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 
1T1@gmail.com 
2T2@gmail.com 
3T3@gmail.com 
   
   
   
Zone IDEmail ID 
11Z1@gmail.com 
22Z2@gmail.com 
   
   
   
Region IDEmail ID 
111R1@gmail.com 
   
   
Marketing Manager IDSKU IDEmail ID
100122M1@gmail.com
100223M2@gmail.com
100324M3@gmail.com

 

 

Desired Output: I have created single table with single value which will be filtered based on user 
     
For     
Territory IDEmail Id   
1T1@gmail.com  
Territory IDZone IDRegion IDMarketing Manager IDValue (This will come from Territory Value Column)
111111100120
111111100230
     
     
For    
Zone IDEmail ID   
11Z1@gmail.com  
Territory IDZone IDRegion IDMarketing Manager IDValue  (This will come from Zone Value Column)
111111100125
111111100235
211111100255
211111100165
     
For    
Region IDEmail ID   
111R1@gmail.com  
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  
100122M1@gmail.com 
     
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 3
v-stephen-msft
Community Support
Community Support

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

mohit_K
Helper I
Helper I

@v-stephen-msft  Thanks, I will check it once and let you know

v-stephen-msft
Community Support
Community Support

Hi @mohit_K ,

 

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

1.png2.png3.png5.png

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.

6.png

 

Test result

4.png

 

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.