Tx f29265486e94406137928a8a5fcb02c15420f892@40092253

Included in block 40,092,253 at 2020-01-20 11:30:06 (UTC)

f2926548 comment options: 100.0% SBD, allow votes: true, allow curation rewards: true

Raw transaction

ref_block_num49,739
ref_block_prefix2,453,040,644
expiration2020-01-20 11:40:00
operations
0.
0.comment
1.
parent_author""
parent_permlinkhive-102332
authortheexcelclub
permlink6daxtipsforexcelandpowerbiusers-id578fhw5u
title"6 DAX tips for Excel and Power BI users"
body"DAX is quickly growing in popularity.  Advanced Excel skills have moved beyond single table analysis with static data, to complex data modeling and analysis across multiple tables of data with live connection sources.
<a href="https://theexcelclub.com/what-is-dax-data-analysis-expressions/">DAX, the language</a> used in both Power Pivot and Power BI is, based on the existing Excel formulas.&nbsp; It also includes some new functions with added power and abilities. &nbsp;This can make DAX confusing when you start to use it. &nbsp;Even for those with experience, there is always more to learn and more creative ways to do things. So without further delay, here are my 6 DAX tips for Excel and Power BI users.
<h3>6 DAX Tips</h3>
<h4>1. Use measures to carry out calculations.&nbsp;</h4>
Avoid adding unnecessary calculated columns to a table as they just add to your model.&nbsp; It would be common for Excel user to be in the habit of adding new columns to existing tables. &nbsp;This is because old Excel had the ability to pivot only one table of data and so it was often necessary to add additional columns to the initial data.&nbsp; Adding new columns is a bad habit to carry over into Power Pivot or Power BI.&nbsp; Use measures instead. You can <a href="https://theexcelclub.com/dax-count-and-countx-impact-of-using-measures-and-columns/">check out this article</a> to get a better understanding of the impact of Measures over calculated columns.
<h4>2. Hide Unnecessary Columns</h4>
Hide all unnecessary columns from your client tools. By doing so, users can not aggregate columns in the wrong way.&nbsp; You will need to keep any columns by which you want to slice or filter your data. Most often these will be label type columns.&nbsp; Once you have created measures carrying out all the calculations you need, there is no need to keep the column in sight.
To hide columns in Power Pivot, select the columns you wish to hide.&nbsp; Right click and select Hide from Client Tools.&nbsp;
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips-1-300x268.png" alt="DAX tips for excel users" width="300" height="268"><br/>
Once the columns have been hidden from client view, they will appear as grayed out within Power Pivot and when you create a pivot table, the columns will not be available.
To hide columns using Power BI, the option to select is Hide in report view.&nbsp; This can be done from data view, selecting the column and right clicking.&nbsp; Or you can also do it from diagram view, select the column you wish to hide.&nbsp; Right click and select Hide in report view
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips5.png" alt="" width="555" height="216"><br/>
<h4>3. Format Measures</h4>
Always format your measure when you create it. For example, if you are working with financials and you know you will need your data to show in Dollars or Euros then set the formatting of the measure to the currency type. This way you only need to set the formatting once as it will carry into any pivot table or charts each time you select that measure.&nbsp;
To format the measure in Excel, select the measure in the calculation field of Power Pivot.&nbsp; Formatting options can then be selected from the Home ribbon. Once you select your formatting type, it will be applied to the measure in the calculation fields and any time you use it.
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips-excel-2.png" alt="dax tips" width="672" height="833"><br/>
<h4>4. Write DAX like code</h4>
Use SHIFT Enter to move to a new line. This is another bad habit carried over from Excel.&nbsp; A habit I must admit I am finding hard to break myself.&nbsp; However, DAX is so much easier to read when it is written like code. Look at the following examples.&nbsp; Which one do you think is easier to read?
Total DR:=IF (NOT (ISFILTERED('tbl_date 1'[Date]) || ISFILTERED ( 'tbl_date 1'[Weekday] ) || ISFILTERED ( 'tbl_date 1'[Monthdaynumber] )),SUM ( Tbl_GL[DR]))
Or
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips.png" alt="dax tips" width="688" height="280"><br/>
Not only are DAX formulas easier to read when you write them like code.&nbsp; But they are also easier to debug if you run into problems or errors.
<h4>5. Avoid data transformations steps using DAX.</h4>
Data transformation steps should not be carried out in Power Pivot where possible. For example, the use text functions such as TRIM, CONCAT, FIND and so forth used to transform text data to a more usable format. A common use would be to split the first and second names from one to two cells. Or even to join the first and second name from two cells to one.&nbsp; Data transformation and cleansing should be carried out with a different tool. A tool such as Power Query.
<h4>6. Keep the structure of the model simple.</h4>
Star schema as shown below works best.&nbsp; This is where there is one Facts table and each dimension table is connected directly to the fact’s tables.
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips-3-300x177.png" alt="" width="300" height="177"><br/>
A Snowflake schema will have dimensions tables connected to other dimensions tables.&nbsp; Just like the example image below.&nbsp; Snowflake structures can be transformed into star structure easily using Power Query.
<img src="https://theexcelclub.com/wp-content/uploads/2020/01/dax-tips-4-300x153.png" alt="" width="300" height="153"><br/>
<h3><center><em><strong>Do you have any tips for DAX users?&nbsp; If so please do post them in the comment below.DA</strong></em></center></h3>
<h3>Online Training Courses</h3>
<p><center><strong>Learn DAX</strong></center></p>
<a data-elementor-open-lightbox="" href="https://courses.theexcelclub.com/courses/master-dax-fundamentals-power-bi-amp-power-pivot">
<img width="434" height="460" src="https://theexcelclub.com/wp-content/uploads/2017/05/1.0.png" alt="DAX for powerpivot course" srcset="https://i0.wp.com/theexcelclub.com/wp-content/uploads/2017/05/1.0.png?w=434&amp;ssl=1 434w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2017/05/1.0.png?resize=283%2C300&amp;ssl=1 283w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2017/05/1.0.png?resize=410%2C435&amp;ssl=1 410w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2017/05/1.0.png?resize=100%2C106&amp;ssl=1 100w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2017/05/1.0.png?resize=275%2C291&amp;ssl=1 275w" sizes="(max-width: 434px) 100vw, 434px"><br/></a>
<center><strong>Explore Power Pivot</strong></center></p>
<a data-elementor-open-lightbox="" href="https://courses.theexcelclub.com/courses/power-pivot-excel-365-from-zero-to-hero">
<img width="441" height="513" src="https://theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png" alt="Power Pivot online training course" srcset="https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png?w=441&amp;ssl=1 441w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png?resize=258%2C300&amp;ssl=1 258w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png?resize=410%2C477&amp;ssl=1 410w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png?resize=100%2C116&amp;ssl=1 100w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/01/power-pivot.png?resize=275%2C320&amp;ssl=1 275w" sizes="(max-width: 441px) 100vw, 441px"><br/></a>
<center><strong>Learn Power Query</strong></center></p>
<a data-elementor-open-lightbox="" href="https://courses.theexcelclub.com/courses/power-query-excel-365-get-and-transform-data">
<img width="432" height="455" src="https://theexcelclub.com/wp-content/uploads/2019/10/power-query.png" alt="" srcset="https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/10/power-query.png?w=432&amp;ssl=1 432w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/10/power-query.png?resize=285%2C300&amp;ssl=1 285w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/10/power-query.png?resize=410%2C432&amp;ssl=1 410w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/10/power-query.png?resize=100%2C105&amp;ssl=1 100w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/10/power-query.png?resize=275%2C290&amp;ssl=1 275w" sizes="(max-width: 432px) 100vw, 432px"><br/></a>
<center><strong>Master Excel Formulas</strong></center></p>
<a data-elementor-open-lightbox="" href="https://courses.theexcelclub.com/courses/the-ultimate-excel-formulas-course-excel-365">
<img width="428" height="506" src="https://theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png" alt="" srcset="https://i0.wp.com/theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png?w=428&amp;ssl=1 428w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png?resize=254%2C300&amp;ssl=1 254w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png?resize=410%2C485&amp;ssl=1 410w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png?resize=100%2C118&amp;ssl=1 100w, https://i0.wp.com/theexcelclub.com/wp-content/uploads/2019/09/excel-365-formulas-course.png?resize=275%2C325&amp;ssl=1 275w" sizes="(max-width: 428px) 100vw, 428px"><br/></a>
<center><strong>Best value - Access All Areas.&nbsp; All our courses - 12 months subscription</strong></center></p>
<a data-elementor-open-lightbox="" href="https://courses.theexcelclub.com/courses/access-all-areas">
<img width="438" height="502" src="https://theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png" alt="" srcset="https://i2.wp.com/theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png?w=438&amp;ssl=1 438w, https://i2.wp.com/theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png?resize=262%2C300&amp;ssl=1 262w, https://i2.wp.com/theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png?resize=410%2C470&amp;ssl=1 410w, https://i2.wp.com/theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png?resize=100%2C115&amp;ssl=1 100w, https://i2.wp.com/theexcelclub.com/wp-content/uploads/2019/09/access-all-areas.png?resize=275%2C315&amp;ssl=1 275w" sizes="(max-width: 438px) 100vw, 438px"><br/></a>
<a data-elementor-open-lightbox="" href="https://theexcelclub.com/learn-and-earn-steem-activities/">
<img width="150" height="150" src="https://theexcelclub.com/wp-content/uploads/2019/05/steem-1-150x150.png" alt="learn and earn excel activities" srcset="https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/05/steem-1.png?resize=150%2C150&amp;ssl=1 150w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/05/steem-1.png?resize=100%2C100&amp;ssl=1 100w, https://i1.wp.com/theexcelclub.com/wp-content/uploads/2019/05/steem-1.png?w=225&amp;ssl=1 225w" sizes="(max-width: 150px) 100vw, 150px"><br/></a>
<center><em>Do you want to start collecting rewards quickly for learning Excel?&nbsp; Then you should try:</em></center></p>
<center><a href="https://theexcelclub.com/excel-learn-earn/">10+ Excel Learn and Earn Activities YOU can do Today</a></center></p>
<h4><strong>SIGN UP FOR OUR NEWSLETTER TODAY – GET EXCEL TIPS TRICKS &amp; LEARN AND EARN ACTIVITIES TO YOUR INBOX</strong></h4>
<a role="button" href="https://theexcelclub.newzenler.com/f/email-signup">SIGN UP</a>
<center><em>If you would like to start collecting rewards quickly for learning Excel&nbsp; then you should try:</em></center></p>
<center><a href="https://theexcelclub.com/excel-learn-earn/">10+ Excel Learn and Earn Activities YOU can do Today</a></center></p>
<h4><strong>SIGN UP FOR OUR NEWSLETTER TODAY – GET EXCEL TIPS TRICKS &amp; LEARN AND EARN ACTIVITIES TO YOUR INBOX</strong></h4>
<a role="button" href="https://theexcelclub.newzenler.com/f/email-signup">SIGN UP</a> <br /><center><hr/><em>Cross posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : https://theexcelclub.com/6-dax-tips-for-excel-and-power-bi-users/ </em><hr/></center> "
json_metadata{"community":"steempress","app":"steempress","image":[""],"tags":["hive-102332","excel","hive-174578","oc","posh"],"canonical_url":"https://theexcelclub.com/6-dax-tips-for-excel-and-power-bi-users/"}
1.
0.comment_options
1.
authortheexcelclub
permlink6daxtipsforexcelandpowerbiusers-id578fhw5u
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
allow_votestrue
allow_curation_rewardstrue
extensions
0.
0.0
1.
beneficiaries
0.
accountsteempress
weight1,500
extensions[]
signatures
0.207de3563e1fc7db0fc5b375dc1c3352757df68e95978df2e23d454929ea2b92b9573dd0df46f150053595d76e6bd593b151be4429235ad8d3303c657f09c427f1
transaction_idf29265486e94406137928a8a5fcb02c15420f892
block_num40,092,253
transaction_num20