cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User IX
Super User IX

Re: Jerarchy Of Dates Granularity

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

Appreciate your Kudos.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper I
Helper I

Re: Jerarchy Of Dates Granularity

@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.

Highlighted
Super User V
Super User V

Re: Jerarchy Of Dates Granularity

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

Highlighted
Community Support
Community Support

Re: Jerarchy Of Dates Granularity

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

Highlighted
Community Support
Community Support

Re: Jerarchy Of Dates Granularity

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.

Highlighted
Helper I
Helper I

Re: Jerarchy Of Dates Granularity

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.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors