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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ad3ViLl
New Member

Need help: Display values

Hey everyone. I need help to display some values on a chart (bar or decomposition-tree). So, I've got a list of questions that the users selected which ones were applicable and was recorded with other values. I need to display chart with the axis based on the question and the values are the count of that specific question that was recorded. There is currently no relationship between the 2 tables.

 

This the question list (unique index)

 Questions.jpg

Applicable questions was recorded (Index of each applicable question, comma seperated)

SelectedQuestions.jpg

 

 

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

@Ad3ViLl 

Your best bet would be to split the second table field by comma delimiter and convert it to a single column by unpivoting the columns it splits the field into.  You can do all that in PowerQuery.

View solution in original post

v-shex-msft
Community Support
Community Support

HI @Ad3ViLl,

I agree with jdbuchanan71's point of view, you need to do some table structure transform on table 2 for further operations.

operation steps:

1. Add an index column to table 2.

Table.AddIndexColumn 
2. Split text to list.

Text.Split 

3. Expand the column who stored the above list of values to rows.

Expand column containing list of records 

After these steps, you can extract and merge two table id to create a unique id bridge table to link two tables.

Bridge =
DISTINCT (
    UNION ( ALL ( Table1[QuestionIndex] ), ALL ( Table2[QuestionIndex] ) )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Ad3ViLl,

I agree with jdbuchanan71's point of view, you need to do some table structure transform on table 2 for further operations.

operation steps:

1. Add an index column to table 2.

Table.AddIndexColumn 
2. Split text to list.

Text.Split 

3. Expand the column who stored the above list of values to rows.

Expand column containing list of records 

After these steps, you can extract and merge two table id to create a unique id bridge table to link two tables.

Bridge =
DISTINCT (
    UNION ( ALL ( Table1[QuestionIndex] ), ALL ( Table2[QuestionIndex] ) )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
jdbuchanan71
Super User
Super User

@Ad3ViLl 

Your best bet would be to split the second table field by comma delimiter and convert it to a single column by unpivoting the columns it splits the field into.  You can do all that in PowerQuery.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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