cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
null
Helper V
Helper V

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 @null ,

 

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 @null ,

 

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

@null 

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

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

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



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

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

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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors