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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Move Calculated Column Measure to Power Query

Hi Experts

 

I would like to re do my calculated column measure in Sales_DATA_Master table. within Power Query as a Custom Column as its blowing up my PBIX file size from 17MB to 82MB when i have 11 calculated columns in my Sales FACT Table.

 

Measure i would like to move

4.Purch_Direct = Sales_Data_Master[Gross_Cost_USD] / CALCULATE(sum('Sales_Data_Master'[Gross_Cost_USD]),ALLEXCEPT('Sales_Data_Master','Sales_Data_Master'[Channel],'Sales_Data_Master'[Region],'Sales_Data_Master'[Years_In_Date],'Sales_Data_Master'[Reporting_Region_l2],'Sales_Data_Master'[Month]))
 
Sample Date
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Seem like you want to create % of subtotal/ total

 

You have to create a summarize table in power query with the required total and merge

 

refer: https://exceloffthegrid.com/power-query-group-by/

then merge https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

or refer

https://social.technet.microsoft.com/Forums/en-US/1891afde-7392-4d27-b920-dfd579837dc8/how-to-add-subtotal-in-a-row-in-power-query?forum=powerquery

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit. I am not working out the % of Sub-Total over Total. Its the Working out the % of each line item over total based on Channel, Region, and other criteria....

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.