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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
LyonsBI_BRL
Helper III
Helper III

DAX Row Filter on Status

Recently I was able to create a map, being able to show data label values for each region

by using the instructions from the following YouTube video - https://www.youtube.com/watch?v=4ZOanVP1PS0

LyonsBI_BRL_0-1623031126750.png

However I would like to be able to filter the number of rows I'm returning. Right now it's counting all rows per region. However I want to be able to filter within my DAX calcuation to filter on just the rows where value.Status = "New". I've taken a shot below to see about getting this to work though I'm getting hung up here within the formula. Any assitance here would be greatly appreciated. 

Count by State by Status = 
'All Applicants1'[value.Region] & " " &
'All Applicants1'[value.Status] & ":  " & 
CALCULATE(FILTER('All Applicants', 'All Applicants'[value.Status] = "New"),
COUNTA('All Applicants'[value.Region]),
ALLEXCEPT('All Applicants', 'All Applicants'[value.Region]))

 

1 ACCEPTED SOLUTION

Or just pull [value.Status] as a visual filter and select "New" 🙂

View solution in original post

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @LyonsBI_BRL 

 

According to your description, If i understand what you mean, I think you can create a measure,then put it in filter pane to filter the data in visual. 

Like this:

 

measure = 
IF ( SELECTEDVALUE('All Applicants'[value.Status]) = "New", 1, 0 )

 

v-janeyg-msft_0-1623218101241.png

If it doesn't solve the problem, Please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Or just pull [value.Status] as a visual filter and select "New" 🙂

Gabriel_Walkman
Continued Contributor
Continued Contributor

Maybe this would work:

 

CALCULATE(

    COUNT(  'All Applicants'[value.Region] ),
    'All Applicants'[value.Region] = "New"

)

@Gabriel_Walkman thanks for the feedback!

 

I just tried that, though no go, it didn't like me including that.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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