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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jameslat
New Member

How to have Changing Values in a Matrix Table

Hi,

Would appreciate if someone could jump in and make a test file for me because i cannot seem to find a solution anywhere regarding having a matrix table with a changing "values" section:

 

I have an excel sheet with 3 tabs:
1. Shows two stores and their monthly volume breakdown:

StorePeriodVol (L)
no.1Jan-24211
no.1Feb-24250
no.1Mar-24315
no.1Apr-24354
no.1Jun-24679
no.1Jul-24927
no.1Aug-24645
no.1Sep-24392
no.1Oct-24677
no.1Nov-24403
no.1Dec-2478
no.1Jan-25101
no.1Feb-25249
no.2Sep-24441
no.2Aug-24496
no.2Nov-24568
no.2Apr-24726
no.2Jan-25738
no.2Jul-24919
no.2Dec-24980
no.2May-241,053
no.2Feb-251,218
no.2Oct-241,298
no.2Jan-241,375
no.2Mar-241,582
no.2Feb-241,785
no.2Jun-242,365

2. The top 5 customers of those two stores and their overall volume contribution:

StoreCustomerVol (L)
no.1A1,098
no.1B589
no.1AL435
no.1M370
no.1C333
no.2AZ2,413
no.2D1,798
no.2BD1,521
no.2BF1,208
no.2E1,171

3. The monthly breakdown of those top 5 customer's contribution:

StoreCustomerPeriodVol (L)
no.1AJan-24211.32
no.1AApr-24190.9
no.1AFeb-24189.19
no.1AJul-24185.6
no.1ASep-24166.75
no.1AMar-24154.67
no.1BJul-24491.51
no.1BJun-2497.8
no.1ALOct-24115.47
no.1ALAug-2498.61
no.1ALJun-2481.83
no.1ALFeb-2577.8
no.1ALFeb-2461.07
no.1MJun-24136.8
no.1MApr-24117.06
no.1MSep-24116.37
no.1COct-24263.75
no.1CJan-2569.14
no.2AZMar-24583.5
no.2AZOct-24466.27
no.2AZJan-24298.09
no.2AZDec-24247.69
no.2AZJul-24187.96
no.2AZApr-24156.06
no.2AZMay-24105.2
no.2AZSep-2490.15
no.2AZNov-2486.94
no.2AZAug-2469.38
no.2AZFeb-2462.7
no.2AZJun-2430.5
no.2AZJan-2528.43
no.2DJun-241798
no.2BDOct-24427.79
no.2BDJan-24233.97
no.2BDNov-24161.97
no.2BDDec-24148.39
no.2BDApr-24128
no.2BDMay-24121.87
no.2BDFeb-25101.72
no.2BDJul-2486.81
no.2BDJun-2461.17
no.2BDMar-2449.76
no.2BFFeb-25305.73
no.2BFNov-24129.67
no.2BFAug-24125.67
no.2BFMay-24116.26
no.2BFOct-24116.05
no.2BFJun-24115.88
no.2BFJan-25109.03
no.2BFFeb-2480.58
no.2BFJan-2461.67
no.2BFApr-2447.77
no.2EFeb-24443.64
no.2EJan-25177.21
no.2EJan-24153.98
no.2EOct-24111.58
no.2ESep-2498.02
no.2EFeb-2591.81
no.2EApr-2458.06
no.2EDec-2437.11

 

The initial store and overall volume view is fine:

jameslat_0-1742783302164.png

But when i dropdown, the values dont change for top 5 customer overview / monthly breakdown:

jameslat_1-1742783353704.png

jameslat_2-1742783386189.png

I suspect i need to make a list of unique stores/customers and play around with the relationships but would really like someone to try it out for me as i cant seem to make heads or tails of it. Thanks

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1742794340256.png

 

 

Jihwan_Kim_0-1742794317976.png

 

 

top 5 sales: = 
SWITCH (
    TRUE (),
    ISCROSSFILTERED ( customer[Customer] ), SUM ( top_5_customers[Vol (L)] ),
    SUM ( sales[Vol (L)] )
)

 



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



View solution in original post

2 REPLIES 2
mdaatifraza5556
Solution Specialist
Solution Specialist

Hi @jameslat 

Here are the steps that can resolve your issue.

steps
---- Create one dim_store table
----- Create "Year" column in Top5CustBreackdown table

Below is the relationship between the table


and create a measure for your result

result =
SWITCH(TRUE(),
    ISINSCOPE(top5custBreackdown[Customer]), SUM(top5custBreackdown[Vol (L)]),
    ISINSCOPE(top5custBreackdown[year]), SUM(top5custBreackdown[Vol (L)]),
    SUM(stores[Vol (L)])
)


mdaatifraza5556_0-1742799153099.pngmdaatifraza5556_1-1742799161321.png


Here is the result 

mdaatifraza5556_0-1742799538241.png

 

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1742794340256.png

 

 

Jihwan_Kim_0-1742794317976.png

 

 

top 5 sales: = 
SWITCH (
    TRUE (),
    ISCROSSFILTERED ( customer[Customer] ), SUM ( top_5_customers[Vol (L)] ),
    SUM ( sales[Vol (L)] )
)

 



Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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