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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
marry
Helper I
Helper I

How to generate new row to calculate the EOH quantity (Supply- Demand) calculation?

Hi everyone,

 

Would like to have the new added rows display in my Matrix table to calculate the EOH Quantity, hope the experts can help on this!!! Thank you.

 

 Requirement:

Yellow rows are the to-be-generated rows in my PBI report

  • EOH generation need to be calculated Per Product Name + OSAT Supplier (for example, one Product Name with 2 different OSAT supliers, need to generate 2 EOH rows)
  • EOH for current month= (Current month TK Supply BOH Qty sum + TK Supply Qty sum+ CS Supply BOH Qty sum + CS Supply Qty sum) –Demand
  • EOH for the following month = (Previous month EOH + TK Supply Qty sum + CS Supply Qty sum)-Demand
  • Report sequence sorted by “Identifier” column: Demand>> TK Supply>> CS Supply>> EOH

marry_0-1700558905802.png

 

 

Here is my PBI file: (It seems I cannot attach the pbi file directly, please let me know if you can open it.)

https://drive.google.com/file/d/1PWoOq2Y2iP45ykuD5CnP5lD_dAIMFrYi/view?usp=sharing

 

Excel sample result calculation:

https://docs.google.com/spreadsheets/d/1MVP8ptlkKTT-AssKP2rlI0MKbPJirhFS/edit?usp=sharing&ouid=10968...

 

Best regards,

Marry

4 REPLIES 4
lbendlin
Super User
Super User

You cannot add rows to a data model dynamically.  You can only do that statically by creating calculated tables.  Is that acceptable in your scenario?

hi @lbendlin ,

 

Yes, it will be acceptable for me.

 

Might be easier to revert the sign for Demand.

 

lbendlin_1-1700864870535.png

 

Thanks @lbendlin .

Good thinking and proposal, I will think about how to implement the rest of logics in my PBI report. Thanks for the help!! 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.