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
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)] )
)

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
mdaatifraza5556
Super User
Super User

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)] )
)

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.