cancel
Showing results for
Did you mean:
New Member

## Multiple dates on x-axis

Hello community!

I am trying to build an area chart that should look something like below:

I would like to overlay 3 sets of data - Each set has a dollar amount and a corresponding date (Ex. Amount paid & paid date, Bill amount & bill date etc). I would like the X-axis to show a general timeline, and the corresponding data points to be plotted for each day. The goal is to see for each time period (day/week/month) how much I have billed & been paid (Ex. 1Jan I billed \$100 but I got paid \$50).

Could you guide me how to achieve this using area charts

1 ACCEPTED SOLUTION

Accepted Solutions
Solution Sage

## Re: Multiple dates on x-axis

Hi @nm1729 ,

In your scenario, we can create a date table with Hierarchy, please refer to the following example:

Assume that we have tables like below:

Then we can use the following DAX query to create a date table:

```date =
CALENDAR ( DATE ( 2019, 1, 1 ), DATE ( 2019, 2, 20 ) ),
"week", WEEKNUM ( [Date], 1 ),
"month", MONTH ( [Date] )
)```

Create relationship between date table with these two tables, then drag the week and month to the date creating the date Hierarchy:

Then we can create the visual, after that, we can drill down the data from month to week to day:

Best Regards,

Teige

Solution Sage

## Re: Multiple dates on x-axis

Hi @nm1729 ,

In your scenario, we can create a date table with Hierarchy, please refer to the following example:

Assume that we have tables like below:

Then we can use the following DAX query to create a date table:

```date =
CALENDAR ( DATE ( 2019, 1, 1 ), DATE ( 2019, 2, 20 ) ),
"week", WEEKNUM ( [Date], 1 ),
"month", MONTH ( [Date] )
)```

Create relationship between date table with these two tables, then drag the week and month to the date creating the date Hierarchy:

Then we can create the visual, after that, we can drill down the data from month to week to day:

Best Regards,

Teige

Announcements

#### ‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

#### Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

#### April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

#### MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors