Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a Power BI report. In my dataset I have two tables.
Table -1: REQ table
Columns: REQ No, URL(Web-url), PrimaryID(GUID), SecondaryID(GUID)
Table-2: USER table
Columns: userid(GUID), domainname(user’s email) email
I have a requirement where both Primary and Secondary users should be able to see all Request Numbers (REQ No). Additionally:
Hi, @Prarav
Firstly, I created the following sample data:
Secondly, assuming that the other users you mentioned refer to the USER[userid (GUID)] and REQ[PrimaryID (GUID)] not matching one-to-one, you should create the following measure:
Measure =
VAR ww1=SELECTEDVALUE (USER[userid (GUID)])
VAR ID1 =
CALCULATETABLE (
VALUES ( 'REQ'[REQ No]),
FILTER ( ALLSELECTED ( 'REQ' ), 'REQ'[PrimaryID (GUID)]= ww1 )
)
RETURN
IF(MAX('REQ'[REQ No]) IN ID1,MAX('REQ'[URL]),BLANK())
Then, apply this measure to the 'REQ'[REQ No] column:
Finally, make the modifications in the location indicated in the diagram below:
Here are the final results:
Due to privacy agreements, we are unable to provide a test email directly; I recommend using your own Power BI user email for testing purposes.
For further details, please refer to:
When uploading a file, please be careful to delete sensitive information.
Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
For questions about uploading data, you can try the following links:
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Solved: How to upload PBI in Community - Microsoft Fabric Community
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I followed your steps and tried but still not working. It is showing blank report for non POC users.
Thank you.
HI, @Prarav
Thank you for your prompt response.
Could you please provide details on what your expected output should look like? I suspect there may be a misunderstanding on my part regarding your question, and I would appreciate it if you could clarify the following:
1.What are the results from the perspectives of Primary and Secondary users compared to those of other users?
2.How do we determine which users fall under the category of 'other users'? Am I correct in understanding that this refers to users who have a UserID but do not have a PrimaryID?
I hope you can answer my questions, as this will help me better understand your issue and propose a more suitable solution for you.
For questions about uploading data, you can try the following links:
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Solved: How to upload PBI in Community - Microsoft Fabric Community
When uploading a file, please be careful to delete sensitive information.
Best Regards,
Leroy Lu
Hi Lu,
I appreaciate your help. Please see my answers below in blue text
1.What are the results from the perspectives of Primary and Secondary users compared to those of other users?
Primary and Secondary users should be able to see all Request Numbers as plain text. However, the Request Numbers that belong to them should appear as hyperlinks.
Something like:
1. Scenario
OR
2. Scenario. I would like to display something like following screenshot.
2.How do we determine which users fall under the category of 'other users'? Am I correct in understanding that this refers to users who have a UserID but do not have a PrimaryID?
Users who are not assigned as Primary POCs or Secondary POCs should see the Request Numbers as plain text when they open the report.
Hi, @Prarav
Thank you for your prompt response.
Based on your latest reply, I have updated my solution as follows:
1.Firstly, I have created the following measures:
Measure =
VAR ccc1=CALCULATETABLE (
VALUES ( 'USER'[domainname (email)]),
FILTER ( ALLSELECTED ( 'USER' ), 'USER'[userid (GUID)] IN VALUES('REQ'[PrimaryID (GUID)]) )
)
VAR No1 =
CALCULATETABLE (
VALUES ( 'REQ'[REQ No]),
FILTER ( ALLSELECTED ( 'REQ' ), 'REQ'[PrimaryID (GUID)] IN VALUES(USER[userid (GUID)]) )
)
RETURN
IF(USERPRINCIPALNAME() IN ccc1,IF(MAX('REQ'[REQ No]) IN No1,MAX('REQ'[URL]),BLANK()),BLANK())
2.Secondly, I have modified the settings in the visualization:
3.Here are the final results:
When the user is a Primary and Secondary user:
When the user is another type of user:
Please note that the USERPRINCIPALNAME() function returns the email address you are currently using.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |