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
wangjuan303
Helper III
Helper III

How to create measure to show group total without detail filter

I need to create a report showing the ID and detail, also need to show how many details for this ID .

when I show a report without detailed information, it will show the right count.

when I show detailed information, the count will show 1, 

I need to create a measure to let this count always show the total without a detail filter, 

Do you have any idea? Thank you ,

like under the screenshot example, I need count by ID column for 111 always show 2, count for 114 always show 3.

count by ID number should match with right table example. 

wangjuan303_0-1686700314935.png

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Drag this measure

Measure = calculate(countrows(Data),all(Data[Detail]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.