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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

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

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.