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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
da_sour
Regular Visitor

Error with Grouped Graph

 

Hi, my name is damian and I have the following info.

 

Jack 10
Paul 20
Paul 10
Michael 30
Michael 20

 

The issue is that I have many names.

I assemble a histogram without problems. but I want that on the x-axis when it says the names, say Michael = [2], Paul [2], Jack [1], instead of just the name.

 

That is, the name and number of repetitions of the record

 

I did the concatenation, but it returns me:  Michael = [1], Paul = [1], Jack [1]

 

Do you know that it may be what is failing me?

 

 

I did:
n = COUNT (Table [Name])
extra = "[" & n & "]"

Table [Name] & [extra]

 

Where this error?

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

@da_sour,

 

To get the expected result, you may use EARLIER Function to add a calculated column.

Column =
COUNTROWS ( FILTER ( Table1, Table1[Name] = EARLIER ( Table1[Name] ) ) )
Community Support Team _ Sam Zha
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-chuncz-msft
Community Support
Community Support

@da_sour,

 

To get the expected result, you may use EARLIER Function to add a calculated column.

Column =
COUNTROWS ( FILTER ( Table1, Table1[Name] = EARLIER ( Table1[Name] ) ) )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

it works!

 

thanks a lot sam!

da_sour
Regular Visitor

 

Hi, my name is damian and I have the following info.

 

Jack 10
Paul 20
Paul 10
Michael 30
Michael 20

 

The issue is that I have many names.

I assemble a histogram without problems. but I want that on the x-axis when it says the names, say Michael = [2], Paul [2], Jack [1], instead of just the name.

 

That is, the name and number of repetitions of the record

 

I did the concatenation, but it returns me:  Michael = [1], Paul = [1], Jack [1]

 

Do you know that it may be what is failing me?

 

 

I did:
n = COUNT (Table [Name])
extra = "[" & n & "]"

Table [Name] & [extra]

 

Where this error?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.