DAX and the Data Model

  Рет қаралды 22,237

Access Analytic

Access Analytic

Күн бұрын

Пікірлер: 75
@sledgehammer-productions
@sledgehammer-productions 5 ай бұрын
I remember doing a Power BI Course in 2018 I thought "this is the lucky child of Excel and Access". Then in 2020 I found that the Power Query part of BI was now an integral part of Excel. And now (2024) I learned that my aversion to pivot tables kept me away from Power Pivot that again, seems to integrate so much more again. And it feels Power BI should feel more 'natural' now to an Excel enthousiast. Can't wait to actually build stuff with it, preferably paid for by my employer 😀
@AccessAnalytic
@AccessAnalytic 5 ай бұрын
Power BI was indeed the child of Excel. In 2009 the Power Pivot interface and data model was added to Excel as an addin, with Power Query addin previews arriving in 2010. Both were then built into Excel 2016. Power Bi desktop took those features and hence there’s a big commonality of functionality
@mikheilitchulukhadze8554
@mikheilitchulukhadze8554 2 жыл бұрын
Your explanation is very great, please add more power BI videos
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks… here’s my Power BI playlist Power BI kzbin.info/aero/PLlHDyf8d156VDobBIk13o4mZLk19DbV81
@FramaKIRK
@FramaKIRK Ай бұрын
I think I get the understanding of how this data model links have to be organized to work. The query with the connections to the calendar and the other query has to be placed in the values section of the pivot table given it's connections to both TIME/ DATE and To THE OTHER TABLE you want to slice with.
@AccessAnalytic
@AccessAnalytic Ай бұрын
Glad you worked it out. Best practice is to put measures in the values field. I.e. write a measure that refers to your Fact table ( good for future proofing )
@sajilpulath7353
@sajilpulath7353 3 жыл бұрын
This was way cool easy to understand the basics of creating relationships and measures...loved it 👍 it would be great if you could do video for explaining more other commonly used measures !
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Thanks Sajil, I’ll be doing a DAX video in coming weeks
@Redant1Redant
@Redant1Redant Жыл бұрын
Great presentation. Very clear.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You’re welcome
@DanielTavares29
@DanielTavares29 3 жыл бұрын
Lets start from zero...good video!!
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Cheers Daniel
@IvanCortinas_ES
@IvanCortinas_ES 3 жыл бұрын
Excellent video. As always, a great explanation. Thank you Wyn!
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Thank you for watching and commenting Iván
@johnywhy4679
@johnywhy4679 3 жыл бұрын
10:22 "please don't use implicit measures don't use the drag and drop type stuff it just automatically happens be specific write an explicit measure" - If the implicit measures using drag and drop return the same output, then what's the problem?
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Hi Johny, it's a more robust future proof method of building a report. As the report or data sources change over time or you add an extra measure here and there you can easily tweak a base measure and have it flow through to visuals and other measures. However if you drag and drop columns you have to drag and drop new fields in / rebuild visuals etc which is time consuming and you could potentially miss something. It takes slightly longer to do but it pays off in the long run.
@johnywhy4679
@johnywhy4679 3 жыл бұрын
@@AccessAnalytic Make sense! But isn't drag/drop a helpful way to autogenerate the basic code, and then tweak it by hand?
@zuhairalmutawa9941
@zuhairalmutawa9941 2 жыл бұрын
Great and professional presentation. Thank you ...
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
You’re welcome Zuhair, thanks
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Hi Wyn. Well explained and useful tips and information! Thanks for sharing :)) Looking forward to more on DAX and the Data Model. Thumbs up!!
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Appreciated as always Wayne
@mrook9053
@mrook9053 2 жыл бұрын
So helpful for people just starting out! Love your content
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thank you for leaving a comment and letting me know you found it useful
@lorenzoladejobi8701
@lorenzoladejobi8701 3 жыл бұрын
Very insightful ! Thank you Sir.
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
You're welcome
@louism.4980
@louism.4980 Жыл бұрын
Thank you for introducing this! :)
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You’re welcome
@FramaKIRK
@FramaKIRK Ай бұрын
Hey Friend, I appreciate your video on this topic. I've got an excellent data model created because of your instructions. I am having a problem with getting the data model to work as you have demonstrated in this video by adding data from a different table to my pivot table given the relationship in the data model. I have connected them by the same column as you did and for the calendar table as well, but I cannot pull in the column from a different table into my pivot to slice and dice my data. Do you know what setting or step I might be missing, Sir? Thank you for your help, Kirk Junior
@AccessAnalytic
@AccessAnalytic Ай бұрын
I note you’ve said you’ve sorted this out in another comment.
@pgplanas
@pgplanas 3 жыл бұрын
Who else was blown away by Excel's data model? And here I was thinking that I was an advanced Excel user because I knew how to use INDIRECT.
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
It's amazing what Excel is capable of these days Pablo
@philipos22
@philipos22 Жыл бұрын
Thank you for the video. When i open my data model, it shows only a blank screen, even though i have 2 tables loaded with power query in the file. do you have any idea how to solve this ?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Hi, Power BI or Excel? Sometimes the tables appear off to the far right side, hidden behind the side panels. Zoom out.
@philipos22
@philipos22 Жыл бұрын
@@AccessAnalytic thank you for your answer, it is in excel. meanwhile i found the solution, i had to load the queries data to the data model by right clicking on the query in the excel window on vertical right ribbon.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Ah yeah, that does catch out folk at the start sometimes
@DPaquette
@DPaquette 2 жыл бұрын
Wyn when you look at the diagram view and there is no connection but the tables specify that there is a connection at the bottom of the page... how do you find out where this connection is?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
I'm not sure what you mean when you say no connection and that there is a connection at the bottom.
@DiptaGhossan
@DiptaGhossan Жыл бұрын
Hi Wyn, do you have any videos that solve a challenge to calculate items in a column? just like the way it does in normal pivot.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Can you give an example of what you mean please
@DiptaGhossan
@DiptaGhossan Жыл бұрын
@@AccessAnalytic in normal pivot, there is a function to calculate field items. i am looking for a way to do this in power point
@DiptaGhossan
@DiptaGhossan Жыл бұрын
calculaten items i mean, calculate filed is calculating columns, whils the first one is more rows within 1 col. i.e. i have 1 col "Scenario" that consists of Budget, Forecast, Actual in 1 col. how to calculate variance of budget to actual without pivoting this into column?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You would write a Measure like: Actual =CALCULATE( SUM( YourData[ YourValue column] ), YourData[Scenario]=“Actual” ) Repeat for budget Then Variance = [Actual] - [Budget]
@johnywhy4679
@johnywhy4679 3 жыл бұрын
Is it correct to say the data model feeds ONLY pivot tables, not flat tables?
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Yep, correct. Power Query can load to a flat table but Power Pivot is Pivot Tables
@johnywhy4679
@johnywhy4679 3 жыл бұрын
@@AccessAnalytic Thx!
@johnywhy4679
@johnywhy4679 3 жыл бұрын
@@AccessAnalytic Thx for that! Is the following correct? DAX is the language of PP, and is best for obtaining aggregate values. M is the language of PQ, and is best for obtaining atomic, scalar values.
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
DAX is for creating dynamic calculations, averages, cumulative totals, prior period comparisons, variances, ratios etc. Power Query M language is for data clean up and re-shaping plus adding calculated columns if required
@johnywhy4679
@johnywhy4679 3 жыл бұрын
@@AccessAnalytic Thanks! Sounds like there's some overlap, correct? But DAX is more for aggregate functions, like cumulative totals and averages, right? M is more for flat tables, right?
@paulvanobberghen
@paulvanobberghen Жыл бұрын
Can’t you just load an Excel table into the data model via the Power Pivot tab and click on, well, « Add to the data model », that is, without going through Power Query?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You can ( it will work ok ) but it’s not considered best practice and locks you into that approach. It was added before power query became an option. Since Power Query came along it provides flexibility as requirements change in the future.
@azwarmzafar
@azwarmzafar Жыл бұрын
Perfect one, thanks.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Cheers
@zembasiamuleya9013
@zembasiamuleya9013 3 жыл бұрын
This is good. However, when I switch (close and open a different Excel sheet) after using DAX I am getting the below error message: We couldn't get data from the data model. here's the error message we got: The ' '... measure cannot be created because a column with the same name already exists. Please help, how do I resolve this issue? Thanks.
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Difficult to say without looking at the file, I’d open the data model and rename any measures that clash with existing column names
@utubeAgape
@utubeAgape 2 жыл бұрын
WYN, this was great! So helpful to see you write the DAX measures. I am wondering how you learned all the DAX functions? I have been building PBI Dashboards using implicit measures with the easy drag and drop method but now getting a little stuck on the advice to use explicit DAX measures instead. How do I learn the DAX functions that are available and which measures to build for my dashboards? Same goes for the Calendar Table - I have not been building them so far but it sounds like I should - is this true?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Hi Irene, DAX measures such as SUM and COUNTROWS, plus a Calendar table are important foundations of a flexible report. You can often get by without them but I’d recommend you get into good habits early and use them. I’d recommend this book for learning DAX exceleratorbi.com.au/supercharge-power-bi-book/
@utubeAgape
@utubeAgape 2 жыл бұрын
@@AccessAnalytic Thank you for the prompt response - I appreciate the advice and I will check into that book👍
@murjika
@murjika 2 жыл бұрын
Hi, I have a table with invoice line items. Each line repeats the invoice number as many times as the line item on it, plus each line has a column to indicate customer ID. I want to summarise per customer ID total value sold, which is easy as I just do pivot, but then next to each customer in that pivot I want to show how many invoices were made to that customer. It does not work if I simply count the lines because then it just shows total number of line items and not total number of invoices. I somehow need to count unique invoice numbers but I don't know how. I could add invoice nr as a second index column but the problem is that my data is too large and Excel crashes (total lines in the pivot go well above 1 million). Any advice?
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
If you load the data to the data model then you can use a pivot table and do a DISTINCTCOUNT.
@murjika
@murjika 2 жыл бұрын
@@AccessAnalytic Thank you so much!
@excelworx8712
@excelworx8712 3 жыл бұрын
Well explained, Wyn. Can you refer us where we could learn about more DAX formulas
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
Maybe try Mike Girvin’s playlist here. kzbin.info/aero/PLrRPvpgDmw0nglJ9yX2XT5-K1A_AKHpvW For a book see exceleratorbi.com.au/supercharge-power-bi-book/ For online training see exceleratorbi.com.au/supercharge-power-bi-book/ For more advanced DAX www.sqlbi.com/training/
@excelworx8712
@excelworx8712 3 жыл бұрын
@@AccessAnalytic thanks again for the comprehensive reply, Wyn!
@Dan_De_Man
@Dan_De_Man Жыл бұрын
In your date table tblcalendar how do you get your months i.e Jan Feb. I used text formula but on my report pivot months don't appear but they appear if i drag in month number I tried text([@date], "mmm") but that didn't work either
@AccessAnalytic
@AccessAnalytic Жыл бұрын
@@Dan_De_Man - check out this video regarding the use of a Calendar table: kzbin.info/www/bejne/gpeunmZ3ic6Vpqc
@zaheerahmad3896
@zaheerahmad3896 Жыл бұрын
GOD bless you !
@mandypaulissen
@mandypaulissen 2 жыл бұрын
DAX is the trickiest part of Power XX.... once its mystery is cracked, all the rest of pieces can fall in places much easily.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Yep it’s a challenging beast
@FRANKWHITE1996
@FRANKWHITE1996 3 жыл бұрын
Thanks
@AccessAnalytic
@AccessAnalytic 3 жыл бұрын
You’re welcome
Power BI Hidden Gems
8:57
Access Analytic
Рет қаралды 5 М.
What is DAX?
17:48
Access Analytic
Рет қаралды 42 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
How to SIMPLIFY DAX using Power Query
16:14
Access Analytic
Рет қаралды 14 М.
3 Essential Excel skills for the data analyst
18:02
Access Analytic
Рет қаралды 1,6 МЛН
How to Model and Analyze Data in EXCEL using POWER PIVOT
22:23
Create a Data Model in Excel
18:31
ExcelDemy
Рет қаралды 27 М.
10 Million Rows of data Analyzed using Excel's Data Model
10:57
Access Analytic
Рет қаралды 123 М.
Variables in DAX
16:46
SQLBI
Рет қаралды 36 М.
The Excel Tool That Does What PivotTables Can’t (File Included)
13:59
MyOnlineTrainingHub
Рет қаралды 192 М.
How to use Power Pivot in Excel | Full Tutorial
30:38
Kevin Stratvert
Рет қаралды 1,5 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН