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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Matrix Visual & Dynamic Table & Dynamic Measures

Hi

 

I am using a matrix visual to present an income statement. I would like to have the values of a chosen dimension as the columns in the matrix visual. I am struggling to pull in my measure that I created into the column part of the visual, I think due to my DAX not being correct. So I NEED HELP with DAX I think.

My data:

Dimensions (tables): Product, Company

Dimension values:

ProductID…

productname – product A, product B, product C

 

CompanyID..

companyname – company A, company B, company C

 

Fact Table: Columns for Attribute, product(id), company (id), Amount/Value

Attribute is: Revenue, Cost of Sales etc 

 

Thus visual would look like this:

if Product was selected:                                                   

Attribute                      Product A     |      Product B      |     Product  C    |   Grand Total   

Revenue                            10                        5                           5                       20

Cost of Sales                      3                         2                           1                        6

 

if Region was selected:                                                   

Attribute                Company A     |      Company B      |     Company  C    |   Grand Total   

Revenue                            10                        5                           5                       20

Cost of Sales                      3                         2                           1                        6

 

So far, I have a Table which has one column which contains a list of all the Dimensions and sub dimensions that could be selected i.e.
Product, Companies etc – see below the table

 

 

 

NEED – how can I modify my IS DIMENSION to replace the Product, and Product A, B, C with the actual table eg DIM_Product and DIM_Product[Productname], DIM_Companies and DIM_Companies[Companyname] ? or can I use DAX otherwise?

 

NEED – which DAX do I need as measure to pull into matrix visual to respond dynamically to the selection of IS Dimension – eg selection of product or company must have effect that product A, B, C is shown as columns?

 

NEED – if I want two filter visuals (IS Dimension and IS Dimension – sub) and I want the IS Dimension – sub to respond to IS Dimension selection, which DAX do I need? i.e. I want IS Dimension sub filter visual to show product A, B, C when Product is selected on IS Dimension filter visual

 


This is my actual situation at the moment:


PLEASE NOTE – Gross Written Premium below is basically “Revenue” etc. these are incomes and expenses for insurance business.. and the columns as you see them there is Product A, B, C etc

 

Power BI Screenshot.png

Measures I have created so far:

Selected Dimension IS

 

selected dimension.png

Dimension Selected IS

dimension selected.png

 

 

PLEASE HELP 😊

@amitchandak 

2 REPLIES 2
Anonymous
Not applicable

hi @amitchandak 

could you possibly advise on this one, please?

DataInsights
Super User
Super User

@Anonymous,

 

This link discusses dynamically switching dimensions:

 

https://www.thedataschool.com.au/danica-hui/switching-dimensions-in-power-bi/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors