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

Beginner: Why is the Value appear as "Count of " ?

Hello

This is my data 

EDH1_0-1593532259363.png

 

I am trying to do a simple chart
On the X axis I want to see all the stores
And on the Y axis, I want to see the the amount.

 

At a later stage , I want to see the SUM my store spending on the Y Axis. but at first lets begin simply by seeing the amount charged per Store
Now this should be very simple, I drag the Column A to be the Axis

and I drag Column B to be the Value

 

But Column B is showing as "Count of CloumnB", not the pure value of Column B

The Column is Decimal Format- not text. which is fine

Any idea why POWERBI is defaulting to "Count of Column" ?

Thank you

 


 

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @EDH1 

 

Make sure the data type is numeric in both model view and power query view. otherwise, you need to convert these to numeric (go to the Modeling tab and change the Data Type) and then you can perform aggregations like sum, average, etc.  If there is only one value per X axis increment, then these aggregations will return the actual value.

 

If still not working, please kindly share your dummy pbix that we can test it on our side.

 

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

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @EDH1 

 

Make sure the data type is numeric in both model view and power query view. otherwise, you need to convert these to numeric (go to the Modeling tab and change the Data Type) and then you can perform aggregations like sum, average, etc.  If there is only one value per X axis increment, then these aggregations will return the actual value.

 

If still not working, please kindly share your dummy pbix that we can test it on our side.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
harshnathani
Community Champion
Community Champion

Hi @EDH1 ,

 

 

https://docs.microsoft.com/en-in/power-bi/create-reports/service-aggregates

Look under troubleshooting .Point No 2. Go to Power Query and change Data Type as Number. Change the 123ABC Datatype to 123 in Power Query.

 

 

Also, it is generally a good practise to create a measure for all aggregate columns. One with the Summation Sign.

 

Here you can create a measure.

 

Total Amount = SUM ('Table'[Amount Charged])

 

Pull this in the values field.

 

Regards,

Harsh Nathani

Appreciate with a Kudos!! (Click the Thumbs Up Button)


Did I answer your question? Mark my post as a solution!

 

 

amitchandak
Super User
Super User

@EDH1 , You can rename the column. So when you change aggregation from sum/none to count, it will show count of.

 

You can double click on the name in the visual pane and rename it.

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.