Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Calculated columns of selected values

Hello

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

martu_1-1661344237558.png

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]))))

martu_2-1661344485744.png

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?

martu_3-1661344525150.png

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

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.

Syndicate_Admin
Administrator
Administrator

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

martu_0-1661349418419.png

any ideas to change this?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.