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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Card Visualization don't work with Measure as a Filter

Hello community,

 

I am very new to PowerBI. I am trying to display the unique record for the Address field that has more than 1 ID for the Card Visualization (or any big number display) on PowerBI. Here is the sample of data. Eventually, I would like the card visualization display "2". How would I do it? I have tried the table/matrix visualization and it gave me the number that I wanted, because I was able to set the filter by creating a new Measure by filtering out the count=1 scenario. When I copy and paste the visual to Card Visulization, it didn't get me the right number, and I couldn't add the Measure into the filter as it is disabled. I also tried to create a column to sum the count of ID based on the address, but because I also use a year field in the table as a slicer so the sum shouldn't stay the static if using the year slicer. Could anyone give me some idea what I could try?

AddressID
A12300
A12301
B12302
B12303
C12304
D12305
1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You can use a measure like this for your card visual.  Replace Table with your actual table name.

 

Companies with Multiple IDs =
COUNTROWS (
    FILTER (
        VALUES ( Table[Company] ),
        CALCULATE (
            DISTINCTCOUNT ( Table[ID] )
        ) > 1
    )
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
AmandeepThind
New Member

@mahoneypat : I am in a similar situation.

I have a new table "SourceTable" having 2 values "Ext" and "Int". I have created a slicer with this table.

Now I have used a card visual and it is displaying values from already created 2 measures.

After this, I have created a new measure as :

IsExternalMeasure = if(SELECTEDVALUE(SourceTable[Source])="Ext",1,0)
 
When I am trying to use above measure as a filter criteria for the card visual, the filter gets disabled.
Please suggest what is going wrong here?
NOTE: The important thing is - I want to display the value in the card , which is getting calculated via measure.
mahoneypat
Microsoft Employee
Microsoft Employee

You can use a measure like this for your card visual.  Replace Table with your actual table name.

 

Companies with Multiple IDs =
COUNTROWS (
    FILTER (
        VALUES ( Table[Company] ),
        CALCULATE (
            DISTINCTCOUNT ( Table[ID] )
        ) > 1
    )
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thank you Pat @mahoneypat ! I have got the function works!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors