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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

I Have two Data Sources one is O Data feed and Other is Sql Server.

I Have two Data Sources one is O Data feed and Other is Sql Server.  

i need to show the count of devices enrolled everyday from each datasource. in Line chart comapring both datasources.

 

O Data feed has three columns              Sql server has three columns 

date, Devices, serialnumber                    date, Devices, Serialnumber

 

 

i have created a calender date and joined both the tables to claender date and used the calender date in axis.

 

In Values i kept one serial number coulmn from sql server datasource as distinctcount. I can see the line chart and count.

 

But when i kept odata serial number in values as countdsitinct both at once its not working. In this case how to show both count of serial number per day enrolled comparing both in line chart. 

 

is it possible in Power BI. If possible how.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

if the data is imported them merge the two tables.

 

Or you need to have a common date table at least.

 

then you can show the data from two table across common date table .

 

You need to be in star schema

https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Have you solved this problem yet? If yes, could you kindly accept the answer you find useful as the solution? or share your solution so that others have same problem can refer to it?

 

Best Regards,

Community Support Team _ Tang

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

amitchandak
Super User
Super User

@Anonymous ,

if the data is imported them merge the two tables.

 

Or you need to have a common date table at least.

 

then you can show the data from two table across common date table .

 

You need to be in star schema

https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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