Forum Discussion
Matrix
- 4 years ago
In the end I managed to solve it on my own:
To correctly apply the segmenter I had to create myself a measure for each column, and at an origin I was not correctly applying sumx at the totals level,
The final measure was like this:MINISTERIO FILTRO = var estado=SELECTEDVALUE(SEGMENTADOR[Columna2])returnSWITCH(true(),estado=1, SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]<0,[MINISTERIO],BLANK())),estado=2,SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]>0,[MINISTERIO],BLANK())),estado=3, SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]=0,[MINISTERIO],BLANK())), [MINISTERIO])Thanks anyway!
Hllo sorry,
I have all of them in a measure table
MINISTERIO = CALCULATE(SUM(Consulta1[Importe]),FILTER(Consulta1,Consulta1[ORIGEN]="MINISTERIO"))
This is for column E:
without seeing your data it is hard to tell really but the reason it looks like this is happening to me is because there is no filter context at the total level.
are you able to share some sample data for 2 months?
- afrutos4 years ago
Resolver I
In the end I managed to solve it on my own:
To correctly apply the segmenter I had to create myself a measure for each column, and at an origin I was not correctly applying sumx at the totals level,
The final measure was like this:MINISTERIO FILTRO = var estado=SELECTEDVALUE(SEGMENTADOR[Columna2])returnSWITCH(true(),estado=1, SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]<0,[MINISTERIO],BLANK())),estado=2,SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]>0,[MINISTERIO],BLANK())),estado=3, SUMX(VALUES(Consulta1[IdEmpresa]), if([DIFERENCIA M-E]=0,[MINISTERIO],BLANK())), [MINISTERIO])Thanks anyway!- vanessafvg4 years ago
Community Champion
well done sorry had a few busy days.
- afrutos4 years ago
Resolver I
Okey tray with this if you can
https://easyupload.io/5ky6dt