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
Anonymous
Not applicable

Creating a Measured Filter

I am looking at subcriptions and I want to see how many active subscriptions we have.

 

In my column we have the following

DomWest_0-1619013562607.png

What I need to do is create a measure which deducts all of the display names except 'Active' from 'Active' what sort of formula could I use?

 

Thanks!

 

1 ACCEPTED SOLUTION
v-yetao1-msft
Community Support
Community Support

Hi @Anonymous ,

There are two ways to get the data you want. You can refer to either of the two .

(1)A simpler way is setting in Visual filter .You can select Active and the return value is what you want .

Ailsa-msft_0-1619158310427.png

Ailsa-msft_1-1619158310428.png

(2)Create a measure like:

active = CALCULATE(SELECTEDVALUE('Table'[Count of Subscription Status Active]),FILTER('Table','Table'[Subscription Status Display Name]="Active"))

 

And add a card to display the return value .

Ailsa-msft_2-1619158310429.png

Best Regards

Community Support Team _ Ailsa Tao

 

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

4 REPLIES 4
v-yetao1-msft
Community Support
Community Support

Hi @Anonymous ,

There are two ways to get the data you want. You can refer to either of the two .

(1)A simpler way is setting in Visual filter .You can select Active and the return value is what you want .

Ailsa-msft_0-1619158310427.png

Ailsa-msft_1-1619158310428.png

(2)Create a measure like:

active = CALCULATE(SELECTEDVALUE('Table'[Count of Subscription Status Active]),FILTER('Table','Table'[Subscription Status Display Name]="Active"))

 

And add a card to display the return value .

Ailsa-msft_2-1619158310429.png

Best Regards

Community Support Team _ Ailsa Tao

 

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

sanalytics
Solution Supplier
Solution Supplier

@Anonymous 

 

is your Subscription status display Name column or measure?

if it is a column then a simple filter will do your job

 

Calculate([ count of subscription status active],Subscription status display Name ="Active")

 

Regards

Sanalytics

Anonymous
Not applicable

It's a column! 🙂

 

With the calculate function how would I filter for one result and then deduct all the others?

 

e.g. 'Active' - (Archived + Cancelled + Out of stock + Payment Failed + Pending)?

DataVitalizer
Super User
Super User

Hi @Anonymous 

Have you tried applying a filter on that visual from the filter tab?

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated  

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.