cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abc_777
Super User
Super User

hi

hi,

 

I have reg_no column where vehicle registration are there.

I count them. but my total shows 1.

 

i want to count and then total need to show as sum of total count

nswer would be 35 (total of count)

 

please help

 

Sorry i have to mark red as this is sensitive data

 

abc_777_0-1670504764023.png

 

 

thanks 

1 ACCEPTED SOLUTION

i do

 

CALCULATE(COUNT('bm_retail_t vehicle'[REG_NO]), ALL('bm_retail_t ssummary'[CUSTOMER_NAME]))
 
but no luck. would be able to give me a simple sample ile for grand total please if possible
 
thanks

View solution in original post

2 REPLIES 2
djurecicK2
Memorable Member
Memorable Member

Hi @abc_777 ,

 The reason the count is 1 is becuase that is the count for each individual customer. If you want to show the total for all customers, you can use ALL(Tablename) as a filter in your measure:

https://learn.microsoft.com/en-us/dax/all-function-dax

 


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

i do

 

CALCULATE(COUNT('bm_retail_t vehicle'[REG_NO]), ALL('bm_retail_t ssummary'[CUSTOMER_NAME]))
 
but no luck. would be able to give me a simple sample ile for grand total please if possible
 
thanks

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.