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
Matthew247
Regular Visitor

It is so simple - just dates on a line graph...

All,

Too many hours wasted trying to get this to work... I have a report that has a Direct Query link to a Dynamics CRM table. The table contains fields that record when cases were created (Case). It uses the default Created On field which is a Date and Time field (Time zone adjustment User local if that is relevant). I want a chart that has dates along the bottom and Count of the Cases field to show how many cases were created each date. Simple...

But the chart only ever shows 1 record per date (with the odd exception) as its taking each time stamp as a unqiue value - see below. I just want it to group it by dates and ignore the time. I have attempted to play with formats but can't get it working. This is an out the box Microsoft Date and Time field so I know the data is good. Help please...!

 

Matthew247_0-1700160117371.png

 

11 REPLIES 11
Matthew247
Regular Visitor

Thanks - can I do that if its a Direct Query link to the data?

yes, you can have calculated columns in Direct Query as long as they originate from the same row.

lbendlin
Super User
Super User

Add a calculated column that gets the DATEVALUE() of your timestamp, and use that in the X axis instead.

For some reason its saying that the column is not suitable for this - but its a standard date time automatic field from Dynamics? 

Matthew247_0-1701347306059.png

 

You need to create a calculated column, not a measure.

Thanks for the reponse and patience. Like this? No joy

Matthew247_0-1701348606714.png

 

The sources for a calculated column in Direct Query mode must come from the same table row. Are you creating that column in the Incidents table?

So you are correct -wrong table. Now it is and accepted the col. But now when I just try and view it as a table it wont show the data? 

Matthew247_0-1701350430543.png

 

what does the error message details link say?

Sure: 

Matthew247_0-1701361513903.png

 

That's not cool. It should have worked. Sorry!

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.