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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

need to calculate the count-rows of Text column

The column is MVT_Source in a table called movement and it is like below, what i need is to ADD Column or measure that counts how many GT rows and another measure for how many Rite rows. Finally a measure that will give me the % of dividing number of GT rows by the total number of rows.

MVT_Source

GT
GT
GT
Rite
Rite
GT
Rite
Rite
GT
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

try measures

GT rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "GT" )
Rite rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "Rite" )

and then

GT rows % = DIVIDE([GT rows], CALCULATE(COUNTROWS('TableMovement')) )

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

try measures

GT rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "GT" )
Rite rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "Rite" )

and then

GT rows % = DIVIDE([GT rows], CALCULATE(COUNTROWS('TableMovement')) )

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Great! worked for me appreciate your great help .

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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