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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jmiridium
Helper IV
Helper IV

Count Issue

I am importing data from an Excel spreadsheet or a CSV file to use or charting, the values always automatically count. I don't want this behavior. How do I prevent this?

11 REPLIES 11
MarkS
Resolver IV
Resolver IV

This might not be an answer to your question, but you can set the default summarization for your fields.

Select the fields (Time) and on the Modeling tab there is a default summarization that you could set to "Don't Summarize"summarization.PNG

 

HTH

Anonymous
Not applicable

Sorry, totally not getting your question.

I want it to not count time. Each time is a specific time frame

 

t4.JPGt5.JPG

Don't count it, don't sum it. don't count distinct. Just plot the data in the same manner as Excel

Anonymous
Not applicable

Gotcha.  In general, values are always aggregated in some way, cuz there will be a set of rows that match that point on the Axis.  Since in your case, you know there is just 1 value... you could just use SUM( ) or AVERAGE( ) or MIN( ) or MAX( ) ... and all would return the same value, no?

This is a bad behavior. I should be able to just have the numbers import in the same manner as the excel spreadsheet. If not, this makes PowerBI an ineffective tool to use

Anonymous
Not applicable

The closest you can do that what you want... (If I am understanding) is

 

Current Value := IF (HASONEVALUE(MyTable[MyValue]), VALUES(MyTable[MyValue]))

 

Putting something on an AXIS (or rows of a table) is very much like using GROUP BY in SQL, if you are familiar there.  The values that you don't group by... need to be wrapped in an aggregate of some kind.  The above measure is just making sure you REALLY only have 1 value (in case you are lying, typically on a grand total cell of a table)... and says "find, give me the 1 value".

 

In my 4 years of using DAX this wouldn't removely make the list of annoying things about it 🙂

y do I have to do anything at all? It should just use the data raw without modifying

Anonymous
Not applicable

Typically it would default to SUM( ) and you wouldn't notice this behavior.  I am guessing your datatypes are incorrect (like your value is set to a string).   While I wasn't involved w/ designing the product, so don't really "know"... I can say that some visuals support what you are asking (do not summarize -- say, a table visual), but typically they do not, and that is likely because it doesn't impact you in any way, at all.

 

Why do you care?  Drop down, select pretty much anything except COUNT( ) and move on with your life?

The data in both Excel and the Data view in PowerBI shows the data correctly. It's when I try to graph it, it always counts. If I add a Table and place the data in the table, it shows up incorrectly:

 

t6.JPGt7.JPGt8.JPG

jmiridium
Helper IV
Helper IV

I want to be able to do the same thing in Excel with PowerBI:

 

t1.JPGt2.JPGt3.JPG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.