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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Visualization of duplicated values on a card

Hi PBI community:

 

For a report, we have a data full of bank accounts (i.e. ES45786798466846), some of the bank accounts are duplicated, we would like to visualize the amounf of duplicated bank accounts on a "card visual".

 

I´ll add here a small example of our data:

 

ES09324
ES09324
ES09324
ES09324
ES09324
ES72933
ES92348
ES92348
ES92348
ES92348
ES92348
ES93034
ES93034
ES93034
ES93034
ES93034
ES98239

 

As you can see, we can identify some bank accounts that are duplicated. We are not interested in visualizing the total amount of duplicated values (15, acccording to the image ) but the amount of distinct duplicated bank accounts (3, acccording to the image below). This is explained in the following image.

Capture.PNG

 

 

 

           

 

We would like to visualize, for this data, the value = 3 in a card. This is super easy to see on a matrix visual, because we can use more filters, but on a card visual we are not able, yet, to accomplish that.

 

Is this possbile? Is there any wayaround? Can we visualize the value of a Matrix on a Card? Like importing it from one visual to another.

 

Thanks very much. 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@lascurainge , Try these measures

Different account: different(Table[Account])
Duplicate count: sumx(summarize(table,Table[Account], "_1" ,count(Table[Account]),"_1", distinctcount(Table[Account])),[_1] -[_2])
Duplicate account: countx(filter(summarize(table,Table[Account], "_1" ,count(Table[Account]),"_1", distinctcount(Table[Account])),[_1] >[_2]),[Account])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hello @lascurainge

You can show the discount of duplicate bank accounts on the card by measure.

Measure:

Measure = 
VAR _Count = COUNTAX(FILTER('Table','Table'[BankAccount]=MAX('Table'[BankAccount])),'Table'[BankAccount])
VAR _A = IF(_Count>1,1,0)
RETURN
_A
DisCount Duplicate BankAccount = 
var _T = SUMMARIZE('Table','Table'[BankAccount],"Count",[Measure])
Return
SUMX(_T,[Count])

Or you can create a calculated table and display the bank account count on the visual card.

Calculated table:

Table 2 = 
VAR _T = SUMMARIZE('Table','Table'[BankAccount],"Count",COUNTAX(FILTER('Table','Table'[BankAccount]=EARLIER([BankAccount])),'Table'[BankAccount]))
VAR _T2 = SUMMARIZE(FILTER(_T,[Count]>1),[BankAccount])
Return
_T2

2.png

The result is as follows.

1.png

You can download the pbix file from this link: Viewing Duplicate Values on a Card

Best regards

Rico Zhou

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hello @lascurainge

You can show the discount of duplicate bank accounts on the card by measure.

Measure:

Measure = 
VAR _Count = COUNTAX(FILTER('Table','Table'[BankAccount]=MAX('Table'[BankAccount])),'Table'[BankAccount])
VAR _A = IF(_Count>1,1,0)
RETURN
_A
DisCount Duplicate BankAccount = 
var _T = SUMMARIZE('Table','Table'[BankAccount],"Count",[Measure])
Return
SUMX(_T,[Count])

Or you can create a calculated table and display the bank account count on the visual card.

Calculated table:

Table 2 = 
VAR _T = SUMMARIZE('Table','Table'[BankAccount],"Count",COUNTAX(FILTER('Table','Table'[BankAccount]=EARLIER([BankAccount])),'Table'[BankAccount]))
VAR _T2 = SUMMARIZE(FILTER(_T,[Count]>1),[BankAccount])
Return
_T2

2.png

The result is as follows.

1.png

You can download the pbix file from this link: Viewing Duplicate Values on a Card

Best regards

Rico Zhou

If this post helps,then consider Accepting it as the solution to help other members find it faster.

Hello
CapturePower bi Query.PNG @Anonymous  , 
I tried the same query but its not working in my case .Could you please assist 

Anonymous
Not applicable

Thank you very much for the solution, it has worked for me

Anonymous
Not applicable

Hi @Anonymous 

I'm glad to be able to solve your problem. You could accept the helpful reply as the solution to help the other members find it more quickly. More people will benefit from it. 

 

Best Regards,

Rico Zhou

 

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

amitchandak
Super User
Super User

@lascurainge , Try these measures

Different account: different(Table[Account])
Duplicate count: sumx(summarize(table,Table[Account], "_1" ,count(Table[Account]),"_1", distinctcount(Table[Account])),[_1] -[_2])
Duplicate account: countx(filter(summarize(table,Table[Account], "_1" ,count(Table[Account]),"_1", distinctcount(Table[Account])),[_1] >[_2]),[Account])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you very much for the solution, it has worked for me.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.