Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

undefined

Hi i have table with column rank, i need to filter Rank1 and Ran2 and i need to sum the rank1 + rank 2 how can i do it.
Here is sample data screen shot for your reference

vijay2580_0-1673589058777.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Pleasetry below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1674025387627.png

2. create a measure with below dax formula

Measure =
VAR str =
    CONCATENATEX ( 'Table', [Rank], "," )
VAR tmp =
    FILTER ( ALL ( 'Table' ), CONTAINSSTRING ( str, 'Table'[Rank] ) )
VAR _val =
    SUMX ( tmp, [Value] )
RETURN
    IF ( ISFILTERED ( 'Table'[Rank] ), _val )

3. add a table visual with fileds, add a slicer with field, add a card visual with measure

vbinbinyumsft_1-1674025493234.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Pleasetry below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1674025387627.png

2. create a measure with below dax formula

Measure =
VAR str =
    CONCATENATEX ( 'Table', [Rank], "," )
VAR tmp =
    FILTER ( ALL ( 'Table' ), CONTAINSSTRING ( str, 'Table'[Rank] ) )
VAR _val =
    SUMX ( tmp, [Value] )
RETURN
    IF ( ISFILTERED ( 'Table'[Rank] ), _val )

3. add a table visual with fileds, add a slicer with field, add a card visual with measure

vbinbinyumsft_1-1674025493234.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors