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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

MTD Chart Visual

Hello,

I need help with the following problem.
I created 4 tables in Excel for the example. The Data and Sales table is connected via date with the Date Table.
I need to create a Chart graph visualization that will work like the image below.
I want to create a Slicer visualization in which I will put the month from the Date Table. I also created a Source Table in which the Data Act/Sales Act is calculated.

However, the problem arises when I want this column or data metric in the Chart Graph. I don't want to see only one value for a given month when I select a month in Slicer, as it usually does when I select a month in Slicer, but I want to see cumulatively everything from the first month to the one I selected. So, for example, when selecting month number 3, I want to see the amount for month 1, 2 and 3 in the Chart graph as I drew in the picture.

Can someone help me with this? Thank you 🙂

ICON_1.pngICON_2.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can use "Enter data" method to create the month dimension table to replace the original one, please find the details in the attachment.

vyiruanmsft_0-1692000922456.png

And for the visuals which not effect by the month slicer, you can consider to create measure with the filter (like 'Table'[month]=selectedvalue('Months'[Month])). Anyway, it need to make the proper change base on the actual situation...

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see the attachment), please check if that is what you want.

1. Create a month dimension table and apply the month field on the slicer

Months = VALUES('Date Table'[Month])

vyiruanmsft_1-1691993712366.png

2. Create a measure as below 

Measure = 
VAR _selmonth =
    SELECTEDVALUE ( 'Months'[Month] )
RETURN
    SUMX (
        FILTER ( 'Date Table', 'Date Table'[Month] <= _selmonth ),
        [Data Act/Sales Act]
    )

3. Create a visual as below screenshot

vyiruanmsft_0-1691993632773.png

Best Regards

Anonymous
Not applicable

Hiii 🙂

Thank you very much for providing the solution. However, I have a couple of problems.

Using New Table, I created the Month table according to your example: Months = VALUES('Date Table'[Month]).
The problem arises if, for example, in 2023 we still only have 8 months out of 12. But since, for example, 12 months have already been written in 2022, even with the filter for the year 2023, I see 12 months instead of 8. Is this possible?

And one more problem, the rest of the visualization is not responsive to the Slicer with the Month filter from the Months table. There is probably no other solution, so what you provided is probably the best.

Thank you very much

Anonymous
Not applicable

Hi @Anonymous ,

You can use "Enter data" method to create the month dimension table to replace the original one, please find the details in the attachment.

vyiruanmsft_0-1692000922456.png

And for the visuals which not effect by the month slicer, you can consider to create measure with the filter (like 'Table'[month]=selectedvalue('Months'[Month])). Anyway, it need to make the proper change base on the actual situation...

Best Regards

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.