Forum Discussion
Dynamically calculate differences based on slicer slection
- 10 years ago
Please check if you can follow below steps. To make a better presentation, I'm using some data simple.
Suppose the dataset is as- Create an index column
rank = RANKX(Table3,Table3[Company],,,Dense)
- Create a measure
Measure = ABS((SUMX(FILTER(Table3,Table3[rank] = MIN(Table3[rank])),Table3[Revenue])-SUMX(FILTER(Table3,Table3[rank] = MAX(Table3[rank])),Table3[Revenue])))
- Drag a line and clustered column chart
Check more details in the uploaded pbix.
- Create an index column
Please check if you can follow below steps. To make a better presentation, I'm using some data simple.
Suppose the dataset is as
- Create an index column
rank = RANKX(Table3,Table3[Company],,,Dense)
- Create a measure
Measure = ABS((SUMX(FILTER(Table3,Table3[rank] = MIN(Table3[rank])),Table3[Revenue])-SUMX(FILTER(Table3,Table3[rank] = MAX(Table3[rank])),Table3[Revenue])))
- Drag a line and clustered column chart
Check more details in the uploaded pbix.
- platocplx9 years agoNew Member
Want to say the Solution posted worked perfectly!
- Ritu9 years agoRegular Visitor
what value will be displayed if nothing is selected in any of the slicers ? i am trying to achieve the chart where there are 3 columns the first two has impoterd values and third is ratio of rest two respectively. I have put two slicer year and reporting class(the data is sorted for same in the imported file) the problem I am facing is when nothing is selected in slicer it is adding all the ratios and showing instead i want it to do sum of each column respectively and show their ratio.
- Anonymous9 years agoNot applicable
Hi Eric,
Kudos, that's a great solution. I have similar requirement where i will want to select Company in 2 slicers and show +ve/-ve value depending on the slicer 1 or slicer 2. Can you suggest me any thing to solve this?
Thanks
Pramod
- Anonymous9 years agoNot applicable
Hi Eric,
Kudos, that's a great solution. I have similar requirement where i will want to select Base Company and compare company in 2 slicers and show +ve/-ve value depending on the slicer 1 or slicer 2. Can you suggest me any thing to solve this?
Thanks
Pramod
- hyousuf90906 years agoRegular Visitor
hi i tried your solution to my similar problem it worked mostly but one of the variables was a measured column and it didnt work on that...
can you help me understand why would that be and possible solution?
- geominded16 years agoNew Member
Trying to figure out how to display this same information within a matrix. When adding the Measure to Values, we end up getting extra columns added, along with the correct subtotal Measure that we only really want. Any way to turn off those intermediary column values?