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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
HenryJS
Post Prodigy
Post Prodigy

Count vs Sum

Hi all,

 

I have written the below DAX code to return a count of all rows where HasAdvert = Yes and JobStatus = Open. This should return a value of 16 but it is showing as 18? I have it to display as a Count?

 

As in picture 3 it should return a value of 16.

 

1. DAX code 

 

Marketing 3.PNG

 

2. Table in PowerBI 

 

Marketing 2.PNG

 

 

3. Base data

 

Marketing.PNG

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@HenryJS ,

 

As per your description your measure name is "Advertised Open Job 2" but when you drag it in table so title of that column become "Count of Advertised Open Job 2 " means Count aggregation is selected on top of your measure created.

 

So please make it "Don't Summerize" as per screen shot shared by @v-easonf-msft .

 

Please don't forget to hit THUMBS UP and Accept this as a solution if it helps you!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @HenryJS 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or your reply as Answered to close this thread?

 

Best Regards,
Community Support Team _ Eason

Tahreem24
Super User
Super User

@HenryJS ,

 

As per your description your measure name is "Advertised Open Job 2" but when you drag it in table so title of that column become "Count of Advertised Open Job 2 " means Count aggregation is selected on top of your measure created.

 

So please make it "Don't Summerize" as per screen shot shared by @v-easonf-msft .

 

Please don't forget to hit THUMBS UP and Accept this as a solution if it helps you!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
v-easonf-msft
Community Support
Community Support

Hi , @HenryJS 

I can’t reproduce your problem. It works well in my PowerBI report.

I am not sure which one  you are using ,calculated column or measure?

If you are using calculated column, please pay attention to your type of summarization here .

And I suggest you’d better to use measure here.

Y1.png

Here is a sample I made :

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EZSMDSQUiRpAsjQe4GU3a...

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.