Forum Discussion

devenk2's avatar
devenk2
Frequent Visitor
3 years ago
Solved

How to create new table with data from another table using DAX

Hello, I was wondering if someone could help me write a DAX function to create a new table in Power BI as follows:

 

I currently have a table that looks like this:

Incident IDApplication NameSeverity
001App1High
002App2Low
003App1High
004App3Medium
005App2Low
006App2Medium

 

I need to convert this data into a new table in Power BI that looks like this:

Application NameHighMediumLow
App1200
App2012
App3010

 

Basically, I need to show the counts of each high, medium, and low incident by application in a new table. I will be using those numbers for further calculations.

 

How can I write a DAX expression to create this table for me? Any help would be appreciated.

  • By the looks of it, you can use a simple matrix + measures or field parameters (for measures) to get the result you are expecting

    We will be happy to help if you provide sample data and the calculations needed for each "column" in your expected outcome 

7 Replies

  • Hi devenk2 , you don't need to write anything in DAX.

    - Insert a matrix, and place field on your site as shown in the image:

    Best Regards

     

    • devenk2's avatar
      devenk2
      Frequent Visitor

      I understand I can do this in a Matrix, but I need to create a new table so I can do further calculations on this dataset. I cannot do what I need to do with a matrix.

      • PaulDBrown's avatar
        PaulDBrown
        Community Champion

        Sorry to ask, but what calculations do you need to do which cannot be done with the original table (which is the ideal layout for tabular models)?