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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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