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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Multi table values to swap in Matrix Visual

Hello,

Have 3 tables (Regional, Location and Global) with expected sales target.

In Matrix Visual Row need to Swap Target if my Main table Category, Location and Region slicers selection.

Eg:

1. Items selected in Category Slicer but no items selected in Location and Region slicer

THEN Matrix Visual should show Global table Expected Target 

2. Items selected in Location Slicer but no items selected in Category and Region slicer

THEN Matrix Visual should show Location table Expected Target 

3. Items selected in Region Slicer but no items selected in Global and Location slicer

THEN Matrix Visual should show Region table Expected Target 

Ceated Power Bi Matrix Visual with below
  
RowsCategory, Target
ColumnsReport Mnth
Valuesmeasure with Sum -Total sales Values / Sum -Monthly Expected Values

 

Sample main table

CategoryTotal sales ValuesMonthly Expected ValuesReport Mnth
A80110Jan-20
B75100Jan-20
C88120Jan-20
D65100Jan-20
A80110Feb-20
B75100Feb-20
C88120Feb-20
D65100Feb-20
A80110Mar-20
B75100Mar-20
C88120Mar-20
D65100Mar-20
Table 1  
RegionCategoryExpected Target
EMEAA>=85%
EMEAB>=90%
EMEAC>=75%
EMEAD>=95%
APACA>=85%
APACB>=90%
APACC>=75%
APACD>=95%
NAA>=85%
NAB>=90%
NAC>=75%
NAD>=95%
Table 2  
LocationCategoryExpected Target
AAA>=80%
BBB>=85%
CCC>=77%
DDD>=90%
EEA>=80%
FFB>=85%
GGC>=77%
HHD>=90%
IIA>=80%
JJB>=85%
KKC>=77%
LLD>=90%
Table 3 
GlobalCategoryExpected Target
AA>=85%
BB>=90%
CC>=75%
DD>=95%
EA>=85%
FB>=90%
GC>=75%
HD>=95%
IA>=85%
JB>=90%
KC>=75%
LD>=95%

Thanks In advance,

MM

2 REPLIES 2
parry2k
Super User
Super User

@Anonymous create a dynamic measure based on selectedvalue function from your slicer to check which value is selected and then create a measure from the respective table:

 

For example:

 

Dynamic Measure = 
VAR __selectedValueSlicer1 = SELECTEDVALUE ( Slicer1Table[Column] )
VAR __selectedValueSlicer2 = SELECTEDVALUE ( Slicer2Table[Column] )
SWITCH ( TRUE(),
 __selectedValueSlicer1 <> BLANK() && __selectedValueSlicer2 == BLANK(), SUM ( Table1[Value] ),
 __selectedValueSlicer1 = BLANK() && __selectedValueSlicer2 <> BLANK(), SUM ( Table2[Value] )
)

 

you can build the conditions based on your business rules.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks for your reply. Will check and let you know.

Regards,

MM

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors