cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mpalha04 Helper III
Helper III

Text Count to Filter

Hi,

 

I am looking for a way to filter a text metric I have based on a distinct count. The context is that the filter is the # of orders for every client. Currently, I gather the # of orders based on a created measure that discount counts the transaction ID #, however, I cannot put this new measure in a filter. The transaction ID # is a text. 

 

The filter should be a between filter. Ex. If I select orders in between 0 to 100, the report will filter for all clients that made 0 to 100 orders. Can someone please help?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: Text Count to Filter

@mpalha04,

It is not possible to drag a measure to slicer. But you can drag the above measure to visual level filter of your visual, then set different range in the visual level filter and use it to filter your visual.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Moderator v-yuezhe-msft
Moderator

Re: Text Count to Filter

@mpalha04,

Please share sample data of your table and post the expected result in table format so that we can test.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mpalha04 Helper III
Helper III

Re: Text Count to Filter

Please see sample data below.

 

Essentially, I want a filter that distinct counts 'NetSuiteId', but it's in text format. The measure I created to count 'NetSuiteId' cannot be used as a metric in a filter.

 

TextToCounterFilter.JPG

Moderator v-yuezhe-msft
Moderator

Re: Text Count to Filter

@mpalha04,

What expected result would you like to get based on the above sample data? What is the DAX for the measure you mention? You can drag the measure to visual level filter and use it to filter your visual.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
mpalha04 Helper III
Helper III

Re: Text Count to Filter

I'd like to have a slicer where users can input a range that distinct counts 'NetSuite Id'. 'entity' is a code that represents a customer and 'NetSuite Id' represents an order # related to the customer. So, an input filter for between 2 and 4 orders filters the data to show those customers that have made between 2 to 4 orders. 

 

The DAX formula I currently use to count the # of orders is below:

 

# of Orders = IF(LASTDATE('Date Table'[Date])>TODAY(),BLANK(),(DISTINCTCOUNT(vWorkOrder[NetsuiteId])))

 

However, this measure cannot be used in a filter. I'm guessing PBI doesn't allow for calculated measures to be used as filters. 

Moderator v-yuezhe-msft
Moderator

Re: Text Count to Filter

@mpalha04,

It is not possible to drag a measure to slicer. But you can drag the above measure to visual level filter of your visual, then set different range in the visual level filter and use it to filter your visual.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors