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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
souvik900766
Helper IV
Helper IV

Count issue

Hi !

Little Urgent Kindly help !
I am trying to count no of L (Leader) , C (Challenger), E (Explorer)which is an output of a if condition from a measure.
By combination of count will be Category X Country X Brand.
When I am selecting single category I am getting the correct count but with multi select it is showing wrong and with Select ALL it is showing blank. 
Refer the data in the drop box with pbix file:-
https://www.dropbox.com/sh/zwl481drh2zn7mz/AAA3FDfcBfw5aBGDNiULqm4ka?dl=0

Refer the pic:-
Coming Correct !

souvik900766_0-1621597759644.png

 


Coming Wrong !

souvik900766_1-1621597759629.png

 


Your help is appreciated !
Thanks in advance

souvik900766_2-1621597758833.png

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

what's your reasoning for this one?

Company Name = CALCULATE(FIRSTNONBLANK(MSR[company_nm],1),FILTER(ALL(MSR),'Brand name'[Brnd-nom]=MSR[Brnd-nom]))

Do company names really have to be calculated at data source refresh?

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

what's your reasoning for this one?

Company Name = CALCULATE(FIRSTNONBLANK(MSR[company_nm],1),FILTER(ALL(MSR),'Brand name'[Brnd-nom]=MSR[Brnd-nom]))

Do company names really have to be calculated at data source refresh?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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