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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Simple model not doable?

We have a very simple model with Partners, PartnerSales, PartnerRebates (see below). There is also an MyCal = CALENDARAUTO() table for filtering calendar - related data.

 

Capture.JPG

What we need to see is total sales vs. total rebates grouped by partner and month. Problem is, there seems to be no way to create such pivot table.

If we do a SUMMARIZE('Partners'), then it is impossible to include sales and rebates data into the pivot table. If we do a SUMMARIZE() over either PartnerSales or PartnerRebates, then not all data is included in the resulting pivot table - specifically, the data from "other" table (PartnerRebates in case of summarizing over PartnerSales) is only included IF there is a full match for the row. In the example below, only data related to 12 february is included:

 

Capture2.JPG

 

Is there any way to override this limitation and include *all* rows from the other table, even if there is no matching dates?


Code for pivots is:

SumOnSales = SUMMARIZE('PartnerSales'; Partners[CompanyName]; MyCal[Date]; "SumSales"; SUM(PartnerSales[SamesAmount]); "SumRebates"; SUM(PartnerRebates[RebateAmount]))

SumTableOnPartners = SUMMARIZE(
     PartnerRebates;
     Partners[CompanyName];
     MyCal[Date];
     "SumSales"; SUM(PartnerSales[SamesAmount]);
     "SumRebates"; SUM(PartnerRebates[RebateAmount])
     )

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Have you tried "Pivot" and "Unpivot" in query editor? You may also refer to the tutorial below:

https://www.youtube.com/watch?v=OYM26ZytimM

 

Regards,

Jimmy Tao

 

 

 

Anonymous
Not applicable

This has nothing to do with data transformation when importing into the model. Maybe it was not clear enough in the question.

 

The question is purely being UNable to include data from other table when using calculated pivot tables.

parry2k
Super User
Super User

@Anonymous whatever measure you are using add zero to it and it will force the measure to return zero value instead of blank() which is the reason that rows are not showing up, so for example measure will look like this

 

My Measure = SUM ( Table[Column] ) + 0


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

This example is about creating a pivot table, it does not involve any measures

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.