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
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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.

Top Solution Authors