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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
WilliamA
Frequent Visitor

Power bi: using value from one table as group by in table visual

Hi all, 

 

Looking for a way to achieve this requirement. 

 

Table A is a config table with 2 columns, key and value. Eg

Card1, issue

 

Table B is the main dim table that has numerous columns. 

 

How can I create a table visual ( or any visual) that groups table B By the value from table A where key = card1 

In this scenario the table visual should return the values of the issue column from table B.

 

If table A gets updated to "Action" then the table visual should now group by the action column from table B.

 

Thanks,

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @WilliamA ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Igna
Resolver II
Resolver II

Hi,

 

You could try to use a measure in the visual with something like that :

 

SelectedValue = 
VAR SelectedKey = SELECTEDVALUE('Table A'[key])
RETURN
    SWITCH (
        SelectedKey,
        "Card1", SELECTEDVALUE('Table B'[Card1]),
        "Action", SELECTEDVALUE('Table B'[Action]),
        // Add more cases as needed
        BLANK()
    )

 

Hope it helps.

 

Igna

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.