Forum Discussion

derekli1700's avatar
derekli1700
Helper III
1 year ago
Solved

How to make dynamic matrix table "values"

 

So i basically have an excel tab of a store's monthly volume breakdown and then the top 5 customers monthly breakdown. However, i cannot seem to make the volume value change when i dropdown - i've attached a crudely photoshopped table of what the idea table would look like. Any pointers?

 
What it currently shows:
 

IDEAL First drop down:
IDEAL second drop down:

The data:

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
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
  • When a chart shows all the time the same value (like it is the case for you)
    it means there is no relationship between your two tables

    So first, you need to link your table:

     

     

    After that, the function hasonevalue will help you to reach what you need

    _Test = IF(
            HASONEVALUE(Customer[Customer]),SUM(Customer[Vol (L)]),sum(Store[Vol (L)])
            )
    This is the result I get with this function and your dataset (I add some values for No 2)

     

    If it is not what you try to achieve, can you give us more data and more context for your case?

     

2 Replies

  • When a chart shows all the time the same value (like it is the case for you)
    it means there is no relationship between your two tables

    So first, you need to link your table:

     

     

    After that, the function hasonevalue will help you to reach what you need

    _Test = IF(
            HASONEVALUE(Customer[Customer]),SUM(Customer[Vol (L)]),sum(Store[Vol (L)])
            )
    This is the result I get with this function and your dataset (I add some values for No 2)

     

    If it is not what you try to achieve, can you give us more data and more context for your case?

     

  • Uzi2019's avatar
    Uzi2019
    Community Champion

    HI derekli1700 

     

    It seems your have relationship  issue. 

     

    Can you please give proper table name and column name to both the tables .it will be easy for us to understand what columns you are dragging from which table. 

    because your column name is exact same in both the table. 

     

    please provide the expected output with proper column name and which column should be present in the matrix table.