Forum Discussion
Stacked column chart
- 2 years ago
Hi Anonymous - might be the issue is bacause of switching field parameters could be due to the interaction between the field parameters and the disconnected table used for the period.
Instead of using disconnected tables as you mentioned, you can create a dax measure to handle the selected period and comparison period using below logic, change the table name and columns as per your model designed.
Logic:
SelectedPeriod = SELECTEDVALUE(PeriodTable[Period])
ComparisonPeriod = CALCULATE(SUM(Table[Value]), FILTER(ALL(Table), Table[Period] = "Comparison Period"))Check once your field parameter switch statement logic and fields been used.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi Anonymous - might be the issue is bacause of switching field parameters could be due to the interaction between the field parameters and the disconnected table used for the period.
Instead of using disconnected tables as you mentioned, you can create a dax measure to handle the selected period and comparison period using below logic, change the table name and columns as per your model designed.
Logic:
SelectedPeriod = SELECTEDVALUE(PeriodTable[Period])
ComparisonPeriod = CALCULATE(SUM(Table[Value]), FILTER(ALL(Table), Table[Period] = "Comparison Period"))
Check once your field parameter switch statement logic and fields been used.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!