cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sdhn
Post Patron
Post Patron

SCORE CARD CALC.

Hello All,

 

I am using Score Card to calculate rows counts as:

I have 5 files , below code is working good for 4 files correctly.

 

UTRAlerts = COUNTROWS(ALLSELECTED(UTRAlerts))-1
 
this file has two rows but it is displaying 0.
 
sdhn_0-1638911334466.png

 

 

Thanks 

 

1 ACCEPTED SOLUTION

The most likely reason is that the table is filtered. Try hovering over the filter icon to see if this is the case.

 

You can also check if COUNTROWS ( ALL ( UTRAlerts ) ) - 1 is any different. If this also returns 0, then your table really only does have one row.

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

ALLSELECTED is a complicated function. I'd recommend eliminating it entirely in this case unless there is some reason you need it (please explain if this is the case):

UTRAlerts = COUNTROWS ( UTRAlerts ) - 1

This will take into account slicers and filters, so I think it should behave as you were expecting the version with ALLSELECTED to.

Same out put

sdhn_0-1638912150563.png

UTRAlerts = COUNTROWS( UTRAlerts ) -1

The most likely reason is that the table is filtered. Try hovering over the filter icon to see if this is the case.

 

You can also check if COUNTROWS ( ALL ( UTRAlerts ) ) - 1 is any different. If this also returns 0, then your table really only does have one row.

View solution in original post

UTRAlerts = COUNTROWS ( ALL ( UTRAlerts )) - 1  - Worked ,  Thanks fo ryour help.

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors