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
Paint_bynumbers
Regular Visitor

Count returns wrong result?

I load only one csv File with 479388 rows in Power BI.

If I do a “COUNTROWS(mytable)” I get 479388.

If I do “COUNT(mytable[%Key])” on a Key Value I get 229812854544.

The values in %Key are like the “50|13554”. 

 

What is creating this number 229812854544? I excepting the number should not be higher then 479388.

Can somebody explain what I do wrong? What is Power BI counting?

3 REPLIES 3
Paint_bynumbers
Regular Visitor

I think I found my mistake, I created a new column instead of a new measure.

 

But I’m still confused what this new column counts?

Ttaylor9870
Helper III
Helper III

What does 50|13554 mean? Is it suppose to be a text column but is formatted as numerical?

“50|13554” means nothing it’s only a Key like Order number. It’s is formatted as text in the data modell.

But what I want to know is how many rows are in the table with a %key and how many are unique.

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.