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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
eryka_90
Helper I
Helper I

Seeking assistant and suggestion to create a monthly chart between two dates

Hi,

 

I'm stucked when to create a chart monthly saving and seeking expert guide or suggestion to proceed further. My sample data as below:

(*) is the measure in my Table A

IDExecutionStartDatefortheProjectEstimatedValidatedDate*FirstYearDefinition *SecondYearDefinition*YearDefinitionActual Saving ($)*MonthsInYear
1232022-05-182023-12-3120222023ActualFirstYear20,7008
1232022-05-182023-12-3120222023ActualSecondYear10,50012

 

I added new Date Table B refer to Min (ExecutionStartDatefortheProject) and Max (EstimatedValidatedDate).  I also create a column for Dynamic Year based on Year Definition in Table A then create relationship between Table A and B using Year. However, my chart only refer to the month of ExecutionStartDatefortheProject, not the month between ExecutionStartDatefortheProject and EstimatedValidatedDate. My purpose is to showing monthly saving for each ID by devide the actual saving with month in year. Is that possible to do it?

 

Thank you

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @eryka_90 -I hope there is a relationship between Table A and DateTable on the Year column.

 

create a measure for monthly savings from actual saving and monts in year.

 

MonthlySaving =
DIVIDE (
SUM ( 'TableA'[Actual Saving ($)] ),
SUM ( 'TableA'[MonthsInYear] )
)

 

call the above monthly saving in return statement if the distribution fails. create a measure that distributes the savings across the months

TotalMonthlySaving =
VAR StartDate = MIN ( 'TableA'[ExecutionStartDatefortheProject] )
VAR EndDate = MAX ( 'TableA'[EstimatedValidatedDate] )
RETURN
SUMX (
FILTER (
DateTable,
DateTable[Date] >= StartDate && DateTable[Date] <= EndDate
),
[MonthlySaving]
)

use the monthly saving measure in your table chart it shows the distribution across the months. try the above approac and let knw.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 ,

 

I did try your approach but the value return is bigger.  I would like to create a chart as below

IDActual Saving ($)Month in Year*Average in Saving
12320,70082,587.5
12310,50012875

 

For Year 2022, starting May until Dec. The chart should shows value $2,587.5 and 

For Year 2023, starting Jan until Dec. The chart should shows value $875.

 

and also when i create relationship between Table A and DateTable using Year, my chart only showing year up to 2022 only instead of full year which is my data have up to 2027.

 

Thank you

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.