Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
4 years ago

Calculated columns of selected values

Hello

I have a [ResponsesForm] table with a column of numerical values =ValueFreeResponds]

Add 3 calculated columns; TotalNegatives, TotalNeutras,TotalPositives with the DAX

Ej; TotalNegativas= IF(RespuestasFor[ValorGralRespuestas]=0,"neutra",

IF(RespuestasForm[ValorGralRespuestas]<3,"Negativas"))

Then add the values of each column calculated with;

CALCULATE (

SUM (respuestasForm[ValorGralRespuestas]),

FILTER

ALLSELECTED(RespuestasForm[TotalNegativas]),

ISONORASTER (respuestasForm[TotalNegativas]),MAX

(RespuestasForm[Totalnegativas]))))

BUT when I take it to visualization, for example; in dimension rules and regulations, there are no answers with negative values, but it indicates 148%

I don't know if it's the whites) how could I solve it?

2 Replies

  • Hello again

    What I see or interpret what happens is that in the visualization it brings me the accumulated;

    Total positive has 47 and although in neutral and negative there are 0 I move the 47 and I get its % to reason of the total of each column

    any ideas to change this?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi martu ,

     

     

    What' the %Valor? Is that a Measure, a calculated column or a column imported?

    You could try creating a measure that adds up all the values and divides the values of the current row by the total.

     

     

    Best Regards,

    Stephen Tao

     

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