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
Anonymous
Not applicable

SUPER CHALLENGE : (SOS) Net Inventory Rollover dax formula (cumulative total)

I made two mock up but not able to load the file,

I took 2 screenshots, bacially the start of month for May AS Start of May 

Formula (FOR MAY ONLY) :

Start of Month = CALCULATE(SUMX('Product A','Product A'[ KG]),STARTOFMONTH('Product '[Invoice_Date]))
 

Then here comes to the JUNE (JULY.AUG) Start of month, it will need to use the NET from the perious month.

As well as stay whatever May already is.

Formula for NET (to roll over) : 

Net = [sum of Product A through the month]+[Start of Month]-'Product B'[KG]
 

Please take a look and share if you have any ideas, code, formulas that can help acheive this step.

Thanks in advance.!!! Basiclly, it will need whatever start of Month for may stays, then starting June, use the net to be the new "may" (start of month).

 

Let me know if I didn't explain it well or you have questions! THANKS!Data.PNGResult.PNG

 

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

HI  @Anonymous 

The two formulas (Start of Month and NET) are nested within each other, so i think it is very difficult to achieve in dax.

you try to get it in datasource.

 

Regards,

Lin

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

Thanks Lin,

 

however, product A and B are in two different tables on the query level, so I am not sure how to make the cross table calculation in query editior.

hi  @Anonymous 

I think it's better do it in datasouce, in dax or power query is very difficult to get it.

 

Regards,

Lin

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

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.