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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Jebilaya
Helper III
Helper III

Create table from other table - calculations

I have a table (VOC Results) that contains various survey questions and responses.  In order to display the data as I want in a clustered column chart I need to create a new table that takes each of the headers and gives me the total number of Excellent and Very Poor Responses.

 

Jebilaya_0-1654762944945.png

 

So I created a new table with the question names and i've put in some fake numbers so you can see the results I need.

 

How would I write DAX to give me the total excellent and Very Poor responses for each question?

 

Jebilaya_1-1654763070920.png

 

 

1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

Hi @Jebilaya 

I think you should look into unpivoting your data.
From there it's much easier to do a simple counter

 

View solution in original post

2 REPLIES 2
NickolajJessen
Solution Sage
Solution Sage

Hi @Jebilaya 

I think you should look into unpivoting your data.
From there it's much easier to do a simple counter

 

I agree in theory, but I can only do that for one of the question categories as if I do it for any others it errors as the field already exists

 

Jebilaya_0-1654766649146.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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