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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
fep
Helper I
Helper I

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 @fep ,

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 @fep ,

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.