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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
LaviniaMO
New Member

Plot a graph with data from 2 different tables in BI (using a calendar table as the x - axis)

Hi guys, 

I wanted to plot a graph using data from two different tables in power bi, but using the same x-axis.

 

On the first table I have the columns [HOURS], [START DATE] and [Bi], that ends at january 2023, whilist in the second table I have the columns [TIME], [DATES] and [Bi], ending at march 2024. What I want to do is creating a graphic where I can visualize the cummulated sum of HOURS and TIME. (As you can see in the picture below, the HOURS column eventualy stops growing as it ends at 2023, while the TIME keeps growing)

image.png

I've created a calendar table in which I have dates from 2000 to 2050. I though I could use the [dates] column in this table as the x-axis, by creating a relationship between the tables ([dCalendar] --> [TABLE1] ---> [TABLE2]) however,for some reason the HOURS keep getting represented as if there was data up until 2024. How can I fix this? is there any other way to make this work?

 

Thank you!!

1 ACCEPTED SOLUTION
The8
Helper II
Helper II

2 REPLIES 2
The8
Helper II
Helper II

Hello @LaviniaMO 

Do through link below

https://drive.google.com/file/d/1XrhH8JpZ1b5CeEF4Bzujr4rgt7U8flGL/view?usp=drive_link

The8_0-1714142427077.pngThe8_1-1714142461819.pngThe8_2-1714142493002.png

 

The8_3-1714142510709.pngThe8_4-1714142545401.png

 



Try with your data and let me know.


ToddChitt
Super User
Super User

Can you share a screenshot sample of your data from the tables in question? Also a screenshot of the relationship between them.

What is column [Bi]? What is column [TIME]? Is it the time of day? Are you dealing with DATE data type in the columns that form the relationships?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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