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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
SK87
Helper III
Helper III

Concatenate Summarize Columns

Hi Team,

I have 2 columns as "Whole Number" in which have value from 0-10. Name column name as A, C. I need to prepare one measure/column which will act as a slicer of all these 2 columns as 1. Based on this the selection of other brands would be done and their respective values would be shown.

 

A brand columns contains suppose 5 sub brands and same with C but sub brands could be different.

How I can combine these 2 columns into one or make any measure which acts in same way.

Dataset :

BrandValuesBrandABrandC
N70.205
N70.200
N74.105
N74.100
N70.205
N70.200
N67.605
N67.600
C66.301
C66.300
C88.401
C88.400
C98.801
C98.800
C83.201
C83.200
C13001
C13000
C122.201
C122.200
C92.301
C92.300
C93.601
C93.600
C83.201
C83.200
C59.801
CG7.802
CG9.102
CG11.702
CG11.702
CG11.702
CG10.402
CG16.902
CG14.302
CG14.302
CG1302
CG16.902
CG23.402
CG24.702
CG27.302
CG2602
CG27.302
CG3902
CG44.202
CG37.702
CG31.202
A41.610
A41.610
A42.910
A42.910
A37.710
A44.210
AD71.520
AD7820
AD76.720
AD67.620
AD74.120
CO57.230
CO57.230
CO58.530
N9140
N92.340
N92.340
P106.650
P102.750
P97.550
P94.950
P96.250
P89.750
P98.850
P93.650
R96.260
R79.360
R80.660
R81.960
R81.960

KIndly suggest

7 REPLIES 7
tamerj1
Super User
Super User

@SK87 
If I correctly understand then create a calculated column

TableName[BrandA] & TableName[BrandB]

Then use it in the slicer

Thanks for your response, but unable to get the solution.

I basically want to create a combined slicer from Brand A & Brand

@SK87 
Also not sure if I correctly understand the requirement. However this is a sample file with the proposed solution https://we.tl/t-vZNbdEGPkU

First create a filter table:

1.png

 

Brands = 
SELECTCOLUMNS (
    DISTINCT ( 
        UNION (
            VALUES ( 'Dataset'[BrandA] ),
            VALUES ( 'Dataset'[BrandC] )
        )
    ),
    "Brand", [BrandA]
)

Create inactive relationships

1.png

 

Then create this filter measure and place it in the filter pane of the visual

 

Total Value = 
VAR BrandAValue =
    CALCULATE (
        SUM ( 'Dataset'[Values] ),
        USERELATIONSHIP ( 'Dataset'[BrandA], 'Brands'[Brand] )
    )
VAR BrandCValue =
    CALCULATE (
        SUM ( 'Dataset'[Values] ),
        USERELATIONSHIP ( 'Dataset'[BrandC], 'Brands'[Brand] )
    )
RETURN
    BrandAValue + BrandCValue

 

2.png

3.png

I had written the first column measure as suggested and getting this error:

 

Brands = SELECTCOLUMNS(
                  DISTINCT(
                         UNION(
                                     VALUES(Data[Brand A]),
                                     VALUES(Data[Brand B]),
                                      VALUES(Data[Brand C]),
                                      VALUES(Data[Brand D])
                                  )
                               ),
                                "BRAND", [Brand A]
)
 
ERROR: "A table of multiple values was supplied where a single value was expected."

I want Brand A, Brand B, Brand C, Brand D in slicer instead of numbers i.e. 0-6

@SK87 

This is a calculated table not a column

@tamerj1 

I created a calculated column and done as you suggested. Everything went well but the output I am looking is not there. 

 

I need a slicer in which only these 4 brands are there A, B,C, D and based on this I should get sub brands in the table.

 

See below screenshot, when I have selected brand as slicer where I have multiple brands but when I selected Brand A then in table I am only getting Brand A not other categories like BrandA.1, Brand A.2 etc same for others.

 

SK87_2-1657125340141.png

 

Also, in slicer if I keep new calculated column of Brand then I am getting numeric values instead of 4 major brand names

SK87_1-1657125223719.png

 

I wanted to see:

 

SK87_3-1657125742934.png

Hope this makes sense.

 

@SK87 

I think it is better to connect via teams or zoom. Let me know which time is convenient for you tomorrow. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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