Forum Discussion

CJDK's avatar
CJDK
Icon for Helper II rankHelper II
5 years ago
Solved

How to find Power BI visualization ID

I have a table visualization in a Desktop report and want to run code on the table. How do I find the ID for table visualization (e.g. "Table1" or "Table2")?

  • PhilipTreacy selimovd Thanks guys for your help! I have worked around my problem so no longer need to identify the visualization table. 

     

    That said, it would nonetheless be interesting to round off this thread to know how one can find visualization IDs!

     

    Regards

     

    Charles

6 Replies

  • Hi CJDK 

    You don't 'run code' on the table visualization, you write code that affects the data in Tables (or measures) and this is then displayed in visuals, like a table visual.

    Maybe if you illustrated what it is you are trying to do I can assist.

    regards

    Phil

  • selimovd's avatar
    selimovd
    Icon for Most Valuable Professional rankMost Valuable Professional

    Hey CJDK ,

     

    first select the visualization that you want to know where the data is coming from.

    Then hover over the fields in the Visualization pane. After a few seconds the table and name of the original column will appear:

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

    Best regards
    Denis

    Blog: WhatTheFact.bi

  • PhilipTreacy selimovd Thanks guys for your help! I have worked around my problem so no longer need to identify the visualization table. 

     

    That said, it would nonetheless be interesting to round off this thread to know how one can find visualization IDs!

     

    Regards

     

    Charles

  • Thanks for your help and apologies for a poorly worded query!

     

    I presume each visualization in a report has a unique ID.

     

    I have an ordinary table visualization and I want to apply a single slicer for all the columns. I have seen the solution Single slicer for all columns  and want to create an equivalent measure. As far as I can understand I need the ID of the visualization table (i.e. not the ID of the underlying dataset table) to create that measure.

     

    • selimovd's avatar
      selimovd
      Icon for Most Valuable Professional rankMost Valuable Professional

      Technically the vizualisations have IDs. But you can't address them with measure and you don't have to.

      You write measures and the desired result will be evaluated based on the filter context (filter, slicers and the values in a row or column in a table).

       

      Maybe describe your desired outcome a little more detailed and what you want to do, then I can try to help you.

    • PhilipTreacy's avatar
      PhilipTreacy
      Icon for Super User rankSuper User

      Hi CJDK 

      Please @ mention me in your replies or I will not be notified that you've replied.  Type @ then sleect my name.

      That link doesn't go anywhere!  Not sure what it is you are trying to do.  Please provide an exampleof what your desired result is and I can try to help.

      regards

      Phil