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
Anonymous
Not applicable

Matrix with filter to Dax measure code

Hi

 

My workflow is that I often start with a matrix and filter the matrix to find total value. I would like to see the code behind so I can convert to a measure. Is that possible, are there som tool that can help me with this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

1. check the Power BI Desktop ssas engine PID in task manager

vbinbinyumsft_2-1703224144492.png

 

2. run below command in cmd

netstat -nao

3. check the tcp port for ssas engine 

vbinbinyumsft_1-1703224104141.png

4. open SQL Server Profiler, connect to this ssas engine with server name 

local:<port number>

5. create a new trace and run, then you could find the behind code

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
saudansari
Helper II
Helper II

You can use the Tabular Editor, it will help you move the measures from one file to another if needed - https://github.com/TabularEditor/TabularEditor/releases/tag/2.21.1

Anonymous
Not applicable

Hi @Anonymous ,

1. check the Power BI Desktop ssas engine PID in task manager

vbinbinyumsft_2-1703224144492.png

 

2. run below command in cmd

netstat -nao

3. check the tcp port for ssas engine 

vbinbinyumsft_1-1703224104141.png

4. open SQL Server Profiler, connect to this ssas engine with server name 

local:<port number>

5. create a new trace and run, then you could find the behind code

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lukiz84
Memorable Member
Memorable Member

daxstudio or sql profiler

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.