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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors