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

filter problem

Hi, I want to create a card visual from value column, and I also create a status filter that once column status contain any one of A, B, C, the result of value should sumed, how to create the card visual that consider the relation of filter_status(A B C)  and the value?
Thanks

Spoiler
 

null_0-1656056686402.png

 

 

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

Hi @Anonymous ,

 

Maybe you can consider using CONTAINSSTRING to do that.

 

Measure =
CALCULATE (
    SUM ( 'Table'[value] ),
    FILTER (
        'Table',
        CONTAINSSTRING ( [status], SELECTEDVALUE ( 'ALL Status'[Status] ) )
    )
)

 

Result:

vchenwuzmsft_0-1656488756062.gif

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Maybe you can consider using CONTAINSSTRING to do that.

 

Measure =
CALCULATE (
    SUM ( 'Table'[value] ),
    FILTER (
        'Table',
        CONTAINSSTRING ( [status], SELECTEDVALUE ( 'ALL Status'[Status] ) )
    )
)

 

Result:

vchenwuzmsft_0-1656488756062.gif

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

ryan_mayu
Super User
Super User

@Anonymous 

here is a workaround for you. pls see the attachment below

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , Better to split the column by delimiter into rows in power query

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Anonymous
Not applicable

Here is an example of the data, actually it is better the data is not changed, and the status column is required to be in same column

Anonymous
Not applicable

Here is an example of the data, actually it is better the data is not changed, and the status column is required to be in same column

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.

Top Solution Authors