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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
angsoka
Frequent Visitor

DAX for Input Output Analysis

Dear all

I am embarking on a project to construct an input-output matrix encompassing several regions and economic sectors. To illustrate, let’s consider 3 regions and 4 sectors. This will result in a 12 x 12 square matrix, where each cell’s value indicates the amount of output from one sector (as denoted by the column) required as input by another sector (as represented by the row).

 

  reg Areg Areg Areg Areg Breg Breg Breg Breg Creg Creg Creg C
  sec 1sec 2sec 3sec 4sec 1sec 2sec 3sec 4sec 1sec 2sec 3sec 4

reg A

sec 1426613683577
reg Asec 2683636639325
reg Asec 3534782599948
reg Asec 4721568538614
reg Bsec 1644611883492
reg Bsec 2748327134615
reg Bsec 3922161672179
reg Bsec 4635235285148
reg Csec 1272812556962
reg Csec 2342263846272
reg Csec 3289953561415
reg Csec 4854817876893

 

The question :
1. How should we structure the data and what measurements and queries are necessary to accurately capture the input-output dynamics across these sectors and regions?
2. The aim is to synthesize an aggregate table. For instance, I intend to combine regions A and B into a new entity named "non C", and sum sectors 1, 2, and 3 to create a category "other than 4". This will enable us to condense the information into a more manageable 4 x 4 matrix.

Please help
Oka



1 REPLY 1
Adescrit
Impactful Individual
Impactful Individual

Hi @angsoka 

You should be able to achieve the 12x 12 matrix with a dataset with four columns:

Region    Sector    Input    Output

 

You can then create a 5th column on the table using DAX with the logic:

 

Not Sector 4 Calc = 
    IF( Table[Sector] = "sec 4", Table[Sector], "Other than 4 )

 

You can use similar logic for the "Non C" calculation on regions. Then add both of these new columns to a matrix visual in Power BI, with calculations to sum the input and output.


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

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.