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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
grggmrtn
Post Patron
Post Patron

Fiiltering table visualisations - I need "AND"

The data we're working with is relatively simple. We have a webform people have filled out at different times with different answers in them. The answers are structured (dropdown choices), so there's only a few different values in the column.

 

The table we have is made up of columns FormID, Date, Answer

 

What I need is to find the number of FormID based on the answer value (or values, using CTRL-click) that I chose in the report, table visualisation.

 

Easy enough, until I choose two Answer values.

 

PowerBI gives me the number of FormID that have the first answer, PLUS the number that have the second. 

 

What I need is how many have the first AND the second when I click on two (or three, etc).

 

It sounded really simple when I started the report, but it's anything BUT 🙂

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@grggmrtn,

 

You may refer to the measure below.

Measure =
COUNTROWS (
    FILTER (
        VALUES ( Table1[FormID] ),
        CALCULATE (
            DISTINCTCOUNT ( Table1[Answer] ) = COUNTROWS ( ALLSELECTED ( Table1[Answer] ) )
        )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@grggmrtn,

 

You may refer to the measure below.

Measure =
COUNTROWS (
    FILTER (
        VALUES ( Table1[FormID] ),
        CALCULATE (
            DISTINCTCOUNT ( Table1[Answer] ) = COUNTROWS ( ALLSELECTED ( Table1[Answer] ) )
        )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

My scenario is a little different.  I have a Unit table and an Option table,  I need to be able to find all of the units that do not have the selected option, options.  This works great for finding all of the units that DO contain the selected option but I also need to find all the units that do not match the seleted option.  I tried changing the = to <> but that did not work. How could I do this?  Thank You Very Much

Thank you SO much! You've just given us the solution to a LOT of other problems we have here - cheers 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors