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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
weilip1803
Frequent Visitor

Data modeling for power BI

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?

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@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.

 

2016-05-18_23-00-51.png2016-05-18_23-02-371.pngCapture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

View solution in original post

3 REPLIES 3
ankitpatira
Community Champion
Community Champion

@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.

 

2016-05-18_23-00-51.png2016-05-18_23-02-371.pngCapture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks so much for the solution

sdjensen
Solution Sage
Solution Sage

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)
/sdjensen

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.