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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-binbinyu-msft
Community Support
Community Support

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

v-binbinyu-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors