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
derekli1700
Helper III
Helper III

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:
 

Capture1.JPG

IDEAL First drop down:
psd1.png
IDEAL second drop down:
psd2.png

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
1 ACCEPTED SOLUTION
Cookistador
Solution Sage
Solution Sage

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:

Cookistador_0-1742802479324.png

 

 

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)
Cookistador_1-1742802617356.png

 

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

 

View solution in original post

2 REPLIES 2
Uzi2019
Super User
Super User

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.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Cookistador
Solution Sage
Solution Sage

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:

Cookistador_0-1742802479324.png

 

 

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)
Cookistador_1-1742802617356.png

 

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

 

Helpful resources

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