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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Create Measures based on Columns

Hi,

 

I have 2 tables.

 

Table1

Question
1

2

 

Table2

IDQuestion 1Question 2
1Strongly AgreeAgree
2AgreeAgree
3AgreeNeutral

 

I would like to create a measure in Table2 called RESPONSE. If I choose 1 in Table1 then RESPONSE will have the same result in Question 1; and if I choose 2 in Table2 then RESPONSE will have the same result in Question2.

 

Thank you for the assistance.

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

That would be tricky with the data in it's current form and would get harder and harder to maintain as you add more questions.

 

However if you unpivot Table 2 so that it looks like the following you can then create a simple rowcount measure and create charts and visuals off that.

 

ID Question Response
1 1 Strongly Agree
2 1 Agree
3 1 Agree
1 2 Agree
2 2 Agree
3 2 Neutral

 

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

That would be tricky with the data in it's current form and would get harder and harder to maintain as you add more questions.

 

However if you unpivot Table 2 so that it looks like the following you can then create a simple rowcount measure and create charts and visuals off that.

 

ID Question Response
1 1 Strongly Agree
2 1 Agree
3 1 Agree
1 2 Agree
2 2 Agree
3 2 Neutral

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.