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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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