Forum Discussion
Filter to change value used in chart
- 8 years ago
Hi saferguson,
First, please create an extra table which contains one column whose values are "revenue including delivery" and "revenue excluding delivery". you should add this column into slicer so that users can choose what they want to view.
You could create below measure:
Measure1=Sum('Table'[revenue])
Measure2=Sum('Table'[revenue + delivery])
Measure3=IF(SELECTEDVALUE="revenue including delivery",[Measure2],[Measure1])
Add [Measure3] into your chart visual.
Regards,
Yuliana Gu
At work so I won't be able to provide screens or samples so I'm hoping my feedback helps you move forward a little bit. Here's one way to do without getting into specifics.
1. Goto Edit Queries and select the data table.
2. Select the Revenue, Delivery Change, Revenue + Delivery columns
3. Goto Transform and select Unpivot Columns
4. You'll have 3 rows for every row originally with the new columns: Attribute (Revenue, Delivery Change, etc) and Value.
5. Build the filter/slicer/visual level filter tied to the Attribute column.
6. Another thing you can do is represent all 3 by dropping the Attribute Column onto the Category. Selecting the filter should remove / enable which series to display.