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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
gnavia
Helper I
Helper I

Jerarchy Of Dates Granularity

Good morning to you all,

I run into a problem, which I can't solve, I'm taking my first steps in POWER BI, so I have little experience and inity in the tool. With my company we are looking to develop a data visualization tool, however at the time of loading comes a default Hierarchy of: Year, Quarter, Month, Day. However, the data that has been uploaded is every 5 minutes (much more detailed), in d/m/yyyy hh:nn. I require that the data are under the same conditions, so that I can plot and visualize it.

I'm very grateful for your help.

A hug

6 REPLIES 6
v-zhenbw-msft
Community Support
Community Support

Hi @gnavia ,

 

How about the result after you follow the suggestions mentioned in my original post?
Could you please provide more details or expected result about it If it doesn't meet your requirement?

 

Best regards,

 

Community Support Team _ zhenbw

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

Hello

It has not worked as I would like, an average or sum of the data, which does not generate a unique value for each position more or less so I would like the chart to remain:

gnavia_0-1594140011086.png

I tried to attach the code to you, but I don't get that possibility, I don't know that I can share it with you.

Thank you.

amitchandak
Super User
Super User

@gnavia ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

@amitchandak Hello! and thank you for taking care of me. Of course, if I try to explain it as clearly as I can, I currently have data every 5 minutes in time:

Tabla de datos.png

But when I want to graph this data, grab an average of the day, for our business it is important monitoring according to the established every 5 minutes:

What I'm looking for is that it recognizes the hours and minutes that has been loaded every day, and the granularity of the hierarchy is not only year, quarter, month and day, but also reach up to hour and minute. I generate a calendar table, and you don't recognize the minutes:

CALENDARIO.png

I hope it's somehow clearer.

Thank you very much.

Hi @gnavia ,

 

We can create a date table to meet your requirement.

 

Date =
ADDCOLUMNS (
    DISTINCT ( 'Table'[Date] ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "Quarter", QUARTER ( [Date] ),
    "Hour", HOUR ( [Date] ),
    "Minute", MINUTE ( [Date] ),
    "second", SECOND ( [Date] )
)

 

J1.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

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

Hi @gnavia ,

 

Try going through this blog.

 

https://radacad.com/how-to-use-time-and-date-dimensions-in-a-power-bi-model

 

You may need a separate Date and a separate Time Table for this.

 

 

Regards,

Harsh Nathani

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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