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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors