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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

2 data sets on same timeline

Hi,

 

I would like to compare the total actual cost per month with the payout amounts in a column chart. I managed to calculate the totalmtd but I´m not sure what to use on the time axis when one table is using specific dates and the other one is in months.

I´m new to power BI and appreciate any help 🙂

 

Thanks 

 

zpf_0-1596458450578.png

zpf_1-1596458475138.png

 

 

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1596508170710.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1596508170710.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , refer to this video for the first few mins.

https://www.youtube.com/watch?v=yPQ9UV37LOU

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Create a column in your first table:

 

Month = MONTH([Date])

 

Then you can relate your tables and then it shouldn't matter which you use in your visual.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
TomMartens
Super User
Super User

Hey @Anonymous ,

 

first you should create a dedicated calendar table and relate this table to the date column in your costs table.

 

The 2nd step should be to create a date column in your payouts table, eg. the last day of the month.

 

Then you can once again relate the calendar table to your Payouts table.

 

Maybe this article can also provide additional insights:

https://www.daxpatterns.com/handling-different-granularities/

 

And this is a more general article, about the handling of dates inside Power BI:

https://www.daxpatterns.com/time-patterns/

 

Hopefully, this provides some new insights on how to tackle your challenge.

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.