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
celebal
Regular Visitor

How to add multiple filters to the data in the same column ?

For example I have a column with 4 different types of values : 'Seen' , 'Read Reviews', 'Added to Cart', 'Bought'. These may be present in any number, together totalling the number of rows in the data. I want to use a 'Semicircular Guage' to represent the total number of 'Bought' (as the Value) and the total no. of 'Added to Cart' as the Target Value in the guage. 
But when I use a 'Visual Filter' and select either of these conditions, the data in the complete visual gets filtered and there is no way I can represent 'Bought' as a percentage of 'Added to Cart' because the no. of rows in both becomes equal. 
Any ideas how I can achieve this ? Thanks !!

1 ACCEPTED SOLUTION
jahida
Impactful Individual
Impactful Individual

I think the best way is two measures:

 

Adds To Cart = CALCULATE(COUNTROWS(Table), Table[Column] = "Added to Cart")

Bought = CALCULATE(COUNTROWS(Table), Table[Column] = "Bought")

 

 

Then put AddsToCart as the Target Value and Bought as the Value

View solution in original post

1 REPLY 1
jahida
Impactful Individual
Impactful Individual

I think the best way is two measures:

 

Adds To Cart = CALCULATE(COUNTROWS(Table), Table[Column] = "Added to Cart")

Bought = CALCULATE(COUNTROWS(Table), Table[Column] = "Bought")

 

 

Then put AddsToCart as the Target Value and Bought as the Value

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.