Forum Discussion

HemanthV's avatar
HemanthV
Icon for Helper II rankHelper II
5 years ago
Solved

Current category count subtract with remaining categories count

Hi Guys,
I have the data as below
NamescyclesDate

A-101-01-2020
A-102-01-2020
A003-01-2020
A104-01-2020
A105-01-2020
A105-01-2020
A106-01-2020
A107-01-2020
A108-01-2020
A108-01-2020
A109-01-2020
A210-01-2020
A211-01-2020
A311-01-2020
A411-01-2020
B001-01-2020
B002-01-2020
B103-01-2020
B104-01-2020
B105-01-2020
B105-01-2020
B106-01-2020
B108-01-2020
B108-01-2020
B109-01-2020
B110-01-2020
B211-01-2020
B211-01-2020
B311-01-2020
B311-01-2020
B311-01-2020
C-101-01-2020
C002-01-2020
C003-01-2020
C004-01-2020
C105-01-2020
C105-01-2020
C106-01-2020
C108-01-2020
C108-01-2020
C109-01-2020
C110-01-2020
C211-01-2020
C311-01-2020

 

I am populating this data in a matrix visual which will look like

Now my requirement is that from column 1 to 4
the current value needs to be subtracted from the sum of next columns.
for example:
For A i have 8 in [1] column, 8 - (2+1+1)  = 4 will be displayed in [1] instead of 8. so for A the values will be 2,1,4,0,0,1

The values of A are 2,1,8,2,1,1 updated values will be 2,1,8-(2+1+1),2-(1+1),1-1,1

the values of 0 and -1 won't change only substraction will be done for columns 1 to 4

Expected output

I am attaching sample pbix 

https://drive.google.com/file/d/13lB30RroIeOKyiptiif181iWvD-eFyWn/view?usp=sharing

 

Please help me on this guys..!!!

Thanks in Advance!

parry2k , amitchandak 

11 Replies