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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
cjc322
Frequent Visitor

Dynamic Summary Table of a Field

Hello,

Currently my fact table for a retail store consists of transactional data of lines of a SKU sales back to 2013. The fact table is 3,404,777 rows. This currently is the only data feed that I am receiving that contains SKU data. I am posting to see if anyone can suggest a method to create a seperate table that summarizes all the SKUs that are in the fact table; so that as a result I have just a seperate table of SKUs. The difficult part is I want this new table to be dynamic; meaning that each day when there are new transactions loaded to the fact table, those new SKUs that were not in the table would be added or somehow the whole table is recreated each day when the fact table is refreshed.

 

Please let me know if you need anymore info. Attahced is a screenshot of part of the fact table. the MerchID is the SKU.

 

Thanks!

 Chris

Screen Shot 2016-07-14 at 8.31.16 AM.png

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hi @cjc322

 

To create a summarize table of your SKus:

 

MOdeling-New Table

 

Merch_ID-Table = SUMMARIZE('Fact-Sales-Retail';'Fact-Sales-Retail'[Merch_ID])

 

 

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

hi @cjc322

 

To create a summarize table of your SKus:

 

MOdeling-New Table

 

Merch_ID-Table = SUMMARIZE('Fact-Sales-Retail';'Fact-Sales-Retail'[Merch_ID])

 

 

 

 




Lima - Peru
Anonymous
Not applicable

Hi @Vvelarde

 

Is there anyway to pass slicer filter values to the summary table?

SUM_Tabl = Summarize('Fact','dimitem'[ItemName]),"Revenue",SUM('fact'[Revenue]))

fact has CompanyKey and joined with DimCompany.

I have slicer viz on the page Company from dimcompany.

when i select a company the SUM_Table should filter on that company.

somthing like: CALCULATETABLE( Summarize('Fact','dimitem'[ItemName]),"Revenue",SUM('fact'[Revenue])), filter(dimcompany,company=selectedcompany)).

i know my expression is wrong but kind of thing.! can we achieve?

hi @Anonymous

 

Not tested yet but you can try it:

 

SUM_Tabl = Summarize(filter('Fact';fact[CompanyKey]=dimcompany[CompanyKey]),'dimitem'[ItemName]),"Revenue",SUM('fact'[Revenue]))




Lima - Peru

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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