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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RenataOGardner
Helper II
Helper II

Top accounts

Hello,
Could you please help me with a measure where I can see the number of locations with more than 10 total cases in either South America or North America? Thanks a lot in advance.

RenataOGardner_0-1628360011939.png

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@RenataOGardner Easiest way would be to just use the Filter pane to filter TotalCases > 10. Otherwise, you could always use a Complex Selector. The Complex Selector - Microsoft Power BI Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Thanks for Jos.

What to do, if the continent is on another table please?

View solution in original post

4 REPLIES 4
Jos_Woolley
Solution Sage
Solution Sage

Hi,

Assuming a table named 'Cases' with columns 'Continent', 'Country' and 'Total Cases', this measure:

Locations (> 10 Cases North or South America) =
CALCULATE (
    COUNTROWS ( 'Cases' ),
    'Cases'[Continent] IN { "North America", "South America" },
    'Cases'[Total Cases] > 10
)

Regards

Thanks for Jos.

What to do, if the continent is on another table please?

Greg_Deckler
Super User
Super User

@RenataOGardner Easiest way would be to just use the Filter pane to filter TotalCases > 10. Otherwise, you could always use a Complex Selector. The Complex Selector - Microsoft Power BI Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you so much. The filter panel worked fine.

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.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.