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
joelmerriman
Frequent Visitor

Can I combine data from separate data sources into a single Date Hierarchy visualization?

I would like to be able to utilize two or more tables in a single visualization based on the Date Hiearchy/Drilldown.  One table would provide the number of unique visitors to a page for each day.  Another would provide the number of unique visitors to a page for each month.  Another for each Quarter.  etc.

 

This is important for the data I'm dealing with, because summing the daily visitor numbers for each day when switching to a month view would cause severe overcounting of the number of unique visitors.  A single visitor who came to the page every day in a month would be counted as ~30 visitors, rather than one unique user for that time period.

 

Obviously I could settle for Average instead of Sum, but preferably I need a way to make it so that when a user drills into, or out of a level in the Date Hiearchy, the visualization will change which table it actually pulls the data from.  The format in each table would be identical.  Each would just contain pre-aggregated daily numbers, or monthly, or quarterly, etc.

 

Is there any way to accomplish this?

2 REPLIES 2
Phil_Seamark
Employee
Employee

This can be done by both the Query Editor and DAX.   If you can do it in the Query Editor this will result in faster data models.

 

You could have a table with 4 columsn.  

 

  1. The 1st is the date (1 row per day)
  2. then the visitors per day
  3. for the first day of the month only, the unique visitors for the month (all other rows blank)
  4. for the first day of the Quarter, the unique visitors for the Quarter (all other rows blank)

This will avoid over counting.

 

I'm sure there are other approaches, but I thought I'd start with one suggestion 🙂


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Interesting, but this wouldn't provide what I need without some serious rework.  The data for the dates are in completely separate tables with at least 1 column for dimension data such as the Page viewed, or the Country a visitor is from, and several columns of measures for visits, page views, time on site, etc. 

 

I basically have data like the below.  The first column in each is the time period.  The second and third columns are dimensions which are being measured, in this case the device type and the operating system used to view a web page.  The remaining columns are measures about that combination of device type and os, but aggregated based on the time period in the selection.

 

Your idea could work if I can pull out data from each table and place it in a new one I suppose, but since this would be taking place on several measures (not just visitors), and several reports, it would get exponentially more time consuming to create.  Plus, I'm really new at this and have to learn DAX.  🙂

 

Time PeriodDevice TypePlatformsSessionsPage ViewsSingle Page View SessionsEntry Page SessionsAvg View Time (Sec)Avg Session Duration (Mins)Bounce RateViews per Session
1/31/2017DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1/31/2017Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2/1/2017DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2/1/2017Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXX

 

 

Time PeriodDevice TypePlatformsSessionsPage ViewsSingle Page View SessionsEntry Page SessionsAvg View Time (Sec)Avg Session Duration (Mins)Bounce RateViews per Session
Jan-17DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Jan-17Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Feb-17DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Feb-17Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

 

Time PeriodDevice TypePlatformsSessionsPage ViewsSingle Page View SessionsEntry Page SessionsAvg View Time (Sec)Avg Session Duration (Mins)Bounce RateViews per Session
Q1 2017DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Q1 2017Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

 

Time PeriodDevice TypePlatformsSessionsPage ViewsSingle Page View SessionsEntry Page SessionsAvg View Time (Sec)Avg Session Duration (Mins)Bounce RateViews per Session
2017DesktopWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2017Mobile PhoneWindows 10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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