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
UsePowerBI
Post Prodigy
Post Prodigy

How to display the actual rows that a MEASURE counts?

Hello

 

I have created a MEASURE that counts specific rows in a table.

 

This measure is displayed in the dashboard.

 

Is it possible for users to somehow show the rows that comprise the count of this MEASURE?

 

Thanks!

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi  @UsePowerBI  ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @UsePowerBI , 

 

>>I have created a MEASURE that counts specific rows in a table.

 

To get the specific rows, you may have used some filters in the MEASURE formula. For example the codes like below you may have used.

 

MEASURE= CALCUALTE(COUNT(Table1[Value]), FILTER(Table1, Table1[Field1]="A" )

 

Then for the filter " Table1[Field1])="A" " , you may create measure like DAX below, put the Filter1 in the Visual Level Filter of table visual which displays all fields as you require, setting Filter1 as "is not blank". In this way, you may filter the rows related to the filter " Table1[Field1])="A" " in MEASURE formula.

 

Filter1= IF(MAX(Table1[Field1])="A", 1, BLANK() )

 

Or could you share some data sample and expected output? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

How to Get Your Question Answered Quickly

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@UsePowerBI , Not very clear, But use countsrows with filters that are the rows

Assume measure is

M1 = calculate(sum(Table[A]),Filter(......))

 

Then rows are

calculate(countrows(Table),Filter(......))

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.