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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Getting a value using filters

I am trying to do a pie chart  with  a  sub-value out of total value .

 

ID Status Type
fr-34

standing

Fiction
fr-35

rank

Nonfiction
fr-36

ranking

Drama
fr-37

position

Fiction
fr-38

social position

Nonfiction
fr-39

social position

Drama
fr-40

ranking

Fiction
fr-41

standing

Nonfiction
fr-42

rank

Drama
fr-43

position

Fiction
fr-44

position

Nonfiction
fr-45

ranking

Drama
fr-46

position

Fiction
fr-47

social position

Nonfiction
fr-48

social position

Drama
fr-49

ranking

Fiction

 

I want to get the  total count of  'ranking'  with 'friction ' ( 2)  against a  total of 'friction' ( 6)

and create a measure that gets these values  and any page level filters or visual filters  should not disturb  those values.

 

Used this but it does not help with fixing the values .

tot_Count = CALCULATE(COUNT('Details'[id ]),FILTER(ALLEXCEPT(' Details', ' Details'[Status]),'System Details'[type]="Fiction"))

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

Try the following code:

 

tot_Count = CALCULATE(COUNT('Details'[id ]),FILTER(ALL(' Details'), 'System Details'[type]="Fiction"))

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





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.