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
f_cordova_neira
New Member

CARD not counting rows

I have the following table that reflects the number of times the "Live Agent Name" appears in my data base (with some other filters), this gives me 3 rows (which is accurate) but when I try to reflect this number (3) into a card, it gives me 515, not 3.

 

I'm pretty new with power BI but will appreciate your help.

Thanks a lot!!

f_cordova_neira_0-1650593504408.png

 

2 ACCEPTED SOLUTIONS

Hi,

You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Hi,

Try this measure

Measure 2 = CALCULATE(DISTINCTCOUNT(LiveAgents[Asset ID]),filter(SUMMARIZE(generate(VALUES(LiveAgents[Last Run Date]),VALUES(LiveAgents[Asset ID])),LiveAgents[Asset ID],LiveAgents[Last Run Date],"ABCD",[rowcount_alertsTuning]),[rowcount_alertsTuning]>19))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

10 REPLIES 10
Ashish_Mathur
Super User
Super User

Hi,

There is no row context in a card visual.  To get further help, share some data and describe the question.  Also share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, not sure if I understood but if i create a table in Power BI and  I want to create a card that reflects the row count of that table...that's not possible?

 

In the table, I have 3 rows as a result of some filters, I want to reflect those 3 rows in a card.

Those rows are a result of counting repeatable values in the data base.

 

Hope I was able to explain myself. thank you so much!

 

I attached the PBI file link.

 

https://drive.google.com/file/d/1s6osEkC9Mu9jpsVs1xMzhJPkeapxxouO/view?usp=sharing

Hi,

You may download my PBI file from here.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

Sorry to bother you again, Im trying to create a card now counting the number of "Asset ID" but when I try create it based on a measure, the number is higher. Im assuming I'll have to create a new measure based on more filters.

 

hope you can help me, thanks in advance

ps://drive.google.com/file/d/1M-WdXvK1lmDk42Oahlo1CtE8UfLppxQq/view?usp=sharing

 

Thank you SOOOOOOOOOOO MUCH! it worked so well!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

Sorry to bother you again, Im trying to create a card now counting the number of "Asset ID" but when I try create it based on a measure, the number is higher. Im assuming I'll have to create a new measure based on more filters.

 

hope you can help me, thanks in advance

ps://drive.google.com/file/d/1M-WdXvK1lmDk42Oahlo1CtE8UfLppxQq/view?usp=sharing

 

Hi,

Try this measure

Measure 2 = CALCULATE(DISTINCTCOUNT(LiveAgents[Asset ID]),filter(SUMMARIZE(generate(VALUES(LiveAgents[Last Run Date]),VALUES(LiveAgents[Asset ID])),LiveAgents[Asset ID],LiveAgents[Last Run Date],"ABCD",[rowcount_alertsTuning]),[rowcount_alertsTuning]>19))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much Ashish!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.