The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi people,
I have problem with data modeling and creating new tables on Power BI,
Firstly, I have a large data set that have company name as a column and another column Test which has values a b c d e. And I want to create a new table with column A B C D e and count the total occurance that it has on the first table. How do i do that?
Solved! Go to Solution.
@weilip1803 If I understood you correctly, in power bi desktop go to query editor, right click your table and click duplicate, in duplicated table select column with values A B C D E, under Transform tab click Pivot Column, Advanced Options, Count All and this would give you a new table with columns A B C D E and count of their occurences.
@weilip1803 If I understood you correctly, in power bi desktop go to query editor, right click your table and click duplicate, in duplicated table select column with values A B C D E, under Transform tab click Pivot Column, Advanced Options, Count All and this would give you a new table with columns A B C D E and count of their occurences.
Thanks so much for the solution
Hi,
Can't you just create a measure that count the rows in your table and then in a visual add column Test and your new measure?
Count = COUNTROWS(Table)
User | Count |
---|---|
66 | |
62 | |
59 | |
54 | |
28 |
User | Count |
---|---|
181 | |
82 | |
66 | |
47 | |
44 |