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
Pbiuserr
Post Prodigy
Post Prodigy

Chart axis from two dimension tables

Hello

I want maintain alike chart 

Pbiuserr_0-1663570497116.png

 

My problem is

Workers are people from DimEntity[Entity] = "Manufacturing"

Manegement are people from DimCategory[EmployeeCategory] = "Manegement" 

Executive are people from DimCategory[EmployeeCategory] = "Executive"

 

How to create such axis out of these two tables?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Pbiuserr ,

I created some data:

DimCategory:

vyangliumsft_0-1663655081928.png

DimEntity:

vyangliumsft_1-1663655081930.png

Here are the steps you can follow:

1. Create a table using Enter data.

Group_Table:

 

vyangliumsft_2-1663655081932.png

2. Create calculated table.

Year_Table =
DISTINCT('DimCategory'[Year])

vyangliumsft_3-1663655081934.png

Table =
CROSSJOIN('Year_Table','Group_Table')

vyangliumsft_4-1663655081936.png

3. Create measure.

Executive_Measure =
SUMX(FILTER(ALL(DimCategory),'DimCategory'[Year]=MAX('Table'[Year])&&'DimCategory'[EmployeeCategory]="Executive"),[Amount])
Manegement_Measure =
SUMX(FILTER(ALL(DimCategory),'DimCategory'[Year]=MAX('Table'[Year])&&'DimCategory'[EmployeeCategory]="Manegement"),[Amount])
Manufacturing_Measure =
SUMX(FILTER(ALL('DimEntity'),'DimEntity'[Year]=MAX('Table'[Year])&&'DimEntity'[Entity]="Manufacturing"),[Amount])
Measure =
SWITCH(
    TRUE(),
    MAX('Table'[Group])="Workers",[Manufacturing_Measure],
    MAX('Table'[Group])="Manegement",[Manegement_Measure],
    MAX('Table'[Group])="Executive",[Executive_Measure])

4. Result:

vyangliumsft_5-1663655081946.png

 

Best Regards,

Liu Yang

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

2 REPLIES 2
Anonymous
Not applicable

Hi  @Pbiuserr ,

I created some data:

DimCategory:

vyangliumsft_0-1663655081928.png

DimEntity:

vyangliumsft_1-1663655081930.png

Here are the steps you can follow:

1. Create a table using Enter data.

Group_Table:

 

vyangliumsft_2-1663655081932.png

2. Create calculated table.

Year_Table =
DISTINCT('DimCategory'[Year])

vyangliumsft_3-1663655081934.png

Table =
CROSSJOIN('Year_Table','Group_Table')

vyangliumsft_4-1663655081936.png

3. Create measure.

Executive_Measure =
SUMX(FILTER(ALL(DimCategory),'DimCategory'[Year]=MAX('Table'[Year])&&'DimCategory'[EmployeeCategory]="Executive"),[Amount])
Manegement_Measure =
SUMX(FILTER(ALL(DimCategory),'DimCategory'[Year]=MAX('Table'[Year])&&'DimCategory'[EmployeeCategory]="Manegement"),[Amount])
Manufacturing_Measure =
SUMX(FILTER(ALL('DimEntity'),'DimEntity'[Year]=MAX('Table'[Year])&&'DimEntity'[Entity]="Manufacturing"),[Amount])
Measure =
SWITCH(
    TRUE(),
    MAX('Table'[Group])="Workers",[Manufacturing_Measure],
    MAX('Table'[Group])="Manegement",[Manegement_Measure],
    MAX('Table'[Group])="Executive",[Executive_Measure])

4. Result:

vyangliumsft_5-1663655081946.png

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Pbiuserr , I doubt you can combine like that, You need to three visuals

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.