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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
afaro
Helper III
Helper III

How to get a visual coming from two different tables with different date tables each?

I have a table TA with calendar date table as CA which has a monthly granularity. 

I have a table TB with calendar date table as CB which has a daily granularity. 

 

I want to show a visual showing measures from TA and TB with a quarter-year on the x axis. 

Using CB for TA is most likely not an option for me as those tables were imported from another semantic model.

How can I do this?  

 

1 ACCEPTED SOLUTION

Hi,@afaro 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1718335943128.png

2.Next create relationships between tables:

vlinyulumsft_1-1718335960288.png

3.Visual object parameters are set as follows:

vlinyulumsft_2-1718336061078.png

4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1718336076616.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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-linyulu-msft
Community Support
Community Support

Thanks for the reply from @rajendraongole1 , please allow me to provide another insight:
Hi,@afaro 


Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1718165669022.pngvlinyulumsft_1-1718165676478.png

2.Next create relationships between tables:

vlinyulumsft_2-1718165690930.png

3.Then the date with a hierarchical structure with a month is used as the content of the visual object:

vlinyulumsft_3-1718165703386.png

4.Here are the Settings for other visual objects:

vlinyulumsft_4-1718165716830.png

5.The following is the relevant documentation, hope to help you:

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

6.Here's my final result, which I hope meets your requirements.

vlinyulumsft_5-1718165734783.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.


Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

Sample data would be something like this: 

Table A 

CA DateValue
1 Jan 20221000
1 Feb 20222000
1 March 20223000

 

Table B 

CBValue
1 Jan 202210
2 Jan 202220
....... All the dates in between daily6000
31 March 202210

 

Now, the date table CA definition only has one date per month so it has monthly granularity while CB has every single date of the year(s). 

I want to see a visual where 

I see total value on y axis as 6040 for TB and 6000 for TA for Quarter 1.  

@rajendraongole1 @v-linyulu-msft 

Hi,@afaro 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1718335943128.png

2.Next create relationships between tables:

vlinyulumsft_1-1718335960288.png

3.Visual object parameters are set as follows:

vlinyulumsft_2-1718336061078.png

4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1718336076616.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

rajendraongole1
Super User
Super User

Hi @afaro - Question is not clear, can you please help to share some sample data or example? are you looking for common quarter-year x-axis, effectively combining data from tables with different date tables?

 

Re: How to Get Your Question Answered Quickly - Page 7 - Microsoft Fabric Community

 

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!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.