Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dynamically select column from different Dimension tables based on Slicer selection

Hello Experts,

 

How to dynamically select column from different Dimension tables?

 

I want the Bar chart Y-axis to dynamically pick up between Month, Week and Category columns based on Slicer selection. Slicer should contain 3 respective texts in dropdown: Month, Week, Category

 

Month and Week values come from dimension table Dim_Date - this is created in DAX

Category values comes from dimension table Dim_Product - imported table

Sales amount values comes from fact table Fact_Sales - imported table

Data model

Expected results:

 

When "Month" is selected in Slicer:

MonthSales amount
JAN 2021100
FEB 20210
MAR 2021300
and so on... 

 

When "Week" is selected in Slicer:

WeekSales amount
Week 110
Week 220
Week 330
Week 440
Week 50
and so on... 

 

When "Category" is selected in Slicer:

CategorySales amount
A60
B40
C50
and so on... 

 

 

Thanks

Nirmit

3 Replies