Forum Discussion

ncbshiva's avatar
ncbshiva
Icon for Advocate V rankAdvocate V
7 years ago
Solved

Power BI Dax : Matrix

Hi Friends,

 

Below is my input table with two columns

 

Difficulty to bridge the gapHow large is the gap to fill
 (1 is no gap to fill, 5 is large gap to fill, i.e. several resources, if medium choose 3)
Easy1
Easy5
Hard5
Hard1
Medium5
Medium1
Medium3
Hard1
Easy3
Easy5
Hard3
Medium1

 

Kindly help me to write DAX function to get the below output.

 

 1 No Gap3 Medium5 Large
Easy112
Medium211
Hard211

 

I want to count the number of time the Gap no for each of the difficulty level

For Example : Easy has 1 time for No Gap and 2 time for Large Gap.

 

Thanks

  • Hi ncbshiva

     

    You don't need no DAX for this... 
     

    You can use a Matrix visual. Put how large is the gap to fill in the columns and count this same colmn as I show you in the pictures. 

     

    Regards,

2 Replies

  • Hi ncbshiva

     

    You don't need no DAX for this... 
     

    You can use a Matrix visual. Put how large is the gap to fill in the columns and count this same colmn as I show you in the pictures. 

     

    Regards,