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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SamSP
New Member

Creating Calculated Table with hierarchies

Hi

I have a table of invoices containing 18M records, and about 10K of products and 30 different Sales Branch. when I create measures like MTD and Previous MTD and use them in visuals it is very slow.

I plan to create a calculated table and calculate all needed measures there. so in visualization it will be very fast.

 

My Question is how can I generate a calculated table which contain all the dimension I need. like "Branch", "Product Group", "Product". and I will add calculated culumns instead of measures later. when I use CROSSJOIN it puts all the products for every product group, but there is hierarchies.

It is very easy in table visual! just drag & drop and because of relationships it automatically detect hierarchies. but I can not do the same in calculated tables.

 

Thaks

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SamSP , You need to use aggregations

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations

 

If needed join it back with branch and product.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@SamSP , You need to use aggregations

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations

 

If needed join it back with branch and product.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.