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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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