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
ofeliajesus
Helper I
Helper I

Grouping using the same value twice

Hello,

 

I have the below regions 

Basically, I want to have all the below plus Non-California (with all except California) in the same field is it possible with Groups 

can I use the same field twice? Is it better to use DAX ?

How can I do this?

 

Example 

California 

North Central

Northeast

South Central

South East

Southwest

West

Non-California

ofeliajesus_0-1661538129065.png

 

Any help would be appreciated.

Thank you 

 

1 ACCEPTED SOLUTION

Thank you Rico,

 

Your solution works ... 

In the Union, I needed to change it to have the same fields same order ...

UNION(

SELECTCOLUMNS(), 
SELECTCOLUMNS())
 
 

 

 

View solution in original post

4 REPLIES 4
ofeliajesus
Helper I
Helper I

Thanks, Rico,

This is not what I want, my column Region doesn't have Non-California.

I have a fact table like the one below one

 

Date_IDRegion Amount
29042021California$200.234
30042021North Central$650.235
01052021West$1,140.890
02052021Northeast$2,100.137
03052021California$954.543
04052021California$654.345
05052021North Central$321.654
06052021South Central$234.876
06052021South East$1,140.890
08052021North Central$2,100.137
08052021South Central$954.543
10052021California$654.345
11052021West$2,100.137
26042022Southwest$200.234
27042022California$650.235
28042022North Central$1,140.890
29042022South Central$2,100.137
30042022North Central$954.543
01052022North Central$654.345
01052022South Central$321.654
01052022California$234.876
04052022West$1,140.890
05052022West$2,100.137
06052022West$200.234
07052022California$650.235
08052022California$1,140.890
09052022North Central$2,100.137
10052022South Central$954.543
11052022North Central$654.345
12052022California$321.654


and I want is create a new group that gives me all the regions more Non-California because I want a Matrix-like

 

ofeliajesus_0-1661761096964.png

 

 

Anonymous
Not applicable

Hi @ofeliajesus ,

 

I think you can try to create a calculated table to achieve your goal.

Table 2 =
VAR _Non_California =
    SUMMARIZE (
        FILTER ( 'Table', 'Table'[Region ] <> "California" ),
        'Table'[Date_ID],
        "Region", "Non-California",
        "Amount", CALCULATE ( SUM ( 'Table'[Amount] ) )
    )
RETURN
    UNION ( 'Table', _Non_California )

Result is as below.

RicoZhou_0-1661827513244.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you Rico,

 

Your solution works ... 

In the Union, I needed to change it to have the same fields same order ...

UNION(

SELECTCOLUMNS(), 
SELECTCOLUMNS())
 
 

 

 

Anonymous
Not applicable

Hi @ofeliajesus ,

 

I suggest you to create a calculated column by dax.

Group = 
IF('Table'[Region] = "California",'Table'[Region],"Non-California")

Result is as below.

RicoZhou_0-1661753470794.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.