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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
thhmez7
Helper III
Helper III

Last 3 months by date based on selecting a different date field

Hello,

I've opened a similar thread, but this usecase is a bit enhanced:

An event can have multiple Accounts. Eve O has the accounts C and O. If I click this event, the chart should show the revenue of last 3 months (including current month), starting with March 2021 of the Account Date.

charts.jpg

However here it shows only one month:

charts_filtered.jpg

Here is my measure:

MeasureMeasure

Relationships:

RelationsRelations

Account table with Revenue and Date

Account.jpg

Event table 

events.jpg

Thank you for your help

2 ACCEPTED SOLUTIONS
TomMartens
Super User
Super User

Hey @thhmez7 ,

 

I assume this article provides what you are looking for: https://helicaltech.com/display-selected-month-data-using-date-dimension-powerbi/

The essential part is using a dedicated calendar table.

 

Hopefully this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

thhmez7
Helper III
Helper III

4 REPLIES 4
thhmez7
Helper III
Helper III

https://www.youtube.com/watch?v=d8Rm7dwM6gc&t=789s

found a solution in this video, thanks guys.

Ashish_Mathur
Super User
Super User

Hi,

See if my solution here helps - Flex a Pivot Table to show data for x months ended a certain user defined month.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
TomMartens
Super User
Super User

Hey @thhmez7 ,

 

I assume this article provides what you are looking for: https://helicaltech.com/display-selected-month-data-using-date-dimension-powerbi/

The essential part is using a dedicated calendar table.

 

Hopefully this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi @TomMartens 

I just tried this with a calendar table which has relation to Account table with Date column. However still not correct, as this shows only one month with the sum/cumulative value of the last 3 months. It should be spread over the last 3 months of the selected month. What could be still wrong?

newtry.jpg

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors