cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sudharshan1919
Helper III
Helper III

Pass Values Dynamically

Hi All,

 

I have some set of data with server name and user names and the system info. I have data like below image.

Sudharshan1919_1-1654603739846.png

For the last column, i have kept some custom column which is of  URL. I have this kind of URL, for example: http://think.com is my URL and in the custom column i am displaying like (Concatenated the "URL" , Server Name [Column] and "/OrgServiceAcc") http://think.com/ServerName1/OrgServiceAcc. 

Now in the place of OrgServiceAcc, it must pass the user name dynamically.

I have shared the dashboard url to some set of people in the power bi service and now when any user who is checking the dashboard and found any errors in the details of any server, he must be able to click the link and make changes. For that in the place of OrgServiceAcc the userid who is making changes to that particular server should pass his userid dynamically.

That means when a user who is clicking on the url, it must be like to http://think.com/ServerName1/UserID1 

Can anyone help on this ?

 

Thanks

Sudharshan.

1 ACCEPTED SOLUTION
Shishir22
Super User
Super User

Hello @Sudharshan1919 ,

 

You can try passing the username with dax function - USERNAME().

USERNAME() will return the id of user and then you can concatinate that Username funtion with your URL.


But the catch is that you need to create this as a Measure not as a Calculated column so that userids can get concatinate dynamically.

 

Maybe you can try to pick the calculated column URL using firstnonblank() function and then concatenate with username() funtion.

 

I am assuming that you are showing this data in table visual so you can go ahead and do conditional formatting on this measure to weburl so that it will start navigating.

 

Please mark it as answer if it solves your issue. Kudos are also appreciated.

 

 

Cheers,
Shishir

View solution in original post

1 REPLY 1
Shishir22
Super User
Super User

Hello @Sudharshan1919 ,

 

You can try passing the username with dax function - USERNAME().

USERNAME() will return the id of user and then you can concatinate that Username funtion with your URL.


But the catch is that you need to create this as a Measure not as a Calculated column so that userids can get concatinate dynamically.

 

Maybe you can try to pick the calculated column URL using firstnonblank() function and then concatenate with username() funtion.

 

I am assuming that you are showing this data in table visual so you can go ahead and do conditional formatting on this measure to weburl so that it will start navigating.

 

Please mark it as answer if it solves your issue. Kudos are also appreciated.

 

 

Cheers,
Shishir

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors