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
HarCopy
Frequent Visitor

MTD per week for Forecast, Business Plan, Sales and Packed

Good day

 

I need to create a line and clustered column chart for the MTD per week of the Forcast, Business Plan, Sales and Packed. We are using a 445 Fiscal Year starting with the first week of July, so the DAX functions doesn't work.

 

Below is an example of the data table.

 

FinYear&WeekDescriptionVolumeMonth
201944FC1220.82May
201944BP1456.57May
201944Sales1563.01May
201944Pack1803.78May
201945FC1475.87May
201945BP1456.57May
201945Sales2245.78May
201945Pack2137.76May
201946FC1200.85May
201946BP1456.57May
201946Sales491.725May
201946Pack500.625May
201947FC1443.84May
201947BP1456.57May
201947Pack May
201947Sales May
201948FC1378.44Jun
201948BP1432.23Jun
201948Sales Jun
201948Pack Jun
201949FC1396.78Jun
201949BP1432.23Jun
201949Sales Jun
201949Pack Jun
201950FC1159.57Jun
201950BP1432.23Jun
201950Sales Jun
201950Pack Jun
201951FC1094.12Jun
201951BP1432.23Jun
201951Pack Jun
201951Sales Jun
201952FC1632.47Jun
201952BP1432.23Jun
201952Pack Jun
201952Sales Jun

 

Here is an Excel example of the graphExcel Example of GraphExcel Example of Graph

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @HarCopy ,

In your scenario, we cna use the following DAX query:

MTD =
CALCULATE (
    SUM ( Table1[Volume] ),
    FILTER (
        ALLEXCEPT ( Table1, Table1[Description] ),
        Table1[Month] = MIN ( Table1[Month] )
            && Table1[FinYear&Week] <= MIN ( Table1[FinYear&Week] )
    )
)

The result will like below:

PBIDesktop_CLFVF4nOjy.png

Best Regards,

Teige

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.