cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Calculated column

Hi everyone. Need help in analyzing a survey questionnaire in Power BI. I am trying to equally distribute "Netural" responses to "Agree" and "Disagree" and cannot figure it out. Can someone please suggest a solution to this. I have columns Employee ID, Country, Question and Answer in my survey. Your early response and help will never go unappreciated. Thanks

1 ACCEPTED SOLUTION
Regular Visitor
Hi @Kishore_KVN ,
I recreated the logic to get the desired result, using your provided DAX:

AgreeColumn =
Above two columns worked out for me.

Appreciate your help and I am closing this as "Solved" 😊
3 REPLIES 3
Regular Visitor
Hi @Kishore_KVN ,
I recreated the logic to get the desired result, using your provided DAX:

AgreeColumn =
Above two columns worked out for me.

Appreciate your help and I am closing this as "Solved" 😊
Regular Visitor

Hi Kishore. Let me try the solution that you provided and will mark it as "Accept as solution" if it works. Appreciate your help

Super User

Hello @ariaz , create two columns

1. Agree Column and its DAX will be

``Agree Column = If(Response = "Agree"||Response = "Neutral",1, Blank())``

2. Disagree Column and its DAX is also the same by changing to disagree. It looks as below:

``Disagree Column = If(Response = "Disagree"||Response = "Neutral",1, Blank())``

Then in your visualization, you can use the sum to get the total values of Agree and Disagree.

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors