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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Compartmentalise Data originating from one table - Use Measures, Query Editor or DAX?

Hi ,

 

I have questions around compartmentalisation of data from one common table. I want to understand the pros and cons of the possible options.  

 

I have following 

1. Source = OData Feed

2. Table = Item Ledger (It records all types of inventory transactions )

 

Objective:

Perform Sales, Purchase and Inventory Analysis

 

Solution Approach 1: 

1. Do not separate table and create your measures accordingly. 

 

My view: This will make the use of Quick Measures difficult for the users.

 

Solution Approach 2:

Create Calculated table using the CALCULATETABLE.

 My View: Will both the original and calculated table be in memory impacting performance?

Solution Approach 3:

Create table using Query Editor (duplicate the table) and then filter rows in M Code as below.

 

#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([Entry Type] = "Sale")) 

 

If I use this approach, I can split tables for Sales, Purchasing and other summarisations and have original table (Item Ledger) not load to Data Model and hence hide it from the data model and users alltogether.

 

The current problem I have at hand is that new table is also pointing to the original OData Feed (Hence downloading data twice).  How can I have this new table point to the other table? I have answered this question already.

 

Larger question that I have is: What are the pros and cons of each of the approach above?

 

Thanks in advance.

Devinder

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Actually, you mention two approaches: DAX or M code. Generally, we import and model data by using M code in Power BI, and we use DAX to create calculation. In your scenario, I would choose approach 3.

For more details about pros and cons of each approach, please review the following blog.
http://radacad.com/m-or-dax-that-is-the-question

Regards,

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous,

Actually, you mention two approaches: DAX or M code. Generally, we import and model data by using M code in Power BI, and we use DAX to create calculation. In your scenario, I would choose approach 3.

For more details about pros and cons of each approach, please review the following blog.
http://radacad.com/m-or-dax-that-is-the-question

Regards,

Anonymous
Not applicable

 Thanks you v-yuezhe-msft

 

Your reply is much appreciated; it cleared my doubts.

 

Regards

Devinder

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.