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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Vinay1312
New Member

Line Graph

Hi Community,

I am trying to create a line graph in which i am using a measure to compute Running total of Sales for FY 2023-2024.

On X axis - Apr,May,June....so on 

In Legend - Region (East,West,North,South)

On Y Axis - Running total  = IF( MIN(Dates[Date]) <= TODAY(), calculate(sum(Sales),calendar[date] <= max(calendar[date])), BLANK())

For East,West,North Region we have data from Apr 2023 till March 2024,but for south Region we only have data from Apr 2023 till June 2023  , so when I am creating line chart i should get 4 lines in total for diffrent region and for South Region it should show data till June 2023 only and for the other regions since we have the data for FY 2023-2024 so it should show the lines accordinly.

But when I am using above fields and measure all four lines are coming up from Apr 2023 to March 2024.

@GuyInACube  @AlbertoFerrari 

1 REPLY 1
mahenkj2
Solution Sage
Solution Sage

HI @Vinay1312 

To replicate the problem, its better if you post sample data which can be right away copied and tested. An image of output would also be helpful. all this should be dummy data.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.