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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Setup Ideas

I have created a matrix that identifies COGS at a moment in time (cost as of today).  What I now need to do is change the cost of the goods based on when the product was sold.  How would you recommend I setup the information?  Information will change every month.

 

Below is a short table in Excel.  In my previous project, I have cost per unit based on today's cost, but now need to have the formula or setup reflect the month/year it was sold.  I know how to create a new measure (when there was one column of costs), but how do I tell PowerBI to pick the column tied with Month/Year and row tied with part number?

 

Thank you.

 

Kim

COGS -monthly.JPG

 

 

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

If you want to get the visual like the picture right side, you may shape your data model in Query editor then create a matrix.

 

1. You need to create a custom colum YearMonth.

2. Then pivot the column YearMonth with the value.

 

 

If you need further help, could you share some data sample and your desired output so that I can help you.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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