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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

Greg_Deckler
Super User
Super User

@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!:
The Definitive Guide to Power Query (M)

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.