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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DidacBF
Frequent Visitor

Problem with cross-filtering the same table in report.

Hello, I am working with questionnaires, so I have a table that simplified looks like this:

DidacBF_0-1688715160977.png

It can have like 100 questions.

 

And the report looks like this:

DidacBF_1-1688715337922.png


What I need is that when I filter C In Question 2, in the visual for the Question 1 show me A = 1 AND B = 1, because both visits have those answers when the answer for the question 2 is C. But insted it does this:

DidacBF_2-1688715531765.png


So I tried to unpivot the table and have one column for each question, and it would have worked if a question coulnd't have more than one answer, but it can so this is happening:

DidacBF_3-1688715605766.png

DidacBF_5-1688715660044.pngDidacBF_6-1688715670802.png


So, my question is, is it possible to do what i need having all the question / answers within the same table, either the example 1 or the example 2 (unpivoted)? I tried distinct count for visit and all, exclude, etc... But couldn't make it work. It needs to work for all questions at once because the are a lot. What i mean is that i can't exclude in a measure an specific question, because it would be crazy to do that for each one.

If it isn't possible to achieve that with measures, I think it could work if when unpivoting, insted of having nulls it duplicates it's value, like this:

DidacBF_7-1688716164405.png

But I don't know how to do that and also, not sure if it's the best solution.

Thank you!!!!

 

 

 

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @DidacBF 

 

If you use the unpivoted table, you can fill it with the option Fill values in a column: https://learn.microsoft.com/en-us/power-query/fill-values-column

View solution in original post

2 REPLIES 2
mlsx4
Memorable Member
Memorable Member

Hi @DidacBF 

 

If you use the unpivoted table, you can fill it with the option Fill values in a column: https://learn.microsoft.com/en-us/power-query/fill-values-column

DidacBF
Frequent Visitor

Thank you @mlsx4 that worked!

My question now is, you guys think this is a good solution?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.