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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BishwaR
Helper V
Helper V

Total of text

CB3FA96B-0582-433C-BA7D-0E229D521A0F.jpeg

 I have table like this. I created a measure 

Count Of Line = districtcount(Item Line) as a result it is returning total value 3 but how can I get 5 instead because when I calculate the average of Count of Line it returns 3/5= 0.6 where as I want the value 5/5=1

Thank you 

2 REPLIES 2
amitchandak
Super User
Super User

@BishwaR , Try a measure like

Count Of Line = count(Table[Item Line])

Count Of Line = countrows(Table)

 

or

 

Count Of Line = distinctcount(Table[Item Line])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
lbendlin
Super User
Super User

Use COUNTROWS() instead of DISTINCTCOUNT()

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.