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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
maneschr2022
Helper II
Helper II

Group a table visual values by a column that doesn´t show in the visual itself

Hi all
I have a table as a visual on my dashboard and I´m using an ID column that makes the right grouping for the values that the table visual contain. 

But I would like to be able to not show the ID column in the visual as doesn´t provide useful information for this purpose, so is there any sort of DAX that can help me to make sure to group the table visual by ID column but not adding it necessary on the visual itself?

 

If I just get rid of the ID column it displays less rows than it should, so definitely would like to make sure that the table visual is group by the ID column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @maneschr2022 

You can try the second way that OwenAuger mentioned . Split the [ID] column into 2 columns, one for text and one for numbers . The premise of this split is that the text of your [ID] column must be consistent, and the numbers behind are different, so that you can group and merge according to the number column . I created a sample , you can have a look .

Original data :

Ailsamsft_0-1651564742054.png

Then split the [ID] column .

Ailsamsft_1-1651564742057.png

Go back to Desktop view , then create a measure to sum the value by column [ID.2] .

Measure = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[ID.2]))

The final result is as shown :

Ailsamsft_2-1651564742059.png

I have attached my pbix file , you can refer to it .

 

Best Regards,
Community Support Team _ Ailsa Tao
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

4 REPLIES 4
Anonymous
Not applicable

Hi @maneschr2022 

You can try the second way that OwenAuger mentioned . Split the [ID] column into 2 columns, one for text and one for numbers . The premise of this split is that the text of your [ID] column must be consistent, and the numbers behind are different, so that you can group and merge according to the number column . I created a sample , you can have a look .

Original data :

Ailsamsft_0-1651564742054.png

Then split the [ID] column .

Ailsamsft_1-1651564742057.png

Go back to Desktop view , then create a measure to sum the value by column [ID.2] .

Measure = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[ID.2]))

The final result is as shown :

Ailsamsft_2-1651564742059.png

I have attached my pbix file , you can refer to it .

 

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

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I created a sample pbix file like below, and I hope these measures in this file can provide some ideas on how to apply to your data model.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi @Jihwan_Kim , is more related to the answer that Owen provided, but still hoping for another solution, at the moment I`m hiding the ID column from the table visual by just compressing the  ID column header to the left to not be visible, but not ideal.

OwenAuger
Super User
Super User

Hi @maneschr2022 

Unfortunately Power BI Table and Matrix visuals don't have a direct equivalent of the "Show header" option in Tableau, which allows you to include but hide a column.

 

However here are two possible methods I've used in Power BI myself:

  1. Include the ID column in the table, disable Text wrap for Values & Column Headers, and manually reduce the width of the ID column until the contents of the column can't be seen (it will still use a small amount of space).
    This method only works if you are happy to disable Text wrap on the entire table.
  2. Create a new column that appends an encoding of the ID to one of the columns you do want to display, using invisible characters.
    You could use any characters from this Invisible Characters list. Encoding the ID using these characters could be tricky depending on the ID values.
    For example, using DAX code to illustrate the idea, these would appear the same but be treated as distinct values in a visual:
    "John" & UNICHAR ( 8203 )
    "John" & REPT ( UNICHAR ( 8203 ), 2 )
    "John" & REPT ( UNICHAR ( 8203 ), 2 ) & UNICHAR ( 8204 )

There could also be a custom visual out there that does this, but I'm not aware of one.

 

Regards,

Owen

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.