Forum Discussion

OllieHiggins's avatar
OllieHiggins
Regular Visitor
1 year ago
Solved

Using a slicer on a stacked column chart

I have a stacked column chart which I've manipulated to look like a waterfall chart, to show how sales go from A to B over a period of time. The x axis is the passage of time and segments in each column chart are effectively different channels of sales in each period. I would like to introduce a slicer to isolate each channel, so if they click on a particular option, the chart only shows the sales from that channel.

 

I've been reading around parameter fields as an option, but I can't seem to get it to work, I've created the slicer through this method and tried to drag it into the graph visual in both the legend data field (didn't do anything) and the small multiple data field (split the graph into quadrants). 

 

I've read that it's something to do with the parameter fields looking up against numerical data, but I can't figure out what the issue or solution is. I've tried creating separate, basic measures for each of the sales channels e.g., measure = Sum('sales'[sales channel1]) etc. and putting them into the parameter slicer instead of just the original field, but no luck there either.

 

PS I'm not wed to parameter fields, if there's a better solution.

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi OllieHiggins ,

     

    Please refers to the following steps.

     

    Create corresponding measures for each channel and use them to create field parameters and a slicer.

    Channel1 = SUM(Sheet1[Channel 1])
    Channel2 = SUM(Sheet1[Channel 2])
    Channel3 = SUM(Sheet1[Channel 3])

     

    Place the field parameter field in the Y-axis, replacing the 'Channel1', 'Channel2', and 'Channel3' fields.

    The final result is as follows.

     

    Please see the attached pbix for reference.

     

    Best Regards,
    Dengliang Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • Hi OllieHiggins 

    Please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind. This will make it easier for us to figure out what you're trying to achieve.

  • OllieHiggins's avatar
    OllieHiggins
    Regular Visitor

    Thanks - I have created the below test file to demonstrate the ask   https://drive.google.com/file/d/1u4JpzhS99xSXmy6RMuNl3B_Pf2p9sVOv/view?usp=drive_link 

     

    Essentially, I'd like a slicer that you could click and it would show just sales channel 1, sales channel 2 etc.

     

    The underlying spreadsheet linking to the PowerBI is as follows - the "difference" column is then made 100% transparent in the graph in PowerBI, so as to create the waterfall effect:

     

    SortWaterfall Data Points£PillarsChannel 1Channel 2Channel 3Difference
    124/25 Opening Position8000080000    
    224/25 sales to date2000 2000  80000
    3Current Period Closing Position8200082000    
    4ROY sales forecast1800 0 180082000
    5FY25 Forecast8380083800    
    625/261925 43060143583800
    726/273553 954360223985725
    827/28+5779 5394385089278
    9End State9505795057    
  • OllieHiggins's avatar
    OllieHiggins
    Regular Visitor

    Thanks - I have created the below test file to demonstrate the ask   https://drive.google.com/file/d/1u4JpzhS99xSXmy6RMuNl3B_Pf2p9sVOv/view?usp=drive_link 

     

    Essentially, I'd like a slicer that you could click and it would show just sales channel 1, sales channel 2 etc.

     

    The underlying spreadsheet linking to the PowerBI is as follows - the "difference" column is then made 100% transparent in the graph in PowerBI, so as to create the waterfall effect:

     

    SortWaterfall Data Points£PillarsChannel 1Channel 2Channel 3Difference
    124/25 Opening Position8000080000    
    224/25 sales to date2000 2000  80000
    3Current Period Closing Position8200082000    
    4ROY sales forecast1800 0 180082000
    5FY25 Forecast8380083800    
    625/261925 43060143583800
    726/273553 954360223985725
    827/28+5779 5394385089278
    9End State9505795057    
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi OllieHiggins ,

     

    Please refers to the following steps.

     

    Create corresponding measures for each channel and use them to create field parameters and a slicer.

    Channel1 = SUM(Sheet1[Channel 1])
    Channel2 = SUM(Sheet1[Channel 2])
    Channel3 = SUM(Sheet1[Channel 3])

     

    Place the field parameter field in the Y-axis, replacing the 'Channel1', 'Channel2', and 'Channel3' fields.

    The final result is as follows.

     

    Please see the attached pbix for reference.

     

    Best Regards,
    Dengliang Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.