Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am building a report of rating data. My main table has columns with different metrics and rows with Excellent, Good, Fair or Poor. I want to count the total of each rating type for each metric in a separate table.
Column 1 Column 2 Column 3
Excellent Good Fair
Excellent Excellent Poor
Fair Good Excellent
Poor Fair Fair
Excellent Good Good
Good Poor Good
New table:
All Columns Excellent Count Good Count
Column 1 3 1
Column 2 1 3
Column 3 1 2
I believe I'll need to add a Custom Column in the power query editor, but I am unsure what the DAX should be. Also, I am not sure how to join this new table to the main Fact table.
Solved! Go to Solution.
Hi, @Anonymous
It's difficult to create a relationship between new table and fact table based on current fields.
Please try following step to transform data in PowerQuery.
1.unpivot these columns
2.Group table by New column 'Attribute' and 'Value'
3. pivot column like below:
Result:
Best Regards,
Community Support Team _ Eason
Hi, @Anonymous
It's difficult to create a relationship between new table and fact table based on current fields.
Please try following step to transform data in PowerQuery.
1.unpivot these columns
2.Group table by New column 'Attribute' and 'Value'
3. pivot column like below:
Result:
Best Regards,
Community Support Team _ Eason
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
49 | |
42 | |
39 | |
38 |