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
psyche2k
Frequent Visitor

How to get count of number of rows from a table visual

I want to write a measure to get a title which will show the no.of rows visible in the table after applying the filters.

psyche2k_0-1689939659791.png
For reference:
In the pic, no of document IDs that have [A_regFormat] = "EU" are 27 and [A_regFormat] = "Other" are 173 after the other applied 'filter on pages' (status, Product status in.., A_GHS)
I want to show the title as ...SDS (27 to 173...)...

How do I write the measure to acheive this?

Thanks.

1 ACCEPTED SOLUTION
olgad
Super User
Super User

"SDS(" &Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "EU") & "to " & Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "Other")&")"


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

1 REPLY 1
olgad
Super User
Super User

"SDS(" &Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "EU") & "to " & Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "Other")&")"


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

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.