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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GR83
Regular Visitor

Add Value of a row to another row when 2nd filter is selected

Hi I have a Table 

Where I have location and days of a week with Values

Ex

Location    Mon   Tue   Wed   Thu  Fri   Sat  Sun

Atlanta         5        7        3        2     5     4      9

Dallas           5        3        3        4     3      1      5

 

I have to create 2 single select location slicers A & B

if I select Atlanta in Slicer A and Dallas in Slicer B

I want to add Atlanta Values to Dallas Values

 

2 REPLIES 2
amitchandak
Super User
Super User

@GR83 , In this case the first slcier need to a connected City table slicer and the second slicer need to on a disconnected city table slicer and you need a measure

 

M1= calculate(sum(Table[Value]) , keepfilters(Table, Table[City] in union(allselected(city[City]) , allselected(city2[City]) )

))

 

OR

 

 

M1= calculate(sum(Table[Value]) , filter(Table, Table[City] in union(allselected(city[City]) , allselected(city2[City]) )

))

 

Also check

Compare Categorical Data Using Slicers - Compare two Brands: https://youtu.be/exN4nTewgbc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, Thanks for the reply, do I need to create Measure for each day of week seperately. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.