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
Anonymous
Not applicable

Count specific items in visual table created

Hi everyone,

 

I have created a visual table which shows the purchase status of my customers:

1) Picture 1 shows all my customers buying from me

I have 3 product groups (Atom, Diamed & Valx). I have named the purchase status of each products into few Purchase Status using DAX ( Growing, Slowing, critical, follow-up & lost account).

On the top Cards, i try to show the # of accounts under each category based on the table below.

 

However, I found that the calculations are not tally with the number of accounts shown in the table.

 

EG: I only have 11 active accounts but the card shows 13 active accounts. Growing accounts in the table and the card is also different.

 

May I know how can I count the rows in visual table using DAX which contains Critical, Growing, Slowing, etc, in regardless of master name and product group?

EG: Critical = 1 Growing = 11 Slowing = 8

 

Thanks.

SL

 

All  products purchase statusAll products purchase status

 

6 REPLIES 6
V-pazhen-msft
Community Support
Community Support

@Anonymous 

Did you figured out? I see the it counts the status in the visual correctly in the pbix.

 

Paul

Anonymous
Not applicable

Hi Paul,

 

If I select one product, the numbers in the cards are not tally with the numbers shown in the table.

 

Thanks.

SL

V-pazhen-msft
Community Support
Community Support

@Anonymous 

In fact you cannot count the rows in a table visual, you need to count the original data table after filtering. Please share sample pbix so we can understand your current model. 

 

Paul

Anonymous
Not applicable

Dear Paul,

The thing is I have defined my accounts based on their purchase status. Now, I need to count how many accounts I have based on the status I defined.

Below is my pbix file. Thanks.

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

amitchandak
Super User
Super User

@Anonymous , does it include a distinct count or some row context if ?

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

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.