Forum Discussion

prichter_mk's avatar
prichter_mk
Frequent Visitor
6 years ago
Solved

Dynamic Grouping of aggregated data

Hello all,

 

I have a requirement to apply dynamic column grouping to aggregated data. 

 

The underlying dataset is a table that contains STORE NUMBER, REGION, VOLUME, SALES, FORECAST. 

 

STORE NUMBERREGIONVOLUMESALESFORECAST
1AHIGH100120
2ALOW2020
3BLOW3040
4CHIGH120180
5CHIGH130140

 

The initial presentation of the data will be as follows. The SALES and FORECAST data will be summed across the entire dataset with a count of total stores.

 

STORE COUNTSALESFORECAST
5400500

 

The users would then like to be apply dynamic grouping of the aggregated dataset without filtering out any of the underlying dataset. In this example, they'd want the options of grouping by data by (1) REGION, (2) VOLUME, or (3) REGION and VOLUME. 

 

1. Group by REGION

STORE COUNTREGIONSALESFORECAST
2A120140
1B3040
2C250320

 

2. Group by VOLUME

STORE COUNTVOLUMESALESFORECAST
3HIGH350440
2LOW5060

 

3. Group by both REGION and VOLUME

STORE COUNTREGIONVOLUMESALESFORECAST
1AHIGH100120
1ALOW2020
1BLOW3040
2CHIGH250320

 

I've attempted to use slicers for the selection of the groupings but that ends up filtering per selection as one would expect. Any help or direction on how to support the desired functionality would be much appreciated. 

 

Thanks!

P

4 Replies

  • prichter_mk I would recommend to use bookmark to achieve this, basically you create bookmarks to show and hide different visuals and then on click of button call the respective bookmark.

    • prichter_mk's avatar
      prichter_mk
      Frequent Visitor

      v-xicai parry2k Thanks for the quick reply. I will research the use of bookmarks further, however, the actual scenario that I'm dealing with contains approximately 10 different "group by" selections, not just 2 like I provided in the example. Although possible, it's going to be difficult to create/manage/present a bookmark for each possible selection permutation. 

       

      In addition, there will be multiple filtering slicers that will be selected by the user (for example, SKU #) before the data is ready to be grouped by one of the many optional column groupings. I was hoping there would be a way to dynamically choose which optional column groupings to group by via some mechanism resembling a slicer list. The user workflow does not always dictate that the same column grouping selections will be made for each filtered data set. 

      • v-xicai's avatar
        v-xicai
        Icon for Community Support rankCommunity Support

        Hi prichter_mk ,

         

        It is unavailable to get some mechanism resembling a slicer list to control columns of table visual as you desired, you might post your new idea here https://ideas.powerbi.com/forums/265200-power-bi-ideas , and add your comments there to improve Power BI and make this feature coming sooner.

         

        As a workaround, you might try the bookmark or create 10 table visuals for every group.

         

        Best Regards,

        Amy

         

        Community Support Team _ Amy

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