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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors