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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
haniizz
Helper II
Helper II

help with DAX calculation

Hello Community

 

I need your help with performing this, I have this table

 

IDSexAgeFinance statushealth statusMental Status

1

Male20-30goodvery badgood
2Male10-20very goodbadbad
3Female20 - 30badgoodvery bad
4Male50-60very badNo Answervery good

 

What I need is to create a Matrix like below , that shows the sum of positive answers ( good + very good ) , and sum of negative answers ( bad + very bad ) , I need the matrix to be like this 

Title : Finance Status

GenderPositiveNegative
Male3 
Female 1

 

Title : Health Status

GenderPositiveNegative
Male 2
Female1 
3 REPLIES 3
haniizz
Helper II
Helper II

@ChiragGarg2512 

many thanks for giving time to solve this , may I have the pbx file

ChiragGarg2512
Solution Sage
Solution Sage

@haniizz 

Create two measures[positive and negative] for every column. Then create 3 different tables or create a field parameter using all these measures and select 2 of the measure options to show in the table visual.

 

Here is the implementation:

ChiragGarg2512_0-1696580783228.png

6 measures were created[2 for each status] and then fed to field paramter that gave this slicer. Putting Sex and field paramter into table visual and selecting from slicer should provide this result.

 

Thank You.

@haniizz , I tried my other 2 solutions but was not able to work with them, here is a solution(The last response has been edited).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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