The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello
I want maintain alike chart
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?
Solved! Go to Solution.
Hi @Pbiuserr ,
I created some data:
DimCategory:
DimEntity:
Here are the steps you can follow:
1. Create a table using Enter data.
Group_Table:
2. Create calculated table.
Year_Table =
DISTINCT('DimCategory'[Year])
Table =
CROSSJOIN('Year_Table','Group_Table')
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:
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
Hi @Pbiuserr ,
I created some data:
DimCategory:
DimEntity:
Here are the steps you can follow:
1. Create a table using Enter data.
Group_Table:
2. Create calculated table.
Year_Table =
DISTINCT('DimCategory'[Year])
Table =
CROSSJOIN('Year_Table','Group_Table')
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:
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
User | Count |
---|---|
59 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |