Forum Discussion

haniizz's avatar
haniizz
Icon for Helper II rankHelper II
2 years ago

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

  • 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:

    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.

    • ChiragGarg2512's avatar
      ChiragGarg2512
      Icon for Solution Sage rankSolution Sage

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