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

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

Reply
Anonymous
Not applicable

Counting values

Hi everyone, I have the following slicer and table:

featleyd_0-1605781718790.pngfeatleyd_1-1605781743254.png

Given that my user could alter this table with the slicer, I'm trying to write a measure to calculate the number of rows contained in the table visual, for the example above, I'd be looking for 21.

 

Can anyone help?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found the solution, COUNT should be DISTINCTCOUNT as there are multiple values for some days.

Thanks all

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , countrows(Table)

or

count(Table[Day])

 

if days from different table

calculate(count(Day[Day]), not(isblank(Table[login time])))

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
Anonymous
Not applicable

Hi @amitchandak 

 

featleyd_0-1605782704445.png

As you can see, I got a result of 731 instead of 21

 

The DAX i entered was this:

featleyd_1-1605782787519.png

I can't fathom why I can't just simply count the rows of the visuals.

Anonymous
Not applicable

Found the solution, COUNT should be DISTINCTCOUNT as there are multiple values for some days.

Thanks all

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.