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
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
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.