I have a problem with Power BI and I would like to get help. My table is like this
Branch | Year | Sales | Share of Sales |
---|---|---|---|
Maca | 2019 | 13K | |
Abdo | 2019 | 10K | |
Weto | 2020 | 15K | |
Roro | 2020 | 30K | |
Roro | 2019 | 10K |
On the Share of sales column, I will divide sales by sum of sales. But I need it to be dynamic as When I choose 2019 on visual slicer, The column should divide the sales by the sum of Sales column filtered to 2019. The same way, when I choose 2019 and Roro branch on the slicer, the numbers need to be divided by sum of sales filtered to 2019 and Roro branch. In a nutshell, the denominator should be dynamic with visual slicers. I used the method of ISFILTERED function with sum aggregate measure, but It didn't work for me. I would be happy if you can help me with this issue. Thanks beforehand.