Date hierarchy in Direct Query
-
Date hierarchy in Direct Query
Posted by DSC Communities on October 30, 2020 at 10:43 am-
Gabriela Ganciu
MemberOctober 30, 2020 at 10:43 AM
Hello,
Ā
I am using a DIrect Query data source connection and trying to create a report in Power BI Desktop. Due to its limitations (lacking date hierarchy etc) I need to manually create a calendar table. I did a bit of research and notice this seems to be the solution people found.
However the New Column or New Table options in the Modelling tab are not available, only the New Measure one is and I am not sure that is fit for purpose here.
Can anyone advise? Why would these features not be available? Do I need to request access? Does it need to be done by the Developers via the API? Or is there maybe another solution?
Sorry for the load of questions, still new at this thing. Any suggestion would be much appreciated!
Ā
Thank you
——————————
Gabriela Ganciu
Data Analyst
—————————— -
pouneh Samavatian
MemberOctober 30, 2020 at 10:56 AM
I think you need to go under Home and the Transform data——————————
pouneh Samavatian
——————————
——————————————- -
Gabriela Ganciu
MemberOctober 30, 2020 at 11:37 AM
HiThanks for replying!
When going under Transform Data? this is all I get:Strangely, when selecting ‘Data source settings’ it’s asking me to select my data source once again and creates a new empty dashboard.
However if I try create a new report (without selecting a data source first) and go to Transform Data > Data Source Settings, I get this:
——————————
Gabriela Ganciu
Data Analyst
——————————
——————————————- -
pouneh Samavatian
MemberOctober 30, 2020 at 12:51 PM
don’t click on the arrow but on the picture( Transform data) then you will get into this page with your own data:——————————
pouneh Samavatian
——————————
——————————————- -
pouneh Samavatian
MemberOctober 30, 2020 at 12:54 PM
-
Gabriela Ganciu
MemberNovember 2, 2020 at 2:24 AM
HiIt looks like ‘Transform data’ (which seems to take you to the Query Editor) ??is not an option for me. Can it be enabled by any chance? Or do you know why it would be grayed out?
Thanks,
——————————
Gabriela Ganciu
Data Analyst
——————————
——————————————- -
Ben Howard
MemberNovember 2, 2020 at 4:32 AM
Hi Gabriela,Can you let me know what version of Power BI desktop you are using.Ā What you are wanting to do is possible, but it would appear you have an old version of Power BI.Ā You need a feature called Composite Models which will allow both direct query (some exceptions here, see the article) and other queries and the creation of other tables.Ā For a DAX date table you could use the rather complex one from SQLBI or ?this one.Ā Once the date table is created then you can relate the two tables in the model.
——————————
Ben Howard, UK.Please mark any answer as recommended if it helps you.
——————————
——————————————- -
Gabriela Ganciu
MemberNovember 2, 2020 at 5:03 AM
HiThanks so much for your reply. I will definitely look into this.?
Power BI seems to be up to date though, the version I’m using is 2.86.902.0 64-bit (October 2020). Could this be the problem?
I Have been advised by the support team that since we’re using a Direct Query connection, creating a new table is not possible. Is this right?Thank you,
——————————
Gabriela Ganciu
Data Analyst
——————————
——————————————- -
Ben Howard
MemberNovember 2, 2020 at 5:20 AM
Hi , the version is fine.Ā What is the data source of the DQ??Ā The following limitations apply depending on the source.Limitations and considerations
This release of composite models presents a few limitations:
Currently,Ā incremental refreshĀ is supported for composite models connecting to SQL, Oracle, and Teradata data sources only.
The following Live Connect multi-dimensional sources can’t be used with composite models:
- SAP HANA
- SAP Business Warehouse
- SQL Server Analysis Services
- Power BI datasets
- Azure Analysis Services
When you connect to these multi-dimensional sources by using DirectQuery, you can’t connect to another DirectQuery source or combine it with import data.
The existing limitations of DirectQuery still apply when you use composite models. Many of these limitations are now per table, depending upon the storage mode of the table. For example, a calculated column on an import table can refer to other tables, but a calculated column on a DirectQuery table can still refer only to columns on the same table. Other limitations apply to the model as a whole, if any of the tables within the model are DirectQuery. For example, the QuickInsights and Q&A features aren’t available on a model if any of the tables within it has a storage mode of DirectQuery.
——————————
Ben Howard, UK.Please mark any answer as recommended if it helps you.
——————————
——————————————- -
Gabriela Ganciu
MemberNovember 2, 2020 at 5:52 AM
HiI was using a Power BI dataset as a source, so that is the reason why those features are not available. ? I will ask the engineers who build this connection if it is possible for me to access the source in another way.
However, to give you a bit of context as to how I got here, what I am trying to achieve by manually creating a date hierarchy is to have a nice looking graph that compiles my order data instead of showing it one-by-one.Ā Ā Please see below:
CurrentDesired resultIs there another solution that doesn’t involve date hierarchy?
Thank you very much for taking the time.
Regards,
——————————
Gabriela Ganciu
Data Analyst
——————————
——————————————- -
Ben Howard
MemberNovember 2, 2020 at 6:02 AM
Hi , I cannot see the images.Ā Are you able to share them another way??——————————
Ben Howard, UK.Please mark any answer as recommended if it helps you.
——————————
——————————————- -
Gabriela Ganciu
MemberNovember 2, 2020 at 6:07 AM
HiPlease see below links.
Current: https://drive.google.com/file/d/1qHmjk4b2xm-Blo-WDGxjFuyF1OQkRlt1/view?usp=sharing??
Desired result: https://drive.google.com/file/d/1a3B5n5AavpPoFMjGEVm2L32JNj4zDzN4/view?usp=sharingThank you,
——————————
Gabriela Ganciu
Data Analyst
——————————
——————————————-
DSC Communities replied 4 years, 10 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Date hierarchy in Direct Query’ is closed to new replies.