Forum Discussion
Need help in DAX
I am trying to create dynamic category using slicer component.
Below is expression to created table in SSAS TOM MODEL:
var Race= CROSSJOIN(ROW("Type","Race"), VALUES(DimStudents[RaceName]))
var Gender= CROSSJOIN(ROW("Type","Gender"), VALUES(DimStudents[GenderName]))
var Hispanic = CROSSJOIN(ROW("Type","Hispanic"), VALUES(DimStudents[HispanicName]))
var SchoolYear= CROSSJOIN(ROW("Type","SchoolYear"), VALUES(SectionEnrollment[LatestSchoolYear]))
var SchoolName= CROSSJOIN(ROW("Type","SchoolName"), VALUES(DimSchool[SchoolName]))
return UNION(Race,Gender, Hispanic,SchoolYear,SchoolName)
SchoolYear will be fix category and remaining will be based on selection
- v-qiuyu-msft7 years agoCommunity Support
Hi TejeshGour,
The FactTable link is not accessible. Please double check it.
For your screenshot, it looks like there are four legends (Gender, Race, SchoolYear, SchoolName) display in the chart, you would like to keep the SchoolYear displaying regardless any filter will filter out SchoolYear, right? I'm afraid this is not supported currently.
Best Regards,
Qiuyun Yu- Anonymous7 years agoNot applicable
https://drive.google.com/file/d/1jFr3cfSQbZemjFuKX50gLS45qlQ0R0Bq/view?usp=sharing
Thanks for your response!
Actually SchoolYear will not use in slicer that will be in chart and remaining categories will be use in slicer.PFA sampleData.
I am not able to attach document. How I can attach?- v-qiuyu-msft7 years agoCommunity Support
Hi TejeshGour,
Thank you for your information. I'm able to view the sample data shared by you here: https://drive.google.com/file/d/1jFr3cfSQbZemjFuKX50gLS45qlQ0R0Bq/view
Would you please clarify the desired results based on this data?
Best Regards,
Qiuyun Yu