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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Combining Details

Hello,

 

seeking your advice on this scenario.

 

Iiss there any other ways to combine them jus to get accurate results?

 

for context:

I have a question table, answer table, and vote table following their IDs (24, 26, 27, 28, 29, 30, 31 & 32) that can be found on the "Question" column

jba_1-1706704211136.png

 the 24, 26, 27, 28 and 29 - answers should be in between of 1-5 stars, 30 & 32 should be Yes/No, and 31 is for feedback/comment (please see screenshot below)

 

Answer Table:

jba_2-1706704308573.png    

 

 

Vote table:

jba_4-1706704459118.png

 

and the desired result should be like this when using table visual

jba_5-1706704542331.jpeg

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 
You can create a measure directly, you can refer to the following solution.

Based the picture you have offered for the answer table, we assume that you have the related userid.

Thhe following is the sample data 

Question.

vxinruzhumsft_0-1707285178505.png

Answer

vxinruzhumsft_1-1707285193764.png

Vote

vxinruzhumsft_2-1707285221776.png

Useid table

vxinruzhumsft_3-1707285240474.png

The relationship among the tables.

vxinruzhumsft_4-1707285313816.png

Then create a measure.

Measure =
VAR a =
    MAXX (
        FILTER (
            ALLSELECTED ( 'Answer' ),
            [id] = MAX ( 'Userid'[id] )
                && [quation_id] = MAX ( 'Question'[id] )
        ),
        [answer]
    )
VAR b =
    MAXX (
        FILTER (
            ALLSELECTED ( 'Vote' ),
            [id] = MAX ( 'Userid'[id] )
                && [question_id] = MAX ( 'Question'[id] )
        ),
        [vote_value]
    )
RETURN
    SWITCH ( TRUE (), a <> BLANK (), a, b <> BLANK (), b )

Output

vxinruzhumsft_5-1707285401481.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

dufoq3
Community Champion
Community Champion

It would be good if you could provide all tables as sample (don't forget to paste them here as table)


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.