All language subtitles for [English (auto-generated)] Power BI Tutorial for Beginners to Advanced 2025 _ Power BI Full Course for Free in 20 Hours [DownSub.com]

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish Download
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,359 --> 00:00:03,080 Hello friends hope you had a really good 2 00:00:03,080 --> 00:00:07,040 start of 2025 I Amit chandak a Microsoft 3 00:00:07,040 --> 00:00:09,960 data platform MVP and a powerb community 4 00:00:09,960 --> 00:00:13,280 super user I also chief altic officer at 5 00:00:13,280 --> 00:00:16,800 caner I welcome you to this video learn 6 00:00:16,800 --> 00:00:20,519 powerbi yes it is a full video of 20 7 00:00:20,519 --> 00:00:24,800 hours in 2023 I released a similar video 8 00:00:24,800 --> 00:00:28,320 of 11 hours and 30 minutes I'm taking a 9 00:00:28,320 --> 00:00:31,119 next step to bring you even bigger and 10 00:00:31,119 --> 00:00:33,960 better content we are going to cover 11 00:00:33,960 --> 00:00:36,719 visualization Texs and power query in 12 00:00:36,719 --> 00:00:39,960 details I'm hopeful this video will help 13 00:00:39,960 --> 00:00:44,200 you to enhance your journey of power bi 14 00:00:44,200 --> 00:00:47,079 in a great way start this journey with 15 00:00:47,079 --> 00:00:50,800 me and I will take you through a Content 16 00:00:50,800 --> 00:00:53,600 which consists of more than 140 plus 17 00:00:53,600 --> 00:00:56,239 videos which has been recorded and 18 00:00:56,239 --> 00:00:58,519 edited throughout 19 00:00:58,519 --> 00:01:01,800 2024 you will find some of the uis has 20 00:01:01,800 --> 00:01:04,479 changed over a period of time but I've 21 00:01:04,479 --> 00:01:07,560 taken care that I have Incorporated the 22 00:01:07,560 --> 00:01:11,000 new UI at the right place so let's begin 23 00:01:11,000 --> 00:01:14,520 this journey learn 24 00:01:16,520 --> 00:01:19,400 powerbi and data analytics industry is 25 00:01:19,400 --> 00:01:22,479 continue to grow and it creates lot of 26 00:01:22,479 --> 00:01:25,600 opportunities for business intelligence 27 00:01:25,600 --> 00:01:28,200 data analytics and visualization tools 28 00:01:28,200 --> 00:01:31,400 powerbi is leading the that weave today 29 00:01:31,400 --> 00:01:33,920 with the emergence of Microsoft fabric 30 00:01:33,920 --> 00:01:38,240 it has taken next step in that Journey 31 00:01:38,240 --> 00:01:41,640 so learning powerbi as a skill can be 32 00:01:41,640 --> 00:01:44,799 really useful and I have done an attempt 33 00:01:44,799 --> 00:01:47,799 to make sure that I cover all those 34 00:01:47,799 --> 00:01:50,759 aspect in this particular video I would 35 00:01:50,759 --> 00:01:53,040 also like to take this opportunity to 36 00:01:53,040 --> 00:01:55,479 thank each and everyone of you who have 37 00:01:55,479 --> 00:01:57,920 watched the previous video where over 38 00:01:57,920 --> 00:02:00,600 last two years there were more than 39 00:02:00,600 --> 00:02:04,159 200,000 views and 4,000 like you have 40 00:02:04,159 --> 00:02:06,640 really appreciate that video you have 41 00:02:06,640 --> 00:02:09,039 asked many question on that video and 42 00:02:09,039 --> 00:02:12,200 based on that I have created many other 43 00:02:12,200 --> 00:02:15,160 videos the channel now have more than 44 00:02:15,160 --> 00:02:18,040 850 videos and you can take full 45 00:02:18,040 --> 00:02:21,200 advantage of those videos more than 500 46 00:02:21,200 --> 00:02:24,000 videos are only on powerbi and there are 47 00:02:24,000 --> 00:02:26,959 more than 80 plus videos on Microsoft 48 00:02:26,959 --> 00:02:30,000 fabric including English and Hindi so my 49 00:02:30,000 --> 00:02:33,879 advice would be to watch all these other 50 00:02:33,879 --> 00:02:36,360 videos other than this course to take 51 00:02:36,360 --> 00:02:39,560 the full advantage of powerb there are 52 00:02:39,560 --> 00:02:41,959 detailed videos on each and every 53 00:02:41,959 --> 00:02:45,319 function of Dex and power query on my 54 00:02:45,319 --> 00:02:48,239 channel and you should also watch other 55 00:02:48,239 --> 00:02:50,560 than watching this full course I wish 56 00:02:50,560 --> 00:02:54,280 you a very successful power ba Journey 57 00:02:54,280 --> 00:02:57,000 with this video and hoping that this 58 00:02:57,000 --> 00:02:59,519 video will make your powerbi journey 59 00:02:59,519 --> 00:03:02,080 really easy in case you have some 60 00:03:02,080 --> 00:03:04,200 questions you can ask them in comments 61 00:03:04,200 --> 00:03:07,680 but with that let's begin our journey in 62 00:03:07,680 --> 00:03:12,200 20125 to learn powerbi and take a next 63 00:03:12,200 --> 00:03:15,400 step in your data analytics career so 64 00:03:15,400 --> 00:03:17,400 friends the question arise why powerbi 65 00:03:17,400 --> 00:03:19,920 powerbi is leading business intelligence 66 00:03:19,920 --> 00:03:23,159 Analytics tool and for last many years 67 00:03:23,159 --> 00:03:25,519 every business intelligence analytics 68 00:03:25,519 --> 00:03:28,480 industry reports put powerbi as the top 69 00:03:28,480 --> 00:03:31,080 leading tool in terms of feature and 70 00:03:31,080 --> 00:03:32,840 capabilities with the launch of 71 00:03:32,840 --> 00:03:35,239 Microsoft fabric an integrated 72 00:03:35,239 --> 00:03:37,799 environment where powerbi is also part 73 00:03:37,799 --> 00:03:40,239 of it which has capabilities of having 74 00:03:40,239 --> 00:03:43,319 lake houses warehouses realtime Antics 75 00:03:43,319 --> 00:03:46,799 all together on integrated platform as a 76 00:03:46,799 --> 00:03:49,799 powerbi developer you have a leap to 77 00:03:49,799 --> 00:03:52,000 take my recommendation is with the help 78 00:03:52,000 --> 00:03:54,680 of this video you learn powerbi and then 79 00:03:54,680 --> 00:03:56,560 take the advantage of various other 80 00:03:56,560 --> 00:03:58,720 videos on my channel to learn Microsoft 81 00:03:58,720 --> 00:04:01,920 fabric 202 4 is expected to be the era 82 00:04:01,920 --> 00:04:04,159 of Microsoft Fabric and you have a 83 00:04:04,159 --> 00:04:06,239 pivotal role to play as a powerbi 84 00:04:06,239 --> 00:04:08,360 developer and enhancing your skill to 85 00:04:08,360 --> 00:04:10,720 the next level to the Microsoft fabric 86 00:04:10,720 --> 00:04:12,920 becoming a Microsoft fabric developer so 87 00:04:12,920 --> 00:04:15,480 let's start together this exciting 88 00:04:15,480 --> 00:04:18,639 journey of learning powerbi taking the 89 00:04:18,639 --> 00:04:20,880 analytics experience to the next level 90 00:04:20,880 --> 00:04:23,840 for the end user and then take it to the 91 00:04:23,840 --> 00:04:27,360 next level using Microsoft 92 00:04:27,360 --> 00:04:29,880 fabric so let's understand what is is 93 00:04:29,880 --> 00:04:32,479 powerbi powerbi is a business 94 00:04:32,479 --> 00:04:35,160 intelligence and analytics service that 95 00:04:35,160 --> 00:04:37,880 delivers Insight from analyzing the data 96 00:04:37,880 --> 00:04:39,800 powerb is a collection of software 97 00:04:39,800 --> 00:04:42,440 Services app and connectors that work 98 00:04:42,440 --> 00:04:45,120 together to turn your unrelated sources 99 00:04:45,120 --> 00:04:48,160 of data into coherent visually immersive 100 00:04:48,160 --> 00:04:50,400 and interactive Insight it can share 101 00:04:50,400 --> 00:04:51,800 those insights through data 102 00:04:51,800 --> 00:04:54,440 visualization which can make up reports 103 00:04:54,440 --> 00:04:56,440 and dashboards to enable the fast 104 00:04:56,440 --> 00:04:59,400 informed decision power ba scales across 105 00:04:59,400 --> 00:05:01,759 and organization and it has built in 106 00:05:01,759 --> 00:05:04,160 governance security allowing business to 107 00:05:04,160 --> 00:05:07,039 focus on using data more than managing 108 00:05:07,039 --> 00:05:09,919 it in the today's datadriven world 109 00:05:09,919 --> 00:05:13,160 powerbi stands out as a pivotal tool in 110 00:05:13,160 --> 00:05:15,160 the data visualization and business 111 00:05:15,160 --> 00:05:17,560 intelligence it is not just presenting 112 00:05:17,560 --> 00:05:19,800 the data it's about unlocking the 113 00:05:19,800 --> 00:05:21,720 insights and for decision making so 114 00:05:21,720 --> 00:05:23,759 let's begin this interesting journey in 115 00:05:23,759 --> 00:05:25,960 the world of powerbi so whether you're 116 00:05:25,960 --> 00:05:28,600 beginner or eager to dive into the data 117 00:05:28,600 --> 00:05:30,680 visualization or a professional looking 118 00:05:30,680 --> 00:05:32,840 to update your skills this video is a 119 00:05:32,840 --> 00:05:35,560 gateway mastering powerb together let's 120 00:05:35,560 --> 00:05:38,759 transform the way we understand the 121 00:05:38,759 --> 00:05:42,479 data so the first term is data itself so 122 00:05:42,479 --> 00:05:45,240 data is a set of values of qualitative 123 00:05:45,240 --> 00:05:47,120 or quantitive variable means something 124 00:05:47,120 --> 00:05:49,199 which we want to measure against 125 00:05:49,199 --> 00:05:50,720 something which we want to measure and 126 00:05:50,720 --> 00:05:52,479 it's not only about data it's about 127 00:05:52,479 --> 00:05:54,600 quality data see in business 128 00:05:54,600 --> 00:05:56,319 intelligence and data analytics we use a 129 00:05:56,319 --> 00:05:58,960 term garbage in garbage out what does 130 00:05:58,960 --> 00:06:00,080 that means if you if you don't have 131 00:06:00,080 --> 00:06:01,680 quality data you'll not be able to get 132 00:06:01,680 --> 00:06:03,800 quality analysis and that's really 133 00:06:03,800 --> 00:06:06,520 important here and that might require 134 00:06:06,520 --> 00:06:09,840 transformation and powerbi is capable of 135 00:06:09,840 --> 00:06:12,120 doing the transformation then we have a 136 00:06:12,120 --> 00:06:14,960 term data analytics data analytics is 137 00:06:14,960 --> 00:06:17,319 the process of examining and analyzing 138 00:06:17,319 --> 00:06:19,880 the data sets in order to draw insights 139 00:06:19,880 --> 00:06:21,800 conclusion and make data driven decision 140 00:06:21,800 --> 00:06:23,440 making so we are talking about data 141 00:06:23,440 --> 00:06:26,360 driven decision making it involves using 142 00:06:26,360 --> 00:06:28,319 statistical and analytical techniques to 143 00:06:28,319 --> 00:06:30,120 extract and interpret relevant 144 00:06:30,120 --> 00:06:33,080 information from data and can be applied 145 00:06:33,080 --> 00:06:35,000 in wide range of fields and industries 146 00:06:35,000 --> 00:06:37,160 so basically we are driving out the 147 00:06:37,160 --> 00:06:39,199 information from the data we are taking 148 00:06:39,199 --> 00:06:40,639 decisions which will drive our 149 00:06:40,639 --> 00:06:43,199 businesses we have another term which is 150 00:06:43,199 --> 00:06:44,759 business intelligence and business 151 00:06:44,759 --> 00:06:46,479 intelligence refers to decision making 152 00:06:46,479 --> 00:06:48,639 now according to o.com the term business 153 00:06:48,639 --> 00:06:51,400 intelligence bi refers to the technology 154 00:06:51,400 --> 00:06:54,080 application and practice for collection 155 00:06:54,080 --> 00:06:56,639 integration analysis and presentation of 156 00:06:56,639 --> 00:06:58,400 business information the purpose of 157 00:06:58,400 --> 00:07:00,319 business intelligence is to support B 158 00:07:00,319 --> 00:07:02,879 better decision making now here we are 159 00:07:02,879 --> 00:07:04,199 talking about collection of data 160 00:07:04,199 --> 00:07:06,160 integration of data analysis of data and 161 00:07:06,160 --> 00:07:08,240 presentation of data power ba can do all 162 00:07:08,240 --> 00:07:10,000 four means it can collect data from 163 00:07:10,000 --> 00:07:11,879 different sources it can integrate them 164 00:07:11,879 --> 00:07:14,000 it can analyze and present also it could 165 00:07:14,000 --> 00:07:15,160 happen that most of the time this 166 00:07:15,160 --> 00:07:16,800 collection and integration is happening 167 00:07:16,800 --> 00:07:18,879 outside maybe in a data warehouse and 168 00:07:18,879 --> 00:07:20,960 Analysis and presentation is going to 169 00:07:20,960 --> 00:07:24,039 happen in powerbi now data could be 170 00:07:24,039 --> 00:07:25,400 structured semi- structured or 171 00:07:25,400 --> 00:07:26,960 unstructured most of the time we are 172 00:07:26,960 --> 00:07:28,599 going to deal with the structure data 173 00:07:28,599 --> 00:07:30,400 and this structure data can come from 174 00:07:30,400 --> 00:07:32,800 rdbms and sometime it may be also 175 00:07:32,800 --> 00:07:36,919 available in Excel files or csvs where 176 00:07:36,919 --> 00:07:39,160 targets and budgets are commonly kept 177 00:07:39,160 --> 00:07:41,240 now ideally we should move them into the 178 00:07:41,240 --> 00:07:43,720 data warehouse or a common storage so 179 00:07:43,720 --> 00:07:46,560 that they can be managed properly but in 180 00:07:46,560 --> 00:07:49,199 any project you will not have 100% data 181 00:07:49,199 --> 00:07:51,280 coming from rdbm you may have some data 182 00:07:51,280 --> 00:07:53,240 coming outside now semi- structure data 183 00:07:53,240 --> 00:07:55,000 and un structure data would be dealt 184 00:07:55,000 --> 00:07:58,199 little bit outside the powerbi or maybe 185 00:07:58,199 --> 00:08:00,199 converted into some useful information 186 00:08:00,199 --> 00:08:03,280 or data and then maybe U given in power 187 00:08:03,280 --> 00:08:06,000 ba for analysis now you will come across 188 00:08:06,000 --> 00:08:09,080 the term tables and fact now table is 189 00:08:09,080 --> 00:08:11,159 basically a collection of related data 190 00:08:11,159 --> 00:08:13,120 entries and it consists of numerous 191 00:08:13,120 --> 00:08:14,639 columns and rows so there are rows and 192 00:08:14,639 --> 00:08:17,039 columns and it contains data now table 193 00:08:17,039 --> 00:08:18,520 could be a fact table or table could be 194 00:08:18,520 --> 00:08:20,280 a dimension table fact table is the 195 00:08:20,280 --> 00:08:22,440 table which containing the majors or the 196 00:08:22,440 --> 00:08:23,960 facts facts means truth about your 197 00:08:23,960 --> 00:08:26,240 organization my sales my purchase my 198 00:08:26,240 --> 00:08:28,120 inventory number of employees their 199 00:08:28,120 --> 00:08:30,599 salary all these are the facts of your 200 00:08:30,599 --> 00:08:32,159 organization they are the truth about 201 00:08:32,159 --> 00:08:33,800 your organization that are used to 202 00:08:33,800 --> 00:08:36,399 analyze data as well as Dimension Keys 203 00:08:36,399 --> 00:08:37,919 against which they need to be analy so 204 00:08:37,919 --> 00:08:39,519 it will also contain the dimension Keys 205 00:08:39,519 --> 00:08:41,159 against which you need to analyze this 206 00:08:41,159 --> 00:08:43,839 data you will also hear this term major 207 00:08:43,839 --> 00:08:47,080 matrices kpi and then you will also hear 208 00:08:47,080 --> 00:08:49,399 the term parameter filter Dimension so 209 00:08:49,399 --> 00:08:50,839 what is measor so something which you 210 00:08:50,839 --> 00:08:52,519 want to measure measure for your success 211 00:08:52,519 --> 00:08:54,320 of your organization and then you will 212 00:08:54,320 --> 00:08:56,440 measure it against something against 213 00:08:56,440 --> 00:08:58,519 time against geography against customer 214 00:08:58,519 --> 00:09:01,160 against vendor against items articles so 215 00:09:01,160 --> 00:09:03,200 you say I have done good sales sales is 216 00:09:03,200 --> 00:09:05,560 a major or matrices what is what do you 217 00:09:05,560 --> 00:09:07,680 mean by good have you done good against 218 00:09:07,680 --> 00:09:09,399 your competitor have you done good 219 00:09:09,399 --> 00:09:11,200 against last year have you done good 220 00:09:11,200 --> 00:09:13,200 because your margin has increased all 221 00:09:13,200 --> 00:09:15,120 these questions are there and such 222 00:09:15,120 --> 00:09:17,240 questions we will be trying to answer 223 00:09:17,240 --> 00:09:18,800 using business intelligence and data 224 00:09:18,800 --> 00:09:20,720 analytics so these are the terms you 225 00:09:20,720 --> 00:09:23,040 should be hearing time and again then 226 00:09:23,040 --> 00:09:24,839 there are two kind of matrices lead 227 00:09:24,839 --> 00:09:27,320 matrices and lag matrices lead mattress 228 00:09:27,320 --> 00:09:28,839 is something which can indicate what is 229 00:09:28,839 --> 00:09:31,240 going to happen lag is something which 230 00:09:31,240 --> 00:09:33,279 is actually analyzing what has already 231 00:09:33,279 --> 00:09:34,640 had happened sales is basically 232 00:09:34,640 --> 00:09:36,360 something already has happened but is 233 00:09:36,360 --> 00:09:37,680 sales going to decrease how you are 234 00:09:37,680 --> 00:09:39,240 going to know so it's basically size of 235 00:09:39,240 --> 00:09:40,959 your funnel how many opportunities or 236 00:09:40,959 --> 00:09:42,519 leads you have if your leads are 237 00:09:42,519 --> 00:09:43,959 decreasing your opportunities are 238 00:09:43,959 --> 00:09:46,320 decreasing at 1 F day your sales will 239 00:09:46,320 --> 00:09:48,560 decrease so there are lead indicators 240 00:09:48,560 --> 00:09:50,200 and that is how the prediction happens 241 00:09:50,200 --> 00:09:52,200 so somebody's saying okay downtime is 242 00:09:52,200 --> 00:09:53,720 coming or how this is coming because 243 00:09:53,720 --> 00:09:56,079 they look at the lead in mates and once 244 00:09:56,079 --> 00:09:58,519 lead and mat is going down we know that 245 00:09:58,519 --> 00:10:00,680 the lag mattress is will follow it soon 246 00:10:00,680 --> 00:10:02,360 these kind of metrices you should also 247 00:10:02,360 --> 00:10:04,200 remember in your analysis what you plan 248 00:10:04,200 --> 00:10:06,680 to analyze now you will hear about 249 00:10:06,680 --> 00:10:08,440 relational schema star schema and 250 00:10:08,440 --> 00:10:11,079 snowflake schema and star schema is very 251 00:10:11,079 --> 00:10:12,800 common term which you will hear while 252 00:10:12,800 --> 00:10:14,680 you are doing your analysis now without 253 00:10:14,680 --> 00:10:16,640 going into lot of details of this one 254 00:10:16,640 --> 00:10:18,720 let me explain you one quick example in 255 00:10:18,720 --> 00:10:20,600 typical in a relational schema what 256 00:10:20,600 --> 00:10:22,800 happens we try to store information in 257 00:10:22,800 --> 00:10:25,079 such a manner that it doesn't repeat at 258 00:10:25,079 --> 00:10:27,959 all so let's say if I store state in a 259 00:10:27,959 --> 00:10:29,560 city table what would happen the state 260 00:10:29,560 --> 00:10:31,680 name will repeat for many cities so 261 00:10:31,680 --> 00:10:33,720 instead of storing the state name what 262 00:10:33,720 --> 00:10:35,839 I'll do I'll create a state ID and state 263 00:10:35,839 --> 00:10:37,639 name in a separate table and I'll only 264 00:10:37,639 --> 00:10:40,480 store the state ID in the city table so 265 00:10:40,480 --> 00:10:42,600 if the state name changes or updated I'm 266 00:10:42,600 --> 00:10:44,920 only updating one record so in such a 267 00:10:44,920 --> 00:10:47,320 manner we create a set of table using a 268 00:10:47,320 --> 00:10:49,200 process called normalization and 269 00:10:49,200 --> 00:10:52,600 relational schema or the oltp system 270 00:10:52,600 --> 00:10:54,440 online transaction processing system 271 00:10:54,440 --> 00:10:57,480 which are our base core erps or CRM they 272 00:10:57,480 --> 00:10:59,519 typically follow relational schema back 273 00:10:59,519 --> 00:11:01,920 because of which they are able to handle 274 00:11:01,920 --> 00:11:04,120 thousands of transaction or millions of 275 00:11:04,120 --> 00:11:05,880 transaction in a day so this is 276 00:11:05,880 --> 00:11:07,720 typically how a relational schema looks 277 00:11:07,720 --> 00:11:09,360 like you might have a sales table sales 278 00:11:09,360 --> 00:11:11,560 might have a detail sales might join to 279 00:11:11,560 --> 00:11:14,200 city and state it might join with time 280 00:11:14,200 --> 00:11:16,040 and time may be further classified as 281 00:11:16,040 --> 00:11:18,440 date month quarter year there could be 282 00:11:18,440 --> 00:11:20,600 Separate Tables or one table it could be 283 00:11:20,600 --> 00:11:22,440 joining with customer customer can join 284 00:11:22,440 --> 00:11:24,480 further with customer group CS detail 285 00:11:24,480 --> 00:11:26,160 can join with item item can join with 286 00:11:26,160 --> 00:11:27,920 brand category subcategory and all so 287 00:11:27,920 --> 00:11:29,480 many tables could be there what what 288 00:11:29,480 --> 00:11:31,200 happens is then this is relational 289 00:11:31,200 --> 00:11:32,800 schema we have a dimensional schema 290 00:11:32,800 --> 00:11:34,079 there are two dimensional schema which 291 00:11:34,079 --> 00:11:35,800 are pretty common one is Snowflake and 292 00:11:35,800 --> 00:11:37,880 second one is star schema now what 293 00:11:37,880 --> 00:11:39,560 happens in case of snowflake schema you 294 00:11:39,560 --> 00:11:41,480 can still have subdimensions like I 295 00:11:41,480 --> 00:11:43,120 combined sales and sale detail here I 296 00:11:43,120 --> 00:11:44,480 combined also customer and customer 297 00:11:44,480 --> 00:11:46,360 group but I still have item and brand 298 00:11:46,360 --> 00:11:48,240 means item table is there and it's also 299 00:11:48,240 --> 00:11:49,760 connected to Brand you can also have 300 00:11:49,760 --> 00:11:51,639 city and state means still separate out 301 00:11:51,639 --> 00:11:53,560 table time is one combined it maybe 302 00:11:53,560 --> 00:11:55,680 previously also combined I also combined 303 00:11:55,680 --> 00:11:57,720 but when you come to Star schema what 304 00:11:57,720 --> 00:12:00,079 happens is that you do do not have any 305 00:12:00,079 --> 00:12:02,800 join between Dimensions also so no fact 306 00:12:02,800 --> 00:12:04,680 join with other fact no Dimension join 307 00:12:04,680 --> 00:12:07,360 with other dimension and the distance of 308 00:12:07,360 --> 00:12:09,360 information is one so I want to know 309 00:12:09,360 --> 00:12:11,560 brand wise sales item wise sales the 310 00:12:11,560 --> 00:12:13,240 distance is one one joint I want to know 311 00:12:13,240 --> 00:12:15,000 statewise sale one joint I will get 312 00:12:15,000 --> 00:12:16,680 State I want to know customer group wise 313 00:12:16,680 --> 00:12:18,160 one join with customer table I'll get 314 00:12:18,160 --> 00:12:20,680 that information so I can have many join 315 00:12:20,680 --> 00:12:23,399 but all these joins are just one step 316 00:12:23,399 --> 00:12:25,880 apart that's what the star schema and in 317 00:12:25,880 --> 00:12:27,480 that one fact will not join with fact 318 00:12:27,480 --> 00:12:28,959 Dimension will not join with Dimension 319 00:12:28,959 --> 00:12:30,639 so these are basic few concept which 320 00:12:30,639 --> 00:12:32,240 should be aware and you will hear all 321 00:12:32,240 --> 00:12:34,160 these terms time and again so let's 322 00:12:34,160 --> 00:12:36,480 begin this journey of learning powerbi 323 00:12:36,480 --> 00:12:38,560 to start this journey let's first 324 00:12:38,560 --> 00:12:40,800 understand Microsoft powerb ecosystem 325 00:12:40,800 --> 00:12:42,760 this ecosystem does not include 326 00:12:42,760 --> 00:12:45,000 Microsoft fabric ecosystem I have 327 00:12:45,000 --> 00:12:47,720 knowingly excluded that which we can 328 00:12:47,720 --> 00:12:50,040 discuss in a separate video of Microsoft 329 00:12:50,040 --> 00:12:52,160 fabric you can watch the introduction 330 00:12:52,160 --> 00:12:54,760 videos in Hindi and English on my 331 00:12:54,760 --> 00:12:57,320 channel explaining the various 332 00:12:57,320 --> 00:12:59,199 components that Microsoft fabric 333 00:12:59,199 --> 00:13:00,800 provides you so the Journey of any 334 00:13:00,800 --> 00:13:02,600 business intelligence analytics tools 335 00:13:02,600 --> 00:13:04,399 start with the sources so what kind of 336 00:13:04,399 --> 00:13:06,279 sources we can have for powerbi the 337 00:13:06,279 --> 00:13:08,760 usual sources are external sources like 338 00:13:08,760 --> 00:13:12,399 Excel databases Etc then we will discuss 339 00:13:12,399 --> 00:13:14,279 later on about these remaining two 340 00:13:14,279 --> 00:13:16,839 sources you import that into the powerbi 341 00:13:16,839 --> 00:13:18,959 desktop for databases we do have option 342 00:13:18,959 --> 00:13:21,519 for direct query what is Import in case 343 00:13:21,519 --> 00:13:23,880 of import the data would be residing in 344 00:13:23,880 --> 00:13:26,320 the powerbi and we will be creating the 345 00:13:26,320 --> 00:13:28,760 model into the powerbi and we will be 346 00:13:28,760 --> 00:13:31,000 creating measures and would be analyzing 347 00:13:31,000 --> 00:13:34,399 the data also so powerbi own meta as 348 00:13:34,399 --> 00:13:37,600 well as data in case of direct query we 349 00:13:37,600 --> 00:13:39,720 create the connection we do not import 350 00:13:39,720 --> 00:13:42,920 the data but we create the metadata we 351 00:13:42,920 --> 00:13:45,120 create the model we create the 352 00:13:45,120 --> 00:13:47,920 definitions we create the relationship 353 00:13:47,920 --> 00:13:49,880 we create measures we create 354 00:13:49,880 --> 00:13:52,480 visualization finally analyze so power 355 00:13:52,480 --> 00:13:54,360 VI will have model power VA will have 356 00:13:54,360 --> 00:13:56,120 visualization but will not have data 357 00:13:56,120 --> 00:13:58,000 that is direct query mode now once you 358 00:13:58,000 --> 00:14:00,040 create your power bi report on the 359 00:14:00,040 --> 00:14:02,720 desktop with help of transformation 360 00:14:02,720 --> 00:14:06,320 using power query and measures and 361 00:14:06,320 --> 00:14:08,800 calculation using Dex and finally 362 00:14:08,800 --> 00:14:11,480 creating visualization using powerbi you 363 00:14:11,480 --> 00:14:15,880 can publish this file on powerbi 364 00:14:17,279 --> 00:14:21,240 service powerbi service is the ecosystem 365 00:14:21,240 --> 00:14:23,440 where you are going to share this report 366 00:14:23,440 --> 00:14:25,759 and do the collaboration with other user 367 00:14:25,759 --> 00:14:28,399 powerb desktop is a development tool it 368 00:14:28,399 --> 00:14:30,959 does not have security you can create 369 00:14:30,959 --> 00:14:33,639 roles to apply the security on powerbi 370 00:14:33,639 --> 00:14:36,399 service but unlike Excel where it is 371 00:14:36,399 --> 00:14:38,440 password protected that's not powerb 372 00:14:38,440 --> 00:14:40,240 desktop powerb desktop all the 373 00:14:40,240 --> 00:14:42,040 information is available you can 374 00:14:42,040 --> 00:14:44,440 restrict what you wanted to load but the 375 00:14:44,440 --> 00:14:46,320 entire information is available so once 376 00:14:46,320 --> 00:14:48,040 you are done with your development on 377 00:14:48,040 --> 00:14:50,480 powerb desktop you publish it orto the 378 00:14:50,480 --> 00:14:52,759 powerbi service now if you are using on 379 00:14:52,759 --> 00:14:55,160 promise sources you need on promise 380 00:14:55,160 --> 00:14:56,920 Gateway way that include on promise 381 00:14:56,920 --> 00:14:59,160 databases like SQL server or Excel 382 00:14:59,160 --> 00:15:00,880 sheets you need on promise Gateway if 383 00:15:00,880 --> 00:15:03,240 your sources are Cloud you don't need on 384 00:15:03,240 --> 00:15:04,959 promise Gateway they can directly be 385 00:15:04,959 --> 00:15:07,639 refreshed on service remember in powerbi 386 00:15:07,639 --> 00:15:09,320 desktop you have a refresh button to 387 00:15:09,320 --> 00:15:11,440 refresh the data on the service we can 388 00:15:11,440 --> 00:15:13,240 schedule the data set refresh 389 00:15:13,240 --> 00:15:16,600 automatically to happen 8 times for pro 390 00:15:16,600 --> 00:15:19,880 48 times for premium users when when it 391 00:15:19,880 --> 00:15:23,120 goes to powerbi service the report which 392 00:15:23,120 --> 00:15:25,399 you publish the PBX which we have on the 393 00:15:25,399 --> 00:15:27,800 desktop it get divided into two parts 394 00:15:27,800 --> 00:15:30,279 one is data set or what we call a 395 00:15:30,279 --> 00:15:33,040 semantic model and another one is report 396 00:15:33,040 --> 00:15:35,720 the data set or what we call a semantic 397 00:15:35,720 --> 00:15:38,600 model it can also act as a source again 398 00:15:38,600 --> 00:15:41,600 and you can create report paginated 399 00:15:41,600 --> 00:15:44,040 report and dashboard on top of it you 400 00:15:44,040 --> 00:15:47,040 can take it back to the powerbi desktop 401 00:15:47,040 --> 00:15:48,759 and again create a report which you can 402 00:15:48,759 --> 00:15:51,959 publish you can re use it on the report 403 00:15:51,959 --> 00:15:54,279 developer paginated reports can be 404 00:15:54,279 --> 00:15:56,600 created using this data set and that can 405 00:15:56,600 --> 00:15:59,000 be published again on powerbi service 406 00:15:59,000 --> 00:16:01,560 known as paginated report so it means 407 00:16:01,560 --> 00:16:03,959 once you create the data set you will be 408 00:16:03,959 --> 00:16:06,440 able to use that it again and the 409 00:16:06,440 --> 00:16:07,959 connection this time we are going to 410 00:16:07,959 --> 00:16:09,759 create when we use the data set is known 411 00:16:09,759 --> 00:16:12,560 as live connection reports will have a 412 00:16:12,560 --> 00:16:14,240 live Connection in this case you can 413 00:16:14,240 --> 00:16:16,759 finally create a powerbi app and 414 00:16:16,759 --> 00:16:18,680 distribute the content and this is 415 00:16:18,680 --> 00:16:20,560 really helpful when you want to 416 00:16:20,560 --> 00:16:22,199 distribute it to the large number of 417 00:16:22,199 --> 00:16:24,880 user you can combine multiple reports 418 00:16:24,880 --> 00:16:27,360 along with the dashboards and share it 419 00:16:27,360 --> 00:16:29,720 with user you can create create multiple 420 00:16:29,720 --> 00:16:31,920 audiences and share different set of 421 00:16:31,920 --> 00:16:33,519 reports with them now let's talk a 422 00:16:33,519 --> 00:16:35,360 little bit about two components of the 423 00:16:35,360 --> 00:16:37,360 powerb desktop so one of the component 424 00:16:37,360 --> 00:16:39,440 of the powerb desktop was power query 425 00:16:39,440 --> 00:16:41,839 power query is used for data preparation 426 00:16:41,839 --> 00:16:43,720 data cleaning and data transformation 427 00:16:43,720 --> 00:16:47,160 Dex is used for creating complex measure 428 00:16:47,160 --> 00:16:49,480 calculations which help you to finally 429 00:16:49,480 --> 00:16:52,040 create the 430 00:16:53,959 --> 00:16:56,440 analysis so what happen is in power 431 00:16:56,440 --> 00:16:58,160 query whatever you transformation you 432 00:16:58,160 --> 00:17:00,600 create remain with that file but what 433 00:17:00,600 --> 00:17:02,480 happens if we have to do same kind of 434 00:17:02,480 --> 00:17:04,520 transformation again and again how do we 435 00:17:04,520 --> 00:17:08,039 keep its record across various users or 436 00:17:08,039 --> 00:17:10,160 various files so to address that power 437 00:17:10,160 --> 00:17:12,240 ba has come up with the online version 438 00:17:12,240 --> 00:17:14,520 of power query and that is known as data 439 00:17:14,520 --> 00:17:17,240 flow in powerbi world we use data flow 440 00:17:17,240 --> 00:17:20,319 gen one or data flow in Microsoft Fabric 441 00:17:20,319 --> 00:17:22,280 World we use the next version of data 442 00:17:22,280 --> 00:17:24,640 flow which is known as data flow Gen 2 443 00:17:24,640 --> 00:17:27,720 data flow Gen 2 is the online version of 444 00:17:27,720 --> 00:17:30,000 the power query and you can use it for 445 00:17:30,000 --> 00:17:32,360 data preparation data cleaning and data 446 00:17:32,360 --> 00:17:34,400 transformation now data flow Gen 2 447 00:17:34,400 --> 00:17:37,000 stores the data but it cannot create a 448 00:17:37,000 --> 00:17:39,360 data set so you have to bring it back to 449 00:17:39,360 --> 00:17:41,720 the powerbi desktop and then create your 450 00:17:41,720 --> 00:17:44,080 data set after you create the data set 451 00:17:44,080 --> 00:17:46,039 without creating a visualization you can 452 00:17:46,039 --> 00:17:48,000 publish that data set you can use that 453 00:17:48,000 --> 00:17:49,480 data set back to create the 454 00:17:49,480 --> 00:17:51,480 visualization and this is one of the 455 00:17:51,480 --> 00:17:53,880 pattern we use now in the data flow we 456 00:17:53,880 --> 00:17:56,600 may not have all the heavy tables 457 00:17:56,600 --> 00:17:58,840 Dimensions or the small table which 458 00:17:58,840 --> 00:18:00,760 which have lot of transformation can be 459 00:18:00,760 --> 00:18:02,600 part of data flow so have the dimension 460 00:18:02,600 --> 00:18:04,440 table or small table having lot of 461 00:18:04,440 --> 00:18:06,360 transformation in the data flow take it 462 00:18:06,360 --> 00:18:08,640 to the powerb desktop merge it with 463 00:18:08,640 --> 00:18:11,440 other fact tables create relationship 464 00:18:11,440 --> 00:18:13,679 create measures create all the complex 465 00:18:13,679 --> 00:18:15,559 calculation which you require without 466 00:18:15,559 --> 00:18:17,799 creating a visualization publish it and 467 00:18:17,799 --> 00:18:20,280 create a powerb data set or what we call 468 00:18:20,280 --> 00:18:23,120 a semantic model so the term which we 469 00:18:23,120 --> 00:18:26,520 are using now for few months is semantic 470 00:18:26,520 --> 00:18:29,400 model create your semantic model and use 471 00:18:29,400 --> 00:18:31,360 that in the live connection on powerbi 472 00:18:31,360 --> 00:18:33,799 desktop or in powerbi service itself you 473 00:18:33,799 --> 00:18:35,840 can create the report and visualization 474 00:18:35,840 --> 00:18:38,559 same can be used in power P now now you 475 00:18:38,559 --> 00:18:40,480 would have understood why I kept PBI 476 00:18:40,480 --> 00:18:43,000 data flow 477 00:18:44,240 --> 00:18:47,360 here then what is this one Lake and what 478 00:18:47,360 --> 00:18:50,400 is this almost very similar icon what 479 00:18:50,400 --> 00:18:53,080 happens is basically in Microsoft fabric 480 00:18:53,080 --> 00:18:54,919 we have a direct Lake connector in 481 00:18:54,919 --> 00:18:57,000 Microsoft fabric most of the things 482 00:18:57,000 --> 00:18:59,880 resides on Lake where whether it is the 483 00:18:59,880 --> 00:19:01,919 structure data or unstructured data we 484 00:19:01,919 --> 00:19:04,480 save it using lakehouses or warehouses 485 00:19:04,480 --> 00:19:06,799 and lak houses and warehouses create a 486 00:19:06,799 --> 00:19:09,280 data set or what we call a semantic 487 00:19:09,280 --> 00:19:12,000 model the data set or what we call a 488 00:19:12,000 --> 00:19:15,320 semantic model directly gives you data 489 00:19:15,320 --> 00:19:17,320 from lake houses and warehouses and it 490 00:19:17,320 --> 00:19:20,799 doesn't need a direct query it is a best 491 00:19:20,799 --> 00:19:22,520 possible merge of import and direct 492 00:19:22,520 --> 00:19:25,240 query so there is a new connection type 493 00:19:25,240 --> 00:19:27,520 which is direct Lake connection type so 494 00:19:27,520 --> 00:19:29,320 when you connect to the one L Lake you 495 00:19:29,320 --> 00:19:31,600 get a new kind of connection which is a 496 00:19:31,600 --> 00:19:33,960 direct Lake connection semantic model 497 00:19:33,960 --> 00:19:36,360 created on the lake houses or warehouses 498 00:19:36,360 --> 00:19:39,000 or the custom semantic models created on 499 00:19:39,000 --> 00:19:40,600 lake houses or Warehouse so in this 500 00:19:40,600 --> 00:19:43,000 manner you can use the direct Lake 501 00:19:43,000 --> 00:19:45,000 connection and you can now create the 502 00:19:45,000 --> 00:19:47,000 reports using the direct Lake connection 503 00:19:47,000 --> 00:19:48,679 and then publish them it again to the 504 00:19:48,679 --> 00:19:49,640 power 505 00:19:49,640 --> 00:19:52,200 ba there is one different version of 506 00:19:52,200 --> 00:19:55,400 powerb which is known as powerbi report 507 00:19:55,400 --> 00:19:57,919 server which can be installed on premise 508 00:19:57,919 --> 00:19:59,400 there is a special IAL version of 509 00:19:59,400 --> 00:20:01,679 powerbi desktop available for that that 510 00:20:01,679 --> 00:20:04,120 is known as powerbi desktop optimized 511 00:20:04,120 --> 00:20:06,720 for report it is usually 3 to 6 month 512 00:20:06,720 --> 00:20:08,840 behind from the current powerbi and it 513 00:20:08,840 --> 00:20:10,799 also does not include preview features 514 00:20:10,799 --> 00:20:12,480 there's a whole list of comparison what 515 00:20:12,480 --> 00:20:14,720 you don't get available on the Microsoft 516 00:20:14,720 --> 00:20:18,559 side powerbi desktop or powerbi we get 517 00:20:18,559 --> 00:20:22,039 11 releases per year other than January 518 00:20:22,039 --> 00:20:24,080 every month we will have one release so 519 00:20:24,080 --> 00:20:26,159 your powerb desktop keep on updating 520 00:20:26,159 --> 00:20:28,039 every month but that's not true with 521 00:20:28,039 --> 00:20:30,360 reports or we have only three releases 522 00:20:30,360 --> 00:20:33,960 in a year and because powerbi does 11 523 00:20:33,960 --> 00:20:36,640 releases it's really important that you 524 00:20:36,640 --> 00:20:41,360 keep eye on blog. powerbi.com and always 525 00:20:41,360 --> 00:20:44,520 keep on monitoring the latest update 526 00:20:44,520 --> 00:20:46,799 because feature keep on changing fast 527 00:20:46,799 --> 00:20:49,559 one of the reason of creating this video 528 00:20:49,559 --> 00:20:52,039 again that we have got quite a few new 529 00:20:52,039 --> 00:20:54,320 features and there is so many changes in 530 00:20:54,320 --> 00:20:57,360 the UI that it could not have been done 531 00:20:57,360 --> 00:20:59,679 without creating a new new video and 532 00:20:59,679 --> 00:21:02,720 that is why we again created this entire 533 00:21:02,720 --> 00:21:05,640 video for you to learn the powerbi on 534 00:21:05,640 --> 00:21:07,600 the latest version which has been 535 00:21:07,600 --> 00:21:10,240 released in December 536 00:21:10,240 --> 00:21:13,559 2023 so now let us understand the 537 00:21:13,559 --> 00:21:17,640 process of creating a powerbi login one 538 00:21:17,640 --> 00:21:20,960 of the best method is that admin of the 539 00:21:20,960 --> 00:21:23,960 tenant should use admin. 540 00:21:23,960 --> 00:21:26,840 microsoft.com if you have your own a 541 00:21:26,840 --> 00:21:29,840 registered domain for that domain you 542 00:21:29,840 --> 00:21:32,679 should go ahead and register yourself to 543 00:21:32,679 --> 00:21:34,320 admin. 544 00:21:34,320 --> 00:21:36,760 microsoft.com and once an organization 545 00:21:36,760 --> 00:21:40,279 able to register and admin on admin. 546 00:21:40,279 --> 00:21:43,120 microsoft.com you will be able to create 547 00:21:43,120 --> 00:21:46,679 users and able to assign the licenses to 548 00:21:46,679 --> 00:21:50,240 them so let me go ahead and showcase you 549 00:21:50,240 --> 00:21:53,159 how you are going to do that on admin. 550 00:21:53,159 --> 00:21:56,559 microsoft.com so first of all log to 551 00:21:56,559 --> 00:21:59,039 admin. microsoft.com 552 00:21:59,039 --> 00:22:02,159 I'm assuming you already have the admin. 553 00:22:02,159 --> 00:22:05,720 microsoft.com access and you are admin 554 00:22:05,720 --> 00:22:07,840 if not then this step need to be 555 00:22:07,840 --> 00:22:10,960 executed by your admin the admin need to 556 00:22:10,960 --> 00:22:15,200 go and register a new user and under the 557 00:22:15,200 --> 00:22:17,279 user management either you will click on 558 00:22:17,279 --> 00:22:19,159 the users active users and you should 559 00:22:19,159 --> 00:22:21,840 get that option add users or on the 560 00:22:21,840 --> 00:22:23,960 homepage you will also get it so click 561 00:22:23,960 --> 00:22:26,880 here on add a 562 00:22:27,039 --> 00:22:29,600 user you will get let a popup here you 563 00:22:29,600 --> 00:22:33,480 start giving details of the user 564 00:22:33,480 --> 00:22:36,080 Amit 565 00:22:36,080 --> 00:22:38,520 Amit will display name let me give a 566 00:22:38,520 --> 00:22:40,240 username here Amit 567 00:22:40,240 --> 00:22:43,159 C so I'm creating a new user on the 568 00:22:43,159 --> 00:22:47,000 Microsoft portal usually you can share 569 00:22:47,000 --> 00:22:49,720 this password to another email ID which 570 00:22:49,720 --> 00:22:51,559 could be the email ID of that person the 571 00:22:51,559 --> 00:22:53,480 personal email ID or the manager's email 572 00:22:53,480 --> 00:22:56,000 ID or the admin's email ID then go ahead 573 00:22:56,000 --> 00:22:59,159 and press next button 574 00:22:59,159 --> 00:23:00,840 and in the next button you can assign 575 00:23:00,840 --> 00:23:03,080 the licenses right now what I'm going to 576 00:23:03,080 --> 00:23:04,760 do is I'm not going to assign the 577 00:23:04,760 --> 00:23:08,480 license to this particular user I have 578 00:23:08,480 --> 00:23:10,279 the only thing which I can assign here 579 00:23:10,279 --> 00:23:13,039 is the Microsoft fabric free licenses I 580 00:23:13,039 --> 00:23:15,480 don't have any pro licenses to assign to 581 00:23:15,480 --> 00:23:18,360 it usually the organizations will have 582 00:23:18,360 --> 00:23:19,559 Pro 583 00:23:19,559 --> 00:23:22,159 licenses in my case in this tenant I 584 00:23:22,159 --> 00:23:23,919 don't have Pro licenses so I'll not be 585 00:23:23,919 --> 00:23:26,440 able to assign so I'll say create user 586 00:23:26,440 --> 00:23:30,679 without product licenses and press on 587 00:23:30,679 --> 00:23:32,919 next then it will ask for additional 588 00:23:32,919 --> 00:23:34,600 options which I'm going to 589 00:23:34,600 --> 00:23:37,600 skip these are the details anything I 590 00:23:37,600 --> 00:23:39,880 want to edit right now I can edit it and 591 00:23:39,880 --> 00:23:42,640 finish adding post that this user need 592 00:23:42,640 --> 00:23:45,919 to log in and change its password right 593 00:23:45,919 --> 00:23:47,960 now it is showing us the password which 594 00:23:47,960 --> 00:23:51,039 is this user is going to 595 00:23:51,039 --> 00:23:53,279 get so right now it is showing the 596 00:23:53,279 --> 00:23:55,080 details along with the password which 597 00:23:55,080 --> 00:23:57,000 this user is going to get for the first 598 00:23:57,000 --> 00:24:01,279 time this user need to log to app. 599 00:24:01,279 --> 00:24:03,600 powerbi.com or any other Microsoft 600 00:24:03,600 --> 00:24:06,400 application and reset its password if 601 00:24:06,400 --> 00:24:07,679 you have enabled two Factor 602 00:24:07,679 --> 00:24:09,880 authentication that also need to be 603 00:24:09,880 --> 00:24:12,720 enabled and by executing this exercise 604 00:24:12,720 --> 00:24:16,200 on app. powerbi.com the user will be 605 00:24:16,200 --> 00:24:19,480 able to claim the Microsoft fabric free 606 00:24:19,480 --> 00:24:21,720 license or the powerb free 607 00:24:21,720 --> 00:24:24,440 license if your organization has not 608 00:24:24,440 --> 00:24:25,760 disabled 609 00:24:25,760 --> 00:24:28,440 that I'm going to show you the next step 610 00:24:28,440 --> 00:24:31,320 how user in this case when we have not 611 00:24:31,320 --> 00:24:33,159 assigned him the license we go ahead 612 00:24:33,159 --> 00:24:36,919 reset its password and going to get the 613 00:24:36,919 --> 00:24:39,399 Microsoft fabric free license which is 614 00:24:39,399 --> 00:24:42,480 available for all the users in this 615 00:24:42,480 --> 00:24:43,799 particular 616 00:24:43,799 --> 00:24:48,080 tenant admin has registered your login 617 00:24:48,080 --> 00:24:52,120 and now the time has come to log to app. 618 00:24:52,120 --> 00:24:56,120 powerbi.com in the first login it may 619 00:24:56,120 --> 00:24:58,760 ask you to reset the password as as well 620 00:24:58,760 --> 00:25:01,799 as set up the two Factor authentication 621 00:25:01,799 --> 00:25:04,279 if that is the requirement from your 622 00:25:04,279 --> 00:25:07,399 tenant side or from your organization s 623 00:25:07,399 --> 00:25:11,919 so let's jump onto the app. powerbi.com 624 00:25:11,919 --> 00:25:16,399 open app. powerbi.com 625 00:25:16,399 --> 00:25:20,039 once it is open enter your email ID 626 00:25:20,039 --> 00:25:22,720 which has been provided to you by your 627 00:25:22,720 --> 00:25:26,200 admin once you give that email ID post 628 00:25:26,200 --> 00:25:29,720 that you can click on submit it will 629 00:25:29,720 --> 00:25:31,840 take you to the next page and ask for 630 00:25:31,840 --> 00:25:33,520 the password you have to give the 631 00:25:33,520 --> 00:25:38,279 password which admin has provided to 632 00:25:38,279 --> 00:25:43,880 you enter the password and click on sign 633 00:25:46,159 --> 00:25:50,120 in after you enter Because admin has set 634 00:25:50,120 --> 00:25:51,880 up your account and you are loging for 635 00:25:51,880 --> 00:25:54,720 the first time you need to reset the 636 00:25:54,720 --> 00:25:57,000 password by giving the new password and 637 00:25:57,000 --> 00:25:58,919 click on sign in 638 00:25:58,919 --> 00:26:02,320 then press next on the next screen now 639 00:26:02,320 --> 00:26:04,520 you need to set up the Microsoft 640 00:26:04,520 --> 00:26:06,760 authenticator or any other authenticator 641 00:26:06,760 --> 00:26:10,880 which you want click on that and 642 00:26:10,880 --> 00:26:14,720 next then you need to scan the code and 643 00:26:14,720 --> 00:26:17,760 you will be able to set up your 644 00:26:17,760 --> 00:26:20,399 authenticator provide the six-digit code 645 00:26:20,399 --> 00:26:23,919 from your authenticator here and then 646 00:26:23,919 --> 00:26:26,200 again press 647 00:26:26,200 --> 00:26:30,120 next your authentic is successful once 648 00:26:30,120 --> 00:26:31,799 the authentication is successful you 649 00:26:31,799 --> 00:26:34,360 should be able to sign in to app. 650 00:26:34,360 --> 00:26:38,039 powerbi.com once you log in you should 651 00:26:38,039 --> 00:26:42,000 be able to see a free account for you so 652 00:26:42,000 --> 00:26:44,480 authentication is successful let's go 653 00:26:44,480 --> 00:26:47,799 onto the right top the user details 654 00:26:47,799 --> 00:26:49,840 click on the user icon you should be 655 00:26:49,840 --> 00:26:53,279 able to see your email ID and the type 656 00:26:53,279 --> 00:26:55,960 of license what you have 657 00:26:55,960 --> 00:26:59,720 here here you can see I have got a free 658 00:26:59,720 --> 00:27:02,600 account and Microsoft fabric trial is 659 00:27:02,600 --> 00:27:05,760 also available for me in this manner you 660 00:27:05,760 --> 00:27:09,240 will be able to set up your account so 661 00:27:09,240 --> 00:27:12,240 now let's understand powerbi licenses 662 00:27:12,240 --> 00:27:14,399 typically powerbi licenses can be 663 00:27:14,399 --> 00:27:16,000 divided into three 664 00:27:16,000 --> 00:27:20,080 categories free license Pro license and 665 00:27:20,080 --> 00:27:23,320 premium license premium has two part PPU 666 00:27:23,320 --> 00:27:25,480 and premium capacity with the emergence 667 00:27:25,480 --> 00:27:29,919 of Microsoft fabric you have more 668 00:27:29,919 --> 00:27:32,480 options to know the information about 669 00:27:32,480 --> 00:27:34,399 powerbi licenses what you can do is 670 00:27:34,399 --> 00:27:40,320 search for Power bi licenses on the web 671 00:27:40,320 --> 00:27:42,120 and you will get the product pricing for 672 00:27:42,120 --> 00:27:43,360 Microsoft 673 00:27:43,360 --> 00:27:47,120 powerbi now when you go to the pricing 674 00:27:47,120 --> 00:27:48,440 depending on the country which you are 675 00:27:48,440 --> 00:27:49,840 in you can see the 676 00:27:49,840 --> 00:27:53,760 pricing and what I can do is in instead 677 00:27:53,760 --> 00:27:58,200 of in I can make itus 678 00:27:58,519 --> 00:28:00,760 so now I got the US pricing so depending 679 00:28:00,760 --> 00:28:02,399 on Country you can change it and get the 680 00:28:02,399 --> 00:28:06,360 pricing so first of all Microsoft 681 00:28:06,360 --> 00:28:09,039 powerbi in free fabric account you have 682 00:28:09,039 --> 00:28:11,679 a Microsoft fabric free account there 683 00:28:11,679 --> 00:28:15,120 you can get the free Microsoft powerbi 684 00:28:15,120 --> 00:28:16,720 Microsoft powerbi desktop is already 685 00:28:16,720 --> 00:28:19,799 free you have you can create a powerbi 686 00:28:19,799 --> 00:28:22,320 free account Fabric and you can get it 687 00:28:22,320 --> 00:28:24,519 then we have the powerbi pro license 688 00:28:24,519 --> 00:28:26,120 which is basically the user based 689 00:28:26,120 --> 00:28:29,960 license which is $10 per user per 690 00:28:29,960 --> 00:28:32,159 month and you can publish and share 691 00:28:32,159 --> 00:28:34,679 report powerbi Pro is included in 692 00:28:34,679 --> 00:28:38,279 Microsoft 365 E5 also and you can buy it 693 00:28:38,279 --> 00:28:40,399 using the credit card also then we have 694 00:28:40,399 --> 00:28:43,399 powerbi premium per user premium per 695 00:28:43,399 --> 00:28:45,640 user include the features that available 696 00:28:45,640 --> 00:28:48,799 in powerbi Pro additional feature in the 697 00:28:48,799 --> 00:28:51,159 powerbi premium there are few premium 698 00:28:51,159 --> 00:28:52,600 capacity features which are available 699 00:28:52,600 --> 00:28:55,360 here and you can buy it it is $20 per 700 00:28:55,360 --> 00:28:58,720 user per month so double the cost now 701 00:28:58,720 --> 00:29:01,080 when you further go 702 00:29:01,080 --> 00:29:04,200 down it talks about the capacity 703 00:29:04,200 --> 00:29:05,760 basically because of the merge with 704 00:29:05,760 --> 00:29:07,559 Microsoft fabric this is power be 705 00:29:07,559 --> 00:29:09,760 premium capacity can also be used for 706 00:29:09,760 --> 00:29:11,960 fabric so that is why Microsoft fabric 707 00:29:11,960 --> 00:29:14,880 power be premium capacity SKU the skus 708 00:29:14,880 --> 00:29:17,960 which start with P1 so those SKU you 709 00:29:17,960 --> 00:29:19,960 have do 710 00:29:19,960 --> 00:29:22,960 4,500 711 00:29:22,960 --> 00:29:26,720 4,995 which is P1 capacity include all 712 00:29:26,720 --> 00:29:28,760 the features available in power gain 713 00:29:28,760 --> 00:29:30,559 access to rest of the Microsoft fabric 714 00:29:30,559 --> 00:29:33,679 workloads as a unified product use Auto 715 00:29:33,679 --> 00:29:35,760 scale to respond to occasional unplanned 716 00:29:35,760 --> 00:29:38,399 outage and spike in the capacity by 717 00:29:38,399 --> 00:29:41,320 automatically adding one Vore at a time 718 00:29:41,320 --> 00:29:43,279 per hour so if you want to Auto scale 719 00:29:43,279 --> 00:29:45,440 then there are separate charges now when 720 00:29:45,440 --> 00:29:47,399 you go to Microsoft fabric capacity 721 00:29:47,399 --> 00:29:51,559 which is f64 equivalent of P1 you get 722 00:29:51,559 --> 00:29:53,559 licensed to your organization access for 723 00:29:53,559 --> 00:29:55,600 Microsoft Fabric in unified product 724 00:29:55,600 --> 00:29:58,080 experience that uses the same compute 725 00:29:58,080 --> 00:30:00,519 capacity and 726 00:30:00,519 --> 00:30:03,399 storage smaller entry level start from 727 00:30:03,399 --> 00:30:05,399 F2 so the capacity start from F2 in 728 00:30:05,399 --> 00:30:07,320 powerbi the premium capacity only start 729 00:30:07,320 --> 00:30:09,519 with one which is equivalent of f64 but 730 00:30:09,519 --> 00:30:12,279 here it start from F2 Microsoft as your 731 00:30:12,279 --> 00:30:14,080 consumption commitment 732 00:30:14,080 --> 00:30:17,120 eligible and gain access to full 733 00:30:17,120 --> 00:30:18,640 Microsoft fabric workload through 734 00:30:18,640 --> 00:30:20,760 unified product experience 735 00:30:20,760 --> 00:30:25,320 capacity that is also there then we have 736 00:30:25,320 --> 00:30:29,960 per month f64 SKU P1 equivalent 737 00:30:30,279 --> 00:30:33,519 Microsoft capacity pay as you go this is 738 00:30:33,519 --> 00:30:35,360 pay as you go this is very similar to 739 00:30:35,360 --> 00:30:38,640 the f64 but you can shut down this 740 00:30:38,640 --> 00:30:41,679 capacity pay as you go and this is 741 00:30:41,679 --> 00:30:44,080 basically you kind of hourly capacity 742 00:30:44,080 --> 00:30:45,559 which you again these kind of capacities 743 00:30:45,559 --> 00:30:50,799 start with F2 so F2 F4 f8 F32 f64 these 744 00:30:50,799 --> 00:30:53,279 kind of capacities are available then 745 00:30:53,279 --> 00:30:55,120 when you further go down it talks about 746 00:30:55,120 --> 00:30:58,919 E5 powerb desktop which is free you it's 747 00:30:58,919 --> 00:31:02,240 available Microsoft powerbi 748 00:31:02,240 --> 00:31:06,000 for mobile powerbi embedded when you 749 00:31:06,000 --> 00:31:08,440 further go down it compares the feature 750 00:31:08,440 --> 00:31:12,919 of powerbi with powerbi free account Pro 751 00:31:12,919 --> 00:31:14,720 account premium account and premium per 752 00:31:14,720 --> 00:31:17,519 capacity if you go down 753 00:31:17,519 --> 00:31:19,919 here look at 754 00:31:19,919 --> 00:31:21,880 this 755 00:31:21,880 --> 00:31:24,799 comparison so create reports with 756 00:31:24,799 --> 00:31:26,519 desktop available everywhere publish 757 00:31:26,519 --> 00:31:28,440 report and share collaboration 758 00:31:28,440 --> 00:31:30,799 see you can't do the collaboration 759 00:31:30,799 --> 00:31:33,000 without having any license so you so you 760 00:31:33,000 --> 00:31:34,880 at least need Pro license for 761 00:31:34,880 --> 00:31:37,440 collaboration then Advanced Ai and data 762 00:31:37,440 --> 00:31:39,440 flow data M xmla endpoints are only 763 00:31:39,440 --> 00:31:41,840 available in the premium feature all 764 00:31:41,840 --> 00:31:44,960 user can consume bi without paid per 765 00:31:44,960 --> 00:31:46,799 user license is only available with 766 00:31:46,799 --> 00:31:51,919 premium capacity P1 or f64 onwards so 767 00:31:51,919 --> 00:31:55,600 viewers viewers don't need license from 768 00:31:55,600 --> 00:31:58,360 those capacities onward 769 00:31:58,360 --> 00:32:01,840 access to all Microsoft fabric workload 770 00:32:01,840 --> 00:32:04,039 including data factory data engineering 771 00:32:04,039 --> 00:32:04,919 data 772 00:32:04,919 --> 00:32:07,480 warehousing data science realtime 773 00:32:07,480 --> 00:32:10,440 analytics and data activator is only 774 00:32:10,440 --> 00:32:13,919 available with P1 capacity or f64 775 00:32:13,919 --> 00:32:17,120 capacity premium capacity memory size 776 00:32:17,120 --> 00:32:20,480 limit for you will very get very small 777 00:32:20,480 --> 00:32:22,720 memory size limit for free account 1 GB 778 00:32:22,720 --> 00:32:26,600 for pro 100 GB for PPU and 400 GB for P1 779 00:32:26,600 --> 00:32:29,559 premium capacity refresh rates for 780 00:32:29,559 --> 00:32:32,559 powerbi data sets 8 per day for pro 48 781 00:32:32,559 --> 00:32:34,639 per day for PPU and 48 per day for 782 00:32:34,639 --> 00:32:35,799 premium 783 00:32:35,799 --> 00:32:38,320 capacity maximum 784 00:32:38,320 --> 00:32:40,799 storage powerbi native storage when you 785 00:32:40,799 --> 00:32:42,519 are using powerbi then this is 786 00:32:42,519 --> 00:32:46,600 applicable 10gb PPU 100 TB and premium 787 00:32:46,600 --> 00:32:49,919 capacity P1 100 TB data security 788 00:32:49,919 --> 00:32:51,919 encryption available everywhere one L 789 00:32:51,919 --> 00:32:54,919 Storage one L B CDR storage one Lake 790 00:32:54,919 --> 00:32:57,480 cache one networking only available with 791 00:32:57,480 --> 00:32:59,399 premium prium capacity or Microsoft 792 00:32:59,399 --> 00:33:01,760 fabric capacities there are additional 793 00:33:01,760 --> 00:33:04,600 notes and comments I will also provide 794 00:33:04,600 --> 00:33:07,120 the link of this one into the 795 00:33:07,120 --> 00:33:10,320 description so those who have looked at 796 00:33:10,320 --> 00:33:13,320 the older pricing now you will see few 797 00:33:13,320 --> 00:33:14,559 difference in the pricing and these 798 00:33:14,559 --> 00:33:16,039 differences have came because of the 799 00:33:16,039 --> 00:33:18,600 availability of Microsoft fabric and 800 00:33:18,600 --> 00:33:20,880 fabric capacities previously without 801 00:33:20,880 --> 00:33:22,799 having a premium capacity you cannot buy 802 00:33:22,799 --> 00:33:24,760 a capacity that's not true in case of 803 00:33:24,760 --> 00:33:27,519 Microsoft Fabric World you can buy a F2 804 00:33:27,519 --> 00:33:29,360 Capac and start with that and you can 805 00:33:29,360 --> 00:33:32,639 buy priv Pro licenses and can start 806 00:33:32,639 --> 00:33:35,360 using the all the features of Microsoft 807 00:33:35,360 --> 00:33:37,360 Fabric and 808 00:33:37,360 --> 00:33:39,080 powerbi 809 00:33:39,080 --> 00:33:42,320 so now you have lot M options to buy 810 00:33:42,320 --> 00:33:45,000 capacity because of Microsoft fabric 811 00:33:45,000 --> 00:33:47,960 allows you to to have capacity as low as 812 00:33:47,960 --> 00:33:51,600 F2 and the pricing start very low you 813 00:33:51,600 --> 00:33:53,320 can check out the prices on Microsoft 814 00:33:53,320 --> 00:33:57,159 fabric page for that 815 00:34:00,799 --> 00:34:03,159 let's understand various options to 816 00:34:03,159 --> 00:34:04,600 install 817 00:34:04,600 --> 00:34:07,799 powerbi there are two very common 818 00:34:07,799 --> 00:34:10,520 options to install powerbi download and 819 00:34:10,520 --> 00:34:13,760 install so you can go to the powerbi 820 00:34:13,760 --> 00:34:16,240 site or you can search on the internet 821 00:34:16,240 --> 00:34:18,599 download and install 822 00:34:18,599 --> 00:34:22,720 it what is the advantage of this you can 823 00:34:22,720 --> 00:34:25,639 control the installation version you can 824 00:34:25,639 --> 00:34:29,119 decide when to upgrade 825 00:34:29,119 --> 00:34:30,960 it is supported on the most of the 826 00:34:30,960 --> 00:34:34,119 versions of Windows and you don't need 827 00:34:34,119 --> 00:34:35,879 Microsoft store for that so if the 828 00:34:35,879 --> 00:34:38,520 Microsoft store is not there you don't 829 00:34:38,520 --> 00:34:40,639 need it but what is the 830 00:34:40,639 --> 00:34:44,919 disadvantage see powerbi updates 831 00:34:44,919 --> 00:34:47,240 almost once in a 832 00:34:47,240 --> 00:34:50,119 month if you don't update it is fair 833 00:34:50,119 --> 00:34:53,200 chances that you will be lagging behind 834 00:34:53,200 --> 00:34:55,359 and sometime I've seen users are as 835 00:34:55,359 --> 00:34:58,599 behind as one year and it is is really 836 00:34:58,599 --> 00:35:02,079 difficult from that stage to upgrade 837 00:35:02,079 --> 00:35:05,200 it you will miss out on the feature and 838 00:35:05,200 --> 00:35:07,599 new launches because you continue to 839 00:35:07,599 --> 00:35:10,240 work on older version and you might have 840 00:35:10,240 --> 00:35:13,480 a better solution available in the newer 841 00:35:13,480 --> 00:35:16,640 version which you may miss 842 00:35:17,400 --> 00:35:20,440 out the second way to install powerbi is 843 00:35:20,440 --> 00:35:21,880 use Microsoft 844 00:35:21,880 --> 00:35:25,320 Store you don't require admin privilege 845 00:35:25,320 --> 00:35:28,560 for the installer to install this one so 846 00:35:28,560 --> 00:35:31,400 if the Microsoft store is enabled you 847 00:35:31,400 --> 00:35:33,520 can install 848 00:35:33,520 --> 00:35:37,440 it as the power ba releases new versions 849 00:35:37,440 --> 00:35:39,680 it will get automatically updated so you 850 00:35:39,680 --> 00:35:42,040 will get 851 00:35:42,040 --> 00:35:44,760 it what is the disadvantage of this 852 00:35:44,760 --> 00:35:47,240 frequent update sometime what happens is 853 00:35:47,240 --> 00:35:49,880 when the new release comes in it has its 854 00:35:49,880 --> 00:35:52,760 own changes which has come in and some 855 00:35:52,760 --> 00:35:55,839 certain things may break because of that 856 00:35:55,839 --> 00:35:57,480 all of sudden you will start seeing 857 00:35:57,480 --> 00:35:59,839 those those 858 00:36:00,240 --> 00:36:02,880 changes now this is a better method 859 00:36:02,880 --> 00:36:04,800 because everybody in the organization 860 00:36:04,800 --> 00:36:06,640 would be on the same version if you 861 00:36:06,640 --> 00:36:08,680 download and install not everybody would 862 00:36:08,680 --> 00:36:12,920 be in the same version but yes there are 863 00:36:12,920 --> 00:36:17,560 methods where the it can install or push 864 00:36:17,560 --> 00:36:20,560 the powerbi version on all the desktop 865 00:36:20,560 --> 00:36:23,480 that can also be controlled using it so 866 00:36:23,480 --> 00:36:25,680 that is one more method where it can 867 00:36:25,680 --> 00:36:28,000 control what version you have and then 868 00:36:28,000 --> 00:36:29,960 they can keep the entire organization on 869 00:36:29,960 --> 00:36:32,560 the latest 870 00:36:32,960 --> 00:36:37,160 version to install powerbi I have opened 871 00:36:37,160 --> 00:36:40,480 my browser and in that I have used the 872 00:36:40,480 --> 00:36:44,880 search engine and searched for download 873 00:36:44,880 --> 00:36:47,800 powerbi after the search I got few 874 00:36:47,800 --> 00:36:50,400 results and the first result is the most 875 00:36:50,400 --> 00:36:53,240 appropriate result for me which is 876 00:36:53,240 --> 00:37:00,079 giving me link for HTTP power p by. 877 00:37:00,079 --> 00:37:03,440 microsoft.com us downloads depending on 878 00:37:03,440 --> 00:37:06,200 the country and language you can get 879 00:37:06,200 --> 00:37:10,079 different links once you click on this 880 00:37:10,079 --> 00:37:14,720 link you will get this page which is the 881 00:37:14,720 --> 00:37:18,480 powerbi download page scroll down on 882 00:37:18,480 --> 00:37:24,240 that and use Advanced download 883 00:37:24,280 --> 00:37:27,000 options once you click on the advanced 884 00:37:27,000 --> 00:37:29,000 download option you will come to the 885 00:37:29,000 --> 00:37:32,319 download page which will allow you to 886 00:37:32,319 --> 00:37:36,240 select the language and the download 887 00:37:36,240 --> 00:37:39,240 option if you go further down it will 888 00:37:39,240 --> 00:37:42,920 let you know which version and when that 889 00:37:42,920 --> 00:37:46,200 was release so right now when I'm 890 00:37:46,200 --> 00:37:48,880 recording in the latest version is 891 00:37:48,880 --> 00:37:51,880 published in December 892 00:37:51,880 --> 00:37:56,040 2023 and the version is 893 00:37:56,040 --> 00:37:59,160 2. 1 894 00:37:59,160 --> 00:38:01,720 24 895 00:38:01,720 --> 00:38:05,760 2124 do1 896 00:38:07,000 --> 00:38:11,599 052.0 if you further scroll down it will 897 00:38:11,599 --> 00:38:14,760 tell you about the uses of powerbi 898 00:38:14,760 --> 00:38:18,000 desktop and most importantly is the 899 00:38:18,000 --> 00:38:21,560 system requirement what all are 900 00:38:21,560 --> 00:38:24,839 supporting operating system and 901 00:38:24,839 --> 00:38:28,200 installation instruction 902 00:38:28,200 --> 00:38:33,480 you can also search for how to install 903 00:38:33,480 --> 00:38:38,920 powerbi and you will get link of this 904 00:38:38,920 --> 00:38:41,960 document I will share the link of this 905 00:38:41,960 --> 00:38:44,880 document in the 906 00:38:44,880 --> 00:38:48,160 description and if you go down it shows 907 00:38:48,160 --> 00:38:51,119 you the various options to 908 00:38:51,119 --> 00:38:54,119 install the link is also available on 909 00:38:54,119 --> 00:38:58,800 app. powerbi.com and we can can install 910 00:38:58,800 --> 00:39:02,240 by download and what are the different 911 00:39:02,240 --> 00:39:04,839 requirement so I can go back to the 912 00:39:04,839 --> 00:39:09,599 download page and download powerbi but 913 00:39:09,599 --> 00:39:12,240 this is not the mechanism I'm going to 914 00:39:12,240 --> 00:39:15,280 install as I've already told you there's 915 00:39:15,280 --> 00:39:16,160 an 916 00:39:16,160 --> 00:39:20,079 advantage of installing powerbi using 917 00:39:20,079 --> 00:39:24,040 Microsoft store so I'm going to use that 918 00:39:24,040 --> 00:39:26,319 but just for your reference I'll click 919 00:39:26,319 --> 00:39:29,640 on the download button button and use 920 00:39:29,640 --> 00:39:33,400 64bit because I'm working on a 64bit and 921 00:39:33,400 --> 00:39:35,599 click on 922 00:39:35,599 --> 00:39:38,839 download once it is downloaded you can 923 00:39:38,839 --> 00:39:42,359 doubleclick on it and follow the 924 00:39:42,359 --> 00:39:45,359 installation 925 00:39:45,960 --> 00:39:50,240 instruction powerb desktop download of 926 00:39:50,240 --> 00:39:53,560 exe file has been completed and if I 927 00:39:53,560 --> 00:39:57,520 click on it it will open the installing 928 00:39:57,520 --> 00:39:59,000 a 929 00:39:59,000 --> 00:40:04,359 window I can select a language and move 930 00:40:10,760 --> 00:40:15,040 forward it will ask for the 931 00:40:22,599 --> 00:40:26,520 permission and it will start installing 932 00:40:26,520 --> 00:40:29,319 the power B 933 00:40:30,640 --> 00:40:34,800 desktop and it will give you the 934 00:40:34,800 --> 00:40:38,200 visard so you can press on the next 935 00:40:38,200 --> 00:40:39,440 accept the 936 00:40:39,440 --> 00:40:44,200 agreement next you can choose a 937 00:40:44,200 --> 00:40:48,720 location next and click on install 938 00:40:48,720 --> 00:40:51,440 button I'm not going to click on the 939 00:40:51,440 --> 00:40:53,880 install button because I'm going to 940 00:40:53,880 --> 00:40:57,520 install the version which is provided by 941 00:40:57,520 --> 00:41:00,560 Microsoft store so you can install if 942 00:41:00,560 --> 00:41:04,280 you want the downloaded version the 943 00:41:04,280 --> 00:41:07,720 advantage of this that you can control 944 00:41:07,720 --> 00:41:10,160 which version you want it to have on 945 00:41:10,160 --> 00:41:11,319 your 946 00:41:11,319 --> 00:41:15,599 desktop but in any case make sure that 947 00:41:15,599 --> 00:41:21,000 you are not 3 to 6 month behind in the 948 00:41:22,119 --> 00:41:27,119 release I'm cancelling it 949 00:41:31,720 --> 00:41:37,079 and now let me search for store and open 950 00:41:37,079 --> 00:41:39,119 Microsoft 951 00:41:39,119 --> 00:41:43,760 store in Microsoft store I will search 952 00:41:43,760 --> 00:41:46,480 for 953 00:41:46,480 --> 00:41:50,400 powerbi once I search Power bi I get few 954 00:41:50,400 --> 00:41:53,119 option 955 00:41:53,760 --> 00:41:57,720 powerbi powerbi desktop power powerbi 956 00:41:57,720 --> 00:41:58,839 report 957 00:41:58,839 --> 00:42:04,160 Builder powerbi is powerbi app which is 958 00:42:04,160 --> 00:42:05,480 same as 959 00:42:05,480 --> 00:42:10,640 your iPhone app as well as your Android 960 00:42:10,640 --> 00:42:14,440 app it is Windows app what we need here 961 00:42:14,440 --> 00:42:19,200 is for our learning is power ba desktop 962 00:42:19,200 --> 00:42:23,119 and I'll click on 963 00:42:23,119 --> 00:42:26,520 get it will start downloading I double 964 00:42:26,520 --> 00:42:32,040 clicked on it it I can see the install 965 00:42:33,599 --> 00:42:37,480 button I can click on the install button 966 00:42:37,480 --> 00:42:41,040 and it will start downloading it and we 967 00:42:41,040 --> 00:42:43,680 install powerbi 968 00:42:43,680 --> 00:42:49,160 desktop on my Windows 969 00:42:51,240 --> 00:42:55,839 machine it may take little bit of 970 00:42:55,960 --> 00:42:59,960 time the the advantage of this method is 971 00:42:59,960 --> 00:43:02,599 every month Whenever there is a new 972 00:43:02,599 --> 00:43:07,319 release powerbi desktop will get 973 00:43:07,319 --> 00:43:10,160 automatically 974 00:43:10,160 --> 00:43:14,000 update once the installation is finished 975 00:43:14,000 --> 00:43:18,200 we will go ahead and start 976 00:43:18,200 --> 00:43:21,200 powerbi 977 00:43:22,079 --> 00:43:25,960 desktop continuing installing 978 00:43:25,960 --> 00:43:29,359 powerbi has has installed and time to 979 00:43:29,359 --> 00:43:33,359 open I can click open in the Microsoft 980 00:43:33,359 --> 00:43:37,920 store or I can search 981 00:43:38,040 --> 00:43:43,480 powerbi and open powerbi 982 00:43:43,480 --> 00:43:48,720 Desktop let me click on 983 00:43:51,040 --> 00:43:55,800 open power VI desktop is opening up 984 00:43:55,800 --> 00:43:58,800 and let let me give you a quick overview 985 00:43:58,800 --> 00:44:03,119 of powerbi desktop powerbi desktop has 986 00:44:03,119 --> 00:44:05,640 opened and it is showing me welcome 987 00:44:05,640 --> 00:44:08,599 screen some of you will not get the 988 00:44:08,599 --> 00:44:10,760 welcome screen because you might have 989 00:44:10,760 --> 00:44:15,200 enabled powerbi home from options and 990 00:44:15,200 --> 00:44:17,760 setting option preview feature that we 991 00:44:17,760 --> 00:44:21,359 will discuss in some time when you open 992 00:44:21,359 --> 00:44:23,480 the powerb desktop for the first time 993 00:44:23,480 --> 00:44:25,960 you'll get this welcome screen the get 994 00:44:25,960 --> 00:44:27,559 data option 995 00:44:27,559 --> 00:44:30,319 on the left hand side and recent sources 996 00:44:30,319 --> 00:44:32,160 you might not have recent sources for 997 00:44:32,160 --> 00:44:35,319 the first time but as you start creating 998 00:44:35,319 --> 00:44:37,319 content you will be able to see recent 999 00:44:37,319 --> 00:44:40,440 sources and also be able to see some of 1000 00:44:40,440 --> 00:44:43,559 your reports under this left hand side 1001 00:44:43,559 --> 00:44:46,680 section open other reports so what we 1002 00:44:46,680 --> 00:44:49,520 will do now is we will cross this screen 1003 00:44:49,520 --> 00:44:52,800 and enter into the powerbi desktop you 1004 00:44:52,800 --> 00:44:54,960 can start the Journey of the powerbi 1005 00:44:54,960 --> 00:44:57,040 desktop by signing in into the 1006 00:44:57,040 --> 00:44:59,319 appropriate 1007 00:44:59,319 --> 00:45:02,040 account or you can start your 1008 00:45:02,040 --> 00:45:03,800 development and when you want to publish 1009 00:45:03,800 --> 00:45:06,319 you have to sign in now before I tell 1010 00:45:06,319 --> 00:45:10,160 you how to sign in I would like to show 1011 00:45:10,160 --> 00:45:13,000 you what all we have on the powerb 1012 00:45:13,000 --> 00:45:16,000 desktop and some of this what we are 1013 00:45:16,000 --> 00:45:18,520 seeing is because of the settings I have 1014 00:45:18,520 --> 00:45:20,760 done on December 1015 00:45:20,760 --> 00:45:23,240 2023 and one of the setting which I have 1016 00:45:23,240 --> 00:45:27,800 done is available from December 2023 3 1017 00:45:27,800 --> 00:45:30,000 if you go down into the release notes of 1018 00:45:30,000 --> 00:45:33,559 December 2023 you will find that we have 1019 00:45:33,559 --> 00:45:36,480 been offered option when we opened it 1020 00:45:36,480 --> 00:45:40,160 for the first time is choose the pain 1021 00:45:40,160 --> 00:45:42,359 Arrangement that works for you you can 1022 00:45:42,359 --> 00:45:46,040 always customize the setup later by 1023 00:45:46,040 --> 00:45:49,559 going to settings keep current setup use 1024 00:45:49,559 --> 00:45:52,520 more classic pan setup I like this 1025 00:45:52,520 --> 00:45:54,440 classic pain setup where I have the 1026 00:45:54,440 --> 00:45:56,640 build visual I have the visualization 1027 00:45:56,640 --> 00:45:57,559 type 1028 00:45:57,559 --> 00:46:01,160 and I have used update setup now the old 1029 00:46:01,160 --> 00:46:04,200 setup which was there was because of own 1030 00:46:04,200 --> 00:46:06,119 object interaction which is still 1031 00:46:06,119 --> 00:46:09,000 enabled in my case and I will let you 1032 00:46:09,000 --> 00:46:11,079 know about that 1033 00:46:11,079 --> 00:46:13,960 setting those who want to follow this 1034 00:46:13,960 --> 00:46:17,520 video and want to learn I would 1035 00:46:17,520 --> 00:46:21,079 recommend them to use this option update 1036 00:46:21,079 --> 00:46:23,359 setup in case they are getting it but I 1037 00:46:23,359 --> 00:46:26,000 will let you know how you are going to 1038 00:46:26,000 --> 00:46:29,240 get some more options in your options 1039 00:46:29,240 --> 00:46:32,119 and setting where you will be enabled 1040 00:46:32,119 --> 00:46:34,520 these 1041 00:46:35,079 --> 00:46:38,839 things even if you have not chosen for 1042 00:46:38,839 --> 00:46:41,960 them for the first time so let me jump 1043 00:46:41,960 --> 00:46:44,839 back onto the powerbi desktop and give 1044 00:46:44,839 --> 00:46:48,520 you an overview of powerbi desktop on 1045 00:46:48,520 --> 00:46:51,680 the powerbi desktop on the top we have 1046 00:46:51,680 --> 00:46:54,839 this ribbon which contains the menu item 1047 00:46:54,839 --> 00:46:58,079 for file home which is currently open 1048 00:46:58,079 --> 00:47:02,040 insert modeling view optimize help and 1049 00:47:02,040 --> 00:47:06,440 external tools we will use them as we go 1050 00:47:06,440 --> 00:47:09,720 forward inside the Home tab you can see 1051 00:47:09,720 --> 00:47:12,559 get data using which you will be able to 1052 00:47:12,559 --> 00:47:15,839 get the data from various sources and we 1053 00:47:15,839 --> 00:47:19,079 will start our journey by getting Excel 1054 00:47:19,079 --> 00:47:23,200 Source at Excel workbook we have a quick 1055 00:47:23,200 --> 00:47:25,760 connector data Hub again we have quick 1056 00:47:25,760 --> 00:47:27,480 connector 1057 00:47:27,480 --> 00:47:30,640 powerbi semantic models data Mars lakeh 1058 00:47:30,640 --> 00:47:34,440 house warehouse and and kqal databases 1059 00:47:34,440 --> 00:47:37,160 equal server we can enter the data we 1060 00:47:37,160 --> 00:47:39,280 can use data verse as a connection and 1061 00:47:39,280 --> 00:47:41,119 we can use some of the recent 1062 00:47:41,119 --> 00:47:44,000 connection transform data is there to go 1063 00:47:44,000 --> 00:47:47,319 to Power query power query is used for 1064 00:47:47,319 --> 00:47:50,200 transformation of data and then you can 1065 00:47:50,200 --> 00:47:52,359 alter your data source setting or you 1066 00:47:52,359 --> 00:47:54,000 can modify some of the data source 1067 00:47:54,000 --> 00:47:56,960 setting using data source setting option 1068 00:47:56,960 --> 00:47:59,119 those of you who has enabled on object 1069 00:47:59,119 --> 00:48:01,839 interaction will get this visualization 1070 00:48:01,839 --> 00:48:04,359 option but if you don't see this option 1071 00:48:04,359 --> 00:48:06,640 it means the on object interaction is 1072 00:48:06,640 --> 00:48:08,800 not enabled when I'll go to the preview 1073 00:48:08,800 --> 00:48:12,079 feature I'll let you know more about 1074 00:48:12,079 --> 00:48:15,480 that in the insert tab again you have 1075 00:48:15,480 --> 00:48:18,160 the visualization insert option along 1076 00:48:18,160 --> 00:48:20,839 with the more 1077 00:48:21,359 --> 00:48:24,040 option then you have key influencer 1078 00:48:24,040 --> 00:48:27,480 decomposition tree narrative page report 1079 00:48:27,480 --> 00:48:29,960 power app power automate text boxes and 1080 00:48:29,960 --> 00:48:32,960 Etc all these are the visualization 1081 00:48:32,960 --> 00:48:36,839 which you can insert into the powerbi 1082 00:48:36,839 --> 00:48:39,079 desktop or the components which you can 1083 00:48:39,079 --> 00:48:43,319 insert to make or beautify your powerbi 1084 00:48:43,319 --> 00:48:46,079 desktop report and once you publish it 1085 00:48:46,079 --> 00:48:48,319 it will become the powerbi service 1086 00:48:48,319 --> 00:48:51,040 report under the modeling tab you will 1087 00:48:51,040 --> 00:48:53,799 get quite a few options right now some 1088 00:48:53,799 --> 00:48:56,960 of these options are disabled because of 1089 00:48:56,960 --> 00:49:00,079 the reason we have not added any data 1090 00:49:00,079 --> 00:49:03,160 once you add data depending 1091 00:49:03,160 --> 00:49:07,000 on what is available one or more option 1092 00:49:07,000 --> 00:49:09,640 will be enabled so manage relationship 1093 00:49:09,640 --> 00:49:11,319 once you want to create the relationship 1094 00:49:11,319 --> 00:49:13,839 new major once you have the data quick 1095 00:49:13,839 --> 00:49:15,960 measure to Quick create measures new 1096 00:49:15,960 --> 00:49:17,960 column to create new calculated column 1097 00:49:17,960 --> 00:49:20,559 new table is available back because we 1098 00:49:20,559 --> 00:49:24,200 can start our modeling by creating a DEX 1099 00:49:24,200 --> 00:49:27,000 table new parameter we will explore this 1100 00:49:27,000 --> 00:49:29,319 option later to create dynamicity in the 1101 00:49:29,319 --> 00:49:31,440 content and then we have language and 1102 00:49:31,440 --> 00:49:34,680 linguistic schema options in the view 1103 00:49:34,680 --> 00:49:37,799 options you have the theme which is one 1104 00:49:37,799 --> 00:49:39,920 of the first thing we are going to do 1105 00:49:39,920 --> 00:49:42,280 then we have the page view and the 1106 00:49:42,280 --> 00:49:44,319 mobile layout then we have grid lines 1107 00:49:44,319 --> 00:49:48,160 snap to grid lock objects etc for 1108 00:49:48,160 --> 00:49:50,960 various options on the top you have 1109 00:49:50,960 --> 00:49:54,720 various pan options which you can use to 1110 00:49:54,720 --> 00:49:57,079 enable and disable various panes so like 1111 00:49:57,079 --> 00:49:59,760 for filter 1112 00:50:00,680 --> 00:50:04,440 pane I can enable or disable it using 1113 00:50:04,440 --> 00:50:07,200 the filter 1114 00:50:07,200 --> 00:50:09,839 pan so as you can see now there is no 1115 00:50:09,839 --> 00:50:12,079 filter 1116 00:50:12,079 --> 00:50:14,760 pan I have enabled it again similarly 1117 00:50:14,760 --> 00:50:17,160 you can see the data pane here the build 1118 00:50:17,160 --> 00:50:19,720 visual pane here format pan here and 1119 00:50:19,720 --> 00:50:22,319 then you can customize by clicking here 1120 00:50:22,319 --> 00:50:25,720 or you can add by checking it here so 1121 00:50:25,720 --> 00:50:27,520 both of them are going to do the same 1122 00:50:27,520 --> 00:50:29,760 job let me enable The Bookmark tab I got 1123 00:50:29,760 --> 00:50:31,960 a bookmark Tab and as you would have 1124 00:50:31,960 --> 00:50:34,720 noticed the moment I pressed this and I 1125 00:50:34,720 --> 00:50:38,400 got this I this is also enabled so let 1126 00:50:38,400 --> 00:50:42,119 me disable let's say format 1127 00:50:42,119 --> 00:50:44,880 pan so there is no format pan available 1128 00:50:44,880 --> 00:50:46,559 let me disable the data pan now there is 1129 00:50:46,559 --> 00:50:49,720 no data pan we got the data pan we got a 1130 00:50:49,720 --> 00:50:52,280 format pan here now we got a selection 1131 00:50:52,280 --> 00:50:54,400 pan also and as you can see the 1132 00:50:54,400 --> 00:50:58,520 selection is enabled here 1133 00:50:58,960 --> 00:51:01,280 also and to get the selection pan you 1134 00:51:01,280 --> 00:51:03,520 can click some of the panes will open in 1135 00:51:03,520 --> 00:51:05,559 a mode where they are not expanded so if 1136 00:51:05,559 --> 00:51:07,559 they are not expanded you can actually 1137 00:51:07,559 --> 00:51:11,559 click on the pan here and expand it 1138 00:51:11,559 --> 00:51:13,480 similarly we have performance analyzer 1139 00:51:13,480 --> 00:51:18,040 pan again on the top and on the 1140 00:51:18,240 --> 00:51:20,640 left and once it is open and if it is 1141 00:51:20,640 --> 00:51:22,319 not visible you can click on the left 1142 00:51:22,319 --> 00:51:24,280 hand side to check it out performance 1143 00:51:24,280 --> 00:51:26,040 analyzer help us to analyze the 1144 00:51:26,040 --> 00:51:28,240 performance of the visual and we can see 1145 00:51:28,240 --> 00:51:31,119 the timing and we can go ahead and 1146 00:51:31,119 --> 00:51:33,520 analyze that in a better manner syn 1147 00:51:33,520 --> 00:51:36,200 slices is another pan which we can open 1148 00:51:36,200 --> 00:51:38,400 to sync these slices the feature we will 1149 00:51:38,400 --> 00:51:39,799 explore 1150 00:51:39,799 --> 00:51:43,480 later I'm collapsing all 1151 00:51:43,480 --> 00:51:47,359 these and take my focus to the one of 1152 00:51:47,359 --> 00:51:49,880 the pane on the left hand side which 1153 00:51:49,880 --> 00:51:52,040 contains the various views the report 1154 00:51:52,040 --> 00:51:54,640 view which currently we are on then we 1155 00:51:54,640 --> 00:51:57,599 have the table View model view and 1156 00:51:57,599 --> 00:52:02,000 recently we also got Dex query view now 1157 00:52:02,000 --> 00:52:03,960 table view right now would be empty once 1158 00:52:03,960 --> 00:52:07,319 we have the table and which is which can 1159 00:52:07,319 --> 00:52:09,319 be seen on the right hand side on the 1160 00:52:09,319 --> 00:52:11,319 data view we will be able to see some 1161 00:52:11,319 --> 00:52:14,119 table and data table table view or the 1162 00:52:14,119 --> 00:52:16,720 data display is dependent on which kind 1163 00:52:16,720 --> 00:52:18,079 of 1164 00:52:18,079 --> 00:52:20,920 mode usually all the import mode tables 1165 00:52:20,920 --> 00:52:23,280 are available in case of pure play 1166 00:52:23,280 --> 00:52:25,119 direct query and live mode we might not 1167 00:52:25,119 --> 00:52:27,760 even get the table View then we have the 1168 00:52:27,760 --> 00:52:29,400 model view where we will be able to see 1169 00:52:29,400 --> 00:52:32,400 our model and the Dex query view where 1170 00:52:32,400 --> 00:52:35,319 we will be able to run the Dex query 1171 00:52:35,319 --> 00:52:38,839 inside the Dex query View and inside the 1172 00:52:38,839 --> 00:52:42,559 relationship view both views contain 1173 00:52:42,559 --> 00:52:45,040 something known as model and this will 1174 00:52:45,040 --> 00:52:47,640 help us in creating calculation 1175 00:52:47,640 --> 00:52:51,440 groups calculation groups were 1176 00:52:51,440 --> 00:52:54,680 previously created using external tools 1177 00:52:54,680 --> 00:52:57,079 like tabular editor 1178 00:52:57,079 --> 00:52:59,799 but now we can create calculation group 1179 00:52:59,799 --> 00:53:03,200 inside the powerbi desktop and we will 1180 00:53:03,200 --> 00:53:06,480 explore that 1181 00:53:06,559 --> 00:53:09,400 also before we go into the options and 1182 00:53:09,400 --> 00:53:11,720 setting just let's quickly look at which 1183 00:53:11,720 --> 00:53:14,079 version of powerb are 1184 00:53:14,079 --> 00:53:17,040 on I know we have installed a particular 1185 00:53:17,040 --> 00:53:19,240 version but in case you wanted to check 1186 00:53:19,240 --> 00:53:20,520 because there are monthly updates 1187 00:53:20,520 --> 00:53:21,880 ongoing and you want to know which 1188 00:53:21,880 --> 00:53:25,119 version you are on click on file go to 1189 00:53:25,119 --> 00:53:28,520 about and you will be able to see which 1190 00:53:28,520 --> 00:53:32,640 version of powerbi desktop you are 1191 00:53:39,280 --> 00:53:42,839 on what we are going to do now is we are 1192 00:53:42,839 --> 00:53:44,880 going to 1193 00:53:44,880 --> 00:53:48,400 enable the preview features or I'm going 1194 00:53:48,400 --> 00:53:50,400 to tell you what preview features I have 1195 00:53:50,400 --> 00:53:53,599 enabled so when we take this journey you 1196 00:53:53,599 --> 00:53:56,680 are on the same page where I am now now 1197 00:53:56,680 --> 00:53:59,599 as power beer releases almost One 1198 00:53:59,599 --> 00:54:02,680 release per month some of these features 1199 00:54:02,680 --> 00:54:04,920 will change over a period of time from 1200 00:54:04,920 --> 00:54:07,760 the public preview they will went to GA 1201 00:54:07,760 --> 00:54:09,559 and there would be no options for that 1202 00:54:09,559 --> 00:54:12,119 in public preview there might be option 1203 00:54:12,119 --> 00:54:13,880 in some other setting for enabling and 1204 00:54:13,880 --> 00:54:17,280 disabling and same way there will be 1205 00:54:17,280 --> 00:54:19,200 some new features which are coming in 1206 00:54:19,200 --> 00:54:20,440 which will appear in the preview 1207 00:54:20,440 --> 00:54:23,040 features so first of all let's go ahead 1208 00:54:23,040 --> 00:54:25,799 and explore what all we have inside the 1209 00:54:25,799 --> 00:54:28,160 options and setting an option to go 1210 00:54:28,160 --> 00:54:30,760 there you need to click on 1211 00:54:30,760 --> 00:54:34,920 file options and setting 1212 00:54:36,920 --> 00:54:40,200 options and you will get a popup and in 1213 00:54:40,200 --> 00:54:43,559 this popup you have options like data 1214 00:54:43,559 --> 00:54:46,559 load and inside the data load you have 1215 00:54:46,559 --> 00:54:49,640 type detection like detect type and 1216 00:54:49,640 --> 00:54:52,240 header of unstructured source according 1217 00:54:52,240 --> 00:54:54,799 to each file setting means the file 1218 00:54:54,799 --> 00:54:56,200 setting is going to decide whether we 1219 00:54:56,200 --> 00:54:58,760 need to do it or not background data 1220 00:54:58,760 --> 00:55:00,760 allow the data previews to download in 1221 00:55:00,760 --> 00:55:02,880 the background according to each file 1222 00:55:02,880 --> 00:55:04,520 setting means it is depending on the 1223 00:55:04,520 --> 00:55:07,920 file setting parallel data loading when 1224 00:55:07,920 --> 00:55:11,040 you load the data into powerbi via 1225 00:55:11,040 --> 00:55:13,160 import mode or direct query mode each 1226 00:55:13,160 --> 00:55:15,640 table is backed by power query these 1227 00:55:15,640 --> 00:55:17,760 query are evaluated simultaneously 1228 00:55:17,760 --> 00:55:19,359 instead of one by one so how much 1229 00:55:19,359 --> 00:55:21,880 parallelism you want you have enabled 1230 00:55:21,880 --> 00:55:25,079 that typically we keep this enabled 1231 00:55:25,079 --> 00:55:27,039 autod date time intelligence but I 1232 00:55:27,039 --> 00:55:29,440 personally don't prefer it but at least 1233 00:55:29,440 --> 00:55:31,200 I would like to show you what does that 1234 00:55:31,200 --> 00:55:33,920 mean so I'm keeping it right now clear 1235 00:55:33,920 --> 00:55:35,799 cach a data management cache if you want 1236 00:55:35,799 --> 00:55:38,079 to clear you can clear from here or you 1237 00:55:38,079 --> 00:55:40,480 can change the size if you have a pretty 1238 00:55:40,480 --> 00:55:43,319 big file I will recommend you to keep it 1239 00:55:43,319 --> 00:55:49,520 from 8 to 10 GB like 81 9 1240 00:55:49,520 --> 00:55:52,880 2 Q&A cache for the 1241 00:55:52,880 --> 00:55:55,920 Q&A and folder artifact cache if you 1242 00:55:55,920 --> 00:55:58,359 want to clear that then you have option 1243 00:55:58,359 --> 00:56:01,000 for power query editor display the power 1244 00:56:01,000 --> 00:56:04,200 query setting Pane and display form up 1245 00:56:04,200 --> 00:56:07,480 bar is default enabled data import enabl 1246 00:56:07,480 --> 00:56:10,559 web table interface is enabled data 1247 00:56:10,559 --> 00:56:12,920 preview I have enabled show white spaces 1248 00:56:12,920 --> 00:56:15,240 and new line correctors and if you don't 1249 00:56:15,240 --> 00:56:17,359 enable it you will not see it display 1250 00:56:17,359 --> 00:56:20,359 preview content using monospaced font is 1251 00:56:20,359 --> 00:56:23,280 disabled parameters Al always allow 1252 00:56:23,280 --> 00:56:25,480 parameterization in data source and 1253 00:56:25,480 --> 00:56:27,599 transformation dialogue as of now it is 1254 00:56:27,599 --> 00:56:30,400 disabled but we can enable this feature 1255 00:56:30,400 --> 00:56:32,520 which will allows the 1256 00:56:32,520 --> 00:56:35,000 parameterization and formula enable M 1257 00:56:35,000 --> 00:56:36,960 intelligence in the formula bar Advanced 1258 00:56:36,960 --> 00:56:39,799 editor and custom dialogue and there is 1259 00:56:39,799 --> 00:56:41,839 the information given here changing this 1260 00:56:41,839 --> 00:56:43,520 setting will take place when you next 1261 00:56:43,520 --> 00:56:45,640 time open the powerquery editor so it 1262 00:56:45,640 --> 00:56:47,319 means some of these settings will not 1263 00:56:47,319 --> 00:56:50,119 apply as soon as you press okay you have 1264 00:56:50,119 --> 00:56:53,280 to open the power VI again me you could 1265 00:56:53,280 --> 00:56:54,799 close it and open it 1266 00:56:54,799 --> 00:56:58,400 again Direct query sap Hana as relation 1267 00:56:58,400 --> 00:57:00,920 sources now we are not planning to work 1268 00:57:00,920 --> 00:57:04,319 on sap Hana so we'll leave it as is 1269 00:57:04,319 --> 00:57:06,240 scripting right now I'm not updating any 1270 00:57:06,240 --> 00:57:09,039 R script option also not updating any 1271 00:57:09,039 --> 00:57:11,240 python script option whatever options 1272 00:57:11,240 --> 00:57:14,000 you are seeing is because I already have 1273 00:57:14,000 --> 00:57:16,839 installed python on my system security 1274 00:57:16,839 --> 00:57:19,319 option this is another important option 1275 00:57:19,319 --> 00:57:21,160 now in this option there are few 1276 00:57:21,160 --> 00:57:23,119 important things which you should do 1277 00:57:23,119 --> 00:57:25,559 here is one of the thing is if you want 1278 00:57:25,559 --> 00:57:28,920 to enable the argis and field map visual 1279 00:57:28,920 --> 00:57:31,720 make sure they are enabled similarly 1280 00:57:31,720 --> 00:57:34,480 authentication browser you should always 1281 00:57:34,480 --> 00:57:36,960 choose use my default browser unless it 1282 00:57:36,960 --> 00:57:39,760 stopped working sign in experience use 1283 00:57:39,760 --> 00:57:41,680 updated signin experience you can use 1284 00:57:41,680 --> 00:57:44,799 that approved adfs authentication 1285 00:57:44,799 --> 00:57:47,280 Service you have not approved any 1286 00:57:47,280 --> 00:57:49,280 authentication Service so there is no 1287 00:57:49,280 --> 00:57:52,160 option coming in then for privacy I'm 1288 00:57:52,160 --> 00:57:54,480 keeping combined data according to each 1289 00:57:54,480 --> 00:57:58,119 file privacy setting 1290 00:57:58,680 --> 00:58:00,680 in the regional setting I'm keeping my 1291 00:58:00,680 --> 00:58:03,680 default Windows setting and language it 1292 00:58:03,680 --> 00:58:06,039 it means it's going to follow my windows 1293 00:58:06,039 --> 00:58:07,720 display language setting and I'm going 1294 00:58:07,720 --> 00:58:10,119 to keep it like that in case you want 1295 00:58:10,119 --> 00:58:12,960 you can use the model 1296 00:58:12,960 --> 00:58:15,839 language updates I'm not going to change 1297 00:58:15,839 --> 00:58:19,280 anything here uses data you can disable 1298 00:58:19,280 --> 00:58:21,960 this feature if you don't want to send 1299 00:58:21,960 --> 00:58:24,200 any data to 1300 00:58:24,200 --> 00:58:26,799 Microsoft diagnosis right now I have not 1301 00:58:26,799 --> 00:58:27,880 enabled 1302 00:58:27,880 --> 00:58:32,240 tressing or crash T collection but at 1303 00:58:32,240 --> 00:58:35,119 few places the diagnosis is on is 1304 00:58:35,119 --> 00:58:37,240 basically query diagnosis enable in 1305 00:58:37,240 --> 00:58:40,319 report and query editor diagnosis level 1306 00:58:40,319 --> 00:58:43,000 Aggregate and detail additional details 1307 00:58:43,000 --> 00:58:44,760 are also 1308 00:58:44,760 --> 00:58:47,039 enabled review feature and one of the 1309 00:58:47,039 --> 00:58:48,720 most important feature which we are 1310 00:58:48,720 --> 00:58:51,200 talking about shape map visual is 1311 00:58:51,200 --> 00:58:55,520 enabled here as you can see Q is enabled 1312 00:58:55,520 --> 00:58:58,200 connect external semantic model shared 1313 00:58:58,200 --> 00:59:00,359 with me is enabled modern tool tip is 1314 00:59:00,359 --> 00:59:03,760 enabled Park line is enabled metric is 1315 00:59:03,760 --> 00:59:06,559 visual is enabled quick major suggestion 1316 00:59:06,559 --> 00:59:09,599 is enabled field parameter is enabled 1317 00:59:09,599 --> 00:59:11,680 inhance lowlevel security editor is 1318 00:59:11,680 --> 00:59:14,200 enabled on object interaction is enabled 1319 00:59:14,200 --> 00:59:16,400 powerb home desktop is not enabled which 1320 00:59:16,400 --> 00:59:18,039 I'm going to enable 1321 00:59:18,039 --> 00:59:21,039 now 1322 00:59:23,400 --> 00:59:26,400 similarly also I'm enable set 1323 00:59:26,400 --> 00:59:29,000 sensitivity label on PDF is enabled 1324 00:59:29,000 --> 00:59:31,480 Dynamic format string major is enabled 1325 00:59:31,480 --> 00:59:33,319 save to one drive and SharePoint is 1326 00:59:33,319 --> 00:59:36,280 enabled enhance publish dialogue is not 1327 00:59:36,280 --> 00:59:39,559 enabled I'm not enabling that 1328 00:59:39,559 --> 00:59:44,440 also how bi project. pbip option of 1329 00:59:44,440 --> 00:59:46,640 saving is enabled new card visual is 1330 00:59:46,640 --> 00:59:49,319 enabled new button viser visual is 1331 00:59:49,319 --> 00:59:52,240 enabled model Explorer and calculation 1332 00:59:52,240 --> 00:59:54,200 group authoring this is this is the new 1333 00:59:54,200 --> 00:59:57,000 model view which is available in the 1334 00:59:57,000 --> 01:00:01,079 relationship as well as the text view we 1335 01:00:01,079 --> 01:00:02,960 have enabled that text query view you 1336 01:00:02,960 --> 01:00:05,559 have seen we have enabled that summary 1337 01:00:05,559 --> 01:00:07,680 with co-pilot visual is enabled improve 1338 01:00:07,680 --> 01:00:10,599 Q&A with co-pilot is also 1339 01:00:10,599 --> 01:00:13,440 enabled I can press okay here but let's 1340 01:00:13,440 --> 01:00:15,680 have a quick look at save and Recovery 1341 01:00:15,680 --> 01:00:19,160 as of now I have set up the store Auto 1342 01:00:19,160 --> 01:00:20,960 Recovery information every 10 minutes 1343 01:00:20,960 --> 01:00:23,119 but if you have a really big file please 1344 01:00:23,119 --> 01:00:25,799 make sure to increase it otherwise it 1345 01:00:25,799 --> 01:00:28,760 may slow down if because it start 1346 01:00:28,760 --> 01:00:30,960 automatically saving the reports inside 1347 01:00:30,960 --> 01:00:32,799 the report settings these are the 1348 01:00:32,799 --> 01:00:35,280 important things which we have also seen 1349 01:00:35,280 --> 01:00:37,160 when we were viewing the December 1350 01:00:37,160 --> 01:00:40,039 release notes display smart grid line 1351 01:00:40,039 --> 01:00:42,599 aligned suggest a visual type by default 1352 01:00:42,599 --> 01:00:46,000 is enabled inbit visual menu always 1353 01:00:46,000 --> 01:00:49,240 allow show all in the visualization 1354 01:00:49,240 --> 01:00:52,039 type and then the pain switchers always 1355 01:00:52,039 --> 01:00:54,039 show the 1356 01:00:54,039 --> 01:00:57,520 pain Switcher always show build menu 1357 01:00:57,520 --> 01:00:59,799 visual in the panes which are always 1358 01:00:59,799 --> 01:01:02,280 open in New pane these are the option 1359 01:01:02,280 --> 01:01:04,440 which are already selected here other 1360 01:01:04,440 --> 01:01:06,680 than that I am leaving accessibility and 1361 01:01:06,680 --> 01:01:09,480 Page alignment as is now these are the 1362 01:01:09,480 --> 01:01:11,319 global features which we have looked at 1363 01:01:11,319 --> 01:01:13,000 it as you can see they fall under the 1364 01:01:13,000 --> 01:01:16,480 global feature there are file specific 1365 01:01:16,480 --> 01:01:18,480 features which is there inside the 1366 01:01:18,480 --> 01:01:20,440 current file and one of them is data 1367 01:01:20,440 --> 01:01:22,880 load and as you can see in the data load 1368 01:01:22,880 --> 01:01:26,000 detect column types and header for 1369 01:01:26,000 --> 01:01:27,599 structure data sources so it's going to 1370 01:01:27,599 --> 01:01:29,880 detected import relationship from the 1371 01:01:29,880 --> 01:01:31,400 data sources if it 1372 01:01:31,400 --> 01:01:34,240 is if it is supported on that Source it 1373 01:01:34,240 --> 01:01:35,960 will be imported update and delete 1374 01:01:35,960 --> 01:01:37,760 relationship while refreshing it can do 1375 01:01:37,760 --> 01:01:40,480 that auto detect new relationship now 1376 01:01:40,480 --> 01:01:42,599 this is the feature you will realize 1377 01:01:42,599 --> 01:01:44,440 when I am going to load the data into 1378 01:01:44,440 --> 01:01:46,359 the import mode it's going to get the 1379 01:01:46,359 --> 01:01:49,200 relationship and this is the reason for 1380 01:01:49,200 --> 01:01:51,079 that that's going to Auto detect the 1381 01:01:51,079 --> 01:01:53,200 relationship again I can disable time 1382 01:01:53,200 --> 01:01:56,119 intelligence at the report level which 1383 01:01:56,119 --> 01:01:57,839 I'm not disabling right now I'm going to 1384 01:01:57,839 --> 01:02:00,079 show you what going to happen in that 1385 01:02:00,079 --> 01:02:02,279 case and post that will come and disable 1386 01:02:02,279 --> 01:02:04,920 that if required background 1387 01:02:04,920 --> 01:02:07,880 data allow data previews to download in 1388 01:02:07,880 --> 01:02:10,119 the background we keep it parallel 1389 01:02:10,119 --> 01:02:12,240 loading of table is default we taking it 1390 01:02:12,240 --> 01:02:15,480 from the global level and Q&A I'm not 1391 01:02:15,480 --> 01:02:18,559 changing anything here Regional Regional 1392 01:02:18,559 --> 01:02:21,279 setting I'm keeping is default privacy 1393 01:02:21,279 --> 01:02:24,119 default Auto Recovery is disable auto 1394 01:02:24,119 --> 01:02:25,440 recovery on this file if you want you 1395 01:02:25,440 --> 01:02:27,279 can disable able but I'm keeping it 1396 01:02:27,279 --> 01:02:29,520 default publish data source setting I'm 1397 01:02:29,520 --> 01:02:31,520 keeping everything as default sap 1398 01:02:31,520 --> 01:02:33,520 variables right now I'm not enabling 1399 01:02:33,520 --> 01:02:36,200 direct query connection to data set this 1400 01:02:36,200 --> 01:02:38,559 prevents user from creating direct query 1401 01:02:38,559 --> 01:02:40,359 connection to the data set on the 1402 01:02:40,359 --> 01:02:42,319 desktop if you change the setting you 1403 01:02:42,319 --> 01:02:45,359 need to republish your report to save it 1404 01:02:45,359 --> 01:02:46,920 discourage direct query connection we 1405 01:02:46,920 --> 01:02:48,559 don't want to discourage it so we will 1406 01:02:48,559 --> 01:02:50,799 keep it query reductions keep the 1407 01:02:50,799 --> 01:02:53,599 default settings and query reduction uh 1408 01:02:53,599 --> 01:02:56,359 instead of adding apply button to each 1409 01:02:56,359 --> 01:02:58,400 slicer it is recommended apply all 1410 01:02:58,400 --> 01:03:01,359 slicer slicer button to each page and 1411 01:03:01,359 --> 01:03:03,559 that we are going to explore instantly 1412 01:03:03,559 --> 01:03:06,880 apply basic changes add 1413 01:03:06,880 --> 01:03:09,760 apply button to all basic Fielder so 1414 01:03:09,760 --> 01:03:11,880 this we can use to you know what happens 1415 01:03:11,880 --> 01:03:14,880 is the moment you select anything the 1416 01:03:14,880 --> 01:03:17,960 visual get refreshed we have apply all 1417 01:03:17,960 --> 01:03:20,640 slicer button and or we can use apply on 1418 01:03:20,640 --> 01:03:23,039 each filter but what we are going to use 1419 01:03:23,039 --> 01:03:25,520 is we going to use the default setting 1420 01:03:25,520 --> 01:03:27,880 and if needed we go comeand explore and 1421 01:03:27,880 --> 01:03:29,279 Report setting these are few of the 1422 01:03:29,279 --> 01:03:31,680 report setting like use of the modern 1423 01:03:31,680 --> 01:03:34,319 visual header is enabled hide visual 1424 01:03:34,319 --> 01:03:37,640 header in reading mode is by default 1425 01:03:37,640 --> 01:03:40,920 disabled we keeping it export data allow 1426 01:03:40,920 --> 01:03:42,960 the end user to export data current 1427 01:03:42,960 --> 01:03:45,920 layout summarized data from the powerbi 1428 01:03:45,920 --> 01:03:47,880 service and powerbi Report service I'm 1429 01:03:47,880 --> 01:03:49,440 going to keep it because it allows you 1430 01:03:49,440 --> 01:03:52,079 the currently out means as whatever it 1431 01:03:52,079 --> 01:03:53,960 is looking like in powerbi service it 1432 01:03:53,960 --> 01:03:55,160 should be going in that particular 1433 01:03:55,160 --> 01:03:57,119 manner so I'm keeping it filtering 1434 01:03:57,119 --> 01:03:59,599 experience I'm keeping both of them 1435 01:03:59,599 --> 01:04:02,160 tagged and this is also default allow 1436 01:04:02,160 --> 01:04:04,880 user to change the filter type enable 1437 01:04:04,880 --> 01:04:08,559 search for the filter pan cross report 1438 01:04:08,559 --> 01:04:10,240 drill through right now we don't need so 1439 01:04:10,240 --> 01:04:12,559 I'm not enabling it personalized visual 1440 01:04:12,559 --> 01:04:14,359 is something we can allow on the report 1441 01:04:14,359 --> 01:04:16,880 level modern visual tool tip is enabled 1442 01:04:16,880 --> 01:04:19,200 and we'll keep it tool tip Auto scale 1443 01:04:19,200 --> 01:04:21,559 tool tip size affected by the canvas 1444 01:04:21,559 --> 01:04:23,160 size this a preview feature so let's 1445 01:04:23,160 --> 01:04:25,720 enable it default summarization for 1446 01:04:25,720 --> 01:04:28,240 aggregated Fields always show default 1447 01:04:28,240 --> 01:04:30,200 summarization type means if the field is 1448 01:04:30,200 --> 01:04:32,760 numeric field or aggregated type we will 1449 01:04:32,760 --> 01:04:34,720 have a default summarization and that's 1450 01:04:34,720 --> 01:04:37,720 where it is asking for query limit 1451 01:04:37,720 --> 01:04:39,920 simulation if you want to simulate which 1452 01:04:39,920 --> 01:04:41,440 kind of capacity you have shared 1453 01:04:41,440 --> 01:04:43,799 capacity premium capacity SQL Ser 1454 01:04:43,799 --> 01:04:45,880 analysis Services aor analysis Services 1455 01:04:45,880 --> 01:04:48,200 custom limit no query limits I'm keeping 1456 01:04:48,200 --> 01:04:52,000 it auto as of now this is 1 GB shared 1457 01:04:52,000 --> 01:04:53,799 capacity 1458 01:04:53,799 --> 01:04:57,839 uh as of now I'm keeping it same but in 1459 01:04:57,839 --> 01:04:59,559 case you want to see if you're on a 1460 01:04:59,559 --> 01:05:01,000 premium capacity or you want to go to 1461 01:05:01,000 --> 01:05:03,279 premium capacity how it is going to 1462 01:05:03,279 --> 01:05:07,079 behave so that you can enable it I'm now 1463 01:05:07,079 --> 01:05:09,559 going to press okay button on the bottom 1464 01:05:09,559 --> 01:05:11,960 right and once I press this okay button 1465 01:05:11,960 --> 01:05:14,720 on the bottom right I might have to 1466 01:05:14,720 --> 01:05:18,119 restart my power bi desktop to get all 1467 01:05:18,119 --> 01:05:19,440 these features 1468 01:05:19,440 --> 01:05:21,960 enabled so this is a quick overview and 1469 01:05:21,960 --> 01:05:23,720 now I'm pressing 1470 01:05:23,720 --> 01:05:26,520 okay and it is asking that it requires a 1471 01:05:26,520 --> 01:05:29,039 restart so I'll restart my power via 1472 01:05:29,039 --> 01:05:32,440 desktop and come back again to 1473 01:05:32,440 --> 01:05:35,480 you so let me give you overview of the 1474 01:05:35,480 --> 01:05:39,079 data whatever data I'm using for this 1475 01:05:39,079 --> 01:05:41,279 particular video and most of the videos 1476 01:05:41,279 --> 01:05:44,799 on my channel is available on 1477 01:05:44,799 --> 01:05:48,079 GitHub some of you has complained that 1478 01:05:48,079 --> 01:05:50,039 you are unable to download the data from 1479 01:05:50,039 --> 01:05:52,760 GitHub so so this year I will also 1480 01:05:52,760 --> 01:05:54,559 provide the data on Dropbox and I'll 1481 01:05:54,559 --> 01:05:55,720 share the link in the descript 1482 01:05:55,720 --> 01:05:58,559 description data primarily is a sales 1483 01:05:58,559 --> 01:06:00,039 data or the retail data which we are 1484 01:06:00,039 --> 01:06:02,799 going to use the GitHub contains lot 1485 01:06:02,799 --> 01:06:04,240 many other type of data which we are 1486 01:06:04,240 --> 01:06:07,920 going to use like for power query I have 1487 01:06:07,920 --> 01:06:11,279 pyot dat. XLS there are many other files 1488 01:06:11,279 --> 01:06:12,799 which are used in different videos 1489 01:06:12,799 --> 01:06:14,839 available there so whenever you watch a 1490 01:06:14,839 --> 01:06:16,640 video and if there's a file required you 1491 01:06:16,640 --> 01:06:18,160 will get that here on the 1492 01:06:18,160 --> 01:06:20,440 GitHub this time what I've also done is 1493 01:06:20,440 --> 01:06:23,599 I loaded some icons I taken the help 1494 01:06:23,599 --> 01:06:26,240 from AI tools to generate some random 1495 01:06:26,240 --> 01:06:29,720 icons and then I loaded all those icons 1496 01:06:29,720 --> 01:06:31,559 on the GitHub so that you can use those 1497 01:06:31,559 --> 01:06:33,559 icons when you are creating your 1498 01:06:33,559 --> 01:06:36,200 visualization to make your visualization 1499 01:06:36,200 --> 01:06:37,839 look much 1500 01:06:37,839 --> 01:06:40,319 better 1501 01:06:40,319 --> 01:06:42,880 so you can take the full advantage of 1502 01:06:42,880 --> 01:06:44,760 the data available from my 1503 01:06:44,760 --> 01:06:49,039 side so let us quickly have a look at 1504 01:06:49,039 --> 01:06:52,279 what all data is available at the GitHub 1505 01:06:52,279 --> 01:06:55,720 all the data which I'm going to use in 1506 01:06:55,720 --> 01:06:57,240 this 1507 01:06:57,240 --> 01:07:02,359 video is available on 1508 01:07:02,359 --> 01:07:08,319 github.com slamit chandak PBI 1509 01:07:08,319 --> 01:07:11,319 slav 1510 01:07:13,200 --> 01:07:17,039 bi on GitHub you have various file one 1511 01:07:17,039 --> 01:07:19,160 of the most important file which we are 1512 01:07:19,160 --> 01:07:24,400 going to use in this video is sales data 1513 01:07:24,400 --> 01:07:27,000 used in 1514 01:07:27,000 --> 01:07:31,200 video do XLS let's download this Sal 1515 01:07:31,200 --> 01:07:33,960 data used in video and keep with us we 1516 01:07:33,960 --> 01:07:36,240 will need it to understand the data 1517 01:07:36,240 --> 01:07:38,079 click on this file sales data used in 1518 01:07:38,079 --> 01:07:39,680 video and once you click on this you 1519 01:07:39,680 --> 01:07:42,359 will get an option here to download this 1520 01:07:42,359 --> 01:07:45,839 file so you can download it we are also 1521 01:07:45,839 --> 01:07:47,559 going to 1522 01:07:47,559 --> 01:07:52,799 use P tata. XLS for power 1523 01:07:52,799 --> 01:07:55,240 query you don't need to download these 1524 01:07:55,240 --> 01:07:58,480 file FES you can download for 1525 01:07:58,480 --> 01:08:00,200 understanding the data but I'll tell you 1526 01:08:00,200 --> 01:08:03,640 a technique you using that you will be 1527 01:08:03,640 --> 01:08:07,440 able to use these files without 1528 01:08:08,520 --> 01:08:12,359 downloading now for understanding of the 1529 01:08:12,359 --> 01:08:15,480 data you can download these files some 1530 01:08:15,480 --> 01:08:18,440 of the users have complained last year 1531 01:08:18,440 --> 01:08:20,480 that they are unable to download from 1532 01:08:20,480 --> 01:08:23,319 the GitHub what I'm going to do is I'm 1533 01:08:23,319 --> 01:08:25,679 also going to give you a Dropbox link 1534 01:08:25,679 --> 01:08:27,799 into the description form where you can 1535 01:08:27,799 --> 01:08:30,159 download these 1536 01:08:30,159 --> 01:08:33,520 files download of last year's data is 1537 01:08:33,520 --> 01:08:35,719 available here and for this year also 1538 01:08:35,719 --> 01:08:39,759 I'm going to load the PB as well as 1539 01:08:39,759 --> 01:08:45,199 the PPT used for the video CSV files are 1540 01:08:45,199 --> 01:08:47,759 available here and some of the icons 1541 01:08:47,759 --> 01:08:49,920 which I'm going to use in the video are 1542 01:08:49,920 --> 01:08:53,759 made available here 1543 01:08:56,239 --> 01:08:58,440 I will add the GitHub link also in my 1544 01:08:58,440 --> 01:09:00,880 description so that you can download the 1545 01:09:00,880 --> 01:09:03,920 data from there before we move forward 1546 01:09:03,920 --> 01:09:07,839 let's understand what is there in sales 1547 01:09:07,839 --> 01:09:10,319 data used in video which is the primary 1548 01:09:10,319 --> 01:09:13,560 file we are going to use let me give you 1549 01:09:13,560 --> 01:09:15,839 the overview of the data which we plan 1550 01:09:15,839 --> 01:09:18,400 to use 1551 01:09:18,400 --> 01:09:21,000 first this data is the one which will be 1552 01:09:21,000 --> 01:09:23,880 used as the primary data throughout the 1553 01:09:23,880 --> 01:09:25,560 series 1554 01:09:25,560 --> 01:09:27,679 this is a perfect star schema which 1555 01:09:27,679 --> 01:09:29,199 already 1556 01:09:29,199 --> 01:09:32,239 contain pack and dimension table so 1557 01:09:32,239 --> 01:09:34,159 First Dimension table which I have is 1558 01:09:34,159 --> 01:09:37,640 the item table which contain item id 1559 01:09:37,640 --> 01:09:42,759 name brand ID category id subcategory id 1560 01:09:42,759 --> 01:09:46,040 brand and 1561 01:09:46,120 --> 01:09:48,520 subcategory so the first table which I 1562 01:09:48,520 --> 01:09:52,400 have is item table and item table 1563 01:09:52,400 --> 01:09:56,159 contains columns like item id name name 1564 01:09:56,159 --> 01:09:59,199 brand ID category id subcategory id 1565 01:09:59,199 --> 01:10:02,360 brand category and 1566 01:10:02,679 --> 01:10:05,199 subcategory as this is a dimension table 1567 01:10:05,199 --> 01:10:07,719 Item ID is unique and would be used in 1568 01:10:07,719 --> 01:10:09,400 my sales fact which I'm going to show 1569 01:10:09,400 --> 01:10:11,679 you a little bit later the second 1570 01:10:11,679 --> 01:10:14,400 dimension which I have is a customer ID 1571 01:10:14,400 --> 01:10:17,360 contains customer ID age of the customer 1572 01:10:17,360 --> 01:10:21,080 city state and name of the customer city 1573 01:10:21,080 --> 01:10:24,920 and state here are the city and state of 1574 01:10:24,920 --> 01:10:27,159 the customer customer's address it is 1575 01:10:27,159 --> 01:10:30,800 not where customer is ordering its data 1576 01:10:30,800 --> 01:10:32,640 customer may be in travel while it is 1577 01:10:32,640 --> 01:10:36,480 ordering or ordering for the relative so 1578 01:10:36,480 --> 01:10:37,960 this is not the same this is the 1579 01:10:37,960 --> 01:10:39,560 customers Master 1580 01:10:39,560 --> 01:10:41,960 data the third dimension which we have 1581 01:10:41,960 --> 01:10:44,360 is the geography table it contains City 1582 01:10:44,360 --> 01:10:49,280 ID city and state and this is the order 1583 01:10:49,280 --> 01:10:52,000 City or the sales City uh which we have 1584 01:10:52,000 --> 01:10:54,239 in the 1585 01:10:54,239 --> 01:10:56,800 data now let me explain you the fact 1586 01:10:56,800 --> 01:10:59,000 table the fact table is a retail sales 1587 01:10:59,000 --> 01:11:02,840 data every line represent a single order 1588 01:11:02,840 --> 01:11:03,800 only 1589 01:11:03,800 --> 01:11:07,320 means every line contains only one order 1590 01:11:07,320 --> 01:11:10,159 and one order don't have multiple 1591 01:11:10,159 --> 01:11:13,640 lines and this is my sales table sales 1592 01:11:13,640 --> 01:11:15,560 fact which I'm going to call 1593 01:11:15,560 --> 01:11:17,800 here for 1594 01:11:17,800 --> 01:11:21,400 this is this is sales table all the 1595 01:11:21,400 --> 01:11:26,199 sales fact for our current 1596 01:11:27,199 --> 01:11:29,679 analysis and it contains order number 1597 01:11:29,679 --> 01:11:31,719 the order number which is unique for 1598 01:11:31,719 --> 01:11:34,400 each line item id repeating referencing 1599 01:11:34,400 --> 01:11:36,960 item Dimensions sales date on the date 1600 01:11:36,960 --> 01:11:38,679 on which the sales has happened delivery 1601 01:11:38,679 --> 01:11:40,440 date the date on which delivery has 1602 01:11:40,440 --> 01:11:43,040 happened customer ID referencing the 1603 01:11:43,040 --> 01:11:45,760 customer master table or customer table 1604 01:11:45,760 --> 01:11:48,000 City ID referencing the geography T 1605 01:11:48,000 --> 01:11:50,719 table quantity which has been sold for 1606 01:11:50,719 --> 01:11:54,000 each line price which is size 1607 01:11:54,000 --> 01:11:58,719 of that particular item on that date 1608 01:11:58,719 --> 01:12:00,960 cost what cost we are inquiring for that 1609 01:12:00,960 --> 01:12:03,960 and discount percentage as you can see 1610 01:12:03,960 --> 01:12:06,480 we have not calculated the cross amount 1611 01:12:06,480 --> 01:12:09,960 the net amount the discount amount also 1612 01:12:09,960 --> 01:12:12,320 the discount percentage is an absolute 1613 01:12:12,320 --> 01:12:16,239 number it is not .12 it is actually 12 1614 01:12:16,239 --> 01:12:17,920 when we are doing the calculations we 1615 01:12:17,920 --> 01:12:20,639 need to take care now in this data what 1616 01:12:20,639 --> 01:12:22,320 we have to do is we require some of 1617 01:12:22,320 --> 01:12:23,800 those calculations and those 1618 01:12:23,800 --> 01:12:26,480 calculations will be done either as a 1619 01:12:26,480 --> 01:12:28,400 calculated column which is at the row 1620 01:12:28,400 --> 01:12:31,719 level or as a measures which is 1621 01:12:31,719 --> 01:12:34,960 basically aggregated level which we will 1622 01:12:34,960 --> 01:12:38,440 understand in some time in 1623 01:12:38,440 --> 01:12:41,400 powerbi so what kind of analysis we want 1624 01:12:41,400 --> 01:12:44,120 you to do on this data in this data we 1625 01:12:44,120 --> 01:12:48,639 can do many analysis like I can find out 1626 01:12:48,639 --> 01:12:52,159 my top cities top 1627 01:12:52,159 --> 01:12:55,800 customers top brands top C categories 1628 01:12:55,800 --> 01:12:56,639 top 1629 01:12:56,639 --> 01:12:59,159 subcategories I can analyze where I'm 1630 01:12:59,159 --> 01:13:01,760 getting more discount or margin for 1631 01:13:01,760 --> 01:13:04,040 which item I'm getting that for which 1632 01:13:04,040 --> 01:13:06,440 cities I'm getting better 1633 01:13:06,440 --> 01:13:09,280 discount on which cities by giving less 1634 01:13:09,280 --> 01:13:11,639 discount I'm getting more margin all 1635 01:13:11,639 --> 01:13:13,960 these kind of analysis we can do using 1636 01:13:13,960 --> 01:13:16,960 this data now because it's a learning 1637 01:13:16,960 --> 01:13:19,040 Series where we run the feature and then 1638 01:13:19,040 --> 01:13:21,800 implement it might not be possible for 1639 01:13:21,800 --> 01:13:26,239 me to explain all the possible outcome 1640 01:13:26,239 --> 01:13:29,120 for this one but at the end we will try 1641 01:13:29,120 --> 01:13:32,000 to create a report to give meaning to 1642 01:13:32,000 --> 01:13:35,000 this data and we will publish it for our 1643 01:13:35,000 --> 01:13:39,159 ad user let's now talk about the type of 1644 01:13:39,159 --> 01:13:41,920 data loads before we bring in the data 1645 01:13:41,920 --> 01:13:46,000 into the powerbi desktop usually we talk 1646 01:13:46,000 --> 01:13:48,400 about three modes import mode direct 1647 01:13:48,400 --> 01:13:51,000 query mode and live mode but with the 1648 01:13:51,000 --> 01:13:53,360 emergence of Microsoft fabric we have 1649 01:13:53,360 --> 01:13:55,639 got a new mode which is also known as 1650 01:13:55,639 --> 01:14:00,199 direct click mode import mode in which 1651 01:14:00,199 --> 01:14:02,159 in case of the import mode you actually 1652 01:14:02,159 --> 01:14:05,480 load data into the powerbi and powerbi 1653 01:14:05,480 --> 01:14:07,880 is going to keep the data with it and on 1654 01:14:07,880 --> 01:14:10,159 that data we are going to build a model 1655 01:14:10,159 --> 01:14:14,080 so powerbi is owning the data the model 1656 01:14:14,080 --> 01:14:17,239 the relationship the measures and then 1657 01:14:17,239 --> 01:14:19,600 you publish such models on powerbi 1658 01:14:19,600 --> 01:14:22,159 service when we publish the file there 1659 01:14:22,159 --> 01:14:23,199 are 1660 01:14:23,199 --> 01:14:25,719 two files created 1661 01:14:25,719 --> 01:14:28,760 on the powerbi service one is data set 1662 01:14:28,760 --> 01:14:32,920 file and another one is a visualization 1663 01:14:32,920 --> 01:14:35,960 file the data set file or what we now 1664 01:14:35,960 --> 01:14:39,080 call as semantic models contain the data 1665 01:14:39,080 --> 01:14:41,440 as well as the model information major 1666 01:14:41,440 --> 01:14:42,960 definition 1667 01:14:42,960 --> 01:14:46,360 Etc in case of direct query we usually 1668 01:14:46,360 --> 01:14:47,639 connect to the 1669 01:14:47,639 --> 01:14:50,120 databases which are typically 1670 01:14:50,120 --> 01:14:53,199 rdbms not all the rdbms are supported 1671 01:14:53,199 --> 01:14:55,760 there is a list available on the 1672 01:14:55,760 --> 01:14:58,600 Microsoft side which all databases are 1673 01:14:58,600 --> 01:15:00,800 supported for direct query in case of 1674 01:15:00,800 --> 01:15:05,920 direct query powerbi only owns 1675 01:15:05,920 --> 01:15:09,400 the semantic model or your relationship 1676 01:15:09,400 --> 01:15:11,880 your measure definition your calculated 1677 01:15:11,880 --> 01:15:15,639 columns it owns that when you publish 1678 01:15:15,639 --> 01:15:18,520 this you will get a data set file or 1679 01:15:18,520 --> 01:15:21,400 semantic model file onto the powerbi 1680 01:15:21,400 --> 01:15:24,000 service but that will not contain data 1681 01:15:24,000 --> 01:15:26,679 it will only contain the model 1682 01:15:26,679 --> 01:15:29,880 information in case of live query the 1683 01:15:29,880 --> 01:15:32,000 live doesn't mean the real time data it 1684 01:15:32,000 --> 01:15:34,920 is basically when you use SQL Server 1685 01:15:34,920 --> 01:15:37,840 analysis services or powerbi data set as 1686 01:15:37,840 --> 01:15:40,639 a source in such case what happens the 1687 01:15:40,639 --> 01:15:44,360 model the semantic model or the data set 1688 01:15:44,360 --> 01:15:47,560 owns the data and that is not owned by 1689 01:15:47,560 --> 01:15:50,199 the powerbi that is either owned by a 1690 01:15:50,199 --> 01:15:53,480 previous powerbi data set or SQL Server 1691 01:15:53,480 --> 01:15:57,239 analysis services or a your analysis 1692 01:15:57,239 --> 01:16:01,040 services in powerbi we only create 1693 01:16:01,040 --> 01:16:03,560 visualization yes we can also create 1694 01:16:03,560 --> 01:16:05,880 some additional measures if 1695 01:16:05,880 --> 01:16:08,760 required when we publish such files we 1696 01:16:08,760 --> 01:16:13,239 don't get a semantic model or the data 1697 01:16:13,239 --> 01:16:17,239 set on powerbi service in case we are 1698 01:16:17,239 --> 01:16:21,320 publishing a file which is connected to 1699 01:16:21,320 --> 01:16:23,679 a previous powerb data 1700 01:16:23,679 --> 01:16:27,480 set so so the new report or the 1701 01:16:27,480 --> 01:16:32,199 visualization file will 1702 01:16:32,320 --> 01:16:35,920 also point to the same data set direct 1703 01:16:35,920 --> 01:16:38,760 lake is the new mode which came in it 1704 01:16:38,760 --> 01:16:40,920 provides you best of the import and 1705 01:16:40,920 --> 01:16:42,880 direct query 1706 01:16:42,880 --> 01:16:46,679 mode for Microsoft fabric lak houses and 1707 01:16:46,679 --> 01:16:49,560 warehouses semantic 1708 01:16:49,560 --> 01:16:52,840 models for direct Lake Microsoft has 1709 01:16:52,840 --> 01:16:56,440 done changes in the analysis 1710 01:16:56,440 --> 01:17:00,120 services so that it can query the Delta 1711 01:17:00,120 --> 01:17:03,239 par format files and give you a import 1712 01:17:03,239 --> 01:17:05,440 mode 1713 01:17:05,440 --> 01:17:08,000 performance so whenever you are going to 1714 01:17:08,000 --> 01:17:10,320 use Microsoft fabric you need to ensure 1715 01:17:10,320 --> 01:17:13,480 that you are using direct Lake mode 1716 01:17:13,480 --> 01:17:15,920 there are times when it fall backs to 1717 01:17:15,920 --> 01:17:20,520 direct query and you should try to avoid 1718 01:17:20,520 --> 01:17:23,280 such cases where it can fall to direct 1719 01:17:23,280 --> 01:17:26,159 query because Direct C performance 1720 01:17:26,159 --> 01:17:29,719 cannot be compared with direct query 1721 01:17:29,719 --> 01:17:33,000 performance let's load the data onto the 1722 01:17:33,000 --> 01:17:34,400 powerbi 1723 01:17:34,400 --> 01:17:36,360 desktop I have opened the powerbi 1724 01:17:36,360 --> 01:17:37,960 desktop again and time has come that we 1725 01:17:37,960 --> 01:17:39,880 import the data onto the powerbi desktop 1726 01:17:39,880 --> 01:17:41,120 out of the mode which is import mode 1727 01:17:41,120 --> 01:17:42,920 direct query live and directly mode we 1728 01:17:42,920 --> 01:17:44,679 would like to use the import mode here 1729 01:17:44,679 --> 01:17:46,560 now those of you who have downloaded the 1730 01:17:46,560 --> 01:17:48,040 Excel files I'm going to tell you how 1731 01:17:48,040 --> 01:17:49,719 you are going to load the data and then 1732 01:17:49,719 --> 01:17:51,040 I'll tell you those of you who prefer 1733 01:17:51,040 --> 01:17:52,840 the URL mode how you going to do it so 1734 01:17:52,840 --> 01:17:54,239 those of you who has downloaded the data 1735 01:17:54,239 --> 01:17:57,360 can use Excel option under the Home tab 1736 01:17:57,360 --> 01:17:59,480 to upload the data to the powerb desktop 1737 01:17:59,480 --> 01:18:00,520 the same option is also available in the 1738 01:18:00,520 --> 01:18:02,000 get data and if you click on the more we 1739 01:18:02,000 --> 01:18:03,480 can see what all options we have on 1740 01:18:03,480 --> 01:18:05,239 powerb desktop we have more than 200 1741 01:18:05,239 --> 01:18:06,840 plus connectors for powerb desktop to 1742 01:18:06,840 --> 01:18:08,639 connect on various sources these are 1743 01:18:08,639 --> 01:18:10,080 categorized under file sources like Exel 1744 01:18:10,080 --> 01:18:12,120 TCH CSV XML Json file folder PDF 1745 01:18:12,120 --> 01:18:13,440 databases most of the common databases 1746 01:18:13,440 --> 01:18:16,520 like SQL Server Oracle IBM gb2 IBM 1747 01:18:16,520 --> 01:18:18,679 natisa my SQL database post database 1748 01:18:18,679 --> 01:18:22,239 cbas teradata sap Hana Amazon red shift 1749 01:18:22,239 --> 01:18:24,920 and many more including the most common 1750 01:18:24,920 --> 01:18:27,480 like slow frak also have Amazon AA and 1751 01:18:27,480 --> 01:18:28,920 we have few other connectors Microsoft 1752 01:18:28,920 --> 01:18:30,000 fabric which has been launched in May 1753 01:18:30,000 --> 01:18:31,639 2023 and generally available from 1754 01:18:31,639 --> 01:18:32,760 November 2023 the connectors are 1755 01:18:32,760 --> 01:18:34,239 available for semantic models data flow 1756 01:18:34,239 --> 01:18:35,600 dat Mars Warehouse leak house and equ 1757 01:18:35,600 --> 01:18:37,080 databases Power Platform connectors for 1758 01:18:37,080 --> 01:18:38,920 power data flows data services data and 1759 01:18:38,920 --> 01:18:41,080 data flows a your connector for aor SQL 1760 01:18:41,080 --> 01:18:42,679 a your signups analytics a your database 1761 01:18:42,679 --> 01:18:44,360 Services a your blob storage a your 1762 01:18:44,360 --> 01:18:46,000 cosos DB and data Explorer a your dat Le 1763 01:18:46,000 --> 01:18:48,040 gen 1 a your dat Le Gen 2 as your HD 1764 01:18:48,040 --> 01:18:50,639 insides a yourd spark and other as 1765 01:18:50,639 --> 01:18:51,960 services online services we have so many 1766 01:18:51,960 --> 01:18:53,159 of these including SharePoint online Bas 1767 01:18:53,159 --> 01:18:55,880 Microsoft Exchange online D 360 5 Etc 1768 01:18:55,880 --> 01:18:57,000 and we have few other connector which 1769 01:18:57,000 --> 01:18:58,199 which include the web connector and one 1770 01:18:58,199 --> 01:18:59,280 of the connector we going to use when we 1771 01:18:59,280 --> 01:19:00,080 going to bring in the data from the 1772 01:19:00,080 --> 01:19:01,400 GitHub now those of you who has already 1773 01:19:01,400 --> 01:19:02,679 downloaded for them go to the Exel 1774 01:19:02,679 --> 01:19:04,120 workbook search out where your data is 1775 01:19:04,120 --> 01:19:06,679 my data is inside the powerbi data and 1776 01:19:06,679 --> 01:19:08,560 there I have s data used in video and 1777 01:19:08,560 --> 01:19:10,960 once I select say data used in video I 1778 01:19:10,960 --> 01:19:13,040 can press the open button to get the 1779 01:19:13,040 --> 01:19:15,080 data once I click on the open button it 1780 01:19:15,080 --> 01:19:17,320 will show me a popup and in the popup I 1781 01:19:17,320 --> 01:19:18,960 can preview my tables but unless I press 1782 01:19:18,960 --> 01:19:20,760 this check box I will not get the data 1783 01:19:20,760 --> 01:19:22,440 on the powerp desktop we can check all 1784 01:19:22,440 --> 01:19:23,679 these four files this has the same data 1785 01:19:23,679 --> 01:19:25,719 we have explained you a minute back also 1786 01:19:25,719 --> 01:19:27,080 if you have few tables in your Exel Mark 1787 01:19:27,080 --> 01:19:28,920 as a table you will get those here now 1788 01:19:28,920 --> 01:19:30,360 we have two options to explore low data 1789 01:19:30,360 --> 01:19:31,880 and transform data when do we will use 1790 01:19:31,880 --> 01:19:33,520 low data and when we will use transform 1791 01:19:33,520 --> 01:19:35,920 data in case we don't want to transform 1792 01:19:35,920 --> 01:19:37,239 this data this data is in final shape 1793 01:19:37,239 --> 01:19:38,239 which is true for this data we will 1794 01:19:38,239 --> 01:19:40,480 directly use low data but if this data 1795 01:19:40,480 --> 01:19:42,080 require transformation or this data is 1796 01:19:42,080 --> 01:19:43,440 too big we want to reduce it before 1797 01:19:43,440 --> 01:19:45,320 loading we will use transform data in 1798 01:19:45,320 --> 01:19:46,639 the current case the data do not require 1799 01:19:46,639 --> 01:19:48,120 transformation also the size is not so 1800 01:19:48,120 --> 01:19:49,440 big that I have to reduce it before 1801 01:19:49,440 --> 01:19:51,080 loading into powerp desktop so I'm going 1802 01:19:51,080 --> 01:19:52,600 ahead with the load data option I can 1803 01:19:52,600 --> 01:19:53,560 click on the load data and it will load 1804 01:19:53,560 --> 01:19:54,840 the data so this is the option for those 1805 01:19:54,840 --> 01:19:56,480 of you who are using the Excel those of 1806 01:19:56,480 --> 01:19:58,360 you wanted to use GitHub first of all go 1807 01:19:58,360 --> 01:20:00,360 to the GitHub and find out the URL which 1808 01:20:00,360 --> 01:20:01,679 you want to use to get the URL scroll 1809 01:20:01,679 --> 01:20:03,120 down open this file says data used in 1810 01:20:03,120 --> 01:20:05,320 video XLS now some of you would like to 1811 01:20:05,320 --> 01:20:06,920 take the URL from the top but don't do 1812 01:20:06,920 --> 01:20:08,639 that go to this button raw don't click 1813 01:20:08,639 --> 01:20:11,000 on that right click on this button use 1814 01:20:11,000 --> 01:20:12,600 copy link once you copy the link come 1815 01:20:12,600 --> 01:20:14,639 back to your powerb desktop and now use 1816 01:20:14,639 --> 01:20:16,679 get data web option I've already shown 1817 01:20:16,679 --> 01:20:18,080 you all the option categorization and 1818 01:20:18,080 --> 01:20:20,560 here you can put this URL you can check 1819 01:20:20,560 --> 01:20:21,679 out the Advan option but right now I 1820 01:20:21,679 --> 01:20:22,960 don't need so I can continue with the 1821 01:20:22,960 --> 01:20:24,360 basic option press on okay it should 1822 01:20:24,360 --> 01:20:25,960 open the same popup again which I have 1823 01:20:25,960 --> 01:20:27,400 explained you while I was loading the 1824 01:20:27,400 --> 01:20:29,320 XEL file I click on the cheat boxes to 1825 01:20:29,320 --> 01:20:30,679 make sure that I'm loading the data for 1826 01:20:30,679 --> 01:20:32,120 all these four table it does not mean 1827 01:20:32,120 --> 01:20:33,520 that you have to load the complete data 1828 01:20:33,520 --> 01:20:36,440 in one go you can load data in multiple 1829 01:20:36,440 --> 01:20:38,440 goals also I'm going to press the load 1830 01:20:38,440 --> 01:20:41,120 data in this case and load my 1831 01:20:41,120 --> 01:20:43,480 data it will show me a popup for the 1832 01:20:43,480 --> 01:20:45,400 data loading and this is also one of the 1833 01:20:45,400 --> 01:20:47,000 way when you can check the data is 1834 01:20:47,000 --> 01:20:48,159 loading it is in import mode because 1835 01:20:48,159 --> 01:20:49,280 it's going to show you amount of data 1836 01:20:49,280 --> 01:20:51,320 which is getting loaded data is loaded 1837 01:20:51,320 --> 01:20:52,679 onto the power bi desktop and on the 1838 01:20:52,679 --> 01:20:54,800 right hand side data pan you can see the 1839 01:20:54,800 --> 01:20:57,080 data tables those tables are customer 1840 01:20:57,080 --> 01:20:59,920 geography item and sales now we can go 1841 01:20:59,920 --> 01:21:01,560 ahead and take two steps from here one 1842 01:21:01,560 --> 01:21:02,719 we create the formulas which are missing 1843 01:21:02,719 --> 01:21:04,480 in sa State table for analysis or second 1844 01:21:04,480 --> 01:21:06,000 is we create the model we are going to 1845 01:21:06,000 --> 01:21:07,239 create the model and post that we will 1846 01:21:07,239 --> 01:21:08,840 try to understand a little bit about the 1847 01:21:08,840 --> 01:21:11,239 Dex formulas and that is where our 1848 01:21:11,239 --> 01:21:12,480 technical stuff will start where you 1849 01:21:12,480 --> 01:21:14,120 need to understand the Dex and how you 1850 01:21:14,120 --> 01:21:16,120 can quickly create calculations which is 1851 01:21:16,120 --> 01:21:17,280 can be categorized either as calculated 1852 01:21:17,280 --> 01:21:19,560 column and major data is loaded and I 1853 01:21:19,560 --> 01:21:20,719 would like to create relationship before 1854 01:21:20,719 --> 01:21:22,040 I do that I would like to have a quick 1855 01:21:22,040 --> 01:21:23,400 view on the data using the table view on 1856 01:21:23,400 --> 01:21:24,800 the left hand side I go to the table and 1857 01:21:24,800 --> 01:21:25,920 as it is import mode I should be able to 1858 01:21:25,920 --> 01:21:27,639 see the data of each table below here I 1859 01:21:27,639 --> 01:21:28,719 should be able to see the count and I 1860 01:21:28,719 --> 01:21:31,040 can match this count with my Excel data 1861 01:21:31,040 --> 01:21:32,159 how much rows I have there versus how 1862 01:21:32,159 --> 01:21:34,080 much rows I have here to make sure that 1863 01:21:34,080 --> 01:21:35,320 we have the same amount of data what we 1864 01:21:35,320 --> 01:21:36,239 have at the source I can click on 1865 01:21:36,239 --> 01:21:37,360 geography to see the geography data I 1866 01:21:37,360 --> 01:21:39,120 have 100 rows there item 55 rows and 1867 01:21:39,120 --> 01:21:40,960 sales table having 30,000 rows all my 1868 01:21:40,960 --> 01:21:43,760 data is correct let's now create the 1869 01:21:43,760 --> 01:21:47,159 relationship on powerbi 1870 01:21:47,159 --> 01:21:49,760 desktop now let's jump onto the model 1871 01:21:49,760 --> 01:21:51,480 view and here we are going to create the 1872 01:21:51,480 --> 01:21:52,800 relationship but what we observe the 1873 01:21:52,800 --> 01:21:54,120 relationship is already there and I 1874 01:21:54,120 --> 01:21:55,480 explained you let me show you again 1875 01:21:55,480 --> 01:21:57,840 under the file options and setting 1876 01:21:57,840 --> 01:22:00,360 options we have an option in the current 1877 01:22:00,360 --> 01:22:02,320 file data load level which is auto 1878 01:22:02,320 --> 01:22:03,719 detect new relationship that is causing 1879 01:22:03,719 --> 01:22:05,000 this in case you creating a really big 1880 01:22:05,000 --> 01:22:06,040 model where you don't want to do this 1881 01:22:06,040 --> 01:22:07,360 you can uncheck that let me close the 1882 01:22:07,360 --> 01:22:08,800 property and the data pan and try to 1883 01:22:08,800 --> 01:22:09,600 understand if these relationships are 1884 01:22:09,600 --> 01:22:12,520 correct or not so let me showcase you 1885 01:22:12,520 --> 01:22:14,639 what is the exact model I need on the 1886 01:22:14,639 --> 01:22:15,840 PowerPoint 1887 01:22:15,840 --> 01:22:18,679 slide so just a overview of the model 1888 01:22:18,679 --> 01:22:20,840 which we are going to create here uh 1889 01:22:20,840 --> 01:22:22,520 which is available in the Excel file 1890 01:22:22,520 --> 01:22:24,639 which you have seen is that we we are 1891 01:22:24,639 --> 01:22:26,320 going to have a sales table which is at 1892 01:22:26,320 --> 01:22:27,639 the 1893 01:22:27,639 --> 01:22:30,520 center and it will have geography 1894 01:22:30,520 --> 01:22:31,960 Dimension which is available in the 1895 01:22:31,960 --> 01:22:34,199 Excel sheet item Dimension again 1896 01:22:34,199 --> 01:22:35,520 available in the Excel sheet and the 1897 01:22:35,520 --> 01:22:37,000 customer Dimension again available in 1898 01:22:37,000 --> 01:22:39,120 the Excel sheet we're going to create a 1899 01:22:39,120 --> 01:22:41,320 date table in the powerbi desktop and 1900 01:22:41,320 --> 01:22:43,760 going to utilize it it's going to be a 1901 01:22:43,760 --> 01:22:45,120 perfect star 1902 01:22:45,120 --> 01:22:47,480 schema 1903 01:22:47,480 --> 01:22:50,400 where fact is related with Dimension and 1904 01:22:50,400 --> 01:22:52,760 dimension is related with fact in a 1905 01:22:52,760 --> 01:22:55,280 perfect star schema the two Dimension 1906 01:22:55,280 --> 01:22:57,880 don't have any relationship between them 1907 01:22:57,880 --> 01:23:01,080 so although I have City available in 1908 01:23:01,080 --> 01:23:03,480 both geography and customer they will 1909 01:23:03,480 --> 01:23:06,440 not have any relationship between 1910 01:23:06,440 --> 01:23:08,480 them so they will not have any 1911 01:23:08,480 --> 01:23:09,960 relationship between 1912 01:23:09,960 --> 01:23:12,960 them because in a perfect star schema 1913 01:23:12,960 --> 01:23:15,000 Dimension don't join with any Dimension 1914 01:23:15,000 --> 01:23:18,600 fact don't join with any fact so we will 1915 01:23:18,600 --> 01:23:20,400 utilize this model for most of our 1916 01:23:20,400 --> 01:23:23,480 discussion but yes there would be places 1917 01:23:23,480 --> 01:23:27,400 for some of the examples this model 1918 01:23:27,400 --> 01:23:29,679 cannot be used and that's where we are 1919 01:23:29,679 --> 01:23:32,080 going to use very specific files and 1920 01:23:32,080 --> 01:23:35,760 specific table or the models to achieve 1921 01:23:35,760 --> 01:23:36,800 those 1922 01:23:36,800 --> 01:23:38,920 objectives now we have looked at the 1923 01:23:38,920 --> 01:23:41,760 model we know this model is not as per 1924 01:23:41,760 --> 01:23:45,520 our expectation first of all there is an 1925 01:23:45,520 --> 01:23:47,600 inactive joint and we need to understand 1926 01:23:47,600 --> 01:23:49,480 why there is an inactive joint and we 1927 01:23:49,480 --> 01:23:50,960 have to also understand what are these 1928 01:23:50,960 --> 01:23:52,520 different kind of joints why there's a 1929 01:23:52,520 --> 01:23:54,560 one on one side and why there is a a 1930 01:23:54,560 --> 01:23:57,560 star on one side so the relationships 1931 01:23:57,560 --> 01:23:59,920 which is showing one and star they are 1932 01:23:59,920 --> 01:24:02,480 one too many relationships and these are 1933 01:24:02,480 --> 01:24:04,679 the kind of relationship we want in this 1934 01:24:04,679 --> 01:24:07,840 kind of schema the inactive relationship 1935 01:24:07,840 --> 01:24:10,560 here is because of loop what is the loop 1936 01:24:10,560 --> 01:24:14,360 here or what is the two path here the 1937 01:24:14,360 --> 01:24:16,360 relationship here which is inactive is 1938 01:24:16,360 --> 01:24:18,440 because of the loop or the two paths 1939 01:24:18,440 --> 01:24:19,960 table is joined with a customer table 1940 01:24:19,960 --> 01:24:22,199 one to many and again there is a one to 1941 01:24:22,199 --> 01:24:23,920 many relationship with sales table it 1942 01:24:23,920 --> 01:24:25,639 means this this is the first path 1943 01:24:25,639 --> 01:24:28,320 geography can reach to sales there is 1944 01:24:28,320 --> 01:24:30,440 also a direct path where geography can 1945 01:24:30,440 --> 01:24:32,400 reach to the sales and in this manner 1946 01:24:32,400 --> 01:24:33,920 there are two paths which are created 1947 01:24:33,920 --> 01:24:37,320 and because of that one path is inactive 1948 01:24:37,320 --> 01:24:40,040 let me delete these 1949 01:24:40,040 --> 01:24:43,520 relationship I'm going to delete some of 1950 01:24:43,520 --> 01:24:46,400 the existing relationship also because I 1951 01:24:46,400 --> 01:24:48,280 want to tell you how to create 1952 01:24:48,280 --> 01:24:50,880 relationship we have few options to do 1953 01:24:50,880 --> 01:24:55,719 that and let me delete all of them to 1954 01:24:55,719 --> 01:24:58,320 create relationship for you you can drag 1955 01:24:58,320 --> 01:25:00,800 the table wherever you want to have a 1956 01:25:00,800 --> 01:25:02,719 position where you can easily map the 1957 01:25:02,719 --> 01:25:05,000 tables 1958 01:25:05,000 --> 01:25:07,639 now easiest way to create a relationship 1959 01:25:07,639 --> 01:25:10,119 is click on any of the column keep your 1960 01:25:10,119 --> 01:25:12,760 mouse button pressed and drag it on the 1961 01:25:12,760 --> 01:25:15,239 corresponding column on the other table 1962 01:25:15,239 --> 01:25:18,560 so I am dragging customer ID of the 1963 01:25:18,560 --> 01:25:21,639 customer on the customer ID of the sales 1964 01:25:21,639 --> 01:25:23,760 and it created a relationship it did not 1965 01:25:23,760 --> 01:25:26,040 ask me what kind of a relationship 1966 01:25:26,040 --> 01:25:28,000 because it has identified but let me 1967 01:25:28,000 --> 01:25:31,480 double click on this and show you on the 1968 01:25:31,480 --> 01:25:33,760 popup also on the right hand side in the 1969 01:25:33,760 --> 01:25:35,360 properties pane which I have already 1970 01:25:35,360 --> 01:25:37,679 open you can see what this relationship 1971 01:25:37,679 --> 01:25:39,679 is but let me double click and show you 1972 01:25:39,679 --> 01:25:42,040 in the popup in this popup we can also 1973 01:25:42,040 --> 01:25:44,040 change the relationship column if 1974 01:25:44,040 --> 01:25:46,239 required the sales table is on the top 1975 01:25:46,239 --> 01:25:48,000 and the customer ID is selected the 1976 01:25:48,000 --> 01:25:50,800 customer table is at the bottom and the 1977 01:25:50,800 --> 01:25:52,760 customer ID is selected there and it is 1978 01:25:52,760 --> 01:25:54,960 many to one what does this kind of 1979 01:25:54,960 --> 01:25:57,400 relationship means many to one means the 1980 01:25:57,400 --> 01:26:00,040 first table is having on the man side it 1981 01:26:00,040 --> 01:26:02,880 means the customer IDs can repeat there 1982 01:26:02,880 --> 01:26:05,600 the customer table is on the one side it 1983 01:26:05,600 --> 01:26:08,320 means the IDS are not going to repeat 1984 01:26:08,320 --> 01:26:10,600 there in case in the future it repeats 1985 01:26:10,600 --> 01:26:13,480 it may error out it may not also work if 1986 01:26:13,480 --> 01:26:16,159 you have blank value in the customer ID 1987 01:26:16,159 --> 01:26:19,000 of the customer table it is fine you can 1988 01:26:19,000 --> 01:26:21,840 have the blank on the sales site the 1989 01:26:21,840 --> 01:26:24,040 relationship Direction is single it 1990 01:26:24,040 --> 01:26:26,520 means means the customer table the table 1991 01:26:26,520 --> 01:26:28,679 on the one side is going to filter the 1992 01:26:28,679 --> 01:26:30,679 table on the many side you're going to 1993 01:26:30,679 --> 01:26:33,560 create one relationship as both 1994 01:26:33,560 --> 01:26:35,400 understand that what are the other kind 1995 01:26:35,400 --> 01:26:37,520 of relationship one to one means both 1996 01:26:37,520 --> 01:26:39,280 the tables are having the data at the 1997 01:26:39,280 --> 01:26:41,719 same level it means I join customer 1998 01:26:41,719 --> 01:26:44,239 table with a table let's say customer 2 1999 01:26:44,239 --> 01:26:46,719 which both is having customer ideas 2000 01:26:46,719 --> 01:26:49,679 unique in that case I will have a one to 2001 01:26:49,679 --> 01:26:52,480 one relationship one to many means if I 2002 01:26:52,480 --> 01:26:54,520 have the customer table above and the 2003 01:26:54,520 --> 01:26:56,159 sales table below it would be one to 2004 01:26:56,159 --> 01:26:57,880 many it is just reverse of what we 2005 01:26:57,880 --> 01:27:00,639 currently have many to many means just 2006 01:27:00,639 --> 01:27:02,639 like sales table we have another table 2007 01:27:02,639 --> 01:27:05,239 where the customer ID is not unique both 2008 01:27:05,239 --> 01:27:07,080 the side there are multiple values we 2009 01:27:07,080 --> 01:27:09,679 create many to many relationship though 2010 01:27:09,679 --> 01:27:12,040 we avoid many to many relationship in 2011 01:27:12,040 --> 01:27:14,159 most of the cases they're especially 2012 01:27:14,159 --> 01:27:16,560 useful in few of the use cases and one 2013 01:27:16,560 --> 01:27:19,480 of such use cases is RO level security 2014 01:27:19,480 --> 01:27:22,040 so while we try to avoid many to many 2015 01:27:22,040 --> 01:27:24,560 relationship it is also helpful and 2016 01:27:24,560 --> 01:27:27,080 powerbi handles many to many 2017 01:27:27,080 --> 01:27:30,040 relationship pretty well so let me click 2018 01:27:30,040 --> 01:27:32,920 on okay after using that and make 2019 01:27:32,920 --> 01:27:34,440 relationship active means this 2020 01:27:34,440 --> 01:27:37,480 relationship is going to be active in 2021 01:27:37,480 --> 01:27:40,000 powerbi you cannot select more than one 2022 01:27:40,000 --> 01:27:42,880 colum so if I try to click on this using 2023 01:27:42,880 --> 01:27:44,960 control or shift I will not be able to 2024 01:27:44,960 --> 01:27:47,920 do it it means we create a single column 2025 01:27:47,920 --> 01:27:50,760 relationship but to create multiple 2026 01:27:50,760 --> 01:27:53,600 column relationship you can create a 2027 01:27:53,600 --> 01:27:55,679 concatenate 2028 01:27:55,679 --> 01:27:58,920 column to create such a relationship in 2029 01:27:58,920 --> 01:28:00,800 case of direct query you have been 2030 01:28:00,800 --> 01:28:03,880 provided a function which you can use 2031 01:28:03,880 --> 01:28:06,199 which is combine values to create such a 2032 01:28:06,199 --> 01:28:09,760 concatenated column you can create more 2033 01:28:09,760 --> 01:28:12,520 than one relationship and one 2034 01:28:12,520 --> 01:28:15,560 relationship can be inactive between the 2035 01:28:15,560 --> 01:28:19,000 two tables and we can use a function use 2036 01:28:19,000 --> 01:28:22,520 relationship to activate such 2037 01:28:22,520 --> 01:28:25,679 relationship let me press that's okay 2038 01:28:25,679 --> 01:28:28,360 now the second relationship I want to 2039 01:28:28,360 --> 01:28:31,119 create from a different option the 2040 01:28:31,119 --> 01:28:33,360 option is in the middle of the screen 2041 01:28:33,360 --> 01:28:35,239 which is manage relationship under the 2042 01:28:35,239 --> 01:28:37,320 Home 2043 01:28:37,320 --> 01:28:39,480 tab let me click on the manage 2044 01:28:39,480 --> 01:28:42,800 relationship and here you see a popup 2045 01:28:42,800 --> 01:28:45,639 providing me all the options one of the 2046 01:28:45,639 --> 01:28:48,400 option which I have here is new and I'm 2047 01:28:48,400 --> 01:28:50,239 going to use that to create my 2048 01:28:50,239 --> 01:28:53,400 relationship let me click on new and let 2049 01:28:53,400 --> 01:28:55,400 me select the table this time I'm going 2050 01:28:55,400 --> 01:28:57,560 to select 2051 01:28:57,560 --> 01:29:01,440 my item table as the first 2052 01:29:01,440 --> 01:29:04,880 table then I will select sales table now 2053 01:29:04,880 --> 01:29:06,960 it has automatically detected item id 2054 01:29:06,960 --> 01:29:09,320 versus Item ID I don't need to even 2055 01:29:09,320 --> 01:29:12,080 click and check those it is one too many 2056 01:29:12,080 --> 01:29:13,880 single directional relationship this is 2057 01:29:13,880 --> 01:29:16,199 what I want the table having the unique 2058 01:29:16,199 --> 01:29:18,840 values of the item ID is on the top so 2059 01:29:18,840 --> 01:29:21,560 that is why it is one too many again I 2060 01:29:21,560 --> 01:29:24,239 want this relationship to be active but 2061 01:29:24,239 --> 01:29:25,880 I'm going to make this relationship as 2062 01:29:25,880 --> 01:29:28,560 bir directional both let me click on 2063 01:29:28,560 --> 01:29:31,199 okay let me close it the third 2064 01:29:31,199 --> 01:29:33,360 relationship easy I'm going to drag City 2065 01:29:33,360 --> 01:29:36,920 ID to City ID to create it and on the 2066 01:29:36,920 --> 01:29:38,639 right hand side properties you can see 2067 01:29:38,639 --> 01:29:40,639 in case you want to change something you 2068 01:29:40,639 --> 01:29:42,520 can even change the relationship let's 2069 01:29:42,520 --> 01:29:45,719 say some other column if needed but as 2070 01:29:45,719 --> 01:29:47,800 we know the relationship is correct City 2071 01:29:47,800 --> 01:29:50,480 ID to City ID and this is single 2072 01:29:50,480 --> 01:29:53,320 directional and we want an active 2073 01:29:53,320 --> 01:29:57,440 relationship so we will say apply 2074 01:29:57,800 --> 01:29:59,760 changes you can also open the 2075 01:29:59,760 --> 01:30:02,159 relationship editor by clicking on the 2076 01:30:02,159 --> 01:30:05,080 button 2077 01:30:05,600 --> 01:30:10,119 below let me press cancel so my model is 2078 01:30:10,119 --> 01:30:13,159 ready as a next step I would like to 2079 01:30:13,159 --> 01:30:16,199 understand the difference between a 2080 01:30:16,199 --> 01:30:18,880 single directional join and a bir 2081 01:30:18,880 --> 01:30:20,560 directional 2082 01:30:20,560 --> 01:30:23,239 join and we would also like to 2083 01:30:23,239 --> 01:30:25,560 understand what happen happens when 2084 01:30:25,560 --> 01:30:27,440 there is a missing 2085 01:30:27,440 --> 01:30:31,080 relationship for two those two example 2086 01:30:31,080 --> 01:30:33,360 let's go ahead and try that out our 2087 01:30:33,360 --> 01:30:35,880 powerbi model is ready and here we want 2088 01:30:35,880 --> 01:30:39,639 to understand the difference between a 2089 01:30:39,639 --> 01:30:41,400 one directional relation and bir 2090 01:30:41,400 --> 01:30:44,119 directional relation to understand this 2091 01:30:44,119 --> 01:30:46,840 let's go ahead and create few table 2092 01:30:46,840 --> 01:30:48,360 visuals 2093 01:30:48,360 --> 01:30:51,960 now to do that first of all we have to 2094 01:30:51,960 --> 01:30:56,000 go to the report view on the left hand 2095 01:30:56,000 --> 01:30:58,159 side the first button is report view 2096 01:30:58,159 --> 01:31:00,600 here because I have already enabled the 2097 01:31:00,600 --> 01:31:01,840 build 2098 01:31:01,840 --> 01:31:04,320 visual I'm able to see 2099 01:31:04,320 --> 01:31:06,840 this otherwise on the Home tab you will 2100 01:31:06,840 --> 01:31:09,679 see these options in case you don't see 2101 01:31:09,679 --> 01:31:13,719 build a visual you can go to the view 2102 01:31:13,719 --> 01:31:17,480 and enable that from here build a 2103 01:31:17,480 --> 01:31:20,440 visual now let me click on the table 2104 01:31:20,440 --> 01:31:25,800 visual inside build a visual 2105 01:31:28,040 --> 01:31:30,199 once I click on that I'll get a table 2106 01:31:30,199 --> 01:31:32,080 visual I'm going to copy this visual 2107 01:31:32,080 --> 01:31:35,760 three times and put them 2108 01:31:35,760 --> 01:31:39,080 separately now let's look back at our 2109 01:31:39,080 --> 01:31:41,320 relationship so item is bir directional 2110 01:31:41,320 --> 01:31:43,679 and geography is single directional 2111 01:31:43,679 --> 01:31:46,159 customer is also single directional I 2112 01:31:46,159 --> 01:31:50,639 create one visual using CTI ID only City 2113 01:31:50,639 --> 01:31:54,159 ID I'm bringing in the second visual I 2114 01:31:54,159 --> 01:31:55,600 am bringing 2115 01:31:55,600 --> 01:31:58,800 in Item 2116 01:31:58,800 --> 01:32:02,639 ID and in the third visual I am bringing 2117 01:32:02,639 --> 01:32:08,280 in City ID from sales table 2118 01:32:08,280 --> 01:32:11,880 and item id also from sales table so 2119 01:32:11,880 --> 01:32:14,719 first table there is a city ID from 2120 01:32:14,719 --> 01:32:19,119 geography table in the second visual I 2121 01:32:19,119 --> 01:32:23,080 have Item ID from the item table and in 2122 01:32:23,080 --> 01:32:26,760 the third visual ual I have City ID and 2123 01:32:26,760 --> 01:32:29,199 item ID from the sales table I have 2124 01:32:29,199 --> 01:32:31,760 knowingly kept it on the ID so that you 2125 01:32:31,760 --> 01:32:33,560 can easily understand what's happening 2126 01:32:33,560 --> 01:32:36,440 here so let me click on the item ID in 2127 01:32:36,440 --> 01:32:39,239 the second table and as you can see it 2128 01:32:39,239 --> 01:32:41,199 has filtered the third table there's no 2129 01:32:41,199 --> 01:32:43,840 impact on the other dimension table let 2130 01:32:43,840 --> 01:32:46,440 me click on the city ID and as you can 2131 01:32:46,440 --> 01:32:50,920 see the city ID also filtering the table 2132 01:32:50,920 --> 01:32:53,080 visual as I've not pressed Control Plus 2133 01:32:53,080 --> 01:32:55,600 click the moment I clicked on other 2134 01:32:55,600 --> 01:33:00,239 visual it take out the filter from the 2135 01:33:00,239 --> 01:33:02,080 second Visual and it applies The Zone 2136 01:33:02,080 --> 01:33:04,239 filter let me go ahead and click on City 2137 01:33:04,239 --> 01:33:06,239 ID again it will remove the filter so I 2138 01:33:06,239 --> 01:33:08,600 will have all the cities and I have all 2139 01:33:08,600 --> 01:33:10,560 the item id let me click on the first 2140 01:33:10,560 --> 01:33:12,920 row of the visual which is coming from 2141 01:33:12,920 --> 01:33:15,639 the sales table what you can see here is 2142 01:33:15,639 --> 01:33:18,239 while the city ID from the city table 2143 01:33:18,239 --> 01:33:21,639 has no impact but Item ID is getting 2144 01:33:21,639 --> 01:33:24,760 filtered here when I'm fil ing this this 2145 01:33:24,760 --> 01:33:27,639 is because the joint is bir directional 2146 01:33:27,639 --> 01:33:29,560 a bir directional joint 2147 01:33:29,560 --> 01:33:32,480 means 2148 01:33:32,480 --> 01:33:36,400 fact can filter Dimension and dimension 2149 01:33:36,400 --> 01:33:41,560 can also filter fact or both side of the 2150 01:33:41,560 --> 01:33:44,719 relationship can filter each other while 2151 01:33:44,719 --> 01:33:46,679 in a single directional relationship the 2152 01:33:46,679 --> 01:33:49,159 table on the one side which is dimension 2153 01:33:49,159 --> 01:33:54,440 can filter the many side table 2154 01:33:54,520 --> 01:33:57,520 in fact now let's try to understand what 2155 01:33:57,520 --> 01:33:59,400 happens when there is no join or how do 2156 01:33:59,400 --> 01:34:02,480 we identify there is no join let me 2157 01:34:02,480 --> 01:34:05,480 delete all these visuals on 2158 01:34:05,480 --> 01:34:08,440 this and let me bring in another table 2159 01:34:08,440 --> 01:34:11,679 Visual and this time in the table visual 2160 01:34:11,679 --> 01:34:14,880 I would like to bring in item brand so 2161 01:34:14,880 --> 01:34:16,920 the way to bring in is that 2162 01:34:16,920 --> 01:34:19,800 I once the table is selected I can click 2163 01:34:19,800 --> 01:34:23,159 on that it will bring in and then I'll 2164 01:34:23,159 --> 01:34:25,119 bring inant quantity by default it 2165 01:34:25,119 --> 01:34:27,840 should take aggregation as you can see 2166 01:34:27,840 --> 01:34:30,760 it is using sum of 2167 01:34:30,760 --> 01:34:34,600 quantity so numeric values are by 2168 01:34:34,600 --> 01:34:37,080 default aggregated you have to 2169 01:34:37,080 --> 01:34:41,400 understand in powerbi the data is either 2170 01:34:41,400 --> 01:34:47,080 distinct or group by and aggregated so 2171 01:34:47,080 --> 01:34:49,719 even though my item IDs are repeating in 2172 01:34:49,719 --> 01:34:51,480 my sales table but if I put it from the 2173 01:34:51,480 --> 01:34:53,760 sales table they will not repeat here 2174 01:34:53,760 --> 01:34:55,159 they will just create a distinct 2175 01:34:55,159 --> 01:34:58,280 combination or group by and then if I 2176 01:34:58,280 --> 01:35:00,480 put a aggregated mejor or a numeric 2177 01:35:00,480 --> 01:35:02,600 majure that can aggregate that will 2178 01:35:02,600 --> 01:35:05,239 aggregate along with that group by as 2179 01:35:05,239 --> 01:35:07,199 you can see these values are different 2180 01:35:07,199 --> 01:35:09,199 and this is actually my 2181 01:35:09,199 --> 01:35:11,960 total and now let me go ahead and do one 2182 01:35:11,960 --> 01:35:13,880 thing which will tell you how do you 2183 01:35:13,880 --> 01:35:16,719 identify a missing relationship what I 2184 01:35:16,719 --> 01:35:19,280 will do is I will go to my model 2185 01:35:19,280 --> 01:35:22,840 view and inside the model view I can 2186 01:35:22,840 --> 01:35:25,600 delete this join between item and sales 2187 01:35:25,600 --> 01:35:30,040 table or I can deactivate it by using 2188 01:35:30,040 --> 01:35:33,600 make this relationship active I 2189 01:35:33,600 --> 01:35:36,520 can uncheck that and it will become 2190 01:35:36,520 --> 01:35:40,040 inactive and use apply this is as good 2191 01:35:40,040 --> 01:35:43,080 as not having a filation and once I go 2192 01:35:43,080 --> 01:35:46,040 back to the report 2193 01:35:46,119 --> 01:35:49,719 view you will see that the all the rows 2194 01:35:49,719 --> 01:35:52,159 have the same data when all the rows 2195 01:35:52,159 --> 01:35:54,040 start showing the same data as grand 2196 01:35:54,040 --> 01:35:56,520 total there are chances that we have in 2197 01:35:56,520 --> 01:35:59,840 active relationship or the relationship 2198 01:35:59,840 --> 01:36:01,880 itself is not 2199 01:36:01,880 --> 01:36:04,159 there the good thing with the inactive 2200 01:36:04,159 --> 01:36:06,920 relationship which is logical inactive 2201 01:36:06,920 --> 01:36:09,159 relationship or inactive relationship 2202 01:36:09,159 --> 01:36:11,080 which is not created because of loop we 2203 01:36:11,080 --> 01:36:13,639 can activate it using use relationship 2204 01:36:13,639 --> 01:36:16,480 Dex function in this manner you now 2205 01:36:16,480 --> 01:36:19,760 learn how to use bir directional 2206 01:36:19,760 --> 01:36:23,239 relationship and how you can find out 2207 01:36:23,239 --> 01:36:25,960 when there is an inactive joint now is 2208 01:36:25,960 --> 01:36:27,679 bir directional relationship is a good 2209 01:36:27,679 --> 01:36:29,800 thing so when should we use bir 2210 01:36:29,800 --> 01:36:31,600 directional joint and when we should not 2211 01:36:31,600 --> 01:36:35,400 use bir Direction so bir directional 2212 01:36:35,400 --> 01:36:37,040 joints are especially helpful if you 2213 01:36:37,040 --> 01:36:41,560 want the dimensions to get filtered uh 2214 01:36:41,560 --> 01:36:43,320 when your fact data is getting 2215 01:36:43,320 --> 01:36:46,639 filtered but when you start using more 2216 01:36:46,639 --> 01:36:49,800 than one fact so in case you have more 2217 01:36:49,800 --> 01:36:52,639 than one facts it can create Loops for 2218 01:36:52,639 --> 01:36:55,440 multiple paths what would happen you 2219 01:36:55,440 --> 01:36:58,040 will be able to reach a fact from more 2220 01:36:58,040 --> 01:37:00,080 than one place let's say you create go 2221 01:37:00,080 --> 01:37:02,159 to Dimension to fact by directional 2222 01:37:02,159 --> 01:37:04,639 another fact is again bir directional 2223 01:37:04,639 --> 01:37:06,400 then there are multiple paths available 2224 01:37:06,400 --> 01:37:07,920 in such cases you start creating 2225 01:37:07,920 --> 01:37:10,239 inactive relationship we should try to 2226 01:37:10,239 --> 01:37:11,920 avoid this is one more place where you 2227 01:37:11,920 --> 01:37:13,320 should avoid is basically when you are 2228 01:37:13,320 --> 01:37:15,679 using direct query now what happens in 2229 01:37:15,679 --> 01:37:18,600 case of direct 2230 01:37:18,760 --> 01:37:21,040 query there are queries which are 2231 01:37:21,040 --> 01:37:23,080 generated and sent to the source now 2232 01:37:23,080 --> 01:37:24,560 when you have have bod directional joint 2233 01:37:24,560 --> 01:37:26,840 it will generate more number of queries 2234 01:37:26,840 --> 01:37:29,600 and in that will put lot of strain on 2235 01:37:29,600 --> 01:37:32,760 your Source database so to optimize the 2236 01:37:32,760 --> 01:37:34,880 performance in a direct query mode we 2237 01:37:34,880 --> 01:37:37,320 try to avoid bir directional 2238 01:37:37,320 --> 01:37:40,119 relation so bir directional relationship 2239 01:37:40,119 --> 01:37:42,000 should only be 2240 01:37:42,000 --> 01:37:47,000 used if that is the only way you can 2241 01:37:47,000 --> 01:37:50,000 solve the purpose if there is no other 2242 01:37:50,000 --> 01:37:52,440 way to achieve the same thing like I 2243 01:37:52,440 --> 01:37:54,080 want to 2244 01:37:54,080 --> 01:37:56,760 filter the dimension data using fact we 2245 01:37:56,760 --> 01:37:59,760 can actually use in the slicer a measure 2246 01:37:59,760 --> 01:38:02,480 from the fact and check its value as is 2247 01:38:02,480 --> 01:38:05,840 not blank to filter the 2248 01:38:05,840 --> 01:38:08,560 slicers to reduce the slicers values 2249 01:38:08,560 --> 01:38:10,119 what has been used in fact that is 2250 01:38:10,119 --> 01:38:13,119 another alternative but if there is no 2251 01:38:13,119 --> 01:38:14,480 other 2252 01:38:14,480 --> 01:38:16,800 alternative by directional joint is only 2253 01:38:16,800 --> 01:38:18,440 fit for the purpose then only we should 2254 01:38:18,440 --> 01:38:21,639 use it now before I go to the next step 2255 01:38:21,639 --> 01:38:24,639 let me go ahead and activate this 2256 01:38:24,639 --> 01:38:27,520 relationship and apply 2257 01:38:27,520 --> 01:38:31,239 changes so that our model is correct as 2258 01:38:31,239 --> 01:38:35,159 you can see once I have activated the 2259 01:38:35,159 --> 01:38:39,440 join again I'm able to see the correct 2260 01:38:39,440 --> 01:38:43,199 Data before I take the next tab let's do 2261 01:38:43,199 --> 01:38:46,280 one thing let's add an image to this 2262 01:38:46,280 --> 01:38:47,440 first 2263 01:38:47,440 --> 01:38:51,400 page the image of this series and then 2264 01:38:51,400 --> 01:38:53,920 save this file because we have not saved 2265 01:38:53,920 --> 01:38:56,280 this file so in case the system crashes 2266 01:38:56,280 --> 01:38:59,760 or something goes off the changes might 2267 01:38:59,760 --> 01:39:01,800 not be fully recoverable though we have 2268 01:39:01,800 --> 01:39:05,159 used an option auto backup that may be 2269 01:39:05,159 --> 01:39:06,760 able to provide 2270 01:39:06,760 --> 01:39:10,520 us autosaved version which we can use I 2271 01:39:10,520 --> 01:39:12,719 click on this empty page let me click on 2272 01:39:12,719 --> 01:39:15,719 the format option and enable the format 2273 01:39:15,719 --> 01:39:18,400 pane once I get the format pane in the 2274 01:39:18,400 --> 01:39:20,119 Page 2275 01:39:20,119 --> 01:39:24,280 information I can scroll down 2276 01:39:24,280 --> 01:39:26,639 and in the canvas background I can 2277 01:39:26,639 --> 01:39:28,639 browse an 2278 01:39:28,639 --> 01:39:30,920 image I can take the image which I 2279 01:39:30,920 --> 01:39:33,920 recently download 2280 01:39:33,960 --> 01:39:38,840 it and reduce the transparency to zero 2281 01:39:38,840 --> 01:39:41,599 image fit is normal I can use a fit so 2282 01:39:41,599 --> 01:39:45,320 that it fits in and in this manner I get 2283 01:39:45,320 --> 01:39:50,520 my homepage with the image which is 2284 01:39:50,520 --> 01:39:53,920 my image of the series 2285 01:39:53,920 --> 01:39:55,239 now you might be seeing this build 2286 01:39:55,239 --> 01:39:57,960 visual is still there now Prov that what 2287 01:39:57,960 --> 01:40:00,639 I can do is I can add something really 2288 01:40:00,639 --> 01:40:03,800 small in this page so I can go to insert 2289 01:40:03,800 --> 01:40:06,639 and then I can let's say insert a shape 2290 01:40:06,639 --> 01:40:07,960 let's bring in a 2291 01:40:07,960 --> 01:40:10,599 rectangle and 2292 01:40:10,599 --> 01:40:14,760 let's do one thing go to 2293 01:40:14,760 --> 01:40:16,560 the 2294 01:40:16,560 --> 01:40:20,760 style fill off border 2295 01:40:20,760 --> 01:40:24,239 off and come outside now you don't know 2296 01:40:24,239 --> 01:40:26,159 there is a rectangle and you get the 2297 01:40:26,159 --> 01:40:30,440 image so let's save it contrl s give it 2298 01:40:30,440 --> 01:40:32,840 a new name uh it's going to save on a 2299 01:40:32,840 --> 01:40:34,920 default location and if you want to 2300 01:40:34,920 --> 01:40:37,599 change that click on the more options 2301 01:40:37,599 --> 01:40:40,239 below once you click on the more option 2302 01:40:40,239 --> 01:40:43,119 it will open and now it is showing me 2303 01:40:43,119 --> 01:40:45,080 documents on the top but if you go on 2304 01:40:45,080 --> 01:40:47,840 the left hand side little bit below you 2305 01:40:47,840 --> 01:40:50,440 will see browse this device let me click 2306 01:40:50,440 --> 01:40:53,560 on browse this device now it opens up 2307 01:40:53,560 --> 01:40:56,400 option and as you know that we save all 2308 01:40:56,400 --> 01:40:58,880 our files in data but not this time 2309 01:40:58,880 --> 01:41:01,840 we're going to save the file in our end 2310 01:41:01,840 --> 01:41:04,440 to end and I'll also create a new folder 2311 01:41:04,440 --> 01:41:07,800 for that right click in that new folder 2312 01:41:07,800 --> 01:41:10,360 we going to call it 2313 01:41:10,360 --> 01:41:12,679 data we don't have a data here but we 2314 01:41:12,679 --> 01:41:15,360 have a PB file and I'll give it a name 2315 01:41:15,360 --> 01:41:20,159 as n to and and what would happen during 2316 01:41:20,159 --> 01:41:22,800 this series there would be movements 2317 01:41:22,800 --> 01:41:24,920 where I I need to stop and start a new 2318 01:41:24,920 --> 01:41:27,719 file maybe I don't want to use it or I 2319 01:41:27,719 --> 01:41:29,040 want to save it a particular place 2320 01:41:29,040 --> 01:41:30,480 because I want to modify certain other 2321 01:41:30,480 --> 01:41:33,400 things or it is too busy file at that 2322 01:41:33,400 --> 01:41:35,560 moment I may like to shift it especially 2323 01:41:35,560 --> 01:41:39,119 when we are going to go to the power 2324 01:41:39,119 --> 01:41:41,360 query learning we might not use these 2325 01:41:41,360 --> 01:41:43,880 tables when we try to create the final 2326 01:41:43,880 --> 01:41:47,880 dashboard we might not require it so at 2327 01:41:47,880 --> 01:41:50,880 that time we might create a one more 2328 01:41:50,880 --> 01:41:53,960 version of this file so to do to create 2329 01:41:53,960 --> 01:41:56,960 the scope for that I'll call it n to and 2330 01:41:56,960 --> 01:41:59,639 one file and let me save it now for 2331 01:41:59,639 --> 01:42:02,679 saving now I have three options PB which 2332 01:42:02,679 --> 01:42:06,199 is power ba file pbit which is the 2333 01:42:06,199 --> 01:42:07,920 template file which was also available 2334 01:42:07,920 --> 01:42:10,320 previously to create the template and 2335 01:42:10,320 --> 01:42:12,560 powerbi project file which is a new 2336 01:42:12,560 --> 01:42:14,119 option available with the GitHub 2337 01:42:14,119 --> 01:42:16,199 integration this is one of the most 2338 01:42:16,199 --> 01:42:18,400 suitable options you have but we will 2339 01:42:18,400 --> 01:42:21,840 continue to save it as a PBX and save it 2340 01:42:21,840 --> 01:42:25,440 so now over powerbi file is 2341 01:42:25,440 --> 01:42:29,800 saved before we go into the depth of 2342 01:42:29,800 --> 01:42:31,560 calculated column and 2343 01:42:31,560 --> 01:42:34,119 major one of the reason we say is that 2344 01:42:34,119 --> 01:42:36,520 you know when we want to do role level 2345 01:42:36,520 --> 01:42:40,080 calculation we can prefer columns to you 2346 01:42:40,080 --> 01:42:42,199 know make sure that it increase the load 2347 01:42:42,199 --> 01:42:45,000 time and if the data is pretty large the 2348 01:42:45,000 --> 01:42:47,320 runtime calculation at the row level 2349 01:42:47,320 --> 01:42:51,199 could actually proven be costly but if 2350 01:42:51,199 --> 01:42:52,679 it is not costly then go ahead and 2351 01:42:52,679 --> 01:42:54,520 create a 2352 01:42:54,520 --> 01:42:57,480 now what is this Ro level calculation 2353 01:42:57,480 --> 01:43:00,440 and when would I use Ro level 2354 01:43:00,440 --> 01:43:02,960 calculation and when I should not use Ro 2355 01:43:02,960 --> 01:43:03,840 level 2356 01:43:03,840 --> 01:43:06,040 calculation there are few places where 2357 01:43:06,040 --> 01:43:07,880 you can simply take this decision that I 2358 01:43:07,880 --> 01:43:10,400 need a ro level calculation whether at 2359 01:43:10,400 --> 01:43:12,520 the new calculated column level or major 2360 01:43:12,520 --> 01:43:15,920 level or whether I don't need it there 2361 01:43:15,920 --> 01:43:17,679 is a place where I should not do ro 2362 01:43:17,679 --> 01:43:19,320 level calculation I should create a 2363 01:43:19,320 --> 01:43:22,719 mejor or what is that kind of scenario 2364 01:43:22,719 --> 01:43:24,520 so when whenever we have to multiply we 2365 01:43:24,520 --> 01:43:26,599 have to use the row level calculation 2366 01:43:26,599 --> 01:43:28,960 whether we use calculated column or a 2367 01:43:28,960 --> 01:43:31,920 measure but when it's a 2368 01:43:31,920 --> 01:43:35,040 division the division should always be 2369 01:43:35,040 --> 01:43:37,599 first Aggregate and then divide it it 2370 01:43:37,599 --> 01:43:39,880 means it should be a measure let me give 2371 01:43:39,880 --> 01:43:42,800 you one example for that so I have these 2372 01:43:42,800 --> 01:43:47,080 items I have quantity and price now what 2373 01:43:47,080 --> 01:43:50,040 is gross quantity multip by price is 2374 01:43:50,040 --> 01:43:53,760 basically this formula so this is 50 70 2375 01:43:53,760 --> 01:43:55,360 80 and 2376 01:43:55,360 --> 01:43:57,960 90 now so I'm multiplying at each row 2377 01:43:57,960 --> 01:44:00,080 level and then finally I'm summing it up 2378 01:44:00,080 --> 01:44:01,239 here as 2379 01:44:01,239 --> 01:44:04,960 290 is this is correct or should I 2380 01:44:04,960 --> 01:44:07,920 simply sum of the quantities average of 2381 01:44:07,920 --> 01:44:10,239 the price I definitely know if I Su of 2382 01:44:10,239 --> 01:44:12,400 the price it's not the correct so it's 2383 01:44:12,400 --> 01:44:13,639 going to 2384 01:44:13,639 --> 01:44:17,239 be 70 * by 2385 01:44:17,239 --> 01:44:20,520 4.75 which is 3325 so which one is 2386 01:44:20,520 --> 01:44:25,599 correct we know here two 2 990 is the 2387 01:44:25,599 --> 01:44:26,639 correct 2388 01:44:26,639 --> 01:44:28,760 answer it's not 2389 01:44:28,760 --> 01:44:33,400 33 2.5 that's not the correct answer 2390 01:44:33,400 --> 01:44:35,360 whenever there is a multiplication we 2391 01:44:35,360 --> 01:44:37,199 should do it at the row level and then 2392 01:44:37,199 --> 01:44:40,639 we should add which actually we call it 2393 01:44:40,639 --> 01:44:44,639 sum of a multi by 2394 01:44:44,639 --> 01:44:47,520 b means false you multiply now in 2395 01:44:47,520 --> 01:44:53,360 database we can do this sum of a * by B 2396 01:44:53,360 --> 01:44:56,520 inside the sum function that is not true 2397 01:44:56,520 --> 01:44:59,199 in power bi when we creating a major and 2398 01:44:59,199 --> 01:45:01,800 major is one where we do have 2399 01:45:01,800 --> 01:45:06,040 aggregation built in there we need to 2400 01:45:06,040 --> 01:45:08,400 use expression function to do a mtip by 2401 01:45:08,400 --> 01:45:11,360 b or we can create a calculated column 2402 01:45:11,360 --> 01:45:13,480 which contain a multip by b means in 2403 01:45:13,480 --> 01:45:16,080 this case cross and later can create a 2404 01:45:16,080 --> 01:45:18,320 measure on top of it now there is a 2405 01:45:18,320 --> 01:45:21,320 reverse case the reverse case is when I 2406 01:45:21,320 --> 01:45:23,480 want to find out price using gross and 2407 01:45:23,480 --> 01:45:25,880 quantity so how do I find price so 2408 01:45:25,880 --> 01:45:28,719 simply I'll divide Cross by quantity so 2409 01:45:28,719 --> 01:45:32,960 I got five I got seven I got four I got 2410 01:45:32,960 --> 01:45:35,599 three what's my average price my average 2411 01:45:35,599 --> 01:45:38,440 price is nothing but the total of gross 2412 01:45:38,440 --> 01:45:41,679 divide by total of quantity it is not 2413 01:45:41,679 --> 01:45:43,679 the simple average of these four which 2414 01:45:43,679 --> 01:45:44,679 is 2415 01:45:44,679 --> 01:45:47,920 4.75 which is a simple average of these 2416 01:45:47,920 --> 01:45:53,719 four it's not 4.75 390 / by 70 is 4 2417 01:45:53,719 --> 01:45:57,080 .14 this is my correct 2418 01:45:57,080 --> 01:46:00,080 data it means whenever you need to 2419 01:46:00,080 --> 01:46:04,239 divide you first need to aggregate means 2420 01:46:04,239 --> 01:46:05,960 sum of 2421 01:46:05,960 --> 01:46:12,000 a divide by sum of 2422 01:46:12,199 --> 01:46:13,719 B 2423 01:46:13,719 --> 01:46:16,480 so what does this means is in case of 2424 01:46:16,480 --> 01:46:20,000 division it should be sum of a divide by 2425 01:46:20,000 --> 01:46:23,960 sum of B is first you aggregate 2426 01:46:23,960 --> 01:46:26,800 and then you divide so in such cases we 2427 01:46:26,800 --> 01:46:30,080 should only use measure because 2428 01:46:30,080 --> 01:46:32,320 calculated column is going to do the 2429 01:46:32,320 --> 01:46:34,679 calculation at row level and post that 2430 01:46:34,679 --> 01:46:38,440 the aggregation can happen in a measure 2431 01:46:38,440 --> 01:46:41,280 but in case of measure we can aggregate 2432 01:46:41,280 --> 01:46:43,880 them separately and then divide or in 2433 01:46:43,880 --> 01:46:46,360 the same measure we can say sum of a 2434 01:46:46,360 --> 01:46:49,599 divide by sum of B table and 2435 01:46:49,599 --> 01:46:52,040 column in this manner in some of the 2436 01:46:52,040 --> 01:46:54,560 cases we can take a call where should we 2437 01:46:54,560 --> 01:46:57,199 use a measure or where should we use a 2438 01:46:57,199 --> 01:47:00,080 calculated column remember on a smaller 2439 01:47:00,080 --> 01:47:02,880 data where the roow level calculations 2440 01:47:02,880 --> 01:47:04,880 can be done in a major and not making 2441 01:47:04,880 --> 01:47:07,560 much impact we can still use major for 2442 01:47:07,560 --> 01:47:10,599 RO level calculation but yes there would 2443 01:47:10,599 --> 01:47:12,840 be some time because of the performance 2444 01:47:12,840 --> 01:47:15,280 region we will prefer half of the 2445 01:47:15,280 --> 01:47:17,239 calculation in calculated column and 2446 01:47:17,239 --> 01:47:18,639 then use 2447 01:47:18,639 --> 01:47:22,239 measures need to create calculations and 2448 01:47:22,239 --> 01:47:24,880 these calcul ations are divided into two 2449 01:47:24,880 --> 01:47:28,280 parts calculated columns and measures 2450 01:47:28,280 --> 01:47:30,280 now calculated columns do the 2451 01:47:30,280 --> 01:47:33,400 calculation at the row level 2452 01:47:33,400 --> 01:47:37,320 and they are 2453 01:47:37,320 --> 01:47:39,280 stored in 2454 01:47:39,280 --> 01:47:44,480 the data set semantic model or the file 2455 01:47:44,480 --> 01:47:46,480 all the calculation you are going to do 2456 01:47:46,480 --> 01:47:48,159 you will be able to see what new values 2457 01:47:48,159 --> 01:47:50,800 are getting calculated into the table 2458 01:47:50,800 --> 01:47:53,800 View and you will also be able to see 2459 01:47:53,800 --> 01:47:55,440 that when we save the file the size of 2460 01:47:55,440 --> 01:47:56,280 the file 2461 01:47:56,280 --> 01:47:58,480 increase on the other hand the 2462 01:47:58,480 --> 01:48:00,400 calculation done using the measures are 2463 01:48:00,400 --> 01:48:03,080 only definition and getting executed at 2464 01:48:03,080 --> 01:48:05,719 the run time the calculated column which 2465 01:48:05,719 --> 01:48:08,119 we would like to create right now are 2466 01:48:08,119 --> 01:48:09,440 gross 2467 01:48:09,440 --> 01:48:12,599 amount which is nothing but sales 2468 01:48:12,599 --> 01:48:14,920 quantity multipli by sales 2469 01:48:14,920 --> 01:48:17,440 price the second one which we want to 2470 01:48:17,440 --> 01:48:21,880 create is Discount amount which is 2471 01:48:21,880 --> 01:48:24,320 nothing but sales gross amount which we 2472 01:48:24,320 --> 01:48:26,520 already calculated multiply by the 2473 01:48:26,520 --> 01:48:28,239 discount percentage now discount 2474 01:48:28,239 --> 01:48:30,440 percentage here is an absolute value so 2475 01:48:30,440 --> 01:48:33,239 we have to divide it by 100 gross amount 2476 01:48:33,239 --> 01:48:35,719 multiply by discount percentage divide 2477 01:48:35,719 --> 01:48:37,880 by 100 and one more column which we 2478 01:48:37,880 --> 01:48:40,199 wanted to create is cogs amount which is 2479 01:48:40,199 --> 01:48:43,400 nothing but sales quantity multipli by 2480 01:48:43,400 --> 01:48:44,880 sales 2481 01:48:44,880 --> 01:48:47,159 cost once we reach the measure I'll 2482 01:48:47,159 --> 01:48:49,119 explain you what all measures we 2483 01:48:49,119 --> 01:48:52,360 need I on the powerbi desktop and from 2484 01:48:52,360 --> 01:48:57,280 this Itself by going to the data view I 2485 01:48:57,280 --> 01:49:00,360 can create new column so I can click on 2486 01:49:00,360 --> 01:49:03,840 the sales table and in the table tools I 2487 01:49:03,840 --> 01:49:07,239 will have option for new 2488 01:49:07,960 --> 01:49:10,239 column 2489 01:49:10,239 --> 01:49:13,040 but but I have an intention that when I 2490 01:49:13,040 --> 01:49:15,760 create calculated columns calculated 2491 01:49:15,760 --> 01:49:18,000 columns are getting added up to the 2492 01:49:18,000 --> 01:49:20,520 tables and will be saved along with that 2493 01:49:20,520 --> 01:49:25,199 table so I would like to see the values 2494 01:49:25,199 --> 01:49:27,560 getting generated and that is why I'm 2495 01:49:27,560 --> 01:49:30,119 going to use 2496 01:49:30,119 --> 01:49:34,000 the table view to do that so let me go 2497 01:49:34,000 --> 01:49:35,760 to the table 2498 01:49:35,760 --> 01:49:40,000 View and before I start 2499 01:49:40,000 --> 01:49:43,080 creating my new columns I would like to 2500 01:49:43,080 --> 01:49:46,520 note down the size of my file so that at 2501 01:49:46,520 --> 01:49:48,880 the end I will able to tell that the 2502 01:49:48,880 --> 01:49:51,840 calculated columns are getting saved 2503 01:49:51,840 --> 01:49:55,119 along with the data table and they are 2504 01:49:55,119 --> 01:49:57,599 adding up to the 2505 01:49:57,599 --> 01:50:01,199 table size and majors are not going to 2506 01:50:01,199 --> 01:50:03,520 add the size they are just definitions 2507 01:50:03,520 --> 01:50:07,760 so let's note down the size right now we 2508 01:50:07,760 --> 01:50:09,960 have 2509 01:50:09,960 --> 01:50:14,239 1,623 KB size for this file and after 2510 01:50:14,239 --> 01:50:16,280 some time you're going to come back and 2511 01:50:16,280 --> 01:50:18,440 check this after we have created our 2512 01:50:18,440 --> 01:50:20,920 calculated column and saved the 2513 01:50:20,920 --> 01:50:23,920 file so now let's start creating new 2514 01:50:23,920 --> 01:50:26,440 calculated column I have told you about 2515 01:50:26,440 --> 01:50:27,920 the table tools once you click on a 2516 01:50:27,920 --> 01:50:29,800 table you get table tool new column 2517 01:50:29,800 --> 01:50:32,719 option but the option is also available 2518 01:50:32,719 --> 01:50:34,440 in the column tool if you click on any 2519 01:50:34,440 --> 01:50:36,760 of the column you will get column tools 2520 01:50:36,760 --> 01:50:38,719 and in column tools also you have option 2521 01:50:38,719 --> 01:50:41,480 for new column or right click on any of 2522 01:50:41,480 --> 01:50:43,520 the table the second option is new 2523 01:50:43,520 --> 01:50:46,400 column right click on any column third 2524 01:50:46,400 --> 01:50:49,079 option is a new column using any of 2525 01:50:49,079 --> 01:50:51,239 these options go ahead and create a new 2526 01:50:51,239 --> 01:50:53,520 column 2527 01:50:53,520 --> 01:50:56,760 in the formula bar above you can see the 2528 01:50:56,760 --> 01:50:58,320 column 2529 01:50:58,320 --> 01:51:00,800 creation so you can see now the formula 2530 01:51:00,800 --> 01:51:03,560 bar where we can create the new column 2531 01:51:03,560 --> 01:51:06,599 let me go ahead and increase its size I 2532 01:51:06,599 --> 01:51:08,840 have press control and used the rolling 2533 01:51:08,840 --> 01:51:10,480 of the middle Mouse button to increase 2534 01:51:10,480 --> 01:51:13,079 the size now I got the column it has two 2535 01:51:13,079 --> 01:51:15,239 parts left hand side is where we I'm 2536 01:51:15,239 --> 01:51:17,159 going to give the name and right hand 2537 01:51:17,159 --> 01:51:19,159 side where I'm going to give the formula 2538 01:51:19,159 --> 01:51:20,760 these line numbers are not going to play 2539 01:51:20,760 --> 01:51:22,159 any role powerbi is going to 2540 01:51:22,159 --> 01:51:24,320 automatically add that so the First 2541 01:51:24,320 --> 01:51:28,400 Column I want to create is gross amount 2542 01:51:28,400 --> 01:51:32,119 and what is gross amount it is 2543 01:51:32,199 --> 01:51:34,440 quantity and it starts suggesting you 2544 01:51:34,440 --> 01:51:36,880 can use that it's always better that you 2545 01:51:36,880 --> 01:51:38,719 take complete table name column name so 2546 01:51:38,719 --> 01:51:41,560 let me type down the table name sales 2547 01:51:41,560 --> 01:51:44,480 quantity star 2548 01:51:44,480 --> 01:51:48,079 sales price so we should always take 2549 01:51:48,079 --> 01:51:50,119 fully qualified names when we are 2550 01:51:50,119 --> 01:51:52,760 creating the columns so sales quantity 2551 01:51:52,760 --> 01:51:57,159 multip by sales price is the cross 2552 01:51:57,159 --> 01:52:00,880 amount as you can see in each and every 2553 01:52:00,880 --> 01:52:04,560 Row the data has been created and the 2554 01:52:04,560 --> 01:52:08,840 column values are visible in the table 2555 01:52:08,840 --> 01:52:11,880 view you can also see this column added 2556 01:52:11,880 --> 01:52:15,040 on the right hand side into the table 2557 01:52:15,040 --> 01:52:17,679 with an icon which is showing this is a 2558 01:52:17,679 --> 01:52:20,679 calculated 2559 01:52:20,840 --> 01:52:24,760 column now let's press commit here or 2560 01:52:24,760 --> 01:52:27,000 enter it will come out now let's go 2561 01:52:27,000 --> 01:52:29,239 ahead and create a new column you know 2562 01:52:29,239 --> 01:52:31,360 all the four options I can see column 2563 01:52:31,360 --> 01:52:33,840 tools open in front of me and I'll click 2564 01:52:33,840 --> 01:52:36,599 on new column there and add another 2565 01:52:36,599 --> 01:52:40,239 column the next column I want to add is 2566 01:52:40,239 --> 01:52:43,119 cogs 2567 01:52:43,679 --> 01:52:49,159 amount and cogs amount is nothing but 2568 01:52:50,760 --> 01:52:53,320 say is 2569 01:52:53,320 --> 01:52:56,320 quantity multip by 2570 01:52:56,320 --> 01:52:57,960 sales 2571 01:52:57,960 --> 01:53:03,079 cost now finding out a cost of item is a 2572 01:53:03,079 --> 01:53:06,360 really big challenge for some of the 2573 01:53:06,360 --> 01:53:08,560 organization if an organization can 2574 01:53:08,560 --> 01:53:10,920 achieve a cost measure nothing like that 2575 01:53:10,920 --> 01:53:13,360 and Cog is not just purchase price it's 2576 01:53:13,360 --> 01:53:16,480 purchase price plus rate plus inventory 2577 01:53:16,480 --> 01:53:18,400 carrying cost and any other cost you 2578 01:53:18,400 --> 01:53:23,560 wanted to load on the purchase price to 2579 01:53:23,560 --> 01:53:27,560 get the cost of the item various 2580 01:53:27,560 --> 01:53:29,639 organization develop various kind of 2581 01:53:29,639 --> 01:53:33,679 methods to arrive at the cost of the 2582 01:53:33,679 --> 01:53:35,719 item and that's from that we are 2583 01:53:35,719 --> 01:53:37,679 calculating cogs so that we can get 2584 01:53:37,679 --> 01:53:40,040 margin I would like to create another 2585 01:53:40,040 --> 01:53:42,119 column and again I'm going to use new 2586 01:53:42,119 --> 01:53:45,040 column from the column tool and that is 2587 01:53:45,040 --> 01:53:49,159 Discount amount now discount amount 2588 01:53:49,159 --> 01:53:53,199 column needs the calculated column gross 2589 01:53:53,199 --> 01:53:56,400 amount and I can type sales gross amount 2590 01:53:56,400 --> 01:53:59,119 to get the gross amount so table name 2591 01:53:59,119 --> 01:54:00,880 shown as a table name and sometime you 2592 01:54:00,880 --> 01:54:02,800 will show see the table name is coming 2593 01:54:02,800 --> 01:54:04,880 in single codes if the table name 2594 01:54:04,880 --> 01:54:06,920 contain white spaces or a reserved name 2595 01:54:06,920 --> 01:54:10,119 it will come in the single codes 2596 01:54:10,119 --> 01:54:11,960 otherwise it can come simply as a table 2597 01:54:11,960 --> 01:54:14,440 name and in the square bracket we have 2598 01:54:14,440 --> 01:54:19,800 the column name multiply it by sales 2599 01:54:19,800 --> 01:54:22,920 discount percentage and as the discount 2600 01:54:22,920 --> 01:54:24,760 percentage is absolute I need to divide 2601 01:54:24,760 --> 01:54:27,639 it by 100 it should become decimal 2602 01:54:27,639 --> 01:54:29,880 number so as you can see the data type 2603 01:54:29,880 --> 01:54:32,360 and let's talk about the column tool now 2604 01:54:32,360 --> 01:54:37,119 here in the column tool we can see the 2605 01:54:37,119 --> 01:54:40,960 name the data type the decimal number 2606 01:54:40,960 --> 01:54:43,719 the format which is generic and then we 2607 01:54:43,719 --> 01:54:46,360 can say it's amount we can use dollar 2608 01:54:46,360 --> 01:54:48,560 symbol or any other symbol percentage 2609 01:54:48,560 --> 01:54:50,920 comma separated we can change the 2610 01:54:50,920 --> 01:54:53,320 decimal place and number of decimal 2611 01:54:53,320 --> 01:54:56,360 place right now is auto similarly we can 2612 01:54:56,360 --> 01:54:58,599 use the summarization which is by 2613 01:54:58,599 --> 01:55:00,880 default sum for the numeric column if 2614 01:55:00,880 --> 01:55:02,320 you don't want to summarize it by 2615 01:55:02,320 --> 01:55:05,119 default we can use tone 2616 01:55:05,119 --> 01:55:07,800 summarize data category data category is 2617 01:55:07,800 --> 01:55:10,119 especially important when we use 2618 01:55:10,119 --> 01:55:12,880 geographical data I'll go ahead and show 2619 01:55:12,880 --> 01:55:16,679 it to you s by column is required when 2620 01:55:16,679 --> 01:55:18,800 let's say if I have column like month 2621 01:55:18,800 --> 01:55:20,520 here and I want to sort it on something 2622 01:55:20,520 --> 01:55:22,679 else I can use sort by column which is 2623 01:55:22,679 --> 01:55:25,079 not needed right now we will use it when 2624 01:55:25,079 --> 01:55:27,920 we create the date table before I go 2625 01:55:27,920 --> 01:55:31,480 ahead and create my Majors I would like 2626 01:55:31,480 --> 01:55:34,320 that if there is any renaming required 2627 01:55:34,320 --> 01:55:36,199 of the tables and column I should go 2628 01:55:36,199 --> 01:55:39,239 ahead and do that so as you can see in 2629 01:55:39,239 --> 01:55:41,079 the customer table there is no renaming 2630 01:55:41,079 --> 01:55:42,599 required geography table there is no 2631 01:55:42,599 --> 01:55:44,400 renaming required item table there is no 2632 01:55:44,400 --> 01:55:46,400 renaming required and sales table also 2633 01:55:46,400 --> 01:55:49,840 there is no renaming required but 2634 01:55:49,840 --> 01:55:52,639 for you 2635 01:55:52,639 --> 01:55:55,119 to explain it to you let me go ahead and 2636 01:55:55,119 --> 01:55:57,840 rename this column Quant Qi and I 2637 01:55:57,840 --> 01:55:59,840 already created calculated column on 2638 01:55:59,840 --> 01:56:02,280 that now I want it to rename so I can 2639 01:56:02,280 --> 01:56:05,239 double click and rename or I can right 2640 01:56:05,239 --> 01:56:10,119 click cck or rename let me call it q u a 2641 01:56:10,119 --> 01:56:14,719 n t t y 2642 01:56:14,719 --> 01:56:16,880 quantity and let me check the new 2643 01:56:16,880 --> 01:56:18,920 columns which I've created have they 2644 01:56:18,920 --> 01:56:21,480 taken up the correct column name or not 2645 01:56:21,480 --> 01:56:23,599 so the gross amount column has already 2646 01:56:23,599 --> 01:56:26,239 taken up the correct name same way I can 2647 01:56:26,239 --> 01:56:28,079 rename 2648 01:56:28,079 --> 01:56:31,960 my tables geography item and customer if 2649 01:56:31,960 --> 01:56:34,400 required column tool is the one place 2650 01:56:34,400 --> 01:56:36,239 where we can change these property the 2651 01:56:36,239 --> 01:56:37,800 another place where we can change the 2652 01:56:37,800 --> 01:56:40,599 properties is the model view and inside 2653 01:56:40,599 --> 01:56:43,679 the model view the properties we can 2654 01:56:43,679 --> 01:56:46,440 also change the properties and here we 2655 01:56:46,440 --> 01:56:48,079 can see the 2656 01:56:48,079 --> 01:56:50,639 properties like name we here we can I 2657 01:56:50,639 --> 01:56:53,199 can change the name then snow names 2658 01:56:53,199 --> 01:56:55,760 hidden if I want to hide data type 2659 01:56:55,760 --> 01:56:58,880 percentage format thousand separator yes 2660 01:56:58,880 --> 01:57:01,679 and no decimal places and in advance it 2661 01:57:01,679 --> 01:57:03,599 will show me sought by column name data 2662 01:57:03,599 --> 01:57:06,920 category and Su now I would like to 2663 01:57:06,920 --> 01:57:08,840 change the data categories would like to 2664 01:57:08,840 --> 01:57:11,280 show you example of data categories I 2665 01:57:11,280 --> 01:57:14,280 will go to City column I'll scroll down 2666 01:57:14,280 --> 01:57:16,520 and show you the data category and here 2667 01:57:16,520 --> 01:57:18,159 I'm going to call it as 2668 01:57:18,159 --> 01:57:21,840 City same way for State I will go ahead 2669 01:57:21,840 --> 01:57:24,040 and I will Define the data category as 2670 01:57:24,040 --> 01:57:26,840 state or Province it is not that this is 2671 01:57:26,840 --> 01:57:28,920 available here if you go to the report 2672 01:57:28,920 --> 01:57:32,159 view or the table view also you can go 2673 01:57:32,159 --> 01:57:34,119 to the state and inside the data 2674 01:57:34,119 --> 01:57:36,840 category of column tools also you can 2675 01:57:36,840 --> 01:57:38,199 Define the data 2676 01:57:38,199 --> 01:57:41,440 categories now we are done with the 2677 01:57:41,440 --> 01:57:44,599 renaming and the column creation we have 2678 01:57:44,599 --> 01:57:46,760 created our columns I would like to save 2679 01:57:46,760 --> 01:57:48,440 this file and see is there any 2680 01:57:48,440 --> 01:57:50,760 difference in the 2681 01:57:50,760 --> 01:57:55,280 size of our file so let me drag back the 2682 01:57:55,280 --> 01:57:58,000 folder and as you can see the size of 2683 01:57:58,000 --> 01:58:00,639 the file has 2684 01:58:01,400 --> 01:58:04,000 increased in this manner we can conclude 2685 01:58:04,000 --> 01:58:06,719 that calculated columns 2686 01:58:06,719 --> 01:58:09,400 are going to become part of the table 2687 01:58:09,400 --> 01:58:12,199 data they will be calculated at the load 2688 01:58:12,199 --> 01:58:15,079 time and will be saved inside the file 2689 01:58:15,079 --> 01:58:16,880 and going to increase the size of the 2690 01:58:16,880 --> 01:58:19,119 file they're also going to increase the 2691 01:58:19,119 --> 01:58:21,840 load time now we will understand the 2692 01:58:21,840 --> 01:58:25,159 major majors and then look at the 2693 01:58:25,159 --> 01:58:29,000 difference between majors and calculated 2694 01:58:29,000 --> 01:58:31,880 column the time has come that we should 2695 01:58:31,880 --> 01:58:35,360 go ahead and create Majors let me tell 2696 01:58:35,360 --> 01:58:37,280 you the definitions of the majors which 2697 01:58:37,280 --> 01:58:39,920 I plan to create the first major I want 2698 01:58:39,920 --> 01:58:43,760 to create is gross which is sum of gross 2699 01:58:43,760 --> 01:58:47,040 sales amount from the sales table second 2700 01:58:47,040 --> 01:58:49,679 major which I want to create is the cogs 2701 01:58:49,679 --> 01:58:54,440 sum of sales tables cogs amount another 2702 01:58:54,440 --> 01:58:57,560 major discount sum of sales tables 2703 01:58:57,560 --> 01:58:58,679 discount 2704 01:58:58,679 --> 01:59:01,079 amount then I'm going to use the 2705 01:59:01,079 --> 01:59:03,639 measures which are already created to 2706 01:59:03,639 --> 01:59:06,480 calculate net which is nothing but cross 2707 01:59:06,480 --> 01:59:07,679 minus 2708 01:59:07,679 --> 01:59:10,320 discount same way I'm going to create 2709 01:59:10,320 --> 01:59:13,800 margin which is nothing but net minus 2710 01:59:13,800 --> 01:59:18,119 cogs I will create two majors which 2711 01:59:18,119 --> 01:59:21,000 should be Majors only because they are 2712 01:59:21,000 --> 01:59:22,719 percentage measur 2713 01:59:22,719 --> 01:59:25,159 and they need to be calculated using 2714 01:59:25,159 --> 01:59:28,599 divide function which handles the divide 2715 01:59:28,599 --> 01:59:29,599 by 2716 01:59:29,599 --> 01:59:32,520 zero discount percentage equals to 2717 01:59:32,520 --> 01:59:35,040 divide discount by 2718 01:59:35,040 --> 01:59:38,560 gross and margin percentage equals to 2719 01:59:38,560 --> 01:59:41,480 divide margin by net so these are all 2720 01:59:41,480 --> 01:59:43,760 the measures I'm going to create so 2721 01:59:43,760 --> 01:59:47,000 let's go to the powerbi and create 2722 01:59:47,000 --> 01:59:49,840 these so now let's go ahead and quickly 2723 01:59:49,840 --> 01:59:52,360 create the measures and to create the 2724 01:59:52,360 --> 01:59:55,000 measures uh let me first go to the table 2725 01:59:55,000 --> 01:59:58,280 View and try to create a measure and can 2726 01:59:58,280 --> 02:00:00,440 I see the 2727 02:00:00,440 --> 02:00:03,920 calculation just like calculated column 2728 02:00:03,920 --> 02:00:06,880 in the table view so let me create my 2729 02:00:06,880 --> 02:00:09,040 first major to create that again I can 2730 02:00:09,040 --> 02:00:11,719 take the help from the table tool I have 2731 02:00:11,719 --> 02:00:14,679 an option for new 2732 02:00:14,679 --> 02:00:17,440 major also I have the same option in the 2733 02:00:17,440 --> 02:00:21,159 Home tab for new major also on the right 2734 02:00:21,159 --> 02:00:22,520 click of 2735 02:00:22,520 --> 02:00:26,000 a table or a right click of a column 2736 02:00:26,000 --> 02:00:28,840 similarly once you create a measure you 2737 02:00:28,840 --> 02:00:31,000 will also have an option to create a 2738 02:00:31,000 --> 02:00:33,119 major right now I'm going ahead with the 2739 02:00:33,119 --> 02:00:37,199 right click on a table and new 2740 02:00:37,400 --> 02:00:40,719 measure again in the case of measure we 2741 02:00:40,719 --> 02:00:44,199 will get this formula bar where left 2742 02:00:44,199 --> 02:00:46,360 hand side is the name and the right hand 2743 02:00:46,360 --> 02:00:49,320 side is the 2744 02:00:49,320 --> 02:00:52,520 formula this is what we call a measure 2745 02:00:52,520 --> 02:00:54,440 or a Dax measure because we are going to 2746 02:00:54,440 --> 02:00:58,520 use data analytics expression here to 2747 02:00:58,520 --> 02:01:01,599 create our measures so first measure 2748 02:01:01,599 --> 02:01:04,520 which we are going to create is 2749 02:01:04,520 --> 02:01:07,560 cross in the cross measure I'm going to 2750 02:01:07,560 --> 02:01:10,840 use the Dex function some some functions 2751 02:01:10,840 --> 02:01:13,239 can take one column name and the column 2752 02:01:13,239 --> 02:01:16,400 name which I want you to take here is 2753 02:01:16,400 --> 02:01:19,119 sales gross amount and this is the 2754 02:01:19,119 --> 02:01:21,320 reason I was adding amount at the end 2755 02:01:21,320 --> 02:01:23,760 because finally when I create a major it 2756 02:01:23,760 --> 02:01:27,159 should show me name only as 2757 02:01:27,159 --> 02:01:30,239 gross as you can see the gross major is 2758 02:01:30,239 --> 02:01:33,719 created in the sales table and I can see 2759 02:01:33,719 --> 02:01:37,800 the major icon but when I scroll into 2760 02:01:37,800 --> 02:01:39,880 the table it's not appearing inside the 2761 02:01:39,880 --> 02:01:43,880 table so Majors will not appear in the 2762 02:01:43,880 --> 02:01:46,840 table like calculated column second 2763 02:01:46,840 --> 02:01:49,320 thing is even if I click on the item 2764 02:01:49,320 --> 02:01:52,480 table and I I go ahead and 2765 02:01:52,480 --> 02:01:54,639 use new major and this time I'm using it 2766 02:01:54,639 --> 02:01:57,480 from table tool it would be able to 2767 02:01:57,480 --> 02:01:59,079 create a major so this time I'm going to 2768 02:01:59,079 --> 02:02:04,320 create C and CA equals to sum 2769 02:02:04,400 --> 02:02:07,400 of 2770 02:02:07,599 --> 02:02:10,199 tailes cogs 2771 02:02:10,199 --> 02:02:13,040 amount so I'm creating a major cogs 2772 02:02:13,040 --> 02:02:15,239 which is nothing but sum of cogs 2773 02:02:15,239 --> 02:02:17,920 amount and as you can see I'm able to 2774 02:02:17,920 --> 02:02:21,040 create this measure inside the item 2775 02:02:21,040 --> 02:02:24,119 table does it make any difference for me 2776 02:02:24,119 --> 02:02:26,560 let me go back to the report 2777 02:02:26,560 --> 02:02:29,280 view in the report View From The Bottom 2778 02:02:29,280 --> 02:02:31,599 near to the page one there is a plus 2779 02:02:31,599 --> 02:02:33,280 button I'm going to press that plus 2780 02:02:33,280 --> 02:02:37,040 button and add another page and in this 2781 02:02:37,040 --> 02:02:39,520 page and in this page from build a 2782 02:02:39,520 --> 02:02:42,360 visual let me add a table Visual and 2783 02:02:42,360 --> 02:02:45,239 check out what I'm getting to do that I 2784 02:02:45,239 --> 02:02:48,119 created a table visual enlarge it and 2785 02:02:48,119 --> 02:02:51,199 let me bring in brand from the item 2786 02:02:51,199 --> 02:02:53,119 table dragon drop onto this 2787 02:02:53,119 --> 02:02:56,159 visualization and bring in 2788 02:02:56,159 --> 02:02:59,320 Gross and 2789 02:02:59,320 --> 02:03:02,360 cogs and you can see both of them 2790 02:03:02,360 --> 02:03:05,840 working fine now without going back to 2791 02:03:05,840 --> 02:03:09,199 the table view I can continue to create 2792 02:03:09,199 --> 02:03:12,560 my Majors here so the next major which 2793 02:03:12,560 --> 02:03:16,199 I'm going to create is Discount major so 2794 02:03:16,199 --> 02:03:18,960 click on any of the table and say use 2795 02:03:18,960 --> 02:03:22,159 new measure from the table tool and name 2796 02:03:22,159 --> 02:03:25,199 is and let me enlarge 2797 02:03:25,199 --> 02:03:27,719 it 2798 02:03:27,719 --> 02:03:32,119 discount which is nothing but sum of 2799 02:03:32,119 --> 02:03:35,840 sales discount 2800 02:03:35,880 --> 02:03:38,599 amount the next major I would like to 2801 02:03:38,599 --> 02:03:42,520 create is net and then in the net majure 2802 02:03:42,520 --> 02:03:44,880 I would like to 2803 02:03:44,880 --> 02:03:47,960 create from the two existing Majors so 2804 02:03:47,960 --> 02:03:49,880 left hand side the name right hand side 2805 02:03:49,880 --> 02:03:51,800 cross the major and I don't need to 2806 02:03:51,800 --> 02:03:54,199 table name ideally speaking you should 2807 02:03:54,199 --> 02:03:57,040 not use table name when you are using 2808 02:03:57,040 --> 02:04:01,440 major because we can change the home 2809 02:04:01,440 --> 02:04:03,000 table of the majors and I'm going to 2810 02:04:03,000 --> 02:04:06,040 explain you that in a little bit of time 2811 02:04:06,040 --> 02:04:08,400 and then I can separate the discount and 2812 02:04:08,400 --> 02:04:11,639 I created a major which is net in the 2813 02:04:11,639 --> 02:04:15,320 same manner I can create a major margin 2814 02:04:15,320 --> 02:04:18,880 Again by clicking on new 2815 02:04:19,119 --> 02:04:22,639 major and you can press and enter or you 2816 02:04:22,639 --> 02:04:24,760 can press this commit button to commit 2817 02:04:24,760 --> 02:04:26,920 this formula the moment you click 2818 02:04:26,920 --> 02:04:30,040 outside it get automatically 2819 02:04:30,040 --> 02:04:33,079 saved now we would like to create two 2820 02:04:33,079 --> 02:04:35,360 measures which are division type and now 2821 02:04:35,360 --> 02:04:37,400 discount percentage which 2822 02:04:37,400 --> 02:04:40,840 is Discount divided by gross and margin 2823 02:04:40,840 --> 02:04:43,040 which is margin divided by net which is 2824 02:04:43,040 --> 02:04:45,840 actually the net margin are the division 2825 02:04:45,840 --> 02:04:50,199 type formulas and they cannot be created 2826 02:04:50,199 --> 02:04:52,920 as column as we have discussed when 2827 02:04:52,920 --> 02:04:55,040 taking our example division should 2828 02:04:55,040 --> 02:04:59,079 always be a measure now before I do that 2829 02:04:59,079 --> 02:05:01,520 let me show you how can I add that these 2830 02:05:01,520 --> 02:05:03,119 to the table so click on the table and 2831 02:05:03,119 --> 02:05:07,040 just simply click on the check boxes and 2832 02:05:07,040 --> 02:05:09,639 those will be added to the visualization 2833 02:05:09,639 --> 02:05:11,440 now let's create one more new major 2834 02:05:11,440 --> 02:05:13,719 again now I'm able to see the major tool 2835 02:05:13,719 --> 02:05:16,040 because right now the major is selected 2836 02:05:16,040 --> 02:05:18,800 and the major tool is canot 2837 02:05:18,800 --> 02:05:22,920 only do a job of 2838 02:05:22,920 --> 02:05:24,760 creation of a new major but it can do 2839 02:05:24,760 --> 02:05:27,280 the formatting also and right now right 2840 02:05:27,280 --> 02:05:29,119 now you can see the formatting is not 2841 02:05:29,119 --> 02:05:30,599 there but what I'm going to do is I want 2842 02:05:30,599 --> 02:05:32,559 to format multiple measures together 2843 02:05:32,559 --> 02:05:34,760 definitely I'm going to show you because 2844 02:05:34,760 --> 02:05:36,440 the formatting going to be compulsory 2845 02:05:36,440 --> 02:05:37,960 for the discount percentage from the 2846 02:05:37,960 --> 02:05:41,360 major tool but we will go to the data 2847 02:05:41,360 --> 02:05:43,239 model view and from there we will use 2848 02:05:43,239 --> 02:05:46,480 the properties to change them in one go 2849 02:05:46,480 --> 02:05:48,599 so let me click on a new major 2850 02:05:48,599 --> 02:05:51,280 again and this time I'll create a major 2851 02:05:51,280 --> 02:05:53,639 discount 2852 02:05:56,840 --> 02:05:59,679 percentage and I'm going to use a 2853 02:05:59,679 --> 02:06:02,480 function divide divide functions takes 2854 02:06:02,480 --> 02:06:04,760 three argument numerator denominator and 2855 02:06:04,760 --> 02:06:07,880 Alternate result so numerator is 2856 02:06:07,880 --> 02:06:10,520 Discount amount which is Discount major 2857 02:06:10,520 --> 02:06:13,480 I can directly use a major here and when 2858 02:06:13,480 --> 02:06:15,320 I'm using major it means sum of discount 2859 02:06:15,320 --> 02:06:17,559 amount denominator is gross which is sum 2860 02:06:17,559 --> 02:06:19,960 of gross amount so I'm using aggregated 2861 02:06:19,960 --> 02:06:22,320 one I don't want to use alternate result 2862 02:06:22,320 --> 02:06:24,679 what is the benefit of using this divide 2863 02:06:24,679 --> 02:06:27,239 function divide function will handle 2864 02:06:27,239 --> 02:06:29,360 divide by 0er so I don't have to bother 2865 02:06:29,360 --> 02:06:33,119 about it let me press enter or commit 2866 02:06:33,119 --> 02:06:35,400 and this will be committed and I can add 2867 02:06:35,400 --> 02:06:38,199 this to table user as you can see this 2868 02:06:38,199 --> 02:06:41,079 is coming as a ratio not as a percentage 2869 02:06:41,079 --> 02:06:44,079 just like your Excel you might have used 2870 02:06:44,079 --> 02:06:45,920 or if those of you not used go to the 2871 02:06:45,920 --> 02:06:47,400 major tool when you click on a major 2872 02:06:47,400 --> 02:06:51,000 major tool should be open and from there 2873 02:06:51,000 --> 02:06:54,079 you can mark it as a percentage column 2874 02:06:54,079 --> 02:06:56,000 by clicking on this percent icon it 2875 02:06:56,000 --> 02:06:58,320 should show a boundary here and this 2876 02:06:58,320 --> 02:07:01,400 boundary means it has been 2877 02:07:01,400 --> 02:07:03,760 selected as you can see we are able to 2878 02:07:03,760 --> 02:07:06,159 see percentage and now what I'm going to 2879 02:07:06,159 --> 02:07:08,639 do is a quick Copy pcee for creating the 2880 02:07:08,639 --> 02:07:10,239 margin percentage 2881 02:07:10,239 --> 02:07:14,079 major I can go here again click on item 2882 02:07:14,079 --> 02:07:17,159 or sales and from the table tools or 2883 02:07:17,159 --> 02:07:19,400 from the major tool whichever is visible 2884 02:07:19,400 --> 02:07:22,239 I can create new major and this time I'm 2885 02:07:22,239 --> 02:07:23,840 just going to paste the definition 2886 02:07:23,840 --> 02:07:26,360 margin percentage is equal to divide 2887 02:07:26,360 --> 02:07:29,599 margin by net enter and my Majors is 2888 02:07:29,599 --> 02:07:32,199 created so my base set of 2889 02:07:32,199 --> 02:07:35,480 measure using which I can explain you 2890 02:07:35,480 --> 02:07:38,320 the visualizations are created but as 2891 02:07:38,320 --> 02:07:40,280 you can see these measures are created 2892 02:07:40,280 --> 02:07:41,639 across various 2893 02:07:41,639 --> 02:07:44,679 tables and some of them are not 2894 02:07:44,679 --> 02:07:47,760 formatted what I'm going to do for that 2895 02:07:47,760 --> 02:07:49,800 so first let me solve the 2896 02:07:49,800 --> 02:07:52,400 formatting I have to indiv do if I go 2897 02:07:52,400 --> 02:07:53,920 here I have to individually do I can 2898 02:07:53,920 --> 02:07:56,119 can't select with the shift more than 2899 02:07:56,119 --> 02:07:58,719 one so for that I'll tell you go to the 2900 02:07:58,719 --> 02:08:01,960 model view and inside the model view 2901 02:08:01,960 --> 02:08:03,920 with the shift or control you can select 2902 02:08:03,920 --> 02:08:07,119 multiple measures so I'm selecting all 2903 02:08:07,119 --> 02:08:09,320 those amount kind of a 2904 02:08:09,320 --> 02:08:12,280 measures and let me uncheck the margin 2905 02:08:12,280 --> 02:08:14,159 percentage all the amount kind of 2906 02:08:14,159 --> 02:08:17,040 measures are selected first of all I can 2907 02:08:17,040 --> 02:08:18,520 change their home table right now I'm 2908 02:08:18,520 --> 02:08:20,239 not changing it I'll tell you the reason 2909 02:08:20,239 --> 02:08:22,079 later but 2910 02:08:22,079 --> 02:08:25,119 I will go here in the format and I can 2911 02:08:25,119 --> 02:08:27,920 call them general or currency let me 2912 02:08:27,920 --> 02:08:30,920 keep it General let me keep it thousand 2913 02:08:30,920 --> 02:08:34,760 separator and decimal places let me keep 2914 02:08:34,760 --> 02:08:37,599 it one for all of 2915 02:08:37,599 --> 02:08:40,639 them Advance uncategorized everything 2916 02:08:40,639 --> 02:08:43,000 should remain uncategorized let's go 2917 02:08:43,000 --> 02:08:45,679 ahead and check what is the difference 2918 02:08:45,679 --> 02:08:48,880 this action has made in the report view 2919 02:08:48,880 --> 02:08:50,880 so I'll click on the report view left 2920 02:08:50,880 --> 02:08:53,880 side and as you can see all of them got 2921 02:08:53,880 --> 02:08:56,520 formatted pretty well 2922 02:08:56,520 --> 02:09:00,559 here now left out is margin percentage 2923 02:09:00,559 --> 02:09:02,840 we can go back and do it from model view 2924 02:09:02,840 --> 02:09:05,599 or we can also do it from column tools 2925 02:09:05,599 --> 02:09:07,520 so we click on the margin 2926 02:09:07,520 --> 02:09:10,280 percentage and we can mark it as a 2927 02:09:10,280 --> 02:09:13,000 percentage format column from here now 2928 02:09:13,000 --> 02:09:14,840 it has become a percentage format two 2929 02:09:14,840 --> 02:09:16,599 decimal place by default we can change 2930 02:09:16,599 --> 02:09:19,719 it if required go back to the report 2931 02:09:19,719 --> 02:09:22,079 view add this into the 2932 02:09:22,079 --> 02:09:24,480 visualization and check out what we are 2933 02:09:24,480 --> 02:09:26,320 getting so we are getting a two decimal 2934 02:09:26,320 --> 02:09:28,760 place percentage 2935 02:09:28,760 --> 02:09:32,360 number so in this manner we can 2936 02:09:32,360 --> 02:09:36,239 modify the major properties using Major 2937 02:09:36,239 --> 02:09:40,239 Tool or the property pan in the data 2938 02:09:40,239 --> 02:09:41,400 model 2939 02:09:41,400 --> 02:09:44,599 view you might have noticed that the 2940 02:09:44,599 --> 02:09:45,599 till 2941 02:09:45,599 --> 02:09:48,280 now I 2942 02:09:48,280 --> 02:09:50,840 have increased the font when I was 2943 02:09:50,840 --> 02:09:53,840 creating the formulas of the formula 2944 02:09:53,840 --> 02:09:57,000 pane but I never changed the size of the 2945 02:09:57,000 --> 02:09:59,360 font of the table though it's a really 2946 02:09:59,360 --> 02:10:02,480 small font for recording and the reason 2947 02:10:02,480 --> 02:10:04,520 I was not doing is because I want to 2948 02:10:04,520 --> 02:10:06,360 handle it using 2949 02:10:06,360 --> 02:10:08,400 the 2950 02:10:08,400 --> 02:10:12,960 theme utilizing report themes allows for 2951 02:10:12,960 --> 02:10:14,960 comprehensive design alteration across 2952 02:10:14,960 --> 02:10:16,000 the 2953 02:10:16,000 --> 02:10:19,119 report this include adoption of color 2954 02:10:19,119 --> 02:10:21,520 schemes it's an implementation of fresh 2955 02:10:21,520 --> 02:10:24,159 visual Styles once a report theme is 2956 02:10:24,159 --> 02:10:26,639 applied it sets all default formatting 2957 02:10:26,639 --> 02:10:29,040 for every visual in your report ensuring 2958 02:10:29,040 --> 02:10:31,280 consistent and unified experience we 2959 02:10:31,280 --> 02:10:33,840 want to get a unified corporate 2960 02:10:33,840 --> 02:10:36,119 experience and the reason why I don't 2961 02:10:36,119 --> 02:10:38,599 prefer to change any font or color 2962 02:10:38,599 --> 02:10:40,400 without using a theme because once we 2963 02:10:40,400 --> 02:10:42,639 change it sometime it is really 2964 02:10:42,639 --> 02:10:44,920 difficult to apply themes on that and 2965 02:10:44,920 --> 02:10:47,719 that is the reason why in spite of 2966 02:10:47,719 --> 02:10:49,520 having a small font I have not changed 2967 02:10:49,520 --> 02:10:51,840 it now the theme which I'm going to 2968 02:10:51,840 --> 02:10:56,719 create is more suitable for the video 2969 02:10:56,719 --> 02:10:59,960 purpose but what you should do is if 2970 02:10:59,960 --> 02:11:01,599 you're doing a customer project or your 2971 02:11:01,599 --> 02:11:04,840 organizational project find out top 10 2972 02:11:04,840 --> 02:11:06,360 organizational 2973 02:11:06,360 --> 02:11:09,079 colors and using those top 10 2974 02:11:09,079 --> 02:11:11,800 organizational color and your 2975 02:11:11,800 --> 02:11:14,639 organizational font you should create 2976 02:11:14,639 --> 02:11:17,760 your theme let me tell you how to do 2977 02:11:17,760 --> 02:11:22,840 that go to the view tab on the top 2978 02:11:24,639 --> 02:11:26,639 and inside the view you have these 2979 02:11:26,639 --> 02:11:27,880 default 2980 02:11:27,880 --> 02:11:31,119 themes you can choose a starting point 2981 02:11:31,119 --> 02:11:33,079 like darker or 2982 02:11:33,079 --> 02:11:36,079 lighter based on your organization 2983 02:11:36,079 --> 02:11:38,000 preferences which is most nearest or you 2984 02:11:38,000 --> 02:11:40,719 can start with anyone let me choose this 2985 02:11:40,719 --> 02:11:43,119 third one once I choose that you can see 2986 02:11:43,119 --> 02:11:46,199 the fonts are still forther smaller I 2987 02:11:46,199 --> 02:11:49,760 can play around choose one which suits 2988 02:11:49,760 --> 02:11:52,679 best so I think this this accessable 2989 02:11:52,679 --> 02:11:54,800 city park is something which is more 2990 02:11:54,800 --> 02:11:57,840 suited to me and now I'm going to go 2991 02:11:57,840 --> 02:12:00,079 ahead and modify this if I further 2992 02:12:00,079 --> 02:12:04,040 scroll below I have options like browse 2993 02:12:04,040 --> 02:12:06,040 themes where I can browse the theme 2994 02:12:06,040 --> 02:12:08,199 theme Gallery I can go to the theme G 2995 02:12:08,199 --> 02:12:10,079 customize current theme to customize the 2996 02:12:10,079 --> 02:12:12,960 current theme which I'm going to use now 2997 02:12:12,960 --> 02:12:14,840 save the current theme to save it with a 2998 02:12:14,840 --> 02:12:18,239 name so that later on I can browse it 2999 02:12:18,239 --> 02:12:20,119 and how to create theme to go to the 3000 02:12:20,119 --> 02:12:22,280 documentation 3001 02:12:22,280 --> 02:12:24,360 so let me use customized current theme 3002 02:12:24,360 --> 02:12:27,079 option as of now and in this customized 3003 02:12:27,079 --> 02:12:29,360 current theme the first option which I 3004 02:12:29,360 --> 02:12:31,719 get is the name and the color where I 3005 02:12:31,719 --> 02:12:34,480 have the color now this team as a name I 3006 02:12:34,480 --> 02:12:37,239 can change this name if I want or I can 3007 02:12:37,239 --> 02:12:38,559 go ahead and choose some little bit 3008 02:12:38,559 --> 02:12:40,079 different colors so what I'm going to do 3009 02:12:40,079 --> 02:12:41,840 here is I'm going to choose a little bit 3010 02:12:41,840 --> 02:12:45,559 darker green for the first bar and let 3011 02:12:45,559 --> 02:12:48,199 me change this yellow color a little 3012 02:12:48,199 --> 02:12:51,360 bit there color seem fine negative 3013 02:12:51,360 --> 02:12:53,159 positive and neutral I'm seeing an 3014 02:12:53,159 --> 02:12:54,840 opportunity to change it little bit so 3015 02:12:54,840 --> 02:12:57,719 let me change the red green seems fine 3016 02:12:57,719 --> 02:12:59,639 neutral let me make it a little bit 3017 02:12:59,639 --> 02:13:02,079 different 3018 02:13:04,440 --> 02:13:07,320 blue and Divergent color I am fine with 3019 02:13:07,320 --> 02:13:09,920 that I go to the Advance now this is 3020 02:13:09,920 --> 02:13:10,960 really 3021 02:13:10,960 --> 02:13:13,360 important choose the 3022 02:13:13,360 --> 02:13:15,960 different elements of your visual like 3023 02:13:15,960 --> 02:13:19,400 XIs grid line text box color font what 3024 02:13:19,400 --> 02:13:22,239 are those in each categories for that 3025 02:13:22,239 --> 02:13:23,960 click on this learn 3026 02:13:23,960 --> 02:13:27,440 more and it's going to open a page for 3027 02:13:27,440 --> 02:13:30,119 you and in this page this is basically 3028 02:13:30,119 --> 02:13:32,599 the theme page which I'm also going to 3029 02:13:32,599 --> 02:13:34,400 provide to you if you scroll down little 3030 02:13:34,400 --> 02:13:36,840 bit below it is going to tell you if you 3031 02:13:36,840 --> 02:13:38,599 change the first level what is going to 3032 02:13:38,599 --> 02:13:41,360 change label background color trend line 3033 02:13:41,360 --> 02:13:43,920 color text box default color table and 3034 02:13:43,920 --> 02:13:48,040 Matrix values and total color data bar 3035 02:13:48,040 --> 02:13:50,800 access color card data labels these is 3036 02:13:50,800 --> 02:13:53,639 going to second level is going to change 3037 02:13:53,639 --> 02:13:56,480 light secondary level text classes label 3038 02:13:56,480 --> 02:13:58,800 color Legend label color exis label 3039 02:13:58,800 --> 02:14:02,079 color third level X is grid line cover 3040 02:14:02,079 --> 02:14:05,719 color table and Matrix grid color slicer 3041 02:14:05,719 --> 02:14:08,480 and header background color multi row 3042 02:14:08,480 --> 02:14:11,960 card outline color Etc fourth row legent 3043 02:14:11,960 --> 02:14:14,760 dimed color card category label color 3044 02:14:14,760 --> 02:14:17,520 multi- row card category label color 3045 02:14:17,520 --> 02:14:18,920 then background is going to change the 3046 02:14:18,920 --> 02:14:20,559 background color secondary background 3047 02:14:20,559 --> 02:14:22,440 color and table 3048 02:14:22,440 --> 02:14:25,199 accent there is more information also 3049 02:14:25,199 --> 02:14:29,280 given here how to set up themes and what 3050 02:14:29,280 --> 02:14:32,440 are the different components of that you 3051 02:14:32,440 --> 02:14:34,639 can take advantage of this particular 3052 02:14:34,639 --> 02:14:38,280 article I will also share the link of 3053 02:14:38,280 --> 02:14:41,920 this into the description let's go back 3054 02:14:41,920 --> 02:14:43,599 I don't want to change any of these as 3055 02:14:43,599 --> 02:14:46,520 of now I'll go to the next item which is 3056 02:14:46,520 --> 02:14:49,280 text and here I'm interested in so 3057 02:14:49,280 --> 02:14:51,040 everywhere I see a font I'm going to 3058 02:14:51,040 --> 02:14:54,000 increase It by Five Points now I don't 3059 02:14:54,000 --> 02:14:55,400 want to change the font family but I 3060 02:14:55,400 --> 02:14:57,719 have options to change it similarly I 3061 02:14:57,719 --> 02:14:59,559 can change the font color which I'm 3062 02:14:59,559 --> 02:15:02,280 currently not doing for title again I'm 3063 02:15:02,280 --> 02:15:03,679 going to make it little 3064 02:15:03,679 --> 02:15:07,040 bit larger 17 and let me change the 3065 02:15:07,040 --> 02:15:09,559 title color let me make it 3066 02:15:09,559 --> 02:15:12,199 blue make it a little bit darker blue 3067 02:15:12,199 --> 02:15:14,639 which is going to be very near to 3068 02:15:14,639 --> 02:15:18,239 Black cards and kpi again card is 45 is 3069 02:15:18,239 --> 02:15:20,119 to already pretty big so I'm not going 3070 02:15:20,119 --> 02:15:22,079 to change it tab headress I'm going to 3071 02:15:22,079 --> 02:15:24,040 make it as 70 and the reason I'm 3072 02:15:24,040 --> 02:15:25,920 increasing it by 5 pixel you might not 3073 02:15:25,920 --> 02:15:28,199 have to do that much is because I'm 3074 02:15:28,199 --> 02:15:30,159 recording a video and in that video I 3075 02:15:30,159 --> 02:15:33,159 would like these things to be visible 3076 02:15:33,159 --> 02:15:35,280 visuals background I don't want to 3077 02:15:35,280 --> 02:15:36,760 change if I want I can increase 3078 02:15:36,760 --> 02:15:38,199 transparency to 3079 02:15:38,199 --> 02:15:40,639 100% of the visual background so that 3080 02:15:40,639 --> 02:15:41,960 they take the background color it is 3081 02:15:41,960 --> 02:15:44,119 mostly useful when you have a background 3082 02:15:44,119 --> 02:15:46,199 which is of darker color so that you 3083 02:15:46,199 --> 02:15:48,719 make all your backgrounds as transparent 3084 02:15:48,719 --> 02:15:50,719 so that they can come on that particular 3085 02:15:50,719 --> 02:15:52,599 back ground and you don't have to set a 3086 02:15:52,599 --> 02:15:54,360 background for the visual but if you 3087 02:15:54,360 --> 02:15:56,840 don't want that transparency keep it 0% 3088 02:15:56,840 --> 02:15:59,280 borders borders are off but if you want 3089 02:15:59,280 --> 02:16:01,239 borders by default on the visualization 3090 02:16:01,239 --> 02:16:03,360 you can switch it on I don't want that 3091 02:16:03,360 --> 02:16:05,760 by default so I'm keeping it as off and 3092 02:16:05,760 --> 02:16:07,119 if you switch it on you can change the 3093 02:16:07,119 --> 02:16:09,280 color and you can also decide the 3094 02:16:09,280 --> 02:16:12,400 radius header header background color 3095 02:16:12,400 --> 02:16:13,760 border color 3096 02:16:13,760 --> 02:16:16,440 transparency uh if you want 100% 3097 02:16:16,440 --> 02:16:18,960 transparency you can use icon colors I'm 3098 02:16:18,960 --> 02:16:20,199 not going to change that I'm going to 3099 02:16:20,199 --> 02:16:24,239 keep it as is tool tip is the label text 3100 02:16:24,239 --> 02:16:28,119 color label text value drill text icon 3101 02:16:28,119 --> 02:16:30,000 and background color this is something 3102 02:16:30,000 --> 02:16:31,480 which these days we are going to use 3103 02:16:31,480 --> 02:16:33,319 white but if you remember earlier we 3104 02:16:33,319 --> 02:16:35,639 used to use little bit yellowish color 3105 02:16:35,639 --> 02:16:37,679 so I'm going to make the tool tip little 3106 02:16:37,679 --> 02:16:39,280 bit 3107 02:16:39,280 --> 02:16:43,359 yellowish page wallpaper transparency I 3108 02:16:43,359 --> 02:16:44,960 think I already changed transparency at 3109 02:16:44,960 --> 02:16:46,880 one place but I'm going to keep it as is 3110 02:16:46,880 --> 02:16:48,920 similarly P background transparency is 3111 02:16:48,920 --> 02:16:50,920 100% if you want you can make 3112 02:16:50,920 --> 02:16:52,840 transparency is zero so that it takes 3113 02:16:52,840 --> 02:16:55,599 the whatever is there on the background 3114 02:16:55,599 --> 02:16:58,240 let me leave it default as is filter 3115 02:16:58,240 --> 02:17:00,120 pane the filter pane which is being 3116 02:17:00,120 --> 02:17:02,559 given on the page on these things these 3117 02:17:02,559 --> 02:17:04,719 are going to apply the filter pane the 3118 02:17:04,719 --> 02:17:06,639 background color the transparency the 3119 02:17:06,639 --> 02:17:09,160 font and the icon colors the title font 3120 02:17:09,160 --> 02:17:11,960 I'm going to increase it to 17 header 3121 02:17:11,960 --> 02:17:15,599 font size I'm going to make it as 3122 02:17:15,599 --> 02:17:19,519 14 checkbox apply Color when you apply 3123 02:17:19,519 --> 02:17:21,120 something on checkbox you want to CH 3124 02:17:21,120 --> 02:17:23,240 that color it's right now the teal color 3125 02:17:23,240 --> 02:17:25,920 I'll continue with that available filter 3126 02:17:25,920 --> 02:17:28,599 cards color format filter cards haven't 3127 02:17:28,599 --> 02:17:30,359 been applied yet background is white 3128 02:17:30,359 --> 02:17:31,760 transparency is 3129 02:17:31,760 --> 02:17:36,719 0% font and color icon color it same and 3130 02:17:36,719 --> 02:17:39,160 I'm going to make it 14 in the font 3131 02:17:39,160 --> 02:17:41,000 filter applied card again I'm not going 3132 02:17:41,000 --> 02:17:42,920 to change anything there I'm just going 3133 02:17:42,920 --> 02:17:44,599 to change the 3134 02:17:44,599 --> 02:17:48,160 font size so I'm done with my changes 3135 02:17:48,160 --> 02:17:50,960 and let me apply and the moment I apply 3136 02:17:50,960 --> 02:17:52,479 it you can see the font size have 3137 02:17:52,479 --> 02:17:54,639 increased if I need further bigger font 3138 02:17:54,639 --> 02:17:57,880 I can go ahead and do it but it seems 3139 02:17:57,880 --> 02:18:02,599 good enough for me to use it as of 3140 02:18:03,200 --> 02:18:06,319 now now the next step is saving this 3141 02:18:06,319 --> 02:18:08,359 theme we will go back to the view again 3142 02:18:08,359 --> 02:18:11,439 open this theme portion go down and 3143 02:18:11,439 --> 02:18:13,200 press on save current 3144 02:18:13,200 --> 02:18:19,040 theme and let's call it as or 3145 02:18:19,040 --> 02:18:22,040 theme one 3146 02:18:22,040 --> 02:18:25,240 so the theme is saved how do we test 3147 02:18:25,240 --> 02:18:28,319 this so let me go ahead to the 3148 02:18:28,319 --> 02:18:30,000 files 3149 02:18:30,000 --> 02:18:33,639 open and I have saved one 3150 02:18:33,639 --> 02:18:37,240 file other than this end to end click on 3151 02:18:37,240 --> 02:18:40,000 it in the versions I'll open this end to 3152 02:18:40,000 --> 02:18:42,599 endend version till columns in this file 3153 02:18:42,599 --> 02:18:44,599 I'll add a visual and in that I'll try 3154 02:18:44,599 --> 02:18:47,000 to apply this theme so let me create a 3155 02:18:47,000 --> 02:18:50,800 visual quickly here 3156 02:18:53,120 --> 02:18:55,519 and let me go ahead and put a theme so 3157 02:18:55,519 --> 02:18:58,240 how do we do that go to 3158 02:18:58,240 --> 02:19:01,559 view down arrow key on the theme browse 3159 02:19:01,559 --> 02:19:03,080 the theme this time this time I'm 3160 02:19:03,080 --> 02:19:05,679 browsing the 3161 02:19:06,120 --> 02:19:09,559 theme in the data I have a theme 1. Json 3162 02:19:09,559 --> 02:19:12,280 I'm going to select that once I come 3163 02:19:12,280 --> 02:19:15,000 back and this theme is applied I get a 3164 02:19:15,000 --> 02:19:16,719 message 3165 02:19:16,719 --> 02:19:20,160 file successfully added I can press got 3166 02:19:20,160 --> 02:19:23,479 it and as you you can see the theme has 3167 02:19:23,479 --> 02:19:27,040 changed the font size and other things 3168 02:19:27,040 --> 02:19:28,679 would have also changed now as we 3169 02:19:28,679 --> 02:19:30,960 progress further into the visualization 3170 02:19:30,960 --> 02:19:33,479 we'll see impact of 3171 02:19:33,479 --> 02:19:36,120 those now we will learn how to enable 3172 02:19:36,120 --> 02:19:38,359 the dark mode we are going to look at 3173 02:19:38,359 --> 02:19:41,359 the settings to enable the dark mode 3174 02:19:41,359 --> 02:19:45,040 which has made its way to September 2024 3175 02:19:45,040 --> 02:19:47,760 release so let's jump on to the release 3176 02:19:47,760 --> 02:19:50,680 note first and this is powerbi set 3177 02:19:50,680 --> 02:19:53,920 September 2024 feature summary and if 3178 02:19:53,920 --> 02:19:56,479 you scroll down one of the first 3179 02:19:56,479 --> 02:19:59,080 announcement which you can see is that 3180 02:19:59,080 --> 02:20:01,280 you can now choose from a variety of 3181 02:20:01,280 --> 02:20:04,280 themes powerb desktop including the most 3182 02:20:04,280 --> 02:20:07,240 requested Dark theme you can personalize 3183 02:20:07,240 --> 02:20:09,120 your data visualization experience to 3184 02:20:09,120 --> 02:20:11,080 match your preferences and working 3185 02:20:11,080 --> 02:20:13,520 environment if you further scroll down 3186 02:20:13,520 --> 02:20:15,680 you will see IND the content in the 3187 02:20:15,680 --> 02:20:18,640 journal by popular demand dark mode is 3188 02:20:18,640 --> 02:20:21,399 now available on powerb desktop 3189 02:20:21,399 --> 02:20:23,720 and when you click on this you will see 3190 02:20:23,720 --> 02:20:26,280 how to enable it so you have to go to 3191 02:20:26,280 --> 02:20:30,040 options and settings Global reporting 3192 02:20:30,040 --> 02:20:32,840 setting and personalization so let me 3193 02:20:32,840 --> 02:20:36,520 showcase you that and while showcasing 3194 02:20:36,520 --> 02:20:38,520 we will take two kinds of file one which 3195 02:20:38,520 --> 02:20:41,479 is using a dark theme on the 3196 02:20:41,479 --> 02:20:43,200 visualization and one which is using 3197 02:20:43,200 --> 02:20:45,280 lighter theme in the visualization so 3198 02:20:45,280 --> 02:20:47,560 let me showcase my file to you this is 3199 02:20:47,560 --> 02:20:49,880 my first file which is using a white 3200 02:20:49,880 --> 02:20:51,200 theme 3201 02:20:51,200 --> 02:20:52,960 and this is my second file which is 3202 02:20:52,960 --> 02:20:56,560 using the darker theme and these are the 3203 02:20:56,560 --> 02:20:59,240 powerbi report themes now we would like 3204 02:20:59,240 --> 02:21:01,920 to change the overall desktop theme so 3205 02:21:01,920 --> 02:21:05,160 for that I'll go to file options and 3206 02:21:05,160 --> 02:21:08,560 settings below 3207 02:21:08,560 --> 02:21:12,040 options and click on options options 3208 02:21:12,040 --> 02:21:15,359 popup will open inside the options popup 3209 02:21:15,359 --> 02:21:19,479 inside the global go to report settings 3210 02:21:19,479 --> 02:21:22,080 and inside the report settings come down 3211 02:21:22,080 --> 02:21:23,280 inside the 3212 02:21:23,280 --> 02:21:26,479 personalization you have option dark 3213 02:21:26,479 --> 02:21:29,399 light use system setting so I'm going to 3214 02:21:29,399 --> 02:21:33,560 use dark here click on okay as you can 3215 02:21:33,560 --> 02:21:36,319 observe all the menu items the right 3216 02:21:36,319 --> 02:21:38,479 hand side data Pan the left hand side 3217 02:21:38,479 --> 02:21:41,920 pan everything is now using Dark theme 3218 02:21:41,920 --> 02:21:43,479 my model viewer is also showing the 3219 02:21:43,479 --> 02:21:46,880 darker theme now if I go to this file 3220 02:21:46,880 --> 02:21:49,120 now because I have applied on that file 3221 02:21:49,120 --> 02:21:51,040 maybe I have to open this file again let 3222 02:21:51,040 --> 02:21:53,520 me open this file again and this file is 3223 02:21:53,520 --> 02:21:55,040 already open but what I can do is 3224 02:21:55,040 --> 02:21:56,960 basically uh I can open it and you will 3225 02:21:56,960 --> 02:22:00,800 see this power bi desktop Opening screen 3226 02:22:00,800 --> 02:22:03,760 itself has changed now this file is 3227 02:22:03,760 --> 02:22:05,520 opening again and it has open on the 3228 02:22:05,520 --> 02:22:08,479 different window it will bring it in and 3229 02:22:08,479 --> 02:22:10,640 as you can observe that your powerbi 3230 02:22:10,640 --> 02:22:13,200 desktop is in the dark theme now 3231 02:22:13,200 --> 02:22:15,200 everything which belongs to power VA 3232 02:22:15,200 --> 02:22:17,359 desktop other than your reporting canvas 3233 02:22:17,359 --> 02:22:19,600 area which can have its own reporting 3234 02:22:19,600 --> 02:22:23,600 theme every everything is using do theme 3235 02:22:23,600 --> 02:22:26,600 so do theme has been applied here on all 3236 02:22:26,600 --> 02:22:28,880 the files globally you can look at the 3237 02:22:28,880 --> 02:22:31,720 data view all your tables all your icons 3238 02:22:31,720 --> 02:22:33,840 have changed these are your icons these 3239 02:22:33,840 --> 02:22:36,319 this is your table data view model view 3240 02:22:36,319 --> 02:22:38,000 already shown you Dex query view 3241 02:22:38,000 --> 02:22:41,439 Everything Has Changed to darker 3242 02:22:41,840 --> 02:22:45,120 them I opened a new file with the dark 3243 02:22:45,120 --> 02:22:47,520 one I have closed all my power ba 3244 02:22:47,520 --> 02:22:49,840 instances which were running before I 3245 02:22:49,840 --> 02:22:52,760 applied the Dark theme and I have opened 3246 02:22:52,760 --> 02:22:55,760 a blank new file with a dark theme where 3247 02:22:55,760 --> 02:22:58,520 I'm now going to open a blank report let 3248 02:22:58,520 --> 02:23:01,319 me click on the blank report and now 3249 02:23:01,319 --> 02:23:03,840 here I would like to get the data and I 3250 02:23:03,840 --> 02:23:06,319 can use a powerbi semantic model for 3251 02:23:06,319 --> 02:23:09,840 that let me bring in one semantic model 3252 02:23:09,840 --> 02:23:11,640 and we can use this calculation group 3253 02:23:11,640 --> 02:23:13,479 semantic model which I was using for 3254 02:23:13,479 --> 02:23:16,359 quite some time so the semantic model 3255 02:23:16,359 --> 02:23:18,560 has loaded into the powerbi and as you 3256 02:23:18,560 --> 02:23:21,880 can see all the UI you can observe they 3257 02:23:21,880 --> 02:23:23,600 have been adjusted with reference to 3258 02:23:23,600 --> 02:23:26,200 dark mode the model view is in the dark 3259 02:23:26,200 --> 02:23:28,680 mode the Dex squarey view is in the dark 3260 02:23:28,680 --> 02:23:31,520 mode and we can see all the uis are 3261 02:23:31,520 --> 02:23:33,800 perfectly fine with the dark mode so you 3262 02:23:33,800 --> 02:23:35,880 have seen that we have chosen the dark 3263 02:23:35,880 --> 02:23:37,760 mode and the impact of the dark mode is 3264 02:23:37,760 --> 02:23:40,319 mostly on the menu items it is not 3265 02:23:40,319 --> 02:23:42,520 related to your report theme if you want 3266 02:23:42,520 --> 02:23:45,120 to change your report theme basically 3267 02:23:45,120 --> 02:23:47,160 powerbi report you have to still have to 3268 02:23:47,160 --> 02:23:49,920 go to view and there you can go ahead 3269 02:23:49,920 --> 02:23:52,920 and choose use a dark theme and then 3270 02:23:52,920 --> 02:23:55,200 your report canvas will also use a 3271 02:23:55,200 --> 02:23:57,160 darker theme or whatever theme you have 3272 02:23:57,160 --> 02:23:59,560 selected so you can have your report 3273 02:23:59,560 --> 02:24:01,600 canvas theme or report theme which is 3274 02:24:01,600 --> 02:24:04,279 separate from your powerbi desktop 3275 02:24:04,279 --> 02:24:06,439 darker theme that is different from this 3276 02:24:06,439 --> 02:24:09,080 one so you can choose whatever theme you 3277 02:24:09,080 --> 02:24:12,479 still want for your reporting canvas or 3278 02:24:12,479 --> 02:24:15,800 your powerbi report so go ahead and 3279 02:24:15,800 --> 02:24:19,160 explore this dark mode we would like to 3280 02:24:19,160 --> 02:24:21,240 learn now how to create a table visual 3281 02:24:21,240 --> 02:24:23,000 before that let me tell you how to 3282 02:24:23,000 --> 02:24:26,760 rename a page so the page name is here 3283 02:24:26,760 --> 02:24:28,120 in the 3284 02:24:28,120 --> 02:24:31,399 bottom you can double click on that and 3285 02:24:31,399 --> 02:24:33,040 you can change it so I'm calling it as a 3286 02:24:33,040 --> 02:24:35,439 main page now near to that there is a 3287 02:24:35,439 --> 02:24:37,479 plus button and I'm going to create a 3288 02:24:37,479 --> 02:24:41,000 new page using that one so I'll click on 3289 02:24:41,000 --> 02:24:43,359 that and this is a new page and let me 3290 02:24:43,359 --> 02:24:45,040 double click on this one also and call 3291 02:24:45,040 --> 02:24:46,640 it as table because I'm going to create 3292 02:24:46,640 --> 02:24:49,359 a table visual on that to create a table 3293 02:24:49,359 --> 02:24:52,800 visual either from the Home tab insert 3294 02:24:52,800 --> 02:24:54,600 visualization I can use it or I have 3295 02:24:54,600 --> 02:24:56,600 already enabled the build visual in case 3296 02:24:56,600 --> 02:24:58,600 you are not seeing it you can enable it 3297 02:24:58,600 --> 02:25:01,960 using the view and then further by 3298 02:25:01,960 --> 02:25:05,279 clicking here on the build a visual so 3299 02:25:05,279 --> 02:25:07,160 you should be able to see this pain from 3300 02:25:07,160 --> 02:25:09,560 any of these places you can use the 3301 02:25:09,560 --> 02:25:11,560 table visual so in the build a visual 3302 02:25:11,560 --> 02:25:14,800 I'm going to click on the table 3303 02:25:14,800 --> 02:25:19,120 Visual and it will add a visual on the 3304 02:25:19,120 --> 02:25:21,279 page which which I'll click on the 3305 02:25:21,279 --> 02:25:23,240 visual and drag it down and make it 3306 02:25:23,240 --> 02:25:25,080 little bit 3307 02:25:25,080 --> 02:25:28,520 bigger once I've done that if I have 3308 02:25:28,520 --> 02:25:31,640 clicked on it I can see the check boxes 3309 02:25:31,640 --> 02:25:34,920 on the data pane which I can click to 3310 02:25:34,920 --> 02:25:39,120 bring in the data or if it is not 3311 02:25:39,120 --> 02:25:42,560 selected then I can drag and drop so let 3312 02:25:42,560 --> 02:25:46,880 me drag item brand either on the visual 3313 02:25:46,880 --> 02:25:49,920 that's First Option then let me drag 3314 02:25:49,920 --> 02:25:52,680 category inside the columns which is is 3315 02:25:52,680 --> 02:25:55,520 below the Builder visual 3316 02:25:55,520 --> 02:25:58,720 visuals and third option is because now 3317 02:25:58,720 --> 02:26:00,840 this visual is selected I can actually 3318 02:26:00,840 --> 02:26:03,640 go ahead and add some major by simply 3319 02:26:03,640 --> 02:26:06,960 clicking on them so you can drag it on 3320 02:26:06,960 --> 02:26:10,200 visual you can drag it on the columns or 3321 02:26:10,200 --> 02:26:12,200 you can check the check boxes and add 3322 02:26:12,200 --> 02:26:13,680 certain 3323 02:26:13,680 --> 02:26:16,080 things now what are the options 3324 02:26:16,080 --> 02:26:18,240 available here with the table visual so 3325 02:26:18,240 --> 02:26:19,800 let's have a look at the options of the 3326 02:26:19,800 --> 02:26:22,279 table visual ual so first we would like 3327 02:26:22,279 --> 02:26:24,240 to see the options inside the three dot 3328 02:26:24,240 --> 02:26:26,359 so in the three dot we have export data 3329 02:26:26,359 --> 02:26:28,840 option using which you can export the 3330 02:26:28,840 --> 02:26:31,520 data into a CSV 3331 02:26:31,520 --> 02:26:34,080 format on the three dots we have another 3332 02:26:34,080 --> 02:26:36,800 option to us table which is pretty much 3333 02:26:36,800 --> 02:26:40,040 applicable for all the visuals and it 3334 02:26:40,040 --> 02:26:43,000 will show as it as a table in case of 3335 02:26:43,000 --> 02:26:46,000 table visual it is already a table so 3336 02:26:46,000 --> 02:26:48,760 we'll continue to show it like that and 3337 02:26:48,760 --> 02:26:50,240 there is a button back to report which 3338 02:26:50,240 --> 02:26:52,600 which we can use come back to the report 3339 02:26:52,600 --> 02:26:54,000 this especially helpful when you have 3340 02:26:54,000 --> 02:26:56,000 multiple Visual and you want it to see 3341 02:26:56,000 --> 02:26:59,080 in table then the next one is remove we 3342 02:26:59,080 --> 02:27:00,560 can remove this which we don't want to 3343 02:27:00,560 --> 02:27:04,040 do automatically find cluster is an AI 3344 02:27:04,040 --> 02:27:05,720 option which we are going to explore 3345 02:27:05,720 --> 02:27:09,080 later then we have option Spotlight sort 3346 02:27:09,080 --> 02:27:11,479 by we can choose a sort by column like 3347 02:27:11,479 --> 02:27:14,960 brand category and cogs and the format 3348 02:27:14,960 --> 02:27:16,960 option right now you can already see the 3349 02:27:16,960 --> 02:27:20,279 format pin is open because this is how I 3350 02:27:20,279 --> 02:27:23,080 have set up my panes because of which 3351 02:27:23,080 --> 02:27:25,040 it's open if it is not open you can use 3352 02:27:25,040 --> 02:27:27,479 that option now let's go back to the 3353 02:27:27,479 --> 02:27:30,439 swort option let me say sort on brand 3354 02:27:30,439 --> 02:27:33,000 now you can see that it has been sort in 3355 02:27:33,000 --> 02:27:35,359 on brand on descending now I can go 3356 02:27:35,359 --> 02:27:38,080 ahead here again I will see the option 3357 02:27:38,080 --> 02:27:39,960 for ascending and descending and I can 3358 02:27:39,960 --> 02:27:42,439 click on sort 3359 02:27:42,439 --> 02:27:46,359 ascending right now it is sort 3360 02:27:47,000 --> 02:27:50,160 descending now table visual is one VIs 3361 02:27:50,160 --> 02:27:52,960 ual where we can have multiple sorts so 3362 02:27:52,960 --> 02:27:54,720 now it is already sorted if you want to 3363 02:27:54,720 --> 02:27:57,720 change here from here also you can click 3364 02:27:57,720 --> 02:27:59,880 and 3365 02:27:59,880 --> 02:28:02,640 change if you click 3366 02:28:02,640 --> 02:28:05,399 on the name of the brand you can see the 3367 02:28:05,399 --> 02:28:08,439 Sorting is changing now press the shift 3368 02:28:08,439 --> 02:28:11,479 button and now you can sort the category 3369 02:28:11,479 --> 02:28:13,160 but I don't want to sort category by 3370 02:28:13,160 --> 02:28:15,720 name I want to sort the category by 3371 02:28:15,720 --> 02:28:18,960 cross and let me click on it so what 3372 02:28:18,960 --> 02:28:20,960 does it do is by default for number it 3373 02:28:20,960 --> 02:28:24,279 sort by descending so it is sorted on 3374 02:28:24,279 --> 02:28:28,319 column one's brand and sort descending 3375 02:28:28,319 --> 02:28:30,640 on 3376 02:28:31,160 --> 02:28:34,000 Gross so first sorting was on brand and 3377 02:28:34,000 --> 02:28:36,200 second sorting is on the gross so double 3378 02:28:36,200 --> 02:28:38,120 sorting is possible you can have 3379 02:28:38,120 --> 02:28:40,319 multiple sorting using the shift button 3380 02:28:40,319 --> 02:28:41,920 now when you click on this because of 3381 02:28:41,920 --> 02:28:44,399 the on object interaction it is start 3382 02:28:44,399 --> 02:28:47,319 showing which property you can change if 3383 02:28:47,319 --> 02:28:49,319 I click here which property can change 3384 02:28:49,319 --> 02:28:50,600 if I click here 3385 02:28:50,600 --> 02:28:52,279 if I click on the header it started 3386 02:28:52,279 --> 02:28:54,800 showing the column header text so in 3387 02:28:54,800 --> 02:28:57,319 this manner the on object interactions 3388 02:28:57,319 --> 02:28:59,000 allow you to change the particular 3389 02:28:59,000 --> 02:29:01,200 Properties by clicking on that 3390 02:29:01,200 --> 02:29:04,520 particular set now let me click on the 3391 02:29:04,520 --> 02:29:06,359 table and let me take you through all 3392 02:29:06,359 --> 02:29:08,560 the visual properties one by one for the 3393 02:29:08,560 --> 02:29:11,439 table visual size and style is the first 3394 02:29:11,439 --> 02:29:13,880 property now you can see the height and 3395 02:29:13,880 --> 02:29:17,279 width is based on what I've created and 3396 02:29:17,279 --> 02:29:19,880 then the lock aspect ratio in case if I 3397 02:29:19,880 --> 02:29:22,120 use use the lock aspect ratio if I 3398 02:29:22,120 --> 02:29:23,960 resize the table it will maintain the 3399 02:29:23,960 --> 02:29:26,000 same ratio which I've taken currently 3400 02:29:26,000 --> 02:29:27,600 which I'm not not planning to do right 3401 02:29:27,600 --> 02:29:29,680 now horizontal and vertical is the 3402 02:29:29,680 --> 02:29:31,279 position it will change the moment I 3403 02:29:31,279 --> 02:29:33,120 move the table up and 3404 02:29:33,120 --> 02:29:36,200 down next comes the padding the padding 3405 02:29:36,200 --> 02:29:38,760 is from the top bottom so this is the 3406 02:29:38,760 --> 02:29:41,880 padding I can reduce it as per need 3407 02:29:41,880 --> 02:29:43,479 background right now the background is 3408 02:29:43,479 --> 02:29:46,160 on and there is a color I can go ahead 3409 02:29:46,160 --> 02:29:47,560 and change this 3410 02:29:47,560 --> 02:29:50,200 color and because the transparency is is 3411 02:29:50,200 --> 02:29:52,359 100% I have to reduce the transparency 3412 02:29:52,359 --> 02:29:53,960 to see the background color so the 3413 02:29:53,960 --> 02:29:56,680 background color is the color which is 3414 02:29:56,680 --> 02:29:59,160 behind the table I can increase little 3415 02:29:59,160 --> 02:30:01,439 bit of transparency to keep 3416 02:30:01,439 --> 02:30:04,359 it if I switch off the background 3417 02:30:04,359 --> 02:30:06,920 color there will be no background and I 3418 02:30:06,920 --> 02:30:09,439 will be able to see the page background 3419 02:30:09,439 --> 02:30:12,600 color I enable it again the next option 3420 02:30:12,600 --> 02:30:14,319 is visual border right now it is 3421 02:30:14,319 --> 02:30:16,240 disabled I can I can switch it on you 3422 02:30:16,240 --> 02:30:18,279 will be able to see a border now if you 3423 02:30:18,279 --> 02:30:20,560 click outside let me click inside it 3424 02:30:20,560 --> 02:30:22,960 and let me go ahead and and change the 3425 02:30:22,960 --> 02:30:24,920 rounded corner so that you can 3426 02:30:24,920 --> 02:30:27,399 understand what's happening there so now 3427 02:30:27,399 --> 02:30:30,160 you can see the rounded corners for this 3428 02:30:30,160 --> 02:30:32,279 table you can see a border as well as 3429 02:30:32,279 --> 02:30:34,800 the rounded 3430 02:30:35,160 --> 02:30:37,439 Corners in case you want a shadow you 3431 02:30:37,439 --> 02:30:39,359 can switch it on and it will start 3432 02:30:39,359 --> 02:30:41,319 showing the shadow you can decide the 3433 02:30:41,319 --> 02:30:43,479 shadow color and you can decide whether 3434 02:30:43,479 --> 02:30:45,760 it should be inside or outside and where 3435 02:30:45,760 --> 02:30:47,439 it should be it should be bottom bottom 3436 02:30:47,439 --> 02:30:50,319 right bottom left various options have 3437 02:30:50,319 --> 02:30:52,479 given which you can choose I would like 3438 02:30:52,479 --> 02:30:54,359 to keep it bottom right only that's the 3439 02:30:54,359 --> 02:30:57,399 most suitable option for a 3440 02:30:57,399 --> 02:30:59,800 shadow right now there is no title but I 3441 02:30:59,800 --> 02:31:01,560 can enable the title so let me enable 3442 02:31:01,560 --> 02:31:03,760 the title and I can double click here 3443 02:31:03,760 --> 02:31:05,520 and give the title so there are two 3444 02:31:05,520 --> 02:31:08,279 places where I can do it I can give a 3445 02:31:08,279 --> 02:31:10,120 title from here or I can double click 3446 02:31:10,120 --> 02:31:12,720 here in the title itself and I can give 3447 02:31:12,720 --> 02:31:16,120 a title so let me call it as 3448 02:31:16,120 --> 02:31:17,640 table 3449 02:31:17,640 --> 02:31:21,000 Visual and as you can see whatever I'm 3450 02:31:21,000 --> 02:31:23,399 typing here it is also appearing here in 3451 02:31:23,399 --> 02:31:26,880 the text the FX means I can use a majure 3452 02:31:26,880 --> 02:31:28,840 here so if I need a dynamic title I can 3453 02:31:28,840 --> 02:31:31,640 create a mejor and I can use inside it 3454 02:31:31,640 --> 02:31:33,439 right now it is using heading three I 3455 02:31:33,439 --> 02:31:36,200 can changes as per 3456 02:31:36,200 --> 02:31:39,439 need similarly I can use bold italic and 3457 02:31:39,439 --> 02:31:43,000 underline for it I can use a color 3458 02:31:43,000 --> 02:31:44,880 background color is right now nothing I 3459 02:31:44,880 --> 02:31:47,399 can choose it again I can use FX means 3460 02:31:47,399 --> 02:31:50,040 function means I can use measure and let 3461 02:31:50,040 --> 02:31:51,720 me showcase you at one place so if I 3462 02:31:51,720 --> 02:31:54,520 click FX here I I'm able to see field 3463 02:31:54,520 --> 02:31:56,560 value and I can choose what major I want 3464 02:31:56,560 --> 02:31:59,200 to display 3465 02:31:59,760 --> 02:32:02,920 here now there is a subtitle option 3466 02:32:02,920 --> 02:32:04,640 right now there is no subtitle which has 3467 02:32:04,640 --> 02:32:07,160 been used I can enable the subtitle and 3468 02:32:07,160 --> 02:32:10,240 now I get a subtitle option here again 3469 02:32:10,240 --> 02:32:13,240 either I can type it here or I can use a 3470 02:32:13,240 --> 02:32:15,760 majure using FX or I can type directly 3471 02:32:15,760 --> 02:32:18,359 here we prefer on object interaction we 3472 02:32:18,359 --> 02:32:21,800 like to write on the visual so let's 3473 02:32:21,800 --> 02:32:24,439 say 3474 02:32:24,439 --> 02:32:30,040 information for brand 3475 02:32:30,040 --> 02:32:33,040 and 3476 02:32:36,080 --> 02:32:38,960 category for subtitles again we can 3477 02:32:38,960 --> 02:32:41,120 choose text colors now right now this 3478 02:32:41,120 --> 02:32:42,640 text color is not matching so I'm going 3479 02:32:42,640 --> 02:32:46,240 to change it out then you can choose the 3480 02:32:46,240 --> 02:32:48,040 horizontal alignment right now it is 3481 02:32:48,040 --> 02:32:50,399 left aligned this one is little bit 3482 02:32:50,399 --> 02:32:52,399 darker I can make it middle align so it 3483 02:32:52,399 --> 02:32:55,680 will go into the middle and to match it 3484 02:32:55,680 --> 02:32:57,680 also I'll make the title also middle 3485 02:32:57,680 --> 02:32:59,960 align so both title and the subtitles 3486 02:32:59,960 --> 02:33:02,640 are now middle aligned text wrap if 3487 02:33:02,640 --> 02:33:04,359 there is a larger text we can use text 3488 02:33:04,359 --> 02:33:06,680 wrap so that it get into the next line 3489 02:33:06,680 --> 02:33:08,120 instead of cutting it 3490 02:33:08,120 --> 02:33:10,600 down then we have divider which is right 3491 02:33:10,600 --> 02:33:13,359 now not off I can enable it and you will 3492 02:33:13,359 --> 02:33:15,840 start seeing a divider between the 3493 02:33:15,840 --> 02:33:17,760 header and 3494 02:33:17,760 --> 02:33:21,920 the table area it is solid one pixel we 3495 02:33:21,920 --> 02:33:23,800 can increase the pixel to understand it 3496 02:33:23,800 --> 02:33:26,240 better ignore padding is on you if you 3497 02:33:26,240 --> 02:33:28,840 want you can disable that next is 3498 02:33:28,840 --> 02:33:32,200 spacing spacing is customize spacing is 3499 02:33:32,200 --> 02:33:34,399 off if you want you can customize the 3500 02:33:34,399 --> 02:33:37,040 spacing switch it on and let me reduce 3501 02:33:37,040 --> 02:33:39,720 the spacing and as I'm reducing the 3502 02:33:39,720 --> 02:33:41,960 spacing you can see the impact between 3503 02:33:41,960 --> 02:33:44,880 the below area and of the above area 3504 02:33:44,880 --> 02:33:47,120 next is style 3505 02:33:47,120 --> 02:33:49,439 resets now right now the style is 3506 02:33:49,439 --> 02:33:52,359 different fa and which is the Shaded 3507 02:33:52,359 --> 02:33:54,880 style if I choose none you can see the 3508 02:33:54,880 --> 02:33:56,240 difference what is happening in this 3509 02:33:56,240 --> 02:33:59,160 table and I'm going to use few of these 3510 02:33:59,160 --> 02:34:00,840 Styles and showcase you what all they 3511 02:34:00,840 --> 02:34:04,080 can do border header this is one style 3512 02:34:04,080 --> 02:34:05,920 which actually I'm liking a lot 3513 02:34:05,920 --> 02:34:09,880 alternating rows this also seems good 3514 02:34:09,880 --> 02:34:12,040 contrast alternating 3515 02:34:12,040 --> 02:34:14,760 rows flashy 3516 02:34:14,760 --> 02:34:17,840 colors border and flashy 3517 02:34:17,840 --> 02:34:20,319 colors bold and flashy 3518 02:34:20,319 --> 02:34:22,760 colors 3519 02:34:22,760 --> 02:34:25,279 bars 3520 02:34:25,279 --> 02:34:28,000 condensed I'll keep it to default right 3521 02:34:28,000 --> 02:34:31,080 now and based on this when you go to 3522 02:34:31,080 --> 02:34:32,880 some of the features like especially 3523 02:34:32,880 --> 02:34:34,600 when you want to color the rows you will 3524 02:34:34,600 --> 02:34:37,080 get that option of alternating colors 3525 02:34:37,080 --> 02:34:38,520 right now because it is by default 3526 02:34:38,520 --> 02:34:40,840 alternating color and you go to grid so 3527 02:34:40,840 --> 02:34:42,479 right now the horizontal grid lines are 3528 02:34:42,479 --> 02:34:44,479 on so these are the grid lines which you 3529 02:34:44,479 --> 02:34:47,960 could make a note of 3530 02:34:47,960 --> 02:34:50,880 it these are hor onal and these are 3531 02:34:50,880 --> 02:34:55,640 vertical so let me off and on let me 3532 02:34:55,640 --> 02:34:57,279 increase the size little bit you will be 3533 02:34:57,279 --> 02:35:00,359 able to differentiate similarly vertical 3534 02:35:00,359 --> 02:35:03,160 are off I can on it and if I increase 3535 02:35:03,160 --> 02:35:06,439 the size you can use grid lines vertical 3536 02:35:06,439 --> 02:35:08,319 and horizontal it's not looking so great 3537 02:35:08,319 --> 02:35:10,080 right now but to explain to you I have 3538 02:35:10,080 --> 02:35:13,399 to do those changes now I may choose a 3539 02:35:13,399 --> 02:35:17,080 different color also 3540 02:35:20,240 --> 02:35:23,160 next one is border and let me showcase 3541 02:35:23,160 --> 02:35:25,000 you right now if you notice there is no 3542 02:35:25,000 --> 02:35:26,760 border for this particular section of 3543 02:35:26,760 --> 02:35:30,120 the table but let me enable it me enable 3544 02:35:30,120 --> 02:35:34,000 top you can see the border on the top 3545 02:35:34,000 --> 02:35:36,399 here same way 3546 02:35:36,399 --> 02:35:40,720 bottom left right and let me increase 3547 02:35:40,720 --> 02:35:42,439 the width a little bit you will be able 3548 02:35:42,439 --> 02:35:46,319 to observe B on all the 3549 02:35:46,319 --> 02:35:49,080 sides next one is options there is a 3550 02:35:49,080 --> 02:35:51,359 rope adding which you can increase which 3551 02:35:51,359 --> 02:35:53,960 will increase the padding between the 3552 02:35:53,960 --> 02:35:57,200 lines I'm going to decrease that to zero 3553 02:35:57,200 --> 02:35:58,680 and Global font if you want to increase 3554 02:35:58,680 --> 02:36:00,120 the font but we don't want to disturb 3555 02:36:00,120 --> 02:36:03,240 the font we would like to continue with 3556 02:36:03,240 --> 02:36:07,040 the font from the 3557 02:36:07,040 --> 02:36:10,200 theme now comes the important which is 3558 02:36:10,200 --> 02:36:12,000 values now we want to play around the 3559 02:36:12,000 --> 02:36:15,040 values values is typically these these 3560 02:36:15,040 --> 02:36:17,279 These are called as 3561 02:36:17,279 --> 02:36:21,240 values now you can see that I have the 3562 02:36:21,240 --> 02:36:22,760 text color and the background color 3563 02:36:22,760 --> 02:36:24,359 alternate text color and Alternate 3564 02:36:24,359 --> 02:36:26,880 background color and this is because our 3565 02:36:26,880 --> 02:36:28,880 theme is alternating color and just to 3566 02:36:28,880 --> 02:36:32,399 explain it to you let me change the 3567 02:36:32,399 --> 02:36:36,680 color so that you're able to make sense 3568 02:36:36,680 --> 02:36:37,840 out of 3569 02:36:37,840 --> 02:36:40,920 it and then alternating text color let's 3570 02:36:40,920 --> 02:36:45,160 only change the the background 3571 02:36:46,399 --> 02:36:51,520 color let's change the text color now 3572 02:36:52,000 --> 02:36:55,120 again rep text in case the text taking 3573 02:36:55,120 --> 02:36:58,399 more place we can use rep text in of 3574 02:36:58,399 --> 02:36:59,279 cutting 3575 02:36:59,279 --> 02:37:01,920 down so these are the values which has 3576 02:37:01,920 --> 02:37:04,560 changed next comes the column 3577 02:37:04,560 --> 02:37:07,160 header in the column header again this 3578 02:37:07,160 --> 02:37:08,720 is the area which is going to be 3579 02:37:08,720 --> 02:37:10,439 impacted because of the column header 3580 02:37:10,439 --> 02:37:13,560 let's make the column header as bold 3581 02:37:13,560 --> 02:37:16,600 metallic and underline color I'm fine 3582 02:37:16,600 --> 02:37:18,520 with that background color white is also 3583 02:37:18,520 --> 02:37:22,040 fine and do I want to make them left 3584 02:37:22,040 --> 02:37:24,680 align or centrer align as this is a 3585 02:37:24,680 --> 02:37:26,319 generic one I don't want to use there 3586 02:37:26,319 --> 02:37:28,080 are better options available to handle 3587 02:37:28,080 --> 02:37:31,080 it based on each column so we are going 3588 02:37:31,080 --> 02:37:33,240 to use that option right now let's leave 3589 02:37:33,240 --> 02:37:37,319 it let's go to the next option Auto size 3590 02:37:37,319 --> 02:37:39,600 width now what happens 3591 02:37:39,600 --> 02:37:42,960 is if you can go ahead and resize these 3592 02:37:42,960 --> 02:37:45,319 columns but what would happen if you do 3593 02:37:45,319 --> 02:37:46,520 certain 3594 02:37:46,520 --> 02:37:48,720 changes this may get back to its 3595 02:37:48,720 --> 02:37:50,439 original size 3596 02:37:50,439 --> 02:37:53,600 because of the auto size width so let's 3597 02:37:53,600 --> 02:37:56,200 say you use a filter or a slicer and 3598 02:37:56,200 --> 02:37:58,359 this may come back to its original size 3599 02:37:58,359 --> 02:38:00,960 if I don't want it to come to original 3600 02:38:00,960 --> 02:38:04,279 size then what I'll do is I'll switch it 3601 02:38:04,279 --> 02:38:07,200 off so that once I fix this width it 3602 02:38:07,200 --> 02:38:09,880 should not resize and that's where we 3603 02:38:09,880 --> 02:38:13,520 can use Auto size width 3604 02:38:13,520 --> 02:38:18,319 off then the next option is for totals 3605 02:38:18,319 --> 02:38:20,120 total we have value 3606 02:38:20,120 --> 02:38:23,560 values and we can switch off the totals 3607 02:38:23,560 --> 02:38:25,840 we don't want the totals and if you 3608 02:38:25,840 --> 02:38:28,240 switch it on now do I want to call it 3609 02:38:28,240 --> 02:38:30,800 total or do you want to call it grand 3610 02:38:30,800 --> 02:38:33,560 total again static in 3611 02:38:33,560 --> 02:38:36,000 nature uh you don't have an option for 3612 02:38:36,000 --> 02:38:38,960 FX text color you can Define and 3613 02:38:38,960 --> 02:38:41,160 background color you can Define then 3614 02:38:41,160 --> 02:38:43,479 comes the most powerful option specific 3615 02:38:43,479 --> 02:38:47,000 columns now here what you can do is you 3616 02:38:47,000 --> 02:38:48,800 can choose each column and for that you 3617 02:38:48,800 --> 02:38:51,319 want to decide you want to change 3618 02:38:51,319 --> 02:38:53,439 something which should apply to header 3619 02:38:53,439 --> 02:38:56,279 apply to total or apply to values like 3620 02:38:56,279 --> 02:38:58,160 this is one common question which you 3621 02:38:58,160 --> 02:39:01,399 ask that for the discount column I want 3622 02:39:01,399 --> 02:39:03,760 everything to be same I would like to 3623 02:39:03,760 --> 02:39:06,120 apply to header apply to total and apply 3624 02:39:06,120 --> 02:39:08,279 to values what I want to do here is I 3625 02:39:08,279 --> 02:39:11,439 want a text color let's 3626 02:39:11,439 --> 02:39:14,439 say 3627 02:39:14,760 --> 02:39:18,960 orange and I want the alignment as left 3628 02:39:18,960 --> 02:39:21,319 so for the entire category 3629 02:39:21,319 --> 02:39:25,160 column you can see the text color is 3630 02:39:25,160 --> 02:39:28,160 orange and the alignment is left and 3631 02:39:28,160 --> 02:39:30,960 even for the alternate color it has 3632 02:39:30,960 --> 02:39:34,279 changed so this is when you want it to 3633 02:39:34,279 --> 02:39:36,640 do it for complete column there is no 3634 02:39:36,640 --> 02:39:38,120 background color we can actually go 3635 02:39:38,120 --> 02:39:39,439 ahead and give a background color and 3636 02:39:39,439 --> 02:39:41,399 you now you can see because we I have 3637 02:39:41,399 --> 02:39:43,760 given a background color it is not 3638 02:39:43,760 --> 02:39:46,279 following that 3639 02:39:46,279 --> 02:39:49,479 alternative so in this manner in case 3640 02:39:49,479 --> 02:39:52,040 case there is a 3641 02:39:52,040 --> 02:39:55,160 requirement that you wanted to have one 3642 02:39:55,160 --> 02:39:57,680 single column from top to bottom 3643 02:39:57,680 --> 02:39:59,680 following something you can do that or 3644 02:39:59,680 --> 02:40:01,359 you may would like to say now don't 3645 02:40:01,359 --> 02:40:02,800 apply it to values I'm fine with 3646 02:40:02,800 --> 02:40:05,120 alternating colors I'm now only applying 3647 02:40:05,120 --> 02:40:08,200 it to header and 3648 02:40:08,800 --> 02:40:13,240 total next comes the option of cell 3649 02:40:13,240 --> 02:40:16,840 elements now cell elements provide us 3650 02:40:16,840 --> 02:40:19,560 opportunities for conditional formatting 3651 02:40:19,560 --> 02:40:21,359 the advantage in the table visual is 3652 02:40:21,359 --> 02:40:24,240 that we can do it on all the 3653 02:40:24,240 --> 02:40:26,200 columns we have something known as 3654 02:40:26,200 --> 02:40:27,960 Matrix visual where we will not be able 3655 02:40:27,960 --> 02:40:31,120 to do it on rows and columns we don't 3656 02:40:31,120 --> 02:40:32,840 have a concept of rows and columns here 3657 02:40:32,840 --> 02:40:34,960 everything is a column here so we can do 3658 02:40:34,960 --> 02:40:37,520 it on all each and every column and just 3659 02:40:37,520 --> 02:40:39,399 for the Showcase purpose I'll show you 3660 02:40:39,399 --> 02:40:41,439 one conditional formatting on the 3661 02:40:41,439 --> 02:40:43,880 background but later on we will come 3662 02:40:43,880 --> 02:40:46,279 back and do a deep dip on the 3663 02:40:46,279 --> 02:40:47,880 conditional formatting let me explain 3664 02:40:47,880 --> 02:40:49,120 you how to use conditional formatting 3665 02:40:49,120 --> 02:40:51,080 with one base example so I'll click on 3666 02:40:51,080 --> 02:40:53,319 the background color and it 3667 02:40:53,319 --> 02:40:55,240 automatically opens a popup which we 3668 02:40:55,240 --> 02:40:58,279 call the conditional formatting popup it 3669 02:40:58,279 --> 02:41:01,600 has three Styles gradient Rule and field 3670 02:41:01,600 --> 02:41:04,040 value base I'm going to use the gradient 3671 02:41:04,040 --> 02:41:06,680 style as of now that's the easiest one 3672 02:41:06,680 --> 02:41:09,399 value only values and total means it 3673 02:41:09,399 --> 02:41:11,120 will apply to total total only it will 3674 02:41:11,120 --> 02:41:12,800 only happen to Total I'll use values 3675 02:41:12,800 --> 02:41:15,359 only right now count of brand typically 3676 02:41:15,359 --> 02:41:17,120 it needs a measure or a calculated 3677 02:41:17,120 --> 02:41:19,359 column so I'll prefer a measure which is 3678 02:41:19,359 --> 02:41:23,120 net here I'll choose that and it is from 3679 02:41:23,120 --> 02:41:25,359 lowest value red and highest value is 3680 02:41:25,359 --> 02:41:28,240 green I can add a middle color but those 3681 02:41:28,240 --> 02:41:31,000 things we will explore later and right 3682 02:41:31,000 --> 02:41:33,399 now I'm going to press okay 3683 02:41:33,399 --> 02:41:37,080 button to apply this and as you can see 3684 02:41:37,080 --> 02:41:39,120 the conditional formatting has been 3685 02:41:39,120 --> 02:41:41,200 applied here and we can see different 3686 02:41:41,200 --> 02:41:43,439 different background colors depending on 3687 02:41:43,439 --> 02:41:45,760 the net value we can explore font 3688 02:41:45,760 --> 02:41:46,920 condition formatting which will happen 3689 02:41:46,920 --> 02:41:50,240 on the font icon which will show icons 3690 02:41:50,240 --> 02:41:53,840 web URL which will show web 3691 02:41:54,479 --> 02:41:57,880 URL the next one is URL icon for this 3692 02:41:57,880 --> 02:41:59,279 you need to have a column which is 3693 02:41:59,279 --> 02:42:01,200 having URL and you can convert it into 3694 02:42:01,200 --> 02:42:04,640 icon it should not show the URL so we 3695 02:42:04,640 --> 02:42:08,279 will use this inside the Matrix visual 3696 02:42:08,279 --> 02:42:10,040 for that we are going to add a URL in 3697 02:42:10,040 --> 02:42:12,880 our item table image size in case you 3698 02:42:12,880 --> 02:42:15,720 are using an image then you can use the 3699 02:42:15,720 --> 02:42:18,359 image height and width the image size 3700 02:42:18,359 --> 02:42:20,200 will only be app cable when I have the 3701 02:42:20,200 --> 02:42:22,600 image right now I don't have image so we 3702 02:42:22,600 --> 02:42:24,800 will take back these URL icon and image 3703 02:42:24,800 --> 02:42:26,880 icon later we have certain images which 3704 02:42:26,880 --> 02:42:29,160 we wanted to show IND visuals and we'll 3705 02:42:29,160 --> 02:42:31,800 take this up later accessibility refer 3706 02:42:31,800 --> 02:42:35,439 to row non select brand category you can 3707 02:42:35,439 --> 02:42:38,359 use these options so these are the table 3708 02:42:38,359 --> 02:42:41,319 specific properties which we 3709 02:42:41,319 --> 02:42:43,880 have there are generic properties which 3710 02:42:43,880 --> 02:42:46,399 apply to each and every visual like 3711 02:42:46,399 --> 02:42:48,800 header icons so header icons are these 3712 02:42:48,800 --> 02:42:50,680 icons which you are seeing can disable 3713 02:42:50,680 --> 02:42:52,520 these header icons but they will not get 3714 02:42:52,520 --> 02:42:54,880 disabled here these icons will get 3715 02:42:54,880 --> 02:42:56,840 disabled in powerbi service so even if 3716 02:42:56,840 --> 02:42:58,800 you disable here these header icon 3717 02:42:58,800 --> 02:43:00,359 you'll continue to see they will get 3718 02:43:00,359 --> 02:43:02,439 disabled once you publish the file you 3719 02:43:02,439 --> 02:43:04,359 can decide the color for these icon 3720 02:43:04,359 --> 02:43:07,880 border Etc now you can decide what icon 3721 02:43:07,880 --> 02:43:09,800 you want like visual information visual 3722 02:43:09,800 --> 02:43:12,080 warning visual error drill down drop 3723 02:43:12,080 --> 02:43:14,640 down drill up these are generic options 3724 02:43:14,640 --> 02:43:16,279 right now you're not seeing all of these 3725 02:43:16,279 --> 02:43:18,200 options whatever is applicable for this 3726 02:43:18,200 --> 02:43:19,920 visual at that particular moment you are 3727 02:43:19,920 --> 02:43:21,760 seeing it 3728 02:43:21,760 --> 02:43:24,479 but again if you uncheck some of these 3729 02:43:24,479 --> 02:43:26,920 options like filter option if I uncheck 3730 02:43:26,920 --> 02:43:28,760 you will see that still the filter 3731 02:43:28,760 --> 02:43:31,800 option is there again this will be 3732 02:43:31,800 --> 02:43:34,279 hidden once we publish the 3733 02:43:34,279 --> 02:43:37,319 file you can use reset to default this 3734 02:43:37,319 --> 02:43:39,760 option is available at many places helps 3735 02:43:39,760 --> 02:43:42,920 you to get to reset to default tool tip 3736 02:43:42,920 --> 02:43:44,080 right now you're not able to see the 3737 02:43:44,080 --> 02:43:46,479 tool tip if you enable it you will start 3738 02:43:46,479 --> 02:43:49,800 seeing a tool tip here 3739 02:43:49,800 --> 02:43:51,560 and if you disable it the tool tip would 3740 02:43:51,560 --> 02:43:52,840 be completely 3741 02:43:52,840 --> 02:43:55,760 off alternate text while loading what 3742 02:43:55,760 --> 02:43:57,240 alternate text you wanted to show you 3743 02:43:57,240 --> 02:44:00,319 can also use FX option for that advanced 3744 02:44:00,319 --> 02:44:03,359 option is basically responsiveness and 3745 02:44:03,359 --> 02:44:05,600 maintain layer order which is off right 3746 02:44:05,600 --> 02:44:08,200 now these are the properties used by 3747 02:44:08,200 --> 02:44:11,680 table Visual and as you see we have done 3748 02:44:11,680 --> 02:44:14,479 quite a lot around it what we can do is 3749 02:44:14,479 --> 02:44:16,399 some of these things we can say reset to 3750 02:44:16,399 --> 02:44:18,200 default so one of the property I've done 3751 02:44:18,200 --> 02:44:19,720 is basically 3752 02:44:19,720 --> 02:44:22,120 the grid I have reset to default 3753 02:44:22,120 --> 02:44:25,000 similarly style preset reset to default 3754 02:44:25,000 --> 02:44:29,120 title is fine sizing and style is 3755 02:44:29,120 --> 02:44:33,240 fine reset to default the text 3756 02:44:33,240 --> 02:44:37,160 colors column headers reset to 3757 02:44:37,160 --> 02:44:41,200 default values reset to default specific 3758 02:44:41,200 --> 02:44:45,080 column reset to default and as you now 3759 02:44:45,080 --> 02:44:47,479 observe we are almost at the very 3760 02:44:47,479 --> 02:44:49,680 starting stage yes I'm leaving 3761 02:44:49,680 --> 02:44:50,800 ahead what I've have done as a 3762 02:44:50,800 --> 02:44:53,120 background color and the headers so I'm 3763 02:44:53,120 --> 02:44:55,319 keeping them as is but in this manner 3764 02:44:55,319 --> 02:44:57,120 you can revert few of the things to 3765 02:44:57,120 --> 02:44:59,880 deset to default it helps you for 3766 02:44:59,880 --> 02:45:04,000 experiment and come back to the initial 3767 02:45:04,000 --> 02:45:07,240 position so we have now learned how to 3768 02:45:07,240 --> 02:45:09,080 create a table visual to multiple 3769 02:45:09,080 --> 02:45:11,319 sorting and do various kind of 3770 02:45:11,319 --> 02:45:14,080 formatting on table 3771 02:45:14,080 --> 02:45:16,720 visual let's start creating a matrix 3772 02:45:16,720 --> 02:45:19,479 visual so I'll add another page for that 3773 02:45:19,479 --> 02:45:22,720 using the plus button at the bottom plus 3774 02:45:22,720 --> 02:45:26,520 button let me double click and rename 3775 02:45:26,520 --> 02:45:28,760 Matrix you can also right click and 3776 02:45:28,760 --> 02:45:30,600 rename if you want to delete you can 3777 02:45:30,600 --> 02:45:32,600 delete duplicate you can duplicate if 3778 02:45:32,600 --> 02:45:34,760 you want to hide now when you hide it 3779 02:45:34,760 --> 02:45:36,279 here it doesn't mean that it's going to 3780 02:45:36,279 --> 02:45:38,680 hide here it's just going to show you uh 3781 02:45:38,680 --> 02:45:40,560 that it will be hidden but it will be 3782 02:45:40,560 --> 02:45:43,720 hidden only in powerbi service in the 3783 02:45:43,720 --> 02:45:46,960 viewing mode now to add a matrix visual 3784 02:45:46,960 --> 02:45:50,120 again we can have option either for from 3785 02:45:50,120 --> 02:45:52,800 build a visual which I enabled from here 3786 02:45:52,800 --> 02:45:55,399 which was not visible or you from the 3787 02:45:55,399 --> 02:45:57,520 Home tab you have the insert 3788 02:45:57,520 --> 02:46:02,279 option The Matrix visual is lying 3789 02:46:02,279 --> 02:46:05,439 here if you can notice and in case of 3790 02:46:05,439 --> 02:46:07,080 the top it's lying here one of the two 3791 02:46:07,080 --> 02:46:09,560 places you can use I'll click on the 3792 02:46:09,560 --> 02:46:12,279 Matrix visual here on the build of 3793 02:46:12,279 --> 02:46:17,240 visual Pane and bring it little bit down 3794 02:46:17,240 --> 02:46:20,880 and and make it little a little bit 3795 02:46:20,880 --> 02:46:24,359 bigger now unlike table visual we have 3796 02:46:24,359 --> 02:46:26,240 some different options like row columns 3797 02:46:26,240 --> 02:46:29,840 and values and once we add that you will 3798 02:46:29,840 --> 02:46:31,399 be able to understand what I'm talking 3799 02:46:31,399 --> 02:46:33,600 about and metrix visual has quite a lot 3800 02:46:33,600 --> 02:46:36,600 of option for display also so first we 3801 02:46:36,600 --> 02:46:39,359 focus on the display related options and 3802 02:46:39,359 --> 02:46:42,479 then we go through the other properties 3803 02:46:42,479 --> 02:46:45,640 of the Matrix visual um quite a few 3804 02:46:45,640 --> 02:46:48,040 properties of the Matrix visual is 3805 02:46:48,040 --> 02:46:50,359 similar to table visual but this one 3806 02:46:50,359 --> 02:46:52,160 property which you will find missing 3807 02:46:52,160 --> 02:46:55,240 here is basically sorting on multiple 3808 02:46:55,240 --> 02:46:57,880 columns that's not available here the 3809 02:46:57,880 --> 02:47:00,040 Sorting automatically get adjusted when 3810 02:47:00,040 --> 02:47:03,319 you have multiple 3811 02:47:03,319 --> 02:47:06,520 rows either on the value or on the 3812 02:47:06,520 --> 02:47:08,800 categories so let me start creating a 3813 02:47:08,800 --> 02:47:10,520 matrix visual a very simple Matrix 3814 02:47:10,520 --> 02:47:12,760 visual I'll drag a brand it will group 3815 02:47:12,760 --> 02:47:15,479 The everything by brand and then I'll 3816 02:47:15,479 --> 02:47:19,359 bring in the major 3817 02:47:19,560 --> 02:47:21,279 the 3818 02:47:21,279 --> 02:47:23,720 values I can actually also bring a 3819 02:47:23,720 --> 02:47:26,279 quantity 3820 02:47:27,600 --> 02:47:29,880 column and as you can see there's a sum 3821 02:47:29,880 --> 02:47:32,279 of quantity but if I try to remove the 3822 02:47:32,279 --> 02:47:34,560 aggregation I don't have any 3823 02:47:34,560 --> 02:47:37,680 option but if you go to a table 3824 02:47:37,680 --> 02:47:40,319 Visual and you try to add a quantity 3825 02:47:40,319 --> 02:47:42,680 column let's say inside a table visual 3826 02:47:42,680 --> 02:47:45,720 as a column you you do have option of 3827 02:47:45,720 --> 02:47:48,840 aggregation don't summarize it means you 3828 02:47:48,840 --> 02:47:51,960 can group it by quantity but the option 3829 02:47:51,960 --> 02:47:54,960 is not available in Matrix values the 3830 02:47:54,960 --> 02:47:58,600 values has to be aggregated so that is 3831 02:47:58,600 --> 02:48:00,000 why there is no option for no 3832 02:48:00,000 --> 02:48:02,800 aggregation 3833 02:48:02,800 --> 02:48:05,840 here don't aggregate is not an 3834 02:48:05,840 --> 02:48:08,600 option let me cross 3835 02:48:08,600 --> 02:48:11,240 that now you can add multiple Majors if 3836 02:48:11,240 --> 02:48:13,439 you 3837 02:48:14,600 --> 02:48:19,120 like I check that 3838 02:48:20,120 --> 02:48:21,840 you have one row you can have multiple 3839 02:48:21,840 --> 02:48:23,760 rows the moment you have the multiple 3840 02:48:23,760 --> 02:48:26,200 rows you will start seeing the plus 3841 02:48:26,200 --> 02:48:28,439 button now it depends on you how you 3842 02:48:28,439 --> 02:48:31,560 want to use that the moment you have 3843 02:48:31,560 --> 02:48:33,600 more than one you start seeing the drill 3844 02:48:33,600 --> 02:48:36,840 icons you start seeing these buttons 3845 02:48:36,840 --> 02:48:40,640 also if you press a button it will only 3846 02:48:40,640 --> 02:48:43,160 explode that particular brand and it 3847 02:48:43,160 --> 02:48:45,720 will make it 3848 02:48:46,080 --> 02:48:48,880 bold and if you want to go up you can 3849 02:48:48,880 --> 02:48:51,439 close these 3850 02:48:51,640 --> 02:48:55,200 buttons or in even in the Open Stage you 3851 02:48:55,200 --> 02:48:57,720 can use this button which is known as 3852 02:48:57,720 --> 02:49:00,200 drill 3853 02:49:03,399 --> 02:49:06,160 up the second button and right now 3854 02:49:06,160 --> 02:49:08,160 because it's only the row where we have 3855 02:49:08,160 --> 02:49:09,600 the multiple columns that's why you are 3856 02:49:09,600 --> 02:49:12,000 seeing is later on we'll see that when 3857 02:49:12,000 --> 02:49:13,840 columns have multiple we can do the same 3858 02:49:13,840 --> 02:49:16,479 stuff on the columns also now the second 3859 02:49:16,479 --> 02:49:18,600 button is drill down now what does drill 3860 02:49:18,600 --> 02:49:20,560 down down button does is let's say right 3861 02:49:20,560 --> 02:49:22,600 now if I click on the brand one it 3862 02:49:22,600 --> 02:49:25,200 doesn't do anything the moment I press 3863 02:49:25,200 --> 02:49:27,920 this click on drill down and now if I 3864 02:49:27,920 --> 02:49:29,680 click here on the brand one you can see 3865 02:49:29,680 --> 02:49:32,600 the brand one is getting 3866 02:49:32,640 --> 02:49:34,359 filtered let 3867 02:49:34,359 --> 02:49:38,239 me use drill up and uncheck this option 3868 02:49:38,239 --> 02:49:41,600 the next one is next hery level what 3869 02:49:41,600 --> 02:49:44,560 does it do it doesn't drill down it 3870 02:49:44,560 --> 02:49:46,359 simply take me to the next hierachy 3871 02:49:46,359 --> 02:49:48,359 levels and as you can see the totals are 3872 02:49:48,359 --> 02:49:51,160 same what we had previously it means we 3873 02:49:51,160 --> 02:49:54,160 are just seeing the next level come back 3874 02:49:54,160 --> 02:49:56,319 to the top level you can use drill up if 3875 02:49:56,319 --> 02:49:58,200 there are more than one level same thing 3876 02:49:58,200 --> 02:50:00,800 you have to use multiple 3877 02:50:00,800 --> 02:50:03,399 times while the next level take us to 3878 02:50:03,399 --> 02:50:06,040 the next level means it's take us to the 3879 02:50:06,040 --> 02:50:08,439 next available level which is basically 3880 02:50:08,439 --> 02:50:11,239 in this case the next level is like 3881 02:50:11,239 --> 02:50:13,239 this going 3882 02:50:13,239 --> 02:50:16,880 down the expand adds the next 3883 02:50:16,880 --> 02:50:19,880 level if I right now I have only one 3884 02:50:19,880 --> 02:50:21,960 level but if I have more than one level 3885 02:50:21,960 --> 02:50:24,800 I have to use expand multiple times it 3886 02:50:24,800 --> 02:50:27,920 starts showing both of them and that's 3887 02:50:27,920 --> 02:50:31,239 the place new Option comes in so now you 3888 02:50:31,239 --> 02:50:34,040 have expanded it the display is like 3889 02:50:34,040 --> 02:50:39,680 this this display is known as stabbed 3890 02:50:39,960 --> 02:50:43,040 layout the options in The Matrix visual 3891 02:50:43,040 --> 02:50:45,960 has changed so once the metric visual 3892 02:50:45,960 --> 02:50:48,760 will finish I will showcase you the new 3893 02:50:48,760 --> 02:50:53,000 options which has come very 3894 02:50:53,120 --> 02:50:56,920 recently you go on the visual format now 3895 02:50:56,920 --> 02:50:58,800 I have already have a format pane open 3896 02:50:58,800 --> 02:51:01,080 if you don't have again you can enable 3897 02:51:01,080 --> 02:51:03,840 if it is visible here you have an option 3898 02:51:03,840 --> 02:51:05,920 here on the three dots for the format 3899 02:51:05,920 --> 02:51:08,439 Pane and again in the view tab you can 3900 02:51:08,439 --> 02:51:11,560 enable it if you scroll down inside the 3901 02:51:11,560 --> 02:51:13,640 row 3902 02:51:13,640 --> 02:51:16,319 headers if you scroll down the options 3903 02:51:16,319 --> 02:51:18,760 you will see stabbed layout now right 3904 02:51:18,760 --> 02:51:20,760 now it is on you can increase the 3905 02:51:20,760 --> 02:51:23,399 indentation 3906 02:51:23,399 --> 02:51:26,160 here 3907 02:51:26,160 --> 02:51:29,040 okay now the second option or the layout 3908 02:51:29,040 --> 02:51:31,640 which is if you switch it off the 3909 02:51:31,640 --> 02:51:34,319 stepped layout if you switch it 3910 02:51:34,319 --> 02:51:37,439 off then it will give you this kind of 3911 02:51:37,439 --> 02:51:39,359 look and 3912 02:51:39,359 --> 02:51:43,680 feel so this is non sted layout and 3913 02:51:43,680 --> 02:51:46,160 sometime we use this now there are plus 3914 02:51:46,160 --> 02:51:48,200 and minus icons you have option for that 3915 02:51:48,200 --> 02:51:49,640 one is definitely you can change the 3916 02:51:49,640 --> 02:51:51,439 color you can make them little bit 3917 02:51:51,439 --> 02:51:54,200 bigger if they are looking small and one 3918 02:51:54,200 --> 02:51:57,239 more thing you can switch them 3919 02:51:57,239 --> 02:51:59,880 off now we had a pretty good Advantage 3920 02:51:59,880 --> 02:52:01,200 when they have we could have pressed 3921 02:52:01,200 --> 02:52:03,239 this plus button and open it let's go up 3922 02:52:03,239 --> 02:52:05,640 and see what happens now if I click here 3923 02:52:05,640 --> 02:52:08,200 I don't have button I can't go there I 3924 02:52:08,200 --> 02:52:11,600 have to use the next level by either 3925 02:52:11,600 --> 02:52:14,640 using the drill down or by 3926 02:52:14,640 --> 02:52:18,080 expand now let's further play around 3927 02:52:18,080 --> 02:52:20,840 with the Matrix 3928 02:52:22,720 --> 02:52:25,239 visual before I go ahead and make it 3929 02:52:25,239 --> 02:52:27,359 little bit complex by adding column I 3930 02:52:27,359 --> 02:52:29,239 would like to show you one property 3931 02:52:29,239 --> 02:52:31,120 which actually will become little bit 3932 02:52:31,120 --> 02:52:34,600 complex once I have the columns and from 3933 02:52:34,600 --> 02:52:37,200 using that only I would like to switch 3934 02:52:37,200 --> 02:52:39,960 how would we add columns to this Matrix 3935 02:52:39,960 --> 02:52:42,479 visual so let me remove even categories 3936 02:52:42,479 --> 02:52:44,520 from 3937 02:52:44,520 --> 02:52:48,239 here now if I go to the values scroll 3938 02:52:48,239 --> 02:52:48,500 down 3939 02:52:48,500 --> 02:52:50,000 [Music] 3940 02:52:50,000 --> 02:52:54,200 I have this option switch values on row 3941 02:52:54,200 --> 02:52:56,680 group rather than 3942 02:52:56,680 --> 02:52:59,439 columns if you this is right now off if 3943 02:52:59,439 --> 02:53:02,120 you switch it on you start seeing your 3944 02:53:02,120 --> 02:53:04,720 measures on the row previously they were 3945 02:53:04,720 --> 02:53:07,439 on the column 3946 02:53:08,800 --> 02:53:12,000 here now I can completely 3947 02:53:12,000 --> 02:53:16,359 remove any kind of row and 3948 02:53:16,359 --> 02:53:20,439 column to have a kpi 3949 02:53:20,640 --> 02:53:24,319 look you've seen the row look or I can 3950 02:53:24,319 --> 02:53:27,160 only bring in data on 3951 02:53:27,160 --> 02:53:30,359 columns to have Majors on the 3952 02:53:30,359 --> 02:53:34,479 row and the data on 3953 02:53:34,479 --> 02:53:37,399 columns again I can have multiple things 3954 02:53:37,399 --> 02:53:39,359 on my 3955 02:53:39,359 --> 02:53:41,880 column and once I have more than one 3956 02:53:41,880 --> 02:53:46,120 thing I have options like drill down if 3957 02:53:46,120 --> 02:53:50,040 I click I'll go there drill 3958 02:53:50,040 --> 02:53:53,840 up go to the next 3959 02:53:53,840 --> 02:53:57,760 level drill up expand both of them are 3960 02:53:57,760 --> 02:54:00,800 available in case of expand here in the 3961 02:54:00,800 --> 02:54:03,200 column we don't have a stepped layout 3962 02:54:03,200 --> 02:54:05,680 it's always going to be like 3963 02:54:05,680 --> 02:54:08,479 that so now you have seen rows 3964 02:54:08,479 --> 02:54:10,160 separately you have seen column 3965 02:54:10,160 --> 02:54:13,000 separately and you have seen Majors on 3966 02:54:13,000 --> 02:54:15,920 the row time to bring Majors back on the 3967 02:54:15,920 --> 02:54:18,840 column because we are going to create a 3968 02:54:18,840 --> 02:54:22,120 pwot table kind of a structure by moving 3969 02:54:22,120 --> 02:54:23,520 the 3970 02:54:23,520 --> 02:54:26,000 brand here and I'll tell you a new 3971 02:54:26,000 --> 02:54:27,920 option to add the data I'll click add 3972 02:54:27,920 --> 02:54:30,680 data here and now I'm not dragging it 3973 02:54:30,680 --> 02:54:33,560 from the data pane I'm simply going it 3974 02:54:33,560 --> 02:54:36,960 and adding it from here only so now we 3975 02:54:36,960 --> 02:54:39,920 have a pwat structure where we have 3976 02:54:39,920 --> 02:54:42,439 brands on the row and 3977 02:54:42,439 --> 02:54:46,880 categories on the column and the majors 3978 02:54:46,880 --> 02:54:49,239 are also on the column and you can play 3979 02:54:49,239 --> 02:54:53,880 around take the measures on the 3980 02:54:53,880 --> 02:54:57,640 row I can further complicate it and to 3981 02:54:57,640 --> 02:55:00,840 do that complication let me bring 3982 02:55:00,840 --> 02:55:02,520 in 3983 02:55:02,520 --> 02:55:05,279 brand here and let me dra categories 3984 02:55:05,279 --> 02:55:07,120 little bit below and knowingly I've 3985 02:55:07,120 --> 02:55:09,000 taken brand and category columns here 3986 02:55:09,000 --> 02:55:10,359 because they have lesser number of 3987 02:55:10,359 --> 02:55:13,040 values number of headers are limited now 3988 02:55:13,040 --> 02:55:16,600 I'll go and add state in the 3989 02:55:16,600 --> 02:55:19,960 row and see also in the 3990 02:55:19,960 --> 02:55:23,040 row now you will notice a difference 3991 02:55:23,040 --> 02:55:26,160 here the difference is drill down now is 3992 02:55:26,160 --> 02:55:28,800 asking where you want to drill down on 3993 02:55:28,800 --> 02:55:30,800 columns or on 3994 02:55:30,800 --> 02:55:33,920 rows if I use column and I expand it 3995 02:55:33,920 --> 02:55:37,439 I'll see brand and category together if 3996 02:55:37,439 --> 02:55:40,120 I change it to 3997 02:55:40,120 --> 02:55:43,720 rows and I expand it now rows are 3998 02:55:43,720 --> 02:55:46,520 expanded in this manner I can create 3999 02:55:46,520 --> 02:55:49,200 really complex structure 4000 02:55:49,200 --> 02:55:54,760 using the Matrix visual let me add 4001 02:55:55,560 --> 02:55:59,239 customer name to the 4002 02:55:59,239 --> 02:56:02,960 rows and if I now further expand it has 4003 02:56:02,960 --> 02:56:05,960 a pretty complex 4004 02:56:06,040 --> 02:56:08,520 stru but you can see there are too many 4005 02:56:08,520 --> 02:56:13,160 totals out here I don't want so many 4006 02:56:13,920 --> 02:56:17,600 totals how do we control the totals you 4007 02:56:17,600 --> 02:56:20,279 have multiple totals on the columns 4008 02:56:20,279 --> 02:56:21,960 multiple totals on the 4009 02:56:21,960 --> 02:56:24,479 row so what we are going to do here is 4010 02:56:24,479 --> 02:56:27,439 now we go to the row sub 4011 02:56:27,439 --> 02:56:30,760 totals we can disable them if we disable 4012 02:56:30,760 --> 02:56:33,000 everything is disabled including the 4013 02:56:33,000 --> 02:56:35,439 grand 4014 02:56:35,880 --> 02:56:38,560 total and let me to check that out let's 4015 02:56:38,560 --> 02:56:43,040 drill up little bit let's make our task 4016 02:56:43,160 --> 02:56:46,000 easy we don't have a grand total also 4017 02:56:46,000 --> 02:56:47,239 let me enable 4018 02:56:47,239 --> 02:56:50,720 it we have a grand 4019 02:56:51,200 --> 02:56:53,680 total now what I'm going to do is I'm 4020 02:56:53,680 --> 02:56:56,200 going to enable par rle level and it's 4021 02:56:56,200 --> 02:56:59,960 all right now all are there now I can 4022 02:56:59,960 --> 02:57:02,960 choose 4023 02:57:03,239 --> 02:57:07,479 State further expand it now state is the 4024 02:57:07,479 --> 02:57:08,279 first 4025 02:57:08,279 --> 02:57:11,600 level States control your grand 4026 02:57:11,600 --> 02:57:14,399 total is the totals of state that's the 4027 02:57:14,399 --> 02:57:15,960 highest one isn't it after that if your 4028 02:57:15,960 --> 02:57:18,279 total is grand total 4029 02:57:18,279 --> 02:57:20,960 City controls the total which you look 4030 02:57:20,960 --> 02:57:22,439 at the state 4031 02:57:22,439 --> 02:57:26,479 level and names customer names will show 4032 02:57:26,479 --> 02:57:28,600 you the totals which you see at the city 4033 02:57:28,600 --> 02:57:31,080 level I can go 4034 02:57:31,080 --> 02:57:35,359 ahead and decide which sub total I want 4035 02:57:35,359 --> 02:57:37,080 to see so I can choose the RO level I 4036 02:57:37,080 --> 02:57:39,399 say state if I don't want to see grand 4037 02:57:39,399 --> 02:57:41,800 total I can 4038 02:57:41,800 --> 02:57:45,600 off and let's look at the impact by 4039 02:57:45,600 --> 02:57:49,080 going up you don't see it that let me 4040 02:57:49,080 --> 02:57:52,359 bend it now the city level is added and 4041 02:57:52,359 --> 02:57:54,160 I'll switch off the grand total at the 4042 02:57:54,160 --> 02:57:57,200 city level you don't see the state 4043 02:57:57,200 --> 02:58:00,120 subtotals coming out here now it's only 4044 02:58:00,120 --> 02:58:01,800 this one there's no State sub tootal 4045 02:58:01,800 --> 02:58:04,359 what happens if you will up we still see 4046 02:58:04,359 --> 02:58:07,080 it but when we expand it we don't see 4047 02:58:07,080 --> 02:58:09,399 the state sub total in this manner you 4048 02:58:09,399 --> 02:58:11,840 can control not only you can control 4049 02:58:11,840 --> 02:58:13,920 let's say you want to have the sub 4050 02:58:13,920 --> 02:58:16,439 totals you can give the sub total some 4051 02:58:16,439 --> 02:58:20,120 name I can call it 4052 02:58:21,680 --> 02:58:24,040 and where I want it bottom or top I 4053 02:58:24,040 --> 02:58:26,920 don't have a control at the individual 4054 02:58:26,920 --> 02:58:29,880 role level but if I go to all I do have 4055 02:58:29,880 --> 02:58:32,000 a control first what I want to call 4056 02:58:32,000 --> 02:58:35,640 Total as and I can use top it means 4057 02:58:35,640 --> 02:58:38,239 first the subtotals will come and then 4058 02:58:38,239 --> 02:58:41,000 the individual split will come we can't 4059 02:58:41,000 --> 02:58:44,239 change that at the individual 4060 02:58:44,239 --> 02:58:47,160 level if I expand further I do get an 4061 02:58:47,160 --> 02:58:49,120 option to control things at the name 4062 02:58:49,120 --> 02:58:51,920 level or the customer name 4063 02:58:51,920 --> 02:58:54,720 level so this is the manner you control 4064 02:58:54,720 --> 02:58:57,000 the row 4065 02:58:57,000 --> 02:58:59,800 subtotals now let's try to control the 4066 02:58:59,800 --> 02:59:01,200 column 4067 02:59:01,200 --> 02:59:04,720 subtotals little bit up the column we 4068 02:59:04,720 --> 02:59:07,760 right now have only two of them and we 4069 02:59:07,760 --> 02:59:09,600 can completely switch off the totals you 4070 02:59:09,600 --> 02:59:12,200 will get rid of all the totals here 4071 02:59:12,200 --> 02:59:15,239 including the grand total we may like to 4072 02:59:15,239 --> 02:59:18,359 have grand total not others so again we 4073 02:59:18,359 --> 02:59:21,200 can switch it on we say per column level 4074 02:59:21,200 --> 02:59:23,200 first of all let's look at the all level 4075 02:59:23,200 --> 02:59:25,560 what options we have so at all level we 4076 02:59:25,560 --> 02:59:27,640 have total we can rename it uh we have 4077 02:59:27,640 --> 02:59:32,040 the values option and if I go to the 4078 02:59:32,040 --> 02:59:36,279 Brand level I definitely will end up 4079 02:59:36,279 --> 02:59:38,000 disabling the ground total which I don't 4080 02:59:38,000 --> 02:59:39,560 want I want go to the category level and 4081 02:59:39,560 --> 02:59:40,920 there I disable it I can give a 4082 02:59:40,920 --> 02:59:43,200 different name also if I want so let me 4083 02:59:43,200 --> 02:59:45,439 disable it now there is no sub totals 4084 02:59:45,439 --> 02:59:47,399 you will only see a grand total at the 4085 02:59:47,399 --> 02:59:49,640 end 4086 02:59:49,640 --> 02:59:51,680 values is disabled at the individual 4087 02:59:51,680 --> 02:59:54,239 level we have options for column grand 4088 02:59:54,239 --> 02:59:56,680 total for colors and row ground totals 4089 02:59:56,680 --> 02:59:58,200 for colors and 4090 02:59:58,200 --> 03:00:01,439 font Now quickly have a look at the 4091 03:00:01,439 --> 03:00:03,239 properties of the Matrix which which we 4092 03:00:03,239 --> 03:00:05,920 can use so as usual the generic 4093 03:00:05,920 --> 03:00:07,840 properties of the header icons whatever 4094 03:00:07,840 --> 03:00:10,880 you want want to disable and as I 4095 03:00:10,880 --> 03:00:12,880 explained earlier these properties will 4096 03:00:12,880 --> 03:00:16,120 apply to powerbi service than here but 4097 03:00:16,120 --> 03:00:18,000 just for an example let's change the 4098 03:00:18,000 --> 03:00:20,600 color of the background so that you can 4099 03:00:20,600 --> 03:00:22,760 see where it can be border color is 4100 03:00:22,760 --> 03:00:24,680 white I'll going to make it black you 4101 03:00:24,680 --> 03:00:27,399 see the Border also transparency then 4102 03:00:27,399 --> 03:00:30,200 icons whatever icons we need again if I 4103 03:00:30,200 --> 03:00:33,479 uncheck it the impact would be there on 4104 03:00:33,479 --> 03:00:35,680 service right now there's no tool tip I 4105 03:00:35,680 --> 03:00:39,600 can enable it tool tip is of default or 4106 03:00:39,600 --> 03:00:41,960 report page right now report page is 4107 03:00:41,960 --> 03:00:43,680 auto means it's automatically creating 4108 03:00:43,680 --> 03:00:46,319 that but we can have a report page which 4109 03:00:46,319 --> 03:00:48,800 we will learn later 4110 03:00:48,800 --> 03:00:51,120 in the tool tip you can control the text 4111 03:00:51,120 --> 03:00:53,720 size label color Etc as per need 4112 03:00:53,720 --> 03:00:55,399 similarly the background color if you 4113 03:00:55,399 --> 03:00:57,399 would have remember we have set up this 4114 03:00:57,399 --> 03:00:59,040 background 4115 03:00:59,040 --> 03:01:02,640 color when we have done changes in 4116 03:01:02,640 --> 03:01:05,399 theme alternative text and advanced 4117 03:01:05,399 --> 03:01:08,279 options are very similar at the visual 4118 03:01:08,279 --> 03:01:10,680 level let's look at all the options 4119 03:01:10,680 --> 03:01:13,520 Styles and size and style very similar 4120 03:01:13,520 --> 03:01:17,960 to table visual padding again how how 4121 03:01:17,960 --> 03:01:20,680 much padding we want background we would 4122 03:01:20,680 --> 03:01:22,120 we can switch it off we don't need a 4123 03:01:22,120 --> 03:01:24,439 background visual border we don't need 4124 03:01:24,439 --> 03:01:27,239 Shadow we don't need if you want we can 4125 03:01:27,239 --> 03:01:28,279 have a 4126 03:01:28,279 --> 03:01:31,560 shadow title we can add a title we can 4127 03:01:31,560 --> 03:01:34,080 added a title and then we can add either 4128 03:01:34,080 --> 03:01:36,800 from here or on the top we can call it 4129 03:01:36,800 --> 03:01:40,600 as Matrix 4130 03:01:42,200 --> 03:01:44,080 visual 4131 03:01:44,080 --> 03:01:46,920 enter font color background color 4132 03:01:46,920 --> 03:01:50,040 alignment center alignment a subtitle we 4133 03:01:50,040 --> 03:01:51,880 would don't not like here divider I 4134 03:01:51,880 --> 03:01:54,120 don't think we like here same as the 4135 03:01:54,120 --> 03:01:56,760 table visual spacing again we can 4136 03:01:56,760 --> 03:01:58,439 increase the spacing same as table 4137 03:01:58,439 --> 03:02:00,920 visual style presets same as table 4138 03:02:00,920 --> 03:02:03,000 visual we can have different like bold 4139 03:02:03,000 --> 03:02:05,040 header and all those but I think I would 4140 03:02:05,040 --> 03:02:06,399 like to stay with 4141 03:02:06,399 --> 03:02:08,920 default again grid horizontal grid 4142 03:02:08,920 --> 03:02:11,479 vertical grid border and options 4143 03:02:11,479 --> 03:02:13,520 whatever we want to change same as table 4144 03:02:13,520 --> 03:02:17,160 visual values very similar because we 4145 03:02:17,160 --> 03:02:18,880 have alternating colors we have two 4146 03:02:18,880 --> 03:02:21,239 options just like table visual to have 4147 03:02:21,239 --> 03:02:24,279 multiple colors options switch values on 4148 03:02:24,279 --> 03:02:26,080 row we have already experimented but 4149 03:02:26,080 --> 03:02:28,160 here how does it look like you can see 4150 03:02:28,160 --> 03:02:31,239 it looks allog together 4151 03:02:32,560 --> 03:02:35,399 different now column header is something 4152 03:02:35,399 --> 03:02:37,359 which is basically for the column 4153 03:02:37,359 --> 03:02:40,680 headers and to make it bold and italic 4154 03:02:40,680 --> 03:02:42,960 to differentiate you can see these 4155 03:02:42,960 --> 03:02:46,279 things are getting chap 4156 03:02:46,319 --> 03:02:49,439 here then we can do the alignment right 4157 03:02:49,439 --> 03:02:51,760 now I'm going to leave that options Auto 4158 03:02:51,760 --> 03:02:54,080 size width again whenever we do some 4159 03:02:54,080 --> 03:02:55,319 kind of filtering we don't want to 4160 03:02:55,319 --> 03:02:57,160 change it and if you have specifically 4161 03:02:57,160 --> 03:02:58,600 go ahead and done something you don't 4162 03:02:58,600 --> 03:03:00,960 want it to change switch it off so that 4163 03:03:00,960 --> 03:03:04,120 it doesn't change when you do the 4164 03:03:04,120 --> 03:03:07,600 filtering of data row headers these are 4165 03:03:07,600 --> 03:03:10,960 our row headers again make them bold and 4166 03:03:10,960 --> 03:03:14,120 italic so that we can see it now when 4167 03:03:14,120 --> 03:03:19,120 you go up still they remain bold 4168 03:03:20,239 --> 03:03:21,520 when you go to the next level they are 4169 03:03:21,520 --> 03:03:23,880 bold and when you expand them they are 4170 03:03:23,880 --> 03:03:25,279 still the bold because now we have 4171 03:03:25,279 --> 03:03:28,319 forcefully made them 4172 03:03:29,279 --> 03:03:31,760 bold plus icon we have removed it let's 4173 03:03:31,760 --> 03:03:35,000 switch it on so that we get 4174 03:03:35,000 --> 03:03:37,840 collapsible property at the end options 4175 03:03:37,840 --> 03:03:39,840 we have already used the step layout and 4176 03:03:39,840 --> 03:03:41,680 non step layout lets now switch on the 4177 03:03:41,680 --> 03:03:44,319 step play out so you can see the 4178 03:03:44,319 --> 03:03:47,080 difference again column subtotals and 4179 03:03:47,080 --> 03:03:49,479 row sub total we've experiment column 4180 03:03:49,479 --> 03:03:51,520 grand total you can't control the grand 4181 03:03:51,520 --> 03:03:54,160 total enabling disabling you can only 4182 03:03:54,160 --> 03:03:56,760 change the color and the font R grand 4183 03:03:56,760 --> 03:03:59,319 total again font and colors or 4184 03:03:59,319 --> 03:04:01,880 background no control on enable disable 4185 03:04:01,880 --> 03:04:04,880 now specific column here what you will 4186 03:04:04,880 --> 03:04:06,840 see is when we talk about specific 4187 03:04:06,840 --> 03:04:10,000 column we are only talking about values 4188 03:04:10,000 --> 03:04:11,760 we are no more talking about row and 4189 03:04:11,760 --> 03:04:13,520 columns unlike table visual where we 4190 03:04:13,520 --> 03:04:16,359 talk about each and every column when 4191 03:04:16,359 --> 03:04:18,359 you talk about specific column you are 4192 03:04:18,359 --> 03:04:20,960 only talking about net but there are few 4193 03:04:20,960 --> 03:04:24,040 additional options here header subtotals 4194 03:04:24,040 --> 03:04:26,560 totals and values means they can apply 4195 03:04:26,560 --> 03:04:28,840 to subtotals and values so you can 4196 03:04:28,840 --> 03:04:31,080 change the properties like I can say 4197 03:04:31,080 --> 03:04:34,000 apply to header apply to total and I 4198 03:04:34,000 --> 03:04:35,760 just want to change one property which 4199 03:04:35,760 --> 03:04:40,000 is basically alignment let's say for the 4200 03:04:40,000 --> 03:04:41,920 net value and I want to make it right 4201 03:04:41,920 --> 03:04:45,439 align so you can observe that the net 4202 03:04:45,439 --> 03:04:49,359 has been aligned right 4203 03:04:51,520 --> 03:04:53,680 decimal place I can change the decimal 4204 03:04:53,680 --> 03:04:55,800 place at visual level let me make it 4205 03:04:55,800 --> 03:04:58,560 zero so now n don't show any decimal 4206 03:04:58,560 --> 03:05:01,319 place at the visual level same way 4207 03:05:01,319 --> 03:05:03,920 display unit can be for formatted at the 4208 03:05:03,920 --> 03:05:06,479 visual level I can show it in thousands 4209 03:05:06,479 --> 03:05:08,399 and when I show it in Thousand I may 4210 03:05:08,399 --> 03:05:10,680 like to have decimal places in this 4211 03:05:10,680 --> 03:05:12,800 manner at the visual level I can control 4212 03:05:12,800 --> 03:05:14,439 the display 4213 03:05:14,439 --> 03:05:17,000 units next it's cell elements it is 4214 03:05:17,000 --> 03:05:19,200 forther condition formatting and one of 4215 03:05:19,200 --> 03:05:20,720 the limitations of the conditional 4216 03:05:20,720 --> 03:05:22,720 formatting which we have in the Matrix 4217 03:05:22,720 --> 03:05:27,200 visual that it doesn't apply to rows and 4218 03:05:27,200 --> 03:05:29,439 columns we have an additional option 4219 03:05:29,439 --> 03:05:32,920 here for data bar and the data bar 4220 03:05:32,920 --> 03:05:34,720 option actually is there on the table 4221 03:05:34,720 --> 03:05:36,600 visual also but it only come for the 4222 03:05:36,600 --> 03:05:40,040 values when we go ahead and explore 4223 03:05:40,040 --> 03:05:42,439 the conditional formatting in details we 4224 03:05:42,439 --> 03:05:44,560 will see this option 4225 03:05:44,560 --> 03:05:47,399 also again URL icon we need to have some 4226 03:05:47,399 --> 03:05:50,600 data URL to use this and if the URL has 4227 03:05:50,600 --> 03:05:54,120 been used in column headers or rows then 4228 03:05:54,120 --> 03:05:57,319 also we can have an icon for that again 4229 03:05:57,319 --> 03:06:00,439 image size we once we add some images we 4230 03:06:00,439 --> 03:06:02,040 will be able to see this for that we 4231 03:06:02,040 --> 03:06:04,720 will need image 4232 03:06:06,640 --> 03:06:09,640 URL so these are the various properties 4233 03:06:09,640 --> 03:06:12,080 in The Matrix Visual and one of the most 4234 03:06:12,080 --> 03:06:15,239 powerful display which is available with 4235 03:06:15,239 --> 03:06:19,040 us is Matrix visual 4236 03:06:19,120 --> 03:06:21,439 while it doesn't have the double sorting 4237 03:06:21,439 --> 03:06:24,160 but when you sort on now this is one 4238 03:06:24,160 --> 03:06:26,560 question which is basically on the 4239 03:06:26,560 --> 03:06:28,040 sorting and this is 4240 03:06:28,040 --> 03:06:30,520 little topic which typically 4241 03:06:30,520 --> 03:06:32,520 misunderstood by Manny so when you do 4242 03:06:32,520 --> 03:06:34,439 the Sorting on state it will 4243 03:06:34,439 --> 03:06:36,600 automatically sort the category and 4244 03:06:36,600 --> 03:06:38,399 subcategory in the same order but you 4245 03:06:38,399 --> 03:06:40,960 can go ahead and sort it on City and 4246 03:06:40,960 --> 03:06:43,279 then based on the city sorting 4247 03:06:43,279 --> 03:06:45,040 automatically the state sorting would 4248 03:06:45,040 --> 03:06:48,520 happen but when you sort it by net which 4249 03:06:48,520 --> 03:06:50,479 net it is sorting it's the column ground 4250 03:06:50,479 --> 03:06:51,960 total because we have used the column so 4251 03:06:51,960 --> 03:06:53,800 it will going to sort on the column 4252 03:06:53,800 --> 03:06:55,560 ground total but if you don't have the 4253 03:06:55,560 --> 03:06:58,080 columns definitely it would be that 4254 03:06:58,080 --> 03:07:00,000 particular column sorting so if I go to 4255 03:07:00,000 --> 03:07:04,080 the visual level and remove my columns 4256 03:07:04,080 --> 03:07:05,760 and now if I'm doing the net sorting it 4257 03:07:05,760 --> 03:07:07,359 is actually sorting on net I can go 4258 03:07:07,359 --> 03:07:09,760 ahead and sort on margin and cross but 4259 03:07:09,760 --> 03:07:11,560 if I have columns they are sorting on 4260 03:07:11,560 --> 03:07:13,399 the ground total of the 4261 03:07:13,399 --> 03:07:16,760 column so let me bring only category so 4262 03:07:16,760 --> 03:07:20,120 that you can see see that grand totals 4263 03:07:20,120 --> 03:07:22,760 you can go and sort the grand totals you 4264 03:07:22,760 --> 03:07:24,880 can either sort on the columns which are 4265 03:07:24,880 --> 03:07:27,600 there on the rows or you can sort it on 4266 03:07:27,600 --> 03:07:29,640 the ground totals of the 4267 03:07:29,640 --> 03:07:31,720 values and then you have the sort 4268 03:07:31,720 --> 03:07:33,080 ascending and descending option which 4269 03:07:33,080 --> 03:07:34,520 you can 4270 03:07:34,520 --> 03:07:37,720 use same options in the three dots as 4271 03:07:37,720 --> 03:07:40,720 other visual export show data as table 4272 03:07:40,720 --> 03:07:43,000 remove 4273 03:07:43,000 --> 03:07:47,680 Spotlight this is Matrix visual for you 4274 03:07:47,680 --> 03:07:50,319 power ba is ever changing and every 4275 03:07:50,319 --> 03:07:52,399 month it keeps on giving you new and new 4276 03:07:52,399 --> 03:07:54,080 featur and same thing has happened 4277 03:07:54,080 --> 03:07:56,200 before I could have released the video 4278 03:07:56,200 --> 03:07:58,560 or the series we got few new features 4279 03:07:58,560 --> 03:08:00,200 some of them are already covered as part 4280 03:08:00,200 --> 03:08:02,880 of this video or the series and I would 4281 03:08:02,880 --> 03:08:04,960 like to Showcase you couple of features 4282 03:08:04,960 --> 03:08:06,439 which has been added into the Matrix 4283 03:08:06,439 --> 03:08:08,239 visual so let me go back to the file 4284 03:08:08,239 --> 03:08:09,920 where we have the Matrix Visual and this 4285 03:08:09,920 --> 03:08:11,720 was The Matrix visual we have created in 4286 03:08:11,720 --> 03:08:14,000 the past let me open the properties of 4287 03:08:14,000 --> 03:08:15,840 this Matrix visual I have already 4288 03:08:15,840 --> 03:08:17,760 clicked on the right hand side format 4289 03:08:17,760 --> 03:08:19,439 and because of that the format pan is 4290 03:08:19,439 --> 03:08:21,000 already open and I already have the 4291 03:08:21,000 --> 03:08:23,200 properties open in the properties under 4292 03:08:23,200 --> 03:08:25,600 the layout and style preset now we got 4293 03:08:25,600 --> 03:08:27,880 few more layout the layout which we used 4294 03:08:27,880 --> 03:08:30,680 to know as stabbed layout is now become 4295 03:08:30,680 --> 03:08:32,520 your compact layout so if you see right 4296 03:08:32,520 --> 03:08:34,680 now it is the compact layout and I can 4297 03:08:34,680 --> 03:08:36,840 extend it further and you can see the 4298 03:08:36,840 --> 03:08:39,800 values are stepped out and there you 4299 03:08:39,800 --> 03:08:42,239 have the indentation which has been 4300 03:08:42,239 --> 03:08:45,000 given so basically in the compact layout 4301 03:08:45,000 --> 03:08:46,600 you have indentation using that 4302 03:08:46,600 --> 03:08:48,520 indentation you can move around the 4303 03:08:48,520 --> 03:08:50,479 things little bit and this is the format 4304 03:08:50,479 --> 03:08:52,520 what we use to call as St layout other 4305 03:08:52,520 --> 03:08:54,560 than that also couple of formats have 4306 03:08:54,560 --> 03:08:56,120 been added so first format which is 4307 03:08:56,120 --> 03:08:57,760 outline format if you look at the 4308 03:08:57,760 --> 03:09:00,600 outline format and there you have this 4309 03:09:00,600 --> 03:09:03,120 like a format which is sted layout off 4310 03:09:03,120 --> 03:09:05,120 and the total is above you see the state 4311 03:09:05,120 --> 03:09:07,560 total the total is here at this place 4312 03:09:07,560 --> 03:09:09,479 and then you have these detail level 4313 03:09:09,479 --> 03:09:12,439 data totals first the subtotals and then 4314 03:09:12,439 --> 03:09:15,200 we have the data now in this layout you 4315 03:09:15,200 --> 03:09:17,040 have an additional option that is repeat 4316 03:09:17,040 --> 03:09:17,960 r 4317 03:09:17,960 --> 03:09:19,680 and this was the one of the feature 4318 03:09:19,680 --> 03:09:22,040 which you are asking for long we want 4319 03:09:22,040 --> 03:09:23,920 these values to repeat like a table 4320 03:09:23,920 --> 03:09:26,160 visual we don't want them like a pyot 4321 03:09:26,160 --> 03:09:27,600 table where the values are non- 4322 03:09:27,600 --> 03:09:29,880 repeating we want the repeating values 4323 03:09:29,880 --> 03:09:32,520 and here the values are repeating as you 4324 03:09:32,520 --> 03:09:34,520 can scroll down and see all the values 4325 03:09:34,520 --> 03:09:37,800 are repeating now totals on the top and 4326 03:09:37,800 --> 03:09:39,239 values are 4327 03:09:39,239 --> 03:09:42,279 repeating now let's go ahead and change 4328 03:09:42,279 --> 03:09:44,120 the format to next format which is 4329 03:09:44,120 --> 03:09:47,439 tabular in the tabular format you have 4330 03:09:47,439 --> 03:09:50,120 have the same option repeat row headers 4331 03:09:50,120 --> 03:09:51,840 which is right now on and you are seeing 4332 03:09:51,840 --> 03:09:53,920 that the headers are repeating and the 4333 03:09:53,920 --> 03:09:56,160 totals have actually moved down if you 4334 03:09:56,160 --> 03:09:58,800 scroll down wherever something is ending 4335 03:09:58,800 --> 03:10:00,000 then you get the 4336 03:10:00,000 --> 03:10:02,640 totals and here in the total also the 4337 03:10:02,640 --> 03:10:04,680 names are repeating now if you want to 4338 03:10:04,680 --> 03:10:07,000 close that repetition repeat row header 4339 03:10:07,000 --> 03:10:08,760 you can switch it off once you switch it 4340 03:10:08,760 --> 03:10:11,000 off it is very similar layout which we 4341 03:10:11,000 --> 03:10:14,160 used to get in tabbed layout off so now 4342 03:10:14,160 --> 03:10:15,720 these are the couple of layouts which 4343 03:10:15,720 --> 03:10:17,319 has been added one is very similar 4344 03:10:17,319 --> 03:10:19,080 similar to the old one which is compact 4345 03:10:19,080 --> 03:10:20,640 layout which is very similar to the step 4346 03:10:20,640 --> 03:10:22,200 layout and non-step layout we got 4347 03:10:22,200 --> 03:10:24,359 tabular format as well as the outline 4348 03:10:24,359 --> 03:10:26,760 format now the changes did not stop here 4349 03:10:26,760 --> 03:10:29,319 we got something known as blank rows 4350 03:10:29,319 --> 03:10:31,720 what happens let's look at this data now 4351 03:10:31,720 --> 03:10:34,279 let me go one step up here so that you 4352 03:10:34,279 --> 03:10:36,399 can easily understand that and let me 4353 03:10:36,399 --> 03:10:39,000 click on add blank row after these 4354 03:10:39,000 --> 03:10:41,600 subtotals you got a break you got a 4355 03:10:41,600 --> 03:10:43,640 blank row and this is something you were 4356 03:10:43,640 --> 03:10:45,520 asking for long that you know give us 4357 03:10:45,520 --> 03:10:47,359 some place where we have this break 4358 03:10:47,359 --> 03:10:49,560 where we have some separation between 4359 03:10:49,560 --> 03:10:51,399 the parent and child there should be 4360 03:10:51,399 --> 03:10:53,040 some empty rows which we wanted to 4361 03:10:53,040 --> 03:10:54,840 insert and that the same feature has 4362 03:10:54,840 --> 03:10:56,279 been given now there is a color which 4363 03:10:56,279 --> 03:10:58,080 you can also apply here so use the color 4364 03:10:58,080 --> 03:11:00,200 on that particular row so that you can 4365 03:11:00,200 --> 03:11:02,800 enhance the visibility of your visual so 4366 03:11:02,800 --> 03:11:04,120 now this visual will give you a 4367 03:11:04,120 --> 03:11:05,800 different look because you have a color 4368 03:11:05,800 --> 03:11:07,279 now in the color you can also use 4369 03:11:07,279 --> 03:11:09,040 transparency you want it a little bit 4370 03:11:09,040 --> 03:11:11,760 transparent so increase the transparency 4371 03:11:11,760 --> 03:11:13,600 then there is an option for Border also 4372 03:11:13,600 --> 03:11:15,160 here so click and then you will get a 4373 03:11:15,160 --> 03:11:17,040 border now you have a border position 4374 03:11:17,040 --> 03:11:19,120 like top then you have bottom only at 4375 03:11:19,120 --> 03:11:21,319 the top only at the bottom or you have 4376 03:11:21,319 --> 03:11:23,040 top and bottom both so right now it is 4377 03:11:23,040 --> 03:11:24,920 like to both top and bottom so we parall 4378 03:11:24,920 --> 03:11:26,640 lines then the color definitely you want 4379 03:11:26,640 --> 03:11:28,319 to have the color to that so you that 4380 03:11:28,319 --> 03:11:30,720 color of the Border then transparency of 4381 03:11:30,720 --> 03:11:32,279 the Border can also be there next is 4382 03:11:32,279 --> 03:11:33,680 width in case you want to have little 4383 03:11:33,680 --> 03:11:36,200 bit wider width you can use that in that 4384 03:11:36,200 --> 03:11:37,680 manner you will have different kind of 4385 03:11:37,680 --> 03:11:39,359 visual experience now you can see this 4386 03:11:39,359 --> 03:11:41,600 visual the same Matrix visual is now 4387 03:11:41,600 --> 03:11:43,200 looking a little bit different and this 4388 03:11:43,200 --> 03:11:45,200 is because of these new changes which 4389 03:11:45,200 --> 03:11:47,600 has been provided to us which is giving 4390 03:11:47,600 --> 03:11:49,760 us much better look and feel and right 4391 03:11:49,760 --> 03:11:52,640 now powerbi is fusing a lot on providing 4392 03:11:52,640 --> 03:11:54,520 you such a new feature your visual 4393 03:11:54,520 --> 03:11:56,080 experience so these are couple of 4394 03:11:56,080 --> 03:11:58,120 features which has been added in Matrix 4395 03:11:58,120 --> 03:12:00,840 visual very recently enhance your visual 4396 03:12:00,840 --> 03:12:02,760 experience the visual we want to learn 4397 03:12:02,760 --> 03:12:05,319 now is the bar visual so let me add 4398 03:12:05,319 --> 03:12:07,840 another page by using the new page 4399 03:12:07,840 --> 03:12:11,200 button at the bottom and I will use the 4400 03:12:11,200 --> 03:12:14,279 bar the bar visual is actually known as 4401 03:12:14,279 --> 03:12:17,239 clustered column bar or clustered bar 4402 03:12:17,239 --> 03:12:20,760 chart both are available in 4403 03:12:20,760 --> 03:12:25,479 the build a visual and in the Home tab 4404 03:12:25,479 --> 03:12:26,279 in 4405 03:12:26,279 --> 03:12:30,640 the insert option so let me start with 4406 03:12:30,640 --> 03:12:34,120 the clustered bar chart which 4407 03:12:34,120 --> 03:12:37,439 is also known as horizontal bar 4408 03:12:37,439 --> 03:12:41,120 chart let me start that now the options 4409 03:12:41,120 --> 03:12:43,680 you have here and some of you might be 4410 03:12:43,680 --> 03:12:46,520 surprised why I'm not getting a add 4411 03:12:46,520 --> 03:12:49,200 button here because after the December 4412 03:12:49,200 --> 03:12:51,359 customization I've choose for build a 4413 03:12:51,359 --> 03:12:55,200 visual and because of that the on object 4414 03:12:55,200 --> 03:12:57,960 interaction option of having the columns 4415 03:12:57,960 --> 03:13:01,479 here has shifted to this place which is 4416 03:13:01,479 --> 03:13:04,439 more classic look but I like that more 4417 03:13:04,439 --> 03:13:07,680 so I have opted for that now let's skip 4418 03:13:07,680 --> 03:13:11,479 the y axis now and in the y axis as I 4419 03:13:11,479 --> 03:13:13,359 can add the data directly I will go 4420 03:13:13,359 --> 03:13:15,920 ahead and add item 4421 03:13:15,920 --> 03:13:18,479 brand now 4422 03:13:18,479 --> 03:13:23,160 now second is x-axis where I will go 4423 03:13:23,160 --> 03:13:27,080 ahead and add a measure now here in case 4424 03:13:27,080 --> 03:13:28,600 of 4425 03:13:28,600 --> 03:13:32,640 the clustered bar chart the Y AIS is 4426 03:13:32,640 --> 03:13:35,520 basically categorical axis and XIs is 4427 03:13:35,520 --> 03:13:39,479 basically a numerical axis so here we 4428 03:13:39,479 --> 03:13:43,920 are getting the values on x-axis which 4429 03:13:43,920 --> 03:13:45,800 is 4430 03:13:45,800 --> 03:13:48,840 this and we are getting the categorical 4431 03:13:48,840 --> 03:13:51,840 values here on the Y AIS it can use 4432 03:13:51,840 --> 03:13:53,560 continuous values we will see example 4433 03:13:53,560 --> 03:13:56,760 when we put across a date column then it 4434 03:13:56,760 --> 03:13:59,399 can use continuous 4435 03:13:59,399 --> 03:14:02,080 values now let me duplicate this and 4436 03:14:02,080 --> 03:14:04,680 I'll also tell you how can you change a 4437 03:14:04,680 --> 03:14:08,080 chart type so when you click on this now 4438 03:14:08,080 --> 03:14:09,840 what you can do is you can go to Builder 4439 03:14:09,840 --> 03:14:13,680 visuals and you can click 4440 03:14:13,680 --> 03:14:16,600 on cluster column chart which is not 4441 03:14:16,600 --> 03:14:20,479 selected right now and it will become a 4442 03:14:20,479 --> 03:14:22,800 cluster column bar now in cluster column 4443 03:14:22,800 --> 03:14:24,920 bar the x-axis is brand because you are 4444 03:14:24,920 --> 03:14:27,560 seeing the branch on the horizontal axis 4445 03:14:27,560 --> 03:14:30,359 and you are seeing the numbers on y 4446 03:14:30,359 --> 03:14:33,680 AIS now let's further explore it what 4447 03:14:33,680 --> 03:14:35,600 else we can do now before I go to the 4448 03:14:35,600 --> 03:14:37,840 properties let me tell you few things 4449 03:14:37,840 --> 03:14:40,239 about this visual so we can have more 4450 03:14:40,239 --> 03:14:42,439 than one AIS similarly we can also have 4451 03:14:42,439 --> 03:14:44,640 Legends and we can also use small 4452 03:14:44,640 --> 03:14:47,680 multiples and Tool tip on this now tool 4453 03:14:47,680 --> 03:14:49,080 tip you can add additional column by 4454 03:14:49,080 --> 03:14:51,880 default you can see the tool tip is 4455 03:14:51,880 --> 03:14:55,319 on I can click on the format and start 4456 03:14:55,319 --> 03:14:57,840 seeing that now before I change any 4457 03:14:57,840 --> 03:14:59,600 properties let me show you one thing 4458 03:14:59,600 --> 03:15:02,080 which is column and under the column you 4459 03:15:02,080 --> 03:15:04,279 see the color and in the color this FX 4460 03:15:04,279 --> 03:15:06,279 option is there which means conditional 4461 03:15:06,279 --> 03:15:07,840 formatting is available and you have to 4462 03:15:07,840 --> 03:15:10,080 keep noting that down for what all cases 4463 03:15:10,080 --> 03:15:11,439 the conditional formatting is available 4464 03:15:11,439 --> 03:15:13,720 or not let me bring in one additional 4465 03:15:13,720 --> 03:15:16,200 major here which is other than net I'm 4466 03:15:16,200 --> 03:15:19,279 also taking in cross as you can see 4467 03:15:19,279 --> 03:15:21,760 inside the color now there is no 4468 03:15:21,760 --> 03:15:23,720 conditional formatting option which is 4469 03:15:23,720 --> 03:15:26,080 available in the columns we have each 4470 03:15:26,080 --> 03:15:28,080 series and for each series you can give 4471 03:15:28,080 --> 03:15:30,960 color but we don't have any option for 4472 03:15:30,960 --> 03:15:32,840 conditional formatting like if I go for 4473 03:15:32,840 --> 03:15:36,800 net I don't have FX option now same way 4474 03:15:36,800 --> 03:15:38,319 here you can see the conditional 4475 03:15:38,319 --> 03:15:40,760 formatting option but if I add a measure 4476 03:15:40,760 --> 03:15:42,239 I don't see a conditional formatting 4477 03:15:42,239 --> 03:15:44,279 option also here so conditional 4478 03:15:44,279 --> 03:15:47,279 formatting only along with one major now 4479 03:15:47,279 --> 03:15:50,439 let me remove the majure or even without 4480 03:15:50,439 --> 03:15:52,439 removing the mejor let me see can I put 4481 03:15:52,439 --> 03:15:56,040 a legend so I expand the item and from 4482 03:15:56,040 --> 03:15:58,920 there I try to drag Legend category as a 4483 03:15:58,920 --> 03:16:01,040 legend I'm not able to do so with two 4484 03:16:01,040 --> 03:16:03,479 measures you can't have Legend so let me 4485 03:16:03,479 --> 03:16:05,120 remove the 4486 03:16:05,120 --> 03:16:08,359 gross and let me now drag category so I 4487 03:16:08,359 --> 03:16:09,800 can 4488 03:16:09,800 --> 03:16:13,800 have the legend with one single major 4489 03:16:13,800 --> 03:16:16,040 only so if you have only one major then 4490 03:16:16,040 --> 03:16:18,160 only you can use leg Legend you cannot 4491 03:16:18,160 --> 03:16:20,239 have both couple of measur and legend in 4492 03:16:20,239 --> 03:16:22,840 the standard bar visuals it is 4493 03:16:22,840 --> 03:16:26,040 applicable for both bar and column bar 4494 03:16:26,040 --> 03:16:27,960 again you can see that I am not able to 4495 03:16:27,960 --> 03:16:30,239 see the FX option if I go to category 4496 03:16:30,239 --> 03:16:32,720 one you will be able to see that I'm not 4497 03:16:32,720 --> 03:16:36,040 getting an option for conditional 4498 03:16:36,040 --> 03:16:39,239 formatting now instead of bringing this 4499 03:16:39,239 --> 03:16:41,720 category onto the 4500 03:16:41,720 --> 03:16:44,840 legend I can also bring this category on 4501 03:16:44,840 --> 03:16:47,479 the x-axis 4502 03:16:47,479 --> 03:16:50,279 when you bring bring on this on 4503 03:16:50,279 --> 03:16:54,359 x-axis as you can see it is broken down 4504 03:16:54,359 --> 03:16:57,479 by brand and then by categories this 4505 03:16:57,479 --> 03:17:00,000 option where it start breaking down and 4506 03:17:00,000 --> 03:17:03,319 you can individually work with each bar 4507 03:17:03,319 --> 03:17:06,239 we need a little bit bigger visual for 4508 03:17:06,239 --> 03:17:08,800 that so let me adjust these two 4509 03:17:08,800 --> 03:17:12,040 visuals to have more 4510 03:17:12,040 --> 03:17:15,000 space now you can see brand little bit 4511 03:17:15,000 --> 03:17:17,319 better so brand category and Brand C we 4512 03:17:17,319 --> 03:17:19,680 have and this is coming because of one 4513 03:17:19,680 --> 03:17:21,720 of the properties and for that it's 4514 03:17:21,720 --> 03:17:23,920 already showing exclamation signs that 4515 03:17:23,920 --> 03:17:25,520 you have to reduce the font so if I 4516 03:17:25,520 --> 03:17:28,439 reduce the font of xaxis I can get the 4517 03:17:28,439 --> 03:17:31,720 better data here now you see this is 4518 03:17:31,720 --> 03:17:34,080 concatenated label off so by default is 4519 03:17:34,080 --> 03:17:38,479 this concatenated label off but if you 4520 03:17:38,479 --> 03:17:40,640 switch it on you will see that the brand 4521 03:17:40,640 --> 03:17:42,760 and the category are concatenated 4522 03:17:42,760 --> 03:17:43,880 together so if you want them to 4523 03:17:43,880 --> 03:17:46,479 concatenate together then you need that 4524 03:17:46,479 --> 03:17:48,560 option you can off for concatenated 4525 03:17:48,560 --> 03:17:50,279 label off that's a better option here 4526 03:17:50,279 --> 03:17:53,120 you can see this is the 4527 03:17:53,120 --> 03:17:55,960 default ordering which we 4528 03:17:55,960 --> 03:18:00,040 have brand one and then categories are 4529 03:18:00,040 --> 03:18:03,080 ordered now this will work only when you 4530 03:18:03,080 --> 03:18:05,640 have sorted it on 4531 03:18:05,640 --> 03:18:08,199 AIS brand and category if you sort it on 4532 03:18:08,199 --> 03:18:11,160 net this is not going to work out in the 4533 03:18:11,160 --> 03:18:15,120 same manner okay so now you can see the 4534 03:18:15,120 --> 03:18:17,920 brands have started repeating so this 4535 03:18:17,920 --> 03:18:20,319 from the three dots always use brand and 4536 03:18:20,319 --> 03:18:23,239 access and concatenated label off if you 4537 03:18:23,239 --> 03:18:26,800 need that now this option was previously 4538 03:18:26,800 --> 03:18:29,239 not available here but now this option 4539 03:18:29,239 --> 03:18:31,560 is also available here and I can go here 4540 03:18:31,560 --> 03:18:34,160 and pull in 4541 03:18:35,199 --> 03:18:37,600 category and why I'm not seeing it let 4542 03:18:37,600 --> 03:18:40,439 me expand it and you can see the same 4543 03:18:40,439 --> 03:18:43,080 option concatenated label off is 4544 03:18:43,080 --> 03:18:45,439 available here but as you can see the 4545 03:18:45,439 --> 03:18:48,520 data is pretty small it's not visible 4546 03:18:48,520 --> 03:18:51,040 now labels which are we are getting on 4547 03:18:51,040 --> 03:18:53,840 the y axis right now there is no option 4548 03:18:53,840 --> 03:18:55,600 here to other than reducing the font 4549 03:18:55,600 --> 03:18:58,600 size I can do making them horizontal and 4550 03:18:58,600 --> 03:19:00,880 again it is you know showing me the 4551 03:19:00,880 --> 03:19:03,000 message that it 4552 03:19:03,000 --> 03:19:05,720 is too bigger in the size not able to 4553 03:19:05,720 --> 03:19:07,120 display the complete 4554 03:19:07,120 --> 03:19:10,120 value 4555 03:19:10,960 --> 03:19:14,080 now let's focus on one of these charts 4556 03:19:14,080 --> 03:19:17,279 for other properties now when we learn 4557 03:19:17,279 --> 03:19:19,199 the conditional formatting in some time 4558 03:19:19,199 --> 03:19:20,680 what we going to do is we are going to 4559 03:19:20,680 --> 03:19:23,120 give one single color for a brand or if 4560 03:19:23,120 --> 03:19:24,800 you have a category below we will try to 4561 03:19:24,800 --> 03:19:26,880 give one single color for the category 4562 03:19:26,880 --> 03:19:28,760 and you can have multiple categories 4563 03:19:28,760 --> 03:19:30,319 means you can have multiple levels also 4564 03:19:30,319 --> 03:19:32,800 and it is not that uh you have to show 4565 03:19:32,800 --> 03:19:34,479 all these levels in one go just like we 4566 03:19:34,479 --> 03:19:36,560 have shown with the concatenated level 4567 03:19:36,560 --> 03:19:38,760 off you can do the same way drill up you 4568 03:19:38,760 --> 03:19:41,399 can do and then you can say Okay expand 4569 03:19:41,399 --> 03:19:43,120 or you can also use the drill down 4570 03:19:43,120 --> 03:19:45,760 option you can enable and you brand 10 4571 03:19:45,760 --> 03:19:47,080 and you drill down with the filter of 4572 03:19:47,080 --> 03:19:49,920 brand T now you might have feel that the 4573 03:19:49,920 --> 03:19:51,520 other visual is also getting filtered 4574 03:19:51,520 --> 03:19:53,800 and this happens because of interaction 4575 03:19:53,800 --> 03:19:56,439 between the visual every visual interact 4576 03:19:56,439 --> 03:19:58,960 with another visual unless we stop it so 4577 03:19:58,960 --> 03:20:01,680 we will learn that art little bit 4578 03:20:01,680 --> 03:20:05,199 later now this is our Visual and in this 4579 03:20:05,199 --> 03:20:07,920 visual we can either expand and have the 4580 03:20:07,920 --> 03:20:10,120 labels together or we can have one level 4581 03:20:10,120 --> 03:20:11,640 and then we can go to the next level 4582 03:20:11,640 --> 03:20:13,800 same way as Matrix we can go simply to 4583 03:20:13,800 --> 03:20:16,080 the next level come back up we can 4584 03:20:16,080 --> 03:20:17,840 expand have them together or we can use 4585 03:20:17,840 --> 03:20:19,279 the drill down functionality when we 4586 03:20:19,279 --> 03:20:21,600 click on the bar it goes to the next 4587 03:20:21,600 --> 03:20:24,239 level now let's look at the 4588 03:20:24,239 --> 03:20:26,920 properties size and style properties 4589 03:20:26,920 --> 03:20:29,840 under the size position we know because 4590 03:20:29,840 --> 03:20:31,399 of the size it is coming height and 4591 03:20:31,399 --> 03:20:33,960 width then from where we are starting 4592 03:20:33,960 --> 03:20:36,120 lock aspect ratio if I lock it if I 4593 03:20:36,120 --> 03:20:37,760 change the size then it will keep the 4594 03:20:37,760 --> 03:20:40,960 aspect ratio see I'm whatever I'm trying 4595 03:20:40,960 --> 03:20:42,840 it is keeping the aspect 4596 03:20:42,840 --> 03:20:46,199 ratio now padding uh padding is 4597 03:20:46,199 --> 03:20:48,319 basically the outside right now I think 4598 03:20:48,319 --> 03:20:50,600 one of the side it is zero so that's why 4599 03:20:50,600 --> 03:20:52,880 there is no padding coming 4600 03:20:52,880 --> 03:20:55,720 in but we can change it 4601 03:20:55,720 --> 03:20:59,479 like see net is just now look at where 4602 03:20:59,479 --> 03:21:01,920 the net 4603 03:21:02,120 --> 03:21:06,319 is okay so 6 pixel 10 5 pixel 2 pixel 4604 03:21:06,319 --> 03:21:08,199 the differences similarly the right hand 4605 03:21:08,199 --> 03:21:09,439 bar if I give the right hand side 4606 03:21:09,439 --> 03:21:11,520 padding so how much padding is going to 4607 03:21:11,520 --> 03:21:13,399 be how much padding on the top so we 4608 03:21:13,399 --> 03:21:15,600 almost end up utilizing background is 4609 03:21:15,600 --> 03:21:17,040 the background color so you can have 4610 03:21:17,040 --> 03:21:19,640 some color if you want on the background 4611 03:21:19,640 --> 03:21:20,680 and then you have to reduce the 4612 03:21:20,680 --> 03:21:23,760 transparency to see that 4613 03:21:24,239 --> 03:21:27,080 color visual borders again same as table 4614 03:21:27,080 --> 03:21:28,560 we are not going to experiment with this 4615 03:21:28,560 --> 03:21:31,120 Shadow same as a metrix and table we are 4616 03:21:31,120 --> 03:21:32,840 not going to experiment it title we have 4617 03:21:32,840 --> 03:21:35,520 already explored and by default it gives 4618 03:21:35,520 --> 03:21:39,359 a title and um then FX means we can give 4619 03:21:39,359 --> 03:21:41,520 a major in the title which we will learn 4620 03:21:41,520 --> 03:21:43,840 a little bit later we can make the title 4621 03:21:43,840 --> 03:21:46,880 Center and then also in inside the we 4622 03:21:46,880 --> 03:21:48,479 have subtitles if you want to give it 4623 03:21:48,479 --> 03:21:51,199 again subtitles you have the FX option 4624 03:21:51,199 --> 03:21:54,479 means you can use the measure 4625 03:21:54,479 --> 03:21:57,760 there divider uh between the title 4626 03:21:57,760 --> 03:22:00,479 subtitle and the rest of the area you 4627 03:22:00,479 --> 03:22:01,680 can use 4628 03:22:01,680 --> 03:22:04,880 divider now x-axis we have experimented 4629 03:22:04,880 --> 03:22:06,040 in the title there is something which 4630 03:22:06,040 --> 03:22:07,520 you might like to use you might want to 4631 03:22:07,520 --> 03:22:09,279 switch off the title so if in xaxis if 4632 03:22:09,279 --> 03:22:12,479 you see now there's no brand written 4633 03:22:12,479 --> 03:22:14,000 here 4634 03:22:14,000 --> 03:22:16,680 now let me go ahead and switch it on on 4635 03:22:16,680 --> 03:22:18,080 and you will notice now there is a brand 4636 03:22:18,080 --> 03:22:20,520 written if you switch off the title 4637 03:22:20,520 --> 03:22:21,840 again you can play around with the 4638 03:22:21,840 --> 03:22:24,319 properties of this one and the color now 4639 03:22:24,319 --> 03:22:27,359 the color of this one is how is it going 4640 03:22:27,359 --> 03:22:28,560 to change is it going to change on the 4641 03:22:28,560 --> 03:22:31,040 grand total value or is it on the brand 4642 03:22:31,040 --> 03:22:33,120 value each brand value that we will 4643 03:22:33,120 --> 03:22:35,640 experiment and see usually it only check 4644 03:22:35,640 --> 03:22:37,479 the grand total value again FX color 4645 03:22:37,479 --> 03:22:39,560 means I can use a conditional formatting 4646 03:22:39,560 --> 03:22:41,600 measure for that once we learn that we 4647 03:22:41,600 --> 03:22:43,479 will try to use that now we'll go to the 4648 03:22:43,479 --> 03:22:46,720 layout now minimum category width you 4649 03:22:46,720 --> 03:22:48,960 can play around and as you can see the 4650 03:22:48,960 --> 03:22:51,840 moment I increase the minimum category 4651 03:22:51,840 --> 03:22:54,680 width the bars are little bit 4652 03:22:54,680 --> 03:22:57,840 wider now we can go to the y- axis and 4653 03:22:57,840 --> 03:23:01,720 in the y- axis you have this option of 4654 03:23:01,720 --> 03:23:03,840 minimum and maximum so you can change 4655 03:23:03,840 --> 03:23:07,279 the range and you can also use measures 4656 03:23:07,279 --> 03:23:09,640 here means I can have a measure which 4657 03:23:09,640 --> 03:23:12,520 will decide my you know Min and Max so 4658 03:23:12,520 --> 03:23:14,000 right now you it is automatically 4659 03:23:14,000 --> 03:23:16,880 deciding it's starting from zero and and 4660 03:23:16,880 --> 03:23:19,279 it is going to 1 million so basically 4661 03:23:19,279 --> 03:23:22,160 the range is in millions okay but you 4662 03:23:22,160 --> 03:23:24,319 can decide from where it should start 4663 03:23:24,319 --> 03:23:26,040 and where it should end you can devise 4664 03:23:26,040 --> 03:23:28,199 Sun kind majors and the tip is when you 4665 03:23:28,199 --> 03:23:29,880 create such mejor find out the minimum 4666 03:23:29,880 --> 03:23:33,160 value of for the brand whatever you are 4667 03:23:33,160 --> 03:23:36,840 using here take just some 10% less than 4668 03:23:36,840 --> 03:23:39,319 that and same for the high value 5% 10% 4669 03:23:39,319 --> 03:23:41,359 above the value here less than the value 4670 03:23:41,359 --> 03:23:43,680 and here above than the value now 4671 03:23:43,680 --> 03:23:45,720 sometime what happens you have values 4672 03:23:45,720 --> 03:23:48,199 which are pretty small compared to other 4673 03:23:48,199 --> 03:23:50,000 values which are pretty large so you may 4674 03:23:50,000 --> 03:23:52,760 want to use logarithmic AIS so as you 4675 03:23:52,760 --> 03:23:55,439 can see these numbers now see almost 4676 03:23:55,439 --> 03:23:58,080 same this actually helps when you know 4677 03:23:58,080 --> 03:24:00,279 one value is pretty large and another 4678 03:24:00,279 --> 03:24:03,680 one is pretty small you can use logic 4679 03:24:03,680 --> 03:24:06,960 scale inot range again you want to move 4680 03:24:06,960 --> 03:24:10,640 that on the top the now we have the 4681 03:24:10,640 --> 03:24:13,279 smaller value on the top and the larger 4682 03:24:13,279 --> 03:24:14,680 value 4683 03:24:14,680 --> 03:24:20,439 below so smaller to bigger on the invert 4684 03:24:20,439 --> 03:24:25,199 site now comes the values for the 4685 03:24:25,199 --> 03:24:27,720 values you can see the y-axis values are 4686 03:24:27,720 --> 03:24:31,359 switch on and switch off pay 4687 03:24:31,359 --> 03:24:33,680 attention you can use FX means you can 4688 03:24:33,680 --> 03:24:36,640 use conditional formatting uh 4689 03:24:36,640 --> 03:24:40,600 display uh Auto right now I can use none 4690 03:24:40,600 --> 03:24:42,120 no formatting now you can see the 4691 03:24:42,120 --> 03:24:44,960 absolute value you can say Auto it means 4692 03:24:44,960 --> 03:24:47,040 it will follow the auto atically what it 4693 03:24:47,040 --> 03:24:49,439 get best million forcefully million 4694 03:24:49,439 --> 03:24:52,199 thousand forcefully thousand I Leave It 4695 03:24:52,199 --> 03:24:54,760 To None or I can even leave it to Auto 4696 03:24:54,760 --> 03:24:56,399 let it decide usually it is better to 4697 03:24:56,399 --> 03:24:59,680 keep Auto which axis position now Y axis 4698 03:24:59,680 --> 03:25:02,439 can come on the secondary y-axis side or 4699 03:25:02,439 --> 03:25:05,720 on the what you call as right hand side 4700 03:25:05,720 --> 03:25:08,279 title now you want to give a 4701 03:25:08,279 --> 03:25:10,800 title to 4702 03:25:10,800 --> 03:25:14,000 the Y axis now right now the title is 4703 03:25:14,000 --> 03:25:16,840 net let's give something else net 4704 03:25:16,840 --> 03:25:20,399 net value so now we have title as net 4705 03:25:20,399 --> 03:25:23,199 value again you can use the color using 4706 03:25:23,199 --> 03:25:26,239 conditional formatting uh show style 4707 03:25:26,239 --> 03:25:29,760 show units only show title only show 4708 03:25:29,760 --> 03:25:32,640 both so units is in millions show both 4709 03:25:32,640 --> 03:25:35,000 so we can say net value is in millions 4710 03:25:35,000 --> 03:25:36,600 and that is much better option if you 4711 03:25:36,600 --> 03:25:38,680 wanted to try out because what happens 4712 03:25:38,680 --> 03:25:41,199 in case you are using this Auto it is 4713 03:25:41,199 --> 03:25:43,000 always good that it shows you you know 4714 03:25:43,000 --> 03:25:45,239 if it is showing the values in K and 4715 03:25:45,239 --> 03:25:48,040 millions that's a good idea to have now 4716 03:25:48,040 --> 03:25:49,560 Legends are off right now but when we 4717 03:25:49,560 --> 03:25:51,120 use Legends we can play around with 4718 03:25:51,120 --> 03:25:52,880 small multiple again when we use small 4719 03:25:52,880 --> 03:25:55,000 multiple we'll use now grid lines is 4720 03:25:55,000 --> 03:25:56,520 something it is showing that you know we 4721 03:25:56,520 --> 03:25:58,319 have the horizontal grid line but 4722 03:25:58,319 --> 03:25:59,520 because of the color you might not be 4723 03:25:59,520 --> 03:26:01,239 able to see so let me make make it a 4724 03:26:01,239 --> 03:26:02,720 little bit darker now you can see the 4725 03:26:02,720 --> 03:26:05,040 horizontal grid now they are dotted you 4726 03:26:05,040 --> 03:26:07,640 can make them solid or you can make them 4727 03:26:07,640 --> 03:26:09,800 dashed what you want width you can 4728 03:26:09,800 --> 03:26:12,479 increase or decrease depending on the 4729 03:26:12,479 --> 03:26:15,800 require so this is you know a horizontal 4730 03:26:15,800 --> 03:26:17,040 grid 4731 03:26:17,040 --> 03:26:19,640 now Zoom slider is something uh which is 4732 03:26:19,640 --> 03:26:21,120 really important especially when you 4733 03:26:21,120 --> 03:26:24,479 have large number of rows or huge data 4734 03:26:24,479 --> 03:26:26,840 then it will help now let's invert the 4735 03:26:26,840 --> 03:26:30,000 AIS before we understand 4736 03:26:30,000 --> 03:26:33,399 that so both we bought on the same place 4737 03:26:33,399 --> 03:26:34,600 it's not that it's not going to work 4738 03:26:34,600 --> 03:26:36,439 with that but 4739 03:26:36,439 --> 03:26:39,120 by we usually have a habit of seeing the 4740 03:26:39,120 --> 03:26:40,960 things in a particular Manner and it is 4741 03:26:40,960 --> 03:26:43,680 helpful in that so on the y axis as you 4742 03:26:43,680 --> 03:26:46,920 can see there is a scrawler 4743 03:26:46,920 --> 03:26:49,199 and if I bring it down it is bringing in 4744 03:26:49,199 --> 03:26:51,040 the Valu so especially if you have huge 4745 03:26:51,040 --> 03:26:52,279 number of data points and some of the 4746 03:26:52,279 --> 03:26:53,520 data points you are not able to see the 4747 03:26:53,520 --> 03:26:56,040 values this can help now slider can have 4748 03:26:56,040 --> 03:26:57,920 a label slider label so once you on the 4749 03:26:57,920 --> 03:26:59,720 slider label you have a label on this 4750 03:26:59,720 --> 03:27:01,239 side so one is fixed label and one is 4751 03:27:01,239 --> 03:27:03,279 changing label now the one label is 4752 03:27:03,279 --> 03:27:05,359 changing and one is fixed so that is the 4753 03:27:05,359 --> 03:27:07,880 advantage slider tool tip so once you 4754 03:27:07,880 --> 03:27:09,680 scroll down now it will have a tool tip 4755 03:27:09,680 --> 03:27:12,960 also how it is moving down so these are 4756 03:27:12,960 --> 03:27:14,279 few things you can play around with the 4757 03:27:14,279 --> 03:27:16,520 slider again it depends on what kind of 4758 03:27:16,520 --> 03:27:19,520 use case you have now columns we are 4759 03:27:19,520 --> 03:27:21,920 seeing multiple categories but instead 4760 03:27:21,920 --> 03:27:26,560 of color still we are able to see FX now 4761 03:27:27,199 --> 03:27:31,199 always instead of having Legend always 4762 03:27:31,199 --> 03:27:33,439 try to have the 4763 03:27:33,439 --> 03:27:37,479 AIS multiple AES now you will ask now 4764 03:27:37,479 --> 03:27:39,960 even if if I expand I I see all of them 4765 03:27:39,960 --> 03:27:42,080 in the same color isn't it when I expand 4766 03:27:42,080 --> 03:27:44,160 you see all the categories or brand in 4767 03:27:44,160 --> 03:27:46,199 the same color but when I was using 4768 03:27:46,199 --> 03:27:48,239 Legend they come in multiple color so if 4769 03:27:48,239 --> 03:27:50,560 this category is in the legend you will 4770 03:27:50,560 --> 03:27:52,199 see them into multiple colors so I can 4771 03:27:52,199 --> 03:27:53,760 have color for category one Category 2 4772 03:27:53,760 --> 03:27:56,760 category three but I can't you switch 4773 03:27:56,760 --> 03:27:58,880 this color with my own choice of color 4774 03:27:58,880 --> 03:28:00,479 manually I can switch but I can't keep 4775 03:28:00,479 --> 03:28:02,359 it controlled means the movement you 4776 03:28:02,359 --> 03:28:03,760 doing some kind of filtering or there 4777 03:28:03,760 --> 03:28:05,760 are additional values this category one 4778 03:28:05,760 --> 03:28:07,199 may get a different color or category 4779 03:28:07,199 --> 03:28:09,160 two may get a different color or based 4780 03:28:09,160 --> 03:28:12,840 on the other operation it may change but 4781 03:28:12,840 --> 03:28:15,399 if you keep it here because this 4782 03:28:15,399 --> 03:28:17,160 conditional formatting is enabled and 4783 03:28:17,160 --> 03:28:20,399 also you can see it is little bit better 4784 03:28:20,399 --> 03:28:23,000 where it occupies the space and we will 4785 03:28:23,000 --> 03:28:24,560 be able to use conditional formatting to 4786 03:28:24,560 --> 03:28:27,080 color that so once we learn the 4787 03:28:27,080 --> 03:28:28,319 conditional formatting we'll color them 4788 03:28:28,319 --> 03:28:29,720 in different one and you'll find this is 4789 03:28:29,720 --> 03:28:31,600 a better option than using Legend 4790 03:28:31,600 --> 03:28:33,880 wherever you can avoid the Legend So use 4791 03:28:33,880 --> 03:28:37,120 multiple axis expanded concatenate label 4792 03:28:37,120 --> 03:28:41,359 of whenever you can avoid the legend we 4793 03:28:41,359 --> 03:28:43,279 will understand that little bit more 4794 03:28:43,279 --> 03:28:45,880 border as you can see the borders if you 4795 03:28:45,880 --> 03:28:48,239 have have the border for 4796 03:28:48,239 --> 03:28:50,560 the I change the Border color a little 4797 03:28:50,560 --> 03:28:52,439 bit so that we understand where the 4798 03:28:52,439 --> 03:28:54,399 color coming in so you can see the bars 4799 03:28:54,399 --> 03:28:56,960 of borders and you can have transparency 4800 03:28:56,960 --> 03:28:59,720 for the borders there are few features 4801 03:28:59,720 --> 03:29:01,640 which has been very recently added and 4802 03:29:01,640 --> 03:29:03,840 one of the feature is basically this 4803 03:29:03,840 --> 03:29:06,520 transparency so and I waited for the 4804 03:29:06,520 --> 03:29:08,199 border to come because when I make this 4805 03:29:08,199 --> 03:29:10,760 transparency is 100% you can see that 4806 03:29:10,760 --> 03:29:14,080 there is nothing visible and now if I go 4807 03:29:14,080 --> 03:29:15,800 ahead and check this match the column 4808 03:29:15,800 --> 03:29:18,040 color 4809 03:29:18,520 --> 03:29:20,199 it gives the matching color okay the 4810 03:29:20,199 --> 03:29:22,239 color was actually green it gives me 4811 03:29:22,239 --> 03:29:23,760 matching color but that is actually 4812 03:29:23,760 --> 03:29:26,000 transparent and what I can do is I can 4813 03:29:26,000 --> 03:29:28,359 make it also 100% transparent so right 4814 03:29:28,359 --> 03:29:30,720 now there are bars but they are not 4815 03:29:30,720 --> 03:29:32,880 visible see I can see the tool tip 4816 03:29:32,880 --> 03:29:34,920 because of the bar but I don't see now 4817 03:29:34,920 --> 03:29:36,160 because of that there are multiple 4818 03:29:36,160 --> 03:29:37,800 things you can create so moment I think 4819 03:29:37,800 --> 03:29:40,640 I use the transparency a little bit I 4820 03:29:40,640 --> 03:29:42,160 will be able to see the bar similarly 4821 03:29:42,160 --> 03:29:43,880 for this one I can use a little bit of 4822 03:29:43,880 --> 03:29:46,239 transparency to give that transparency 4823 03:29:46,239 --> 03:29:48,080 kind of effect now the inner bar is 4824 03:29:48,080 --> 03:29:50,279 little bit transparent and the border 4825 03:29:50,279 --> 03:29:53,399 is border is not at all transparent 4826 03:29:53,399 --> 03:29:54,960 gives a different kind of look now both 4827 03:29:54,960 --> 03:29:57,800 are completely not transparent they look 4828 03:29:57,800 --> 03:30:00,760 into the this one so these kind of 4829 03:30:00,760 --> 03:30:04,160 combinations of having the 4830 03:30:04,160 --> 03:30:06,640 transparency and having this border 4831 03:30:06,640 --> 03:30:09,199 match color or border of its own color 4832 03:30:09,199 --> 03:30:10,800 can give you this combination you can 4833 03:30:10,800 --> 03:30:14,080 hide it so purpose of transparency we 4834 03:30:14,080 --> 03:30:16,239 can decide based on the what we are 4835 03:30:16,239 --> 03:30:17,920 going to do but anyway the transparency 4836 03:30:17,920 --> 03:30:19,880 if you look at it and but let's do one 4837 03:30:19,880 --> 03:30:23,479 thing let's call it as uh bar 4838 03:30:23,479 --> 03:30:25,800 one let's duplicate this page right 4839 03:30:25,800 --> 03:30:28,000 click and duplicate because this is a 4840 03:30:28,000 --> 03:30:31,439 newly released features and let's have a 4841 03:30:31,439 --> 03:30:35,080 look at it so now you can able to see in 4842 03:30:35,080 --> 03:30:37,600 a much better manner how does uh this 4843 03:30:37,600 --> 03:30:40,560 behave 4844 03:30:41,439 --> 03:30:45,359 so this transparency and Border um you 4845 03:30:45,359 --> 03:30:47,359 can see the advantage of those things 4846 03:30:47,359 --> 03:30:50,840 here now similarly you have the layout 4847 03:30:50,840 --> 03:30:52,800 now in the layout when you went here the 4848 03:30:52,800 --> 03:30:54,600 reverse order sought by value and 4849 03:30:54,600 --> 03:30:56,120 spacing between the category now spacing 4850 03:30:56,120 --> 03:30:58,279 between the categories is something if 4851 03:30:58,279 --> 03:31:01,319 you increase that as you can see is 4852 03:31:01,319 --> 03:31:06,239 increasing and so max width has one play 4853 03:31:06,239 --> 03:31:09,840 with us Max width was there uh which was 4854 03:31:09,840 --> 03:31:11,239 actually allowing you to do something 4855 03:31:11,239 --> 03:31:13,560 now again this is the second one where 4856 03:31:13,560 --> 03:31:15,560 space between the categories is allowing 4857 03:31:15,560 --> 03:31:17,880 you you know have smaller 4858 03:31:17,880 --> 03:31:20,800 bars now this reverse order and sort by 4859 03:31:20,800 --> 03:31:22,319 value is something which is not 4860 03:31:22,319 --> 03:31:24,439 applicable on this this is actually for 4861 03:31:24,439 --> 03:31:26,160 stagged bar chart and this is really 4862 03:31:26,160 --> 03:31:27,920 good property when I come to the stagged 4863 03:31:27,920 --> 03:31:31,479 bar chart I'll explain you so let me 4864 03:31:31,479 --> 03:31:33,279 increase a little bit width because 4865 03:31:33,279 --> 03:31:34,520 that's too 4866 03:31:34,520 --> 03:31:37,040 small and also I'm going to make this 4867 03:31:37,040 --> 03:31:39,399 border as none because I want the bar to 4868 03:31:39,399 --> 03:31:41,840 take the WID but I'm telling you with 4869 03:31:41,840 --> 03:31:43,960 bother it was looking much better I can 4870 03:31:43,960 --> 03:31:46,600 make it as a one pixel 4871 03:31:46,600 --> 03:31:48,760 okay now let's come down now data label 4872 03:31:48,760 --> 03:31:50,960 again something got added in December 4873 03:31:50,960 --> 03:31:52,840 data label is there for a few months now 4874 03:31:52,840 --> 03:31:55,479 but in December we have some enhancement 4875 03:31:55,479 --> 03:31:57,560 inside the data label so first of all 4876 03:31:57,560 --> 03:31:59,640 the position is horizontal I can make it 4877 03:31:59,640 --> 03:32:02,800 vertical so now this is one thing 4878 03:32:02,800 --> 03:32:04,920 overflow text I allow it means if even 4879 03:32:04,920 --> 03:32:06,560 if there is a chances we need to 4880 03:32:06,560 --> 03:32:08,680 overflow the text means overflow of text 4881 03:32:08,680 --> 03:32:10,359 means if it is not sufficiently coming 4882 03:32:10,359 --> 03:32:12,760 let's say if I do the position as right 4883 03:32:12,760 --> 03:32:14,640 now the position is AO I say inside and 4884 03:32:14,640 --> 03:32:16,680 now bar is very small See This Bar is 4885 03:32:16,680 --> 03:32:19,439 very small then it is Overflow now if I 4886 03:32:19,439 --> 03:32:21,199 switch off the Overflow if I highlight 4887 03:32:21,199 --> 03:32:22,319 here you can see the values are not 4888 03:32:22,319 --> 03:32:24,199 appearing here because right now what I 4889 03:32:24,199 --> 03:32:25,880 have done here is I have switch off the 4890 03:32:25,880 --> 03:32:27,439 Overflow text but if I enable this 4891 03:32:27,439 --> 03:32:29,399 overflow text you will be able to see 4892 03:32:29,399 --> 03:32:30,920 this value so this is the advantage of 4893 03:32:30,920 --> 03:32:33,160 overflow but keep it auto that it takes 4894 03:32:33,160 --> 03:32:35,399 some place right now it is outside but 4895 03:32:35,399 --> 03:32:37,840 if you want there are need like I really 4896 03:32:37,840 --> 03:32:40,760 want it outside only and optimize label 4897 03:32:40,760 --> 03:32:42,880 display is another thing where you know 4898 03:32:42,880 --> 03:32:44,840 you can have if you check that you have 4899 03:32:44,840 --> 03:32:46,840 the maximum width which you wanted to 4900 03:32:46,840 --> 03:32:49,760 give you can control that now new thing 4901 03:32:49,760 --> 03:32:53,920 which is now inside the data label which 4902 03:32:53,920 --> 03:32:55,920 allows me to now show 4903 03:32:55,920 --> 03:32:59,399 the title now what is this title the 4904 03:32:59,399 --> 03:33:02,520 title is basically the net and where the 4905 03:33:02,520 --> 03:33:04,560 title should come same as series name or 4906 03:33:04,560 --> 03:33:07,080 custom I want to give some other title 4907 03:33:07,080 --> 03:33:10,160 then I can add a title and You by adding 4908 03:33:10,160 --> 03:33:12,040 this title maybe I want to add the 4909 03:33:12,040 --> 03:33:14,120 category as a title let's let me drag 4910 03:33:14,120 --> 03:33:16,359 the category as a title 4911 03:33:16,359 --> 03:33:19,000 showing first category let me do one 4912 03:33:19,000 --> 03:33:22,920 thing let me go ahead go to x-axis and 4913 03:33:22,920 --> 03:33:25,840 completely disable 4914 03:33:25,880 --> 03:33:29,840 ex okay now I have a category and value 4915 03:33:29,840 --> 03:33:31,080 and you will say this is looking too 4916 03:33:31,080 --> 03:33:32,960 busy and let me only make it as a 4917 03:33:32,960 --> 03:33:34,040 category 4918 03:33:34,040 --> 03:33:36,479 visual so now what's happening there's a 4919 03:33:36,479 --> 03:33:38,239 category and there's a 4920 03:33:38,239 --> 03:33:39,760 value 4921 03:33:39,760 --> 03:33:42,760 so now let's go to the position we can 4922 03:33:42,760 --> 03:33:43,880 see 4923 03:33:43,880 --> 03:33:46,840 now so now we only I removed the brand 4924 03:33:46,840 --> 03:33:48,319 now only we have a category and the 4925 03:33:48,319 --> 03:33:52,080 value first category now first category 4926 03:33:52,080 --> 03:33:53,960 or last category doesn't matter because 4927 03:33:53,960 --> 03:33:55,479 because of the row context going to come 4928 03:33:55,479 --> 03:33:57,439 that we have transparencies means we can 4929 03:33:57,439 --> 03:33:59,399 make it little bit transparent we have 4930 03:33:59,399 --> 03:34:01,120 the color we can choose a color means I 4931 03:34:01,120 --> 03:34:03,319 can have a different color for the 4932 03:34:03,319 --> 03:34:05,279 category and the different this one so 4933 03:34:05,279 --> 03:34:07,120 now what is happening there is nothing 4934 03:34:07,120 --> 03:34:08,800 written here on the x-axis everything is 4935 03:34:08,800 --> 03:34:10,800 written there and now position is 4936 03:34:10,800 --> 03:34:12,439 something which we can decide where you 4937 03:34:12,439 --> 03:34:16,720 know the opt we can say okay inside and 4938 03:34:16,720 --> 03:34:19,080 or we can say inside base now everything 4939 03:34:19,080 --> 03:34:21,840 is written here inside base and because 4940 03:34:21,840 --> 03:34:23,359 I have chosen a color black that's why 4941 03:34:23,359 --> 03:34:26,439 it is coming so now we are getting title 4942 03:34:26,439 --> 03:34:29,560 along with this one 4943 03:34:29,560 --> 03:34:32,479 furthermore when you go down this is the 4944 03:34:32,479 --> 03:34:33,960 actual value the net value which is 4945 03:34:33,960 --> 03:34:36,040 getting displayed in the label what all 4946 03:34:36,040 --> 03:34:38,000 I wanted to play around with that and if 4947 03:34:38,000 --> 03:34:40,120 I go down here we have the display unit 4948 03:34:40,120 --> 03:34:42,520 which I can control I can say none so it 4949 03:34:42,520 --> 03:34:44,239 start showing the value now I even don't 4950 03:34:44,239 --> 03:34:46,760 need the y- axis actually 4951 03:34:46,760 --> 03:34:48,560 now I can go ahead and completely switch 4952 03:34:48,560 --> 03:34:51,080 off my ixis because I have the values 4953 03:34:51,080 --> 03:34:53,880 display unit decimal place Auto Show 4954 03:34:53,880 --> 03:34:56,199 blank as zero or show blank as hyphen 4955 03:34:56,199 --> 03:34:58,359 like if there is a blank value I can say 4956 03:34:58,359 --> 03:35:00,080 here show as hyphen which is previously 4957 03:35:00,080 --> 03:35:01,760 not possible now these are the 4958 03:35:01,760 --> 03:35:04,040 enhancement which has came recently and 4959 03:35:04,040 --> 03:35:05,880 some of them came as recent as December 4960 03:35:05,880 --> 03:35:07,479 now detail label is something which came 4961 03:35:07,479 --> 03:35:11,600 very recently in December 20 23 now I 4962 03:35:11,600 --> 03:35:13,720 can add one more label so I'm already 4963 03:35:13,720 --> 03:35:16,239 using category and net with that 4964 03:35:16,239 --> 03:35:18,399 and let me bring in Gross value also 4965 03:35:18,399 --> 03:35:21,399 here in this one so now I'm seeing gross 4966 03:35:21,399 --> 03:35:23,800 along with 4967 03:35:23,800 --> 03:35:26,239 that and then I can decide the font I 4968 03:35:26,239 --> 03:35:28,080 can decide the color you say okay let's 4969 03:35:28,080 --> 03:35:29,520 differentiate it with a different little 4970 03:35:29,520 --> 03:35:31,640 bit different color maybe this is my 4971 03:35:31,640 --> 03:35:34,760 gross transparency and formatting is 4972 03:35:34,760 --> 03:35:37,359 none decimal place Auto we want to give 4973 03:35:37,359 --> 03:35:39,479 a background to this switch on the 4974 03:35:39,479 --> 03:35:41,319 background and then we can decide what 4975 03:35:41,319 --> 03:35:42,800 one want the color and what is the 4976 03:35:42,800 --> 03:35:46,560 transparency we want 4977 03:35:49,520 --> 03:35:52,880 let's go to the layout 4978 03:35:52,880 --> 03:35:56,120 multi-line single line when I go to the 4979 03:35:56,120 --> 03:35:58,239 single line what I can do here is let I 4980 03:35:58,239 --> 03:36:00,880 don't want details to be there let me 4981 03:36:00,880 --> 03:36:03,439 switch off the detail now look it's 4982 03:36:03,439 --> 03:36:04,479 looking 4983 03:36:04,479 --> 03:36:07,560 much cleaner approach to have this and 4984 03:36:07,560 --> 03:36:08,920 and definitely we can play around with 4985 03:36:08,920 --> 03:36:10,760 the colors so now what is happening this 4986 03:36:10,760 --> 03:36:13,040 is something you would have wanted in 4987 03:36:13,040 --> 03:36:17,920 the past that you have the 4988 03:36:17,920 --> 03:36:20,520 categories and their label and I'm going 4989 03:36:20,520 --> 03:36:23,439 to convert this into all to a different 4990 03:36:23,439 --> 03:36:27,840 visual now let me go up and we we we 4991 03:36:27,840 --> 03:36:30,279 were playing around with the colors if 4992 03:36:30,279 --> 03:36:33,319 you remember let me create the 4993 03:36:33,319 --> 03:36:36,279 transparency now this is only Inside the 4994 03:36:36,279 --> 03:36:38,680 Box me switch off the 4995 03:36:38,680 --> 03:36:41,279 borders I'm only displaying the 4996 03:36:41,279 --> 03:36:43,960 values let me bring in the brand 4997 03:36:43,960 --> 03:36:47,800 back brand is low 4998 03:36:47,800 --> 03:36:52,640 okay now here in the label we can't 4999 03:36:52,640 --> 03:36:55,160 direct two we can't direct to otherwise 5000 03:36:55,160 --> 03:36:57,600 we could have done the brand but in this 5001 03:36:57,600 --> 03:37:00,920 case now what we can have here 5002 03:37:01,840 --> 03:37:06,439 is we can go ahead and enable 5003 03:37:07,239 --> 03:37:09,680 our 5004 03:37:09,680 --> 03:37:12,279 values so I have done few adjustment and 5005 03:37:12,279 --> 03:37:14,479 you can see the values now you may white 5006 03:37:14,479 --> 03:37:16,680 like to have you you know both brand and 5007 03:37:16,680 --> 03:37:18,319 category then how would you get that 5008 03:37:18,319 --> 03:37:20,720 brand and category values to you might 5009 03:37:20,720 --> 03:37:22,399 have that question in your mind like you 5010 03:37:22,399 --> 03:37:26,040 know when I'm adding this U title giving 5011 03:37:26,040 --> 03:37:27,560 me first category I'll tell you a very 5012 03:37:27,560 --> 03:37:30,439 simple mejor so I'll go to the item 5013 03:37:30,439 --> 03:37:32,160 Dimension I click on it and I create a 5014 03:37:32,160 --> 03:37:35,640 major and this major is going to work 5015 03:37:35,640 --> 03:37:37,920 when you have both of them together okay 5016 03:37:37,920 --> 03:37:41,520 so we'll call it brand at 5017 03:37:41,520 --> 03:37:44,479 label and this is nothing but Max of 5018 03:37:44,479 --> 03:37:46,760 item brand if you remember we were 5019 03:37:46,760 --> 03:37:48,520 taking first category item 5020 03:37:48,520 --> 03:37:51,640 brand then we say m per to give us space 5021 03:37:51,640 --> 03:37:56,720 m% space m per Max of item category what 5022 03:37:56,720 --> 03:37:58,279 would happen because item and category 5023 03:37:58,279 --> 03:38:01,479 are already in the AIS actually we don't 5024 03:38:01,479 --> 03:38:03,279 want to display them and I let me give 5025 03:38:03,279 --> 03:38:06,120 additional space Also here and maybe I 5026 03:38:06,120 --> 03:38:07,720 can give a hyph because I know I'm going 5027 03:38:07,720 --> 03:38:10,640 to display the value now I can instead 5028 03:38:10,640 --> 03:38:13,359 of this one I can bring in this 5029 03:38:13,359 --> 03:38:16,160 one what kind of label I created brand 5030 03:38:16,160 --> 03:38:18,800 category label Max of item brand and Max 5031 03:38:18,800 --> 03:38:20,399 of item category you will see how will 5032 03:38:20,399 --> 03:38:23,760 it work see item when the brand one is 5033 03:38:23,760 --> 03:38:26,040 in the my context brand one can only be 5034 03:38:26,040 --> 03:38:28,479 the maximum value and category one is in 5035 03:38:28,479 --> 03:38:30,319 the this row context so category one can 5036 03:38:30,319 --> 03:38:32,720 also be the maximum value in this manner 5037 03:38:32,720 --> 03:38:35,000 you can get these values and now you can 5038 03:38:35,000 --> 03:38:36,640 play around all these values and 5039 03:38:36,640 --> 03:38:38,359 everything now it can create all 5040 03:38:38,359 --> 03:38:39,399 together a different kind of visual 5041 03:38:39,399 --> 03:38:40,520 where you are only displaying the 5042 03:38:40,520 --> 03:38:43,000 visuals like values like this so these 5043 03:38:43,000 --> 03:38:45,640 are all the experiment which you can do 5044 03:38:45,640 --> 03:38:47,279 or I can reduce the little bit of 5045 03:38:47,279 --> 03:38:49,680 transparency to see these values and I 5046 03:38:49,680 --> 03:38:51,880 can play around with so lot of 5047 03:38:51,880 --> 03:38:53,960 combinations are possible just because 5048 03:38:53,960 --> 03:38:57,760 of this properties of transparency and 5049 03:38:57,760 --> 03:39:00,479 the data label customization which has 5050 03:39:00,479 --> 03:39:03,359 been enhanced over last few months so 5051 03:39:03,359 --> 03:39:06,160 you have lot of flexibility how you want 5052 03:39:06,160 --> 03:39:08,199 to display your bar visual stagged 5053 03:39:08,199 --> 03:39:11,120 visual wherever this is applicable now 5054 03:39:11,120 --> 03:39:12,920 plot and area background if you want to 5055 03:39:12,920 --> 03:39:15,080 image in the background then you can use 5056 03:39:15,080 --> 03:39:16,680 it then again you can decide the image 5057 03:39:16,680 --> 03:39:19,319 fit and transparency reference line is 5058 03:39:19,319 --> 03:39:20,840 something really important now what 5059 03:39:20,840 --> 03:39:23,160 happens sometime is basically you want 5060 03:39:23,160 --> 03:39:25,359 to plot a reference 5061 03:39:25,359 --> 03:39:28,040 line basically a line which is going to 5062 03:39:28,040 --> 03:39:30,680 give you a reference so I can add a line 5063 03:39:30,680 --> 03:39:32,840 now it asks me to choose a line so right 5064 03:39:32,840 --> 03:39:36,239 now I would I can choose a constant line 5065 03:39:36,239 --> 03:39:37,720 or I can simply choose an average line 5066 03:39:37,720 --> 03:39:39,359 so I prefer to choose an average line as 5067 03:39:39,359 --> 03:39:41,560 you can see this is my average across 5068 03:39:41,560 --> 03:39:44,560 all the values based on what net because 5069 03:39:44,560 --> 03:39:46,520 right now I'm only using using net now 5070 03:39:46,520 --> 03:39:48,760 the line properties you can change color 5071 03:39:48,760 --> 03:39:51,000 let me make it 5072 03:39:51,000 --> 03:39:54,840 black and transparency is transparency 5073 03:39:54,840 --> 03:39:58,080 0% so that is visible instead of Dash 5074 03:39:58,080 --> 03:40:00,399 let me make it solid position in front 5075 03:40:00,399 --> 03:40:02,880 or behind sometime you want it behind so 5076 03:40:02,880 --> 03:40:04,600 that it does not cross the bar from the 5077 03:40:04,600 --> 03:40:06,960 top 5078 03:40:06,960 --> 03:40:10,359 now focus on this location you are able 5079 03:40:10,359 --> 03:40:13,760 to see that white color iPhone above it 5080 03:40:13,760 --> 03:40:17,040 now I'll go and move it in front and now 5081 03:40:17,040 --> 03:40:19,439 you will observe 5082 03:40:19,439 --> 03:40:22,319 that that when it is in front you will 5083 03:40:22,319 --> 03:40:24,680 not be able to see that quite 5084 03:40:24,680 --> 03:40:26,720 complete what I've have done is I have 5085 03:40:26,720 --> 03:40:29,600 reset my data labels to default by using 5086 03:40:29,600 --> 03:40:32,840 the default reset to default and now so 5087 03:40:32,840 --> 03:40:34,800 that I can show you the reference line 5088 03:40:34,800 --> 03:40:36,080 and uh because there are too many 5089 03:40:36,080 --> 03:40:38,160 overlapping labels it was not able to 5090 03:40:38,160 --> 03:40:39,800 show and the one thing which I enabled 5091 03:40:39,800 --> 03:40:42,040 is now I've enabled the data label now 5092 03:40:42,040 --> 03:40:43,520 it is showing where should I show left 5093 03:40:43,520 --> 03:40:45,640 or right I can decide the position 5094 03:40:45,640 --> 03:40:47,920 whether I should show it here or here I 5095 03:40:47,920 --> 03:40:49,199 can decide the 5096 03:40:49,199 --> 03:40:52,080 position above or below under or below 5097 03:40:52,080 --> 03:40:54,600 again 5098 03:40:56,560 --> 03:41:00,359 positioning a style name or both data 5099 03:41:00,359 --> 03:41:03,399 value name or both I both average line 5100 03:41:03,399 --> 03:41:07,080 value display unit I can set to none and 5101 03:41:07,080 --> 03:41:09,880 decimal places auto before I take the 5102 03:41:09,880 --> 03:41:13,279 next step let me do one thing let me uh 5103 03:41:13,279 --> 03:41:14,760 remove some of the features which are 5104 03:41:14,760 --> 03:41:16,439 not required right now let me rename 5105 03:41:16,439 --> 03:41:18,680 this page to Bar two let me now explore 5106 03:41:18,680 --> 03:41:20,000 error 5107 03:41:20,000 --> 03:41:24,319 bars now error bar is on the series is 5108 03:41:24,319 --> 03:41:27,439 net right now error bar enabled by field 5109 03:41:27,439 --> 03:41:31,279 or by percentage so I used by percentage 5110 03:41:31,279 --> 03:41:33,040 and upper and lower bound I can set now 5111 03:41:33,040 --> 03:41:36,040 bars on or off I can use but definitely 5112 03:41:36,040 --> 03:41:38,359 I want the bars I can set the bar color 5113 03:41:38,359 --> 03:41:40,960 I can increase the width it little bit 5114 03:41:40,960 --> 03:41:43,640 uh marker shape I can 5115 03:41:43,640 --> 03:41:46,040 decide marker size size I can decide 5116 03:41:46,040 --> 03:41:48,520 border and color I can decide error 5117 03:41:48,520 --> 03:41:50,520 labels if I want I can enable the error 5118 03:41:50,520 --> 03:41:53,239 labels so it will show me how much error 5119 03:41:53,239 --> 03:41:55,399 label it is label from absolute or 5120 03:41:55,399 --> 03:41:57,239 relative numeric position or relative 5121 03:41:57,239 --> 03:41:59,880 percentage relative numeric we can do or 5122 03:41:59,880 --> 03:42:02,880 we can try relative 5123 03:42:03,399 --> 03:42:05,560 percentage and then finally we have a 5124 03:42:05,560 --> 03:42:08,040 tool tip right now which is on the tool 5125 03:42:08,040 --> 03:42:09,720 tip here what we are talking about is 5126 03:42:09,720 --> 03:42:11,800 the error bar tool tip if you switch it 5127 03:42:11,800 --> 03:42:14,600 off it will not show the error bar 5128 03:42:14,600 --> 03:42:17,000 information but this is not the overall 5129 03:42:17,000 --> 03:42:19,960 tool tip so basically if you go here now 5130 03:42:19,960 --> 03:42:21,279 it is showing the error Bar upper and 5131 03:42:21,279 --> 03:42:23,319 lower bound if you switch it off it will 5132 03:42:23,319 --> 03:42:26,319 not show it but this is only related to 5133 03:42:26,319 --> 03:42:28,359 the error bar the it is not the overall 5134 03:42:28,359 --> 03:42:29,920 tool tip the overall tool tip is 5135 03:42:29,920 --> 03:42:33,359 available under the property 5136 03:42:33,359 --> 03:42:36,399 pin now I'll switch off the error 5137 03:42:36,399 --> 03:42:38,840 bars so now we are done with our 5138 03:42:38,840 --> 03:42:40,840 properties now we can go to the generic 5139 03:42:40,840 --> 03:42:43,239 properties header icon same as other 5140 03:42:43,239 --> 03:42:45,840 visuals tool tip we right now able to 5141 03:42:45,840 --> 03:42:48,760 see the tool tip we can switch it off 5142 03:42:48,760 --> 03:42:50,960 there would be no tool 5143 03:42:50,960 --> 03:42:54,000 tip alternative text and alternative 5144 03:42:54,000 --> 03:42:57,040 options responsive and there is so much 5145 03:42:57,040 --> 03:42:58,880 you have for the clustered bar and same 5146 03:42:58,880 --> 03:43:01,159 can also be applied for the bar 5147 03:43:01,159 --> 03:43:03,399 visual there are multiple options 5148 03:43:03,399 --> 03:43:05,520 possible to display this chart using you 5149 03:43:05,520 --> 03:43:09,640 know xais y AIS Legends a small multiple 5150 03:43:09,640 --> 03:43:11,600 you can also add additional item on the 5151 03:43:11,600 --> 03:43:13,199 tool tip if you want let's say I want to 5152 03:43:13,199 --> 03:43:15,880 add gross I want to add discount for 5153 03:43:15,880 --> 03:43:17,439 that the tool tip need to be enabled so 5154 03:43:17,439 --> 03:43:18,680 if the tool tip is off you will not be 5155 03:43:18,680 --> 03:43:20,640 able to see but once you enable it you 5156 03:43:20,640 --> 03:43:23,439 will be able to see the tool tip now the 5157 03:43:23,439 --> 03:43:25,159 next thing what we wanted to do is we 5158 03:43:25,159 --> 03:43:27,880 would like to 5159 03:43:27,880 --> 03:43:30,120 explore few more Visual and then we 5160 03:43:30,120 --> 03:43:33,279 would like to come back to the small 5161 03:43:33,279 --> 03:43:35,920 multiple so let's try to create a 5162 03:43:35,920 --> 03:43:38,319 stagged bar visual now for that again 5163 03:43:38,319 --> 03:43:41,080 I'm adding a new page let me call it as 5164 03:43:41,080 --> 03:43:43,560 stagged we have two kind of stagged bar 5165 03:43:43,560 --> 03:43:46,199 visual one is known as stag bar chart 5166 03:43:46,199 --> 03:43:47,720 second one is known as stack column 5167 03:43:47,720 --> 03:43:50,000 chart I'll start with the stack column 5168 03:43:50,000 --> 03:43:52,399 chart and then later on I'll show you by 5169 03:43:52,399 --> 03:43:54,800 changing it to the bar chart properties 5170 03:43:54,800 --> 03:43:57,560 would always remain same now the stagged 5171 03:43:57,560 --> 03:44:00,760 bar chart the it will become a stagged 5172 03:44:00,760 --> 03:44:02,760 only when you use the legend before 5173 03:44:02,760 --> 03:44:04,600 using Legend it is going to be acting as 5174 03:44:04,600 --> 03:44:07,720 a single bar now once we use the legend 5175 03:44:07,720 --> 03:44:09,359 uh there is no option for having 5176 03:44:09,359 --> 03:44:13,319 conditional formatting um so as of now 5177 03:44:13,319 --> 03:44:14,840 when I'm recording this video there's no 5178 03:44:14,840 --> 03:44:16,680 option of doing a conditional formatting 5179 03:44:16,680 --> 03:44:19,359 and forcing is even by using alter rate 5180 03:44:19,359 --> 03:44:21,960 now in few visuals we will see once we 5181 03:44:21,960 --> 03:44:23,239 Deep dive into the conditional 5182 03:44:23,239 --> 03:44:25,199 formatting we will see that there are 5183 03:44:25,199 --> 03:44:26,720 alternatives where we can get little bit 5184 03:44:26,720 --> 03:44:28,199 of conditional formatting in some visual 5185 03:44:28,199 --> 03:44:29,920 but this visual is where we will not get 5186 03:44:29,920 --> 03:44:31,800 it means you can manually change the bar 5187 03:44:31,800 --> 03:44:34,080 color but not conditionally me you can't 5188 03:44:34,080 --> 03:44:35,680 have a major which can change your color 5189 03:44:35,680 --> 03:44:37,159 based on let's say this category should 5190 03:44:37,159 --> 03:44:39,279 look always red so that kind of stuff 5191 03:44:39,279 --> 03:44:41,359 you'll not be able to do so let's start 5192 03:44:41,359 --> 03:44:42,840 with it and there are a few new feature 5193 03:44:42,840 --> 03:44:44,800 which came in December 2023 and we'll 5194 03:44:44,800 --> 03:44:46,159 expl explore that and they are the 5195 03:44:46,159 --> 03:44:47,920 feature you were looking for it and I'll 5196 03:44:47,920 --> 03:44:49,840 tell you the advantage of some of those 5197 03:44:49,840 --> 03:44:51,640 so we'll start with brand which is on we 5198 03:44:51,640 --> 03:44:54,520 are going to put on the xaxis and then 5199 03:44:54,520 --> 03:44:56,159 we can have the y axis where we can have 5200 03:44:56,159 --> 03:44:58,840 value and I'm going to take net for that 5201 03:44:58,840 --> 03:45:00,720 and then we can have the category on the 5202 03:45:00,720 --> 03:45:03,560 legend this constitute 5203 03:45:03,560 --> 03:45:06,760 our te chart now while rest of the 5204 03:45:06,760 --> 03:45:10,600 property like size title xxs will remain 5205 03:45:10,600 --> 03:45:12,800 same and this concatenate label we have 5206 03:45:12,800 --> 03:45:15,120 seen in the bar visual how to use that 5207 03:45:15,120 --> 03:45:16,560 means 5208 03:45:16,560 --> 03:45:19,120 uh when you have more than one thing on 5209 03:45:19,120 --> 03:45:21,960 x-axis you can use it title layout Y 5210 03:45:21,960 --> 03:45:24,000 axis all these properties are going to 5211 03:45:24,000 --> 03:45:27,560 remain same you have the values of 5212 03:45:27,560 --> 03:45:30,800 display title Legends is compulsory for 5213 03:45:30,800 --> 03:45:32,840 you now because we the Legends are 5214 03:45:32,840 --> 03:45:34,720 compulsory in this one so let's 5215 03:45:34,720 --> 03:45:36,720 understand the legend positioning so 5216 03:45:36,720 --> 03:45:38,199 right now there are legends are on the 5217 03:45:38,199 --> 03:45:40,359 top left here this position we are 5218 03:45:40,359 --> 03:45:43,239 having here we can say it is top Center 5219 03:45:43,239 --> 03:45:44,560 they have changed the position to the 5220 03:45:44,560 --> 03:45:47,080 center top Center position now we can 5221 03:45:47,080 --> 03:45:50,199 move it around with let's say top 5222 03:45:50,199 --> 03:45:53,359 right and the one which I wanted to show 5223 03:45:53,359 --> 03:45:56,520 is center right comes here now depending 5224 03:45:56,520 --> 03:45:59,439 on the need we can place it but I think 5225 03:45:59,439 --> 03:46:02,159 as of now 5226 03:46:02,279 --> 03:46:05,000 either bottom center or top Center is a 5227 03:46:05,000 --> 03:46:07,120 better choice for us because we have 5228 03:46:07,120 --> 03:46:09,159 7even eight values and we would like the 5229 03:46:09,159 --> 03:46:13,399 width to be given now small multiples is 5230 03:46:13,399 --> 03:46:14,319 something which we are going to play 5231 03:46:14,319 --> 03:46:16,000 around little bit later grid lines if 5232 03:46:16,000 --> 03:46:17,640 you want to show the grid lines you can 5233 03:46:17,640 --> 03:46:20,760 have the grid lines on uh right now I 5234 03:46:20,760 --> 03:46:22,040 can the only thing I can do is I can 5235 03:46:22,040 --> 03:46:24,199 increase the grid Lines by a little bit 5236 03:46:24,199 --> 03:46:26,080 width and I can give them different 5237 03:46:26,080 --> 03:46:28,479 color so it's visible so I can have the 5238 03:46:28,479 --> 03:46:30,640 grid lines a zoom slider I already 5239 03:46:30,640 --> 03:46:32,439 explained you if you enable it you will 5240 03:46:32,439 --> 03:46:34,120 be able to zoom on the 5241 03:46:34,120 --> 03:46:36,840 excess so what I want to play around is 5242 03:46:36,840 --> 03:46:39,960 in the columns and in the columns as 5243 03:46:39,960 --> 03:46:43,920 usual the series is has to be um as 5244 03:46:43,920 --> 03:46:45,960 because it's um stacked bar chart using 5245 03:46:45,960 --> 03:46:47,560 Legend So individually you can change 5246 03:46:47,560 --> 03:46:49,159 the color of the series there is no FX 5247 03:46:49,159 --> 03:46:51,319 button right now you can use but there 5248 03:46:51,319 --> 03:46:53,600 are a few new feature came in here also 5249 03:46:53,600 --> 03:46:55,359 now one is transparency I can increase 5250 03:46:55,359 --> 03:46:57,680 the transparency here now I can have a 5251 03:46:57,680 --> 03:47:00,279 border I I kept I'll keep really thin 5252 03:47:00,279 --> 03:47:01,760 border here match the color I'll use 5253 03:47:01,760 --> 03:47:04,359 here uh transparency of the Border I'll 5254 03:47:04,359 --> 03:47:07,040 not keep very high let let it be there 5255 03:47:07,040 --> 03:47:09,000 and withd I would like to keep little 5256 03:47:09,000 --> 03:47:11,199 bit finer width only let me have two 5257 03:47:11,199 --> 03:47:14,960 pixels so that you can observe it now 5258 03:47:14,960 --> 03:47:16,720 before I explain you this reverse order 5259 03:47:16,720 --> 03:47:18,960 and sought by I'll tell you what was the 5260 03:47:18,960 --> 03:47:21,279 disadvantage previously what we have and 5261 03:47:21,279 --> 03:47:23,800 what it actually addressed here before 5262 03:47:23,800 --> 03:47:25,800 that let me show you spacing between the 5263 03:47:25,800 --> 03:47:28,239 categories so as you can see the width 5264 03:47:28,239 --> 03:47:29,960 of the bar is getting changed when I'm 5265 03:47:29,960 --> 03:47:32,560 doing that and the spacing between the 5266 03:47:32,560 --> 03:47:34,439 series now now this is something really 5267 03:47:34,439 --> 03:47:37,120 important it only happened between the 5268 03:47:37,120 --> 03:47:40,960 Legends so as you can see the moment I'm 5269 03:47:40,960 --> 03:47:43,920 increasing it is changing the width 5270 03:47:43,920 --> 03:47:46,560 between the 5271 03:47:46,560 --> 03:47:49,439 serieses so right now it is 3 pixel Max 5272 03:47:49,439 --> 03:47:51,920 I can have 5 pixel and then series 5273 03:47:51,920 --> 03:47:53,399 explosion note down what is happening 5274 03:47:53,399 --> 03:47:55,479 right now look at the 5275 03:47:55,479 --> 03:47:59,520 chart this is my area and what 5276 03:47:59,520 --> 03:48:03,080 happens it actually removes your y-axis 5277 03:48:03,080 --> 03:48:06,120 and allow it to go beyond the values 5278 03:48:06,120 --> 03:48:08,560 what it had now if you do such kind of 5279 03:48:08,560 --> 03:48:10,199 stuff definitely the labels is only 5280 03:48:10,199 --> 03:48:12,600 going to be the saor and yes powerbi has 5281 03:48:12,600 --> 03:48:14,239 enounced the label also again in 5282 03:48:14,239 --> 03:48:15,359 December 5283 03:48:15,359 --> 03:48:17,399 we the labels have been in us but right 5284 03:48:17,399 --> 03:48:18,720 now what I'm going to do is I'm going to 5285 03:48:18,720 --> 03:48:21,120 decrease the space between the series 5286 03:48:21,120 --> 03:48:23,359 I'll keep it minimal I'll also remove 5287 03:48:23,359 --> 03:48:24,479 the series 5288 03:48:24,479 --> 03:48:27,760 explosion now let me explain you what 5289 03:48:27,760 --> 03:48:29,880 this reverse order and sort by order 5290 03:48:29,880 --> 03:48:31,800 let's first understand what kind of 5291 03:48:31,800 --> 03:48:34,880 sorting we have in the dots three dots 5292 03:48:34,880 --> 03:48:36,560 so I made the adj just little chart so 5293 03:48:36,560 --> 03:48:38,199 if you go on the sort AIS you can either 5294 03:48:38,199 --> 03:48:40,720 sort on brand on N it's already sorted 5295 03:48:40,720 --> 03:48:46,560 on net I can maximum do is s on brand 5296 03:48:46,560 --> 03:48:48,319 now I sorted it on brand and then 5297 03:48:48,319 --> 03:48:50,399 internally it is sorted on category but 5298 03:48:50,399 --> 03:48:53,159 what you are asking for long is this 5299 03:48:53,159 --> 03:48:57,199 sorting you also want it based on the 5300 03:48:57,199 --> 03:48:59,920 values so this is the Sorting option you 5301 03:48:59,920 --> 03:49:01,880 have now they are sorted on values you 5302 03:49:01,880 --> 03:49:04,080 can see this is smaller this is bigger 5303 03:49:04,080 --> 03:49:05,840 this is smaller this is this is smaller 5304 03:49:05,840 --> 03:49:08,840 bigger bigger biger now if I say reverse 5305 03:49:08,840 --> 03:49:10,359 order the bigger would be down and the 5306 03:49:10,359 --> 03:49:11,600 smaller would be 5307 03:49:11,600 --> 03:49:14,319 up I'll further go down and what I'll do 5308 03:49:14,319 --> 03:49:17,000 is I'll go and say sort XIs on 5309 03:49:17,000 --> 03:49:20,439 net so now this is what you always 5310 03:49:20,439 --> 03:49:22,760 wanted from powerbi and now after 5311 03:49:22,760 --> 03:49:25,640 December 2023 it has been enabled the 5312 03:49:25,640 --> 03:49:28,439 value this value is the greatest value 5313 03:49:28,439 --> 03:49:29,840 largest 5314 03:49:29,840 --> 03:49:32,640 value so this is the largest value and 5315 03:49:32,640 --> 03:49:35,479 the values are again s descending inside 5316 03:49:35,479 --> 03:49:39,560 the stagged bar visual data label again 5317 03:49:39,560 --> 03:49:41,080 going to play a role because data label 5318 03:49:41,080 --> 03:49:42,920 we have seen in the bar how new 5319 03:49:42,920 --> 03:49:44,840 enhancement is going to help us out but 5320 03:49:44,840 --> 03:49:46,960 the moment I enabled you get this one 5321 03:49:46,960 --> 03:49:49,760 part of it now horizontal or vertical 5322 03:49:49,760 --> 03:49:52,960 I'll can make it vertical here overflow 5323 03:49:52,960 --> 03:49:55,680 text I can allow so that I can have more 5324 03:49:55,680 --> 03:49:57,439 I can add the title so I'll add the 5325 03:49:57,439 --> 03:49:59,080 categories here and overflow text is 5326 03:49:59,080 --> 03:50:01,159 helping me out here I can have series 5327 03:50:01,159 --> 03:50:03,359 name or custom if I want to have a label 5328 03:50:03,359 --> 03:50:06,359 let me keep it as series name now next 5329 03:50:06,359 --> 03:50:08,840 is value which I would like to keep net 5330 03:50:08,840 --> 03:50:10,439 though I have an option to change that 5331 03:50:10,439 --> 03:50:13,279 also I can go and make a gross value to 5332 03:50:13,279 --> 03:50:15,120 appear here 5333 03:50:15,120 --> 03:50:17,560 but I don't want that isn't it or let me 5334 03:50:17,560 --> 03:50:19,000 show you some percentage value let's say 5335 03:50:19,000 --> 03:50:20,840 margin percentage I'm showing a margin 5336 03:50:20,840 --> 03:50:23,199 percentage here and the formatting is 5337 03:50:23,199 --> 03:50:24,640 going to play the role so I'm not going 5338 03:50:24,640 --> 03:50:27,239 to say none so that I see the correct 5339 03:50:27,239 --> 03:50:28,560 value okay because otherwise it will 5340 03:50:28,560 --> 03:50:31,560 take the format of the original major so 5341 03:50:31,560 --> 03:50:34,439 let me go back to the net 5342 03:50:34,439 --> 03:50:37,520 value and I'll say Auto format because 5343 03:50:37,520 --> 03:50:41,800 otherwise the too much data here now 5344 03:50:41,800 --> 03:50:43,560 decimal place is Auto Now details is 5345 03:50:43,560 --> 03:50:45,159 something where I can add and this would 5346 03:50:45,159 --> 03:50:47,159 be especially helpful for those of you 5347 03:50:47,159 --> 03:50:51,040 want to like to show the percentage of 5348 03:50:51,040 --> 03:50:52,720 subtotal 5349 03:50:52,720 --> 03:50:55,640 here now right now you don't know how to 5350 03:50:55,640 --> 03:50:57,840 create that percentage of subtotal or 5351 03:50:57,840 --> 03:51:00,319 percentage of total I'm going to give 5352 03:51:00,319 --> 03:51:01,800 you a major and and we're going to 5353 03:51:01,800 --> 03:51:04,199 achieve that because the moment I enable 5354 03:51:04,199 --> 03:51:07,399 it it allows me to have that 5355 03:51:07,399 --> 03:51:09,840 gross and I can see that another measure 5356 03:51:09,840 --> 03:51:11,720 but I I don't need that measure I 5357 03:51:11,720 --> 03:51:15,960 actually want the percentage of 5358 03:51:15,960 --> 03:51:19,239 sub total now percentage of sub tootal 5359 03:51:19,239 --> 03:51:20,680 is something which I have not taught you 5360 03:51:20,680 --> 03:51:22,080 till now but what I'm going to do is I'm 5361 03:51:22,080 --> 03:51:24,000 going to give you a quick major here and 5362 03:51:24,000 --> 03:51:25,800 I'll tell you how to create that major 5363 03:51:25,800 --> 03:51:27,840 later so let me click on the majors 5364 03:51:27,840 --> 03:51:31,319 which is Drive majors and on that top of 5365 03:51:31,319 --> 03:51:32,840 that I'll click measure and create a 5366 03:51:32,840 --> 03:51:37,040 measure here which is percent 5367 03:51:37,040 --> 03:51:40,600 of brand what is my percentage of brand 5368 03:51:40,600 --> 03:51:41,479 is 5369 03:51:41,479 --> 03:51:45,120 divide net and when I want to divide the 5370 03:51:45,120 --> 03:51:48,680 net I want to calculate the net again 5371 03:51:48,680 --> 03:51:50,120 and this I'm going to explain you later 5372 03:51:50,120 --> 03:51:52,680 when we will show you how to create the 5373 03:51:52,680 --> 03:51:55,439 measur I want to calculate the net again 5374 03:51:55,439 --> 03:51:57,800 but this time when I'm calculating the 5375 03:51:57,800 --> 03:52:00,239 net I don't want to consider the filter 5376 03:52:00,239 --> 03:52:02,000 of category I want to consider the 5377 03:52:02,000 --> 03:52:03,159 filter of brand but I don't want to 5378 03:52:03,159 --> 03:52:04,840 consider so there is something known as 5379 03:52:04,840 --> 03:52:08,120 remove filters item category I'm saying 5380 03:52:08,120 --> 03:52:09,720 the remove the filter of the category so 5381 03:52:09,720 --> 03:52:12,080 what would happen while the net is for 5382 03:52:12,080 --> 03:52:15,680 that brand category 5383 03:52:15,880 --> 03:52:18,720 the denominator would not have the 5384 03:52:18,720 --> 03:52:21,359 category filter now this is a percentage 5385 03:52:21,359 --> 03:52:22,520 column so I have to mark it as a 5386 03:52:22,520 --> 03:52:23,760 percentage 5387 03:52:23,760 --> 03:52:26,120 also now I got a measure which is 5388 03:52:26,120 --> 03:52:30,120 percentage of brand and let me place 5389 03:52:30,120 --> 03:52:33,199 that and I have to go ahead and change 5390 03:52:33,199 --> 03:52:36,640 its data type as none and as you can see 5391 03:52:36,640 --> 03:52:40,239 this is 78% this is 16% now font is 5392 03:52:40,239 --> 03:52:41,880 something which we have to really play 5393 03:52:41,880 --> 03:52:45,199 around so and it's not only the one font 5394 03:52:45,199 --> 03:52:47,080 which I have to do I I'll make it 5395 03:52:47,080 --> 03:52:49,000 smaller for all of 5396 03:52:49,000 --> 03:52:52,359 them let me make it smaller for title 5397 03:52:52,359 --> 03:52:54,760 also so now you can 5398 03:52:54,760 --> 03:52:57,760 see uh that uh we have all these and now 5399 03:52:57,760 --> 03:53:00,120 you have the transparency and all those 5400 03:53:00,120 --> 03:53:02,000 play around with everything show blank 5401 03:53:02,000 --> 03:53:03,960 value as 5402 03:53:03,960 --> 03:53:06,760 Hyun then colors of each of these you 5403 03:53:06,760 --> 03:53:07,920 can 5404 03:53:07,920 --> 03:53:09,920 control if you want a background you 5405 03:53:09,920 --> 03:53:12,439 will have a background also and 5406 03:53:12,439 --> 03:53:13,880 background transparency you can decide 5407 03:53:13,880 --> 03:53:15,960 how much transp you want but the moment 5408 03:53:15,960 --> 03:53:17,439 you put background it because it take 5409 03:53:17,439 --> 03:53:19,199 additional space so some of the values 5410 03:53:19,199 --> 03:53:22,159 may go away and definitely you need to 5411 03:53:22,159 --> 03:53:25,520 make sure that um overflow is there so 5412 03:53:25,520 --> 03:53:27,840 that whatever maximum it can accumulate 5413 03:53:27,840 --> 03:53:29,920 it can accumulate and now I can make it 5414 03:53:29,920 --> 03:53:31,960 horizontal also sometime it may actually 5415 03:53:31,960 --> 03:53:35,920 look now depend if I don't want to use 5416 03:53:35,920 --> 03:53:38,520 title series name may be horizontal 5417 03:53:38,520 --> 03:53:40,640 looks much better so I think in this 5418 03:53:40,640 --> 03:53:42,560 case if I don't want to have those 5419 03:53:42,560 --> 03:53:44,840 titles and definitely because category I 5420 03:53:44,840 --> 03:53:46,840 already have a label I know which 5421 03:53:46,840 --> 03:53:50,399 category it is so in this manner I can 5422 03:53:50,399 --> 03:53:52,319 have it now the next thing which is 5423 03:53:52,319 --> 03:53:54,000 which I go down 5424 03:53:54,000 --> 03:53:56,439 here the layout which is multi-line I 5425 03:53:56,439 --> 03:53:58,279 can have a single line now I'll tell you 5426 03:53:58,279 --> 03:54:00,239 where you need single line so let me 5427 03:54:00,239 --> 03:54:01,800 duplicate this page and tell you where 5428 03:54:01,800 --> 03:54:03,680 you'll need it so let me duplicate and 5429 03:54:03,680 --> 03:54:05,279 let me call it 5430 03:54:05,279 --> 03:54:07,319 tagged 5431 03:54:07,319 --> 03:54:10,560 one and let me click on the visual and 5432 03:54:10,560 --> 03:54:12,120 make 5433 03:54:12,120 --> 03:54:16,359 it tagged bar now here if I 5434 03:54:16,359 --> 03:54:20,159 go I go down to the labels and this is 5435 03:54:20,159 --> 03:54:23,720 the place where I need it as single 5436 03:54:23,720 --> 03:54:26,080 line instead of multi-line I'll make it 5437 03:54:26,080 --> 03:54:27,840 a single line there is definitely 5438 03:54:27,840 --> 03:54:30,520 there's a difference which is very less 5439 03:54:30,520 --> 03:54:32,880 which you can adjust by giving different 5440 03:54:32,880 --> 03:54:35,600 colors or making it bold or italic so it 5441 03:54:35,600 --> 03:54:38,560 shows the differentiation between them 5442 03:54:38,560 --> 03:54:43,080 but this is something so the 5443 03:54:43,080 --> 03:54:46,159 sorting and the absolute value as well 5444 03:54:46,159 --> 03:54:47,800 as the percentage value is something 5445 03:54:47,800 --> 03:54:49,640 which was missing 5446 03:54:49,640 --> 03:54:52,840 altoe and which has been enabled in the 5447 03:54:52,840 --> 03:54:55,199 latest version of powerbi which is 5448 03:54:55,199 --> 03:54:58,680 December 2023 on which I'm recording and 5449 03:54:58,680 --> 03:55:00,800 now you can see how much difference it 5450 03:55:00,800 --> 03:55:03,800 creates now this visual is lock looking 5451 03:55:03,800 --> 03:55:05,800 all together different Visual and those 5452 03:55:05,800 --> 03:55:08,840 of you who has watched my video on 5453 03:55:08,840 --> 03:55:11,040 stagged bar in the past in the beginner 5454 03:55:11,040 --> 03:55:13,439 series those of you who has watched it 5455 03:55:13,439 --> 03:55:16,399 in the last here's full video go ahead 5456 03:55:16,399 --> 03:55:18,520 and compare that how much 5457 03:55:18,520 --> 03:55:21,920 differentiation it is created 5458 03:55:21,920 --> 03:55:24,359 so these are the property of the stagged 5459 03:55:24,359 --> 03:55:25,720 bar which we have played around so I'm 5460 03:55:25,720 --> 03:55:27,760 coming back to the first one again let 5461 03:55:27,760 --> 03:55:30,000 me click on it and let's see if we want 5462 03:55:30,000 --> 03:55:32,720 to explore some other properties also so 5463 03:55:32,720 --> 03:55:34,560 total labels is something again we want 5464 03:55:34,560 --> 03:55:37,720 to switch it on now total label is 5465 03:55:37,720 --> 03:55:41,640 basically the total which is and now we 5466 03:55:41,640 --> 03:55:43,319 have two more kind of stacked bar which 5467 03:55:43,319 --> 03:55:46,880 is 100% in the 100% it doesn't matter 5468 03:55:46,880 --> 03:55:48,800 okay the total only matters in this one 5469 03:55:48,800 --> 03:55:50,560 because how much is this total and how 5470 03:55:50,560 --> 03:55:52,840 much I'm percentage so 1.1 million is my 5471 03:55:52,840 --> 03:55:55,800 total and of that 1.1 million I am 5472 03:55:55,800 --> 03:56:00,520 around 68 million which is around 62 5473 03:56:00,520 --> 03:56:02,960 percentage and then again there are few 5474 03:56:02,960 --> 03:56:04,840 properties like you would like to have 5475 03:56:04,840 --> 03:56:07,359 you know color or a 5476 03:56:07,359 --> 03:56:09,720 background I switched on the background 5477 03:56:09,720 --> 03:56:12,120 then you can have a background color and 5478 03:56:12,120 --> 03:56:13,920 transparency right now it is auto 5479 03:56:13,920 --> 03:56:15,600 display you can say none if you want to 5480 03:56:15,600 --> 03:56:19,880 show the complete value or 5481 03:56:19,880 --> 03:56:22,040 thousands and split positive and 5482 03:56:22,040 --> 03:56:23,520 negative this one more option has been 5483 03:56:23,520 --> 03:56:26,239 given here so these are various 5484 03:56:26,239 --> 03:56:28,359 formatting options which can make it U 5485 03:56:28,359 --> 03:56:31,120 you know really look amazing and then we 5486 03:56:31,120 --> 03:56:32,880 have the if want image then we can have 5487 03:56:32,880 --> 03:56:34,520 plot background area and again you can 5488 03:56:34,520 --> 03:56:36,880 add reference lines plus button 5489 03:56:36,880 --> 03:56:38,279 reference line the only reference line 5490 03:56:38,279 --> 03:56:40,040 option we have in the stack bar is a 5491 03:56:40,040 --> 03:56:41,560 constant line so you can add a constant 5492 03:56:41,560 --> 03:56:43,960 line you can give a value now based on 5493 03:56:43,960 --> 03:56:45,359 the fil filtering the value will change 5494 03:56:45,359 --> 03:56:47,159 so better you use this FX button and 5495 03:56:47,159 --> 03:56:49,040 give a 5496 03:56:49,040 --> 03:56:51,479 major but right now just for our 5497 03:56:51,479 --> 03:56:53,560 understanding purpose I will give 5498 03:56:53,560 --> 03:56:56,960 it let's say 5499 03:56:56,960 --> 03:56:59,720 500,000 I got a line at 500,000 and I 5500 03:56:59,720 --> 03:57:02,080 can give a color and all those so 5501 03:57:02,080 --> 03:57:03,640 various reference lines are available 5502 03:57:03,640 --> 03:57:05,399 and we can use those now depending on 5503 03:57:05,399 --> 03:57:06,840 the visual these reference line keep on 5504 03:57:06,840 --> 03:57:09,640 changing those who are on the last 5505 03:57:09,640 --> 03:57:12,359 year's version those who have not opted 5506 03:57:12,359 --> 03:57:15,120 for these new changes there used to be a 5507 03:57:15,120 --> 03:57:17,880 separate section analytical pain and 5508 03:57:17,880 --> 03:57:19,600 inside that these options would be there 5509 03:57:19,600 --> 03:57:21,560 now these has been merged analytical 5510 03:57:21,560 --> 03:57:23,359 pain options have been merged inside the 5511 03:57:23,359 --> 03:57:25,960 visual properties only and then you have 5512 03:57:25,960 --> 03:57:27,920 the generic properties as usual they are 5513 03:57:27,920 --> 03:57:30,159 there as there are no differences I 5514 03:57:30,159 --> 03:57:33,000 would just leave them as is uh there is 5515 03:57:33,000 --> 03:57:34,960 nothing specific with the visual other 5516 03:57:34,960 --> 03:57:36,479 than you know you can switch in on or 5517 03:57:36,479 --> 03:57:39,720 switch off the tool tipe but a beautiful 5518 03:57:39,720 --> 03:57:42,479 tagged chart Visual and even the cluster 5519 03:57:42,479 --> 03:57:45,319 bar visual can be created ated with the 5520 03:57:45,319 --> 03:57:47,239 latest version of powerbi you have 5521 03:57:47,239 --> 03:57:49,080 learned about this stagged bar Visual 5522 03:57:49,080 --> 03:57:50,840 and it's 100% stagged bar visual there 5523 03:57:50,840 --> 03:57:53,120 is one more way these bar visuals can be 5524 03:57:53,120 --> 03:57:55,359 created so let me tell you so what we 5525 03:57:55,359 --> 03:57:58,399 can do is basically let's start with a 5526 03:57:58,399 --> 03:58:01,600 that column bar let me bring in brand 5527 03:58:01,600 --> 03:58:02,760 here on the 5528 03:58:02,760 --> 03:58:05,800 x-axis now what I can do here is and 5529 03:58:05,800 --> 03:58:07,199 what I said that you know staged is not 5530 03:58:07,199 --> 03:58:09,560 an staged unless you use Legend but 5531 03:58:09,560 --> 03:58:12,120 there is another possibility and what 5532 03:58:12,120 --> 03:58:15,199 that possibility is I can bring in 5533 03:58:15,199 --> 03:58:19,239 net as one of the major and I can bring 5534 03:58:19,239 --> 03:58:20,760 in margin so what is my net and margin 5535 03:58:20,760 --> 03:58:22,359 is my gross so this is basically my 5536 03:58:22,359 --> 03:58:24,760 gross and in this manner also I can 5537 03:58:24,760 --> 03:58:26,840 create a tagged bar 5538 03:58:26,840 --> 03:58:29,040 visual now definitely I can enable the 5539 03:58:29,040 --> 03:58:31,560 data label where I can get the values 5540 03:58:31,560 --> 03:58:33,600 and now if you have your margin 5541 03:58:33,600 --> 03:58:36,600 percentage and uh the net percentage 5542 03:58:36,600 --> 03:58:38,080 that could be another way to add few 5543 03:58:38,080 --> 03:58:40,159 more labels here but a stagged bar 5544 03:58:40,159 --> 03:58:42,279 visual can be created on two majors also 5545 03:58:42,279 --> 03:58:44,680 so if you don't want to use Legend 5546 03:58:44,680 --> 03:58:47,080 then you can create it on multiple 5547 03:58:47,080 --> 03:58:48,600 measures so either you can have multiple 5548 03:58:48,600 --> 03:58:50,640 measures or you can have Legend the 5549 03:58:50,640 --> 03:58:52,279 thing to remember here also is when you 5550 03:58:52,279 --> 03:58:53,920 use multiple measure also there is no 5551 03:58:53,920 --> 03:58:55,319 conditional formatting possible so in 5552 03:58:55,319 --> 03:58:57,760 case of staged you will not be able to 5553 03:58:57,760 --> 03:59:00,120 do the conditional formatting now one 5554 03:59:00,120 --> 03:59:01,399 more thing which we can do here is if 5555 03:59:01,399 --> 03:59:04,319 you want to make it 100% tagged column 5556 03:59:04,319 --> 03:59:06,520 chart you go here and it will start 5557 03:59:06,520 --> 03:59:07,880 showing you the percentage so these are 5558 03:59:07,880 --> 03:59:10,359 actually the percentage how much of the 5559 03:59:10,359 --> 03:59:13,000 gross the net is and how much the margin 5560 03:59:13,000 --> 03:59:15,479 is so so how much percentage the margin 5561 03:59:15,479 --> 03:59:17,800 is out of my gross and how much is net 5562 03:59:17,800 --> 03:59:19,279 so there are two options you can create 5563 03:59:19,279 --> 03:59:21,800 a stack B visual One is using the legend 5564 03:59:21,800 --> 03:59:24,120 and one is using multiple measur now I 5565 03:59:24,120 --> 03:59:26,199 can have more than one measure also so I 5566 03:59:26,199 --> 03:59:28,840 can actually can bring in cogs when I 5567 03:59:28,840 --> 03:59:31,600 bring in cogs basically net doesn't have 5568 03:59:31,600 --> 03:59:36,439 a value in that case I should have cost 5569 03:59:36,439 --> 03:59:39,199 discount and margin maybe these three 5570 03:59:39,199 --> 03:59:41,080 will contribute to 5571 03:59:41,080 --> 03:59:44,279 that in this manner I can bring in my 5572 03:59:44,279 --> 03:59:46,920 100% column stagged bar visual or tagged 5573 03:59:46,920 --> 03:59:50,399 column bar visual or tagged bar visual 5574 03:59:50,399 --> 03:59:52,880 or 100% 5575 03:59:52,880 --> 03:59:56,319 stagged bar Vis do so in this manner I 5576 03:59:56,319 --> 03:59:58,720 can have multiple such combinations with 5577 03:59:58,720 --> 04:00:01,720 more than one major also we would also 5578 04:00:01,720 --> 04:00:04,000 like to explore the 100% staged bar 5579 04:00:04,000 --> 04:00:06,880 visual so let me add a new page and let 5580 04:00:06,880 --> 04:00:10,960 me say 100p tag now again there would be 5581 04:00:10,960 --> 04:00:14,680 two versions one is basically the 100% 5582 04:00:14,680 --> 04:00:17,080 stack bar chart and 100% stack column 5583 04:00:17,080 --> 04:00:20,239 chart bar as well as column let me use 5584 04:00:20,239 --> 04:00:21,120 the 5585 04:00:21,120 --> 04:00:24,479 column and on the x-axis my favorite 5586 04:00:24,479 --> 04:00:28,600 brand on the y axis net and definitely 5587 04:00:28,600 --> 04:00:31,680 no stack is completed without a legend 5588 04:00:31,680 --> 04:00:34,080 need to add a legend and let me add as 5589 04:00:34,080 --> 04:00:36,960 category now rest of the things are same 5590 04:00:36,960 --> 04:00:38,760 but let's just quickly have a look at 5591 04:00:38,760 --> 04:00:41,199 xaxis do we have something additional no 5592 04:00:41,199 --> 04:00:42,680 Y axis do we have something additional 5593 04:00:42,680 --> 04:00:46,439 no Legend as usual the positions uh 5594 04:00:46,439 --> 04:00:48,040 small multiples we are not exploring 5595 04:00:48,040 --> 04:00:49,600 right now grid lines column let's comes 5596 04:00:49,600 --> 04:00:51,640 to the column and in the column we have 5597 04:00:51,640 --> 04:00:53,279 all the serieses where we can choose the 5598 04:00:53,279 --> 04:00:55,640 color border if you want to switch in on 5599 04:00:55,640 --> 04:00:57,680 the borders then we have the 5600 04:00:57,680 --> 04:01:00,000 layout and again this layout would be 5601 04:01:00,000 --> 04:01:01,960 more suitable we want it to have s by 5602 04:01:01,960 --> 04:01:04,520 values and reverse order we want the 5603 04:01:04,520 --> 04:01:06,479 highest value at the bottom and the 5604 04:01:06,479 --> 04:01:08,800 lowest value at the top space between 5605 04:01:08,800 --> 04:01:09,840 the 5606 04:01:09,840 --> 04:01:11,840 categories uh and space between the 5607 04:01:11,840 --> 04:01:12,960 series is something we are more 5608 04:01:12,960 --> 04:01:14,760 interested in it looks much 5609 04:01:14,760 --> 04:01:18,199 more flexible and maybe a little bit of 5610 04:01:18,199 --> 04:01:20,880 transparency in the color let's go down 5611 04:01:20,880 --> 04:01:22,800 to the data label again let's see what 5612 04:01:22,800 --> 04:01:26,040 all we have now so first thing is 5613 04:01:26,040 --> 04:01:29,000 series uh horizontal or vertical here we 5614 04:01:29,000 --> 04:01:32,600 can have it vertical uh position is auto 5615 04:01:32,600 --> 04:01:35,279 I prefer that overflow text let's allow 5616 04:01:35,279 --> 04:01:37,359 it so we can have I think horizontal 5617 04:01:37,359 --> 04:01:39,080 would be better here isn't it we could 5618 04:01:39,080 --> 04:01:40,640 get a value I was more worried about 5619 04:01:40,640 --> 04:01:42,000 this value which will go away in the 5620 04:01:42,000 --> 04:01:44,080 vertical horizontal is much better 5621 04:01:44,080 --> 04:01:46,279 option here I want to add a title and I 5622 04:01:46,279 --> 04:01:47,920 while I can showcase you what happens 5623 04:01:47,920 --> 04:01:49,960 when I add the title but this something 5624 04:01:49,960 --> 04:01:51,680 I'm not interested in as long as I have 5625 04:01:51,680 --> 04:01:54,680 the legend label but yeah value now here 5626 04:01:54,680 --> 04:01:57,199 it is always already a percentage so I 5627 04:01:57,199 --> 04:01:58,439 can add the 5628 04:01:58,439 --> 04:02:00,920 net now once I add the net it is 5629 04:02:00,920 --> 04:02:03,199 something which is uh not looking great 5630 04:02:03,199 --> 04:02:05,120 so let me go ahead and choose something 5631 04:02:05,120 --> 04:02:07,439 here I remove the decimal places and let 5632 04:02:07,439 --> 04:02:09,960 me make it a little bit smaller so now I 5633 04:02:09,960 --> 04:02:11,800 can see the net value here so net value 5634 04:02:11,800 --> 04:02:14,040 and how much percentage it is and what 5635 04:02:14,040 --> 04:02:15,680 is happening here seems like detail and 5636 04:02:15,680 --> 04:02:17,720 this value are changing automatically 5637 04:02:17,720 --> 04:02:20,120 along together they should have been 5638 04:02:20,120 --> 04:02:21,880 separate but seems like some issue and I 5639 04:02:21,880 --> 04:02:24,880 can make it tyun when it is not 5640 04:02:24,880 --> 04:02:26,920 zero let's give a little bit of 5641 04:02:26,920 --> 04:02:29,279 background so now what is happening both 5642 04:02:29,279 --> 04:02:32,399 the visuals the 100% stacked bar visual 5643 04:02:32,399 --> 04:02:33,960 as well as the stack visual can show you 5644 04:02:33,960 --> 04:02:36,080 percentage as well as the value now it's 5645 04:02:36,080 --> 04:02:38,120 your choice which one you wanted to use 5646 04:02:38,120 --> 04:02:41,159 you want to choose the 100% stack bar 5647 04:02:41,159 --> 04:02:44,080 visual or you want to choose the 5648 04:02:44,080 --> 04:02:45,720 normal bar Visual and then want to show 5649 04:02:45,720 --> 04:02:47,120 percentage I told you how to get a 5650 04:02:47,120 --> 04:02:50,000 measure for that which we will learn 5651 04:02:50,000 --> 04:02:52,159 when we go to the percentage of total 5652 04:02:52,159 --> 04:02:55,359 later and then multi-line or single line 5653 04:02:55,359 --> 04:02:56,720 have single line but if you make it 5654 04:02:56,720 --> 04:02:59,000 single line then make it vertical that's 5655 04:02:59,000 --> 04:03:00,399 look much better but it's going to take 5656 04:03:00,399 --> 04:03:01,680 a lot of space so I'm going to make it 5657 04:03:01,680 --> 04:03:03,960 horizontal and multi-line that is much 5658 04:03:03,960 --> 04:03:05,960 better in this 5659 04:03:05,960 --> 04:03:09,159 one now if we duplicate 5660 04:03:09,159 --> 04:03:12,760 this on this and we change it to 5661 04:03:12,760 --> 04:03:16,279 100% tag bar chart there we can go ahead 5662 04:03:16,279 --> 04:03:18,159 and make this data label out as instead 5663 04:03:18,159 --> 04:03:20,399 of multi-line we can make it single line 5664 04:03:20,399 --> 04:03:22,080 now it looks better 5665 04:03:22,080 --> 04:03:24,920 here plot area and background same thing 5666 04:03:24,920 --> 04:03:26,680 again reference line same thing we want 5667 04:03:26,680 --> 04:03:29,359 to add then we have only one option 5668 04:03:29,359 --> 04:03:31,439 constant line we can add constant line 5669 04:03:31,439 --> 04:03:34,680 if you want a value let's say 0.5 50% is 5670 04:03:34,680 --> 04:03:37,040 the one where I wanted the value to be 5671 04:03:37,040 --> 04:03:40,319 appearing and in this manner we can 100% 5672 04:03:40,319 --> 04:03:42,319 stack bar visual again the uses of the 5673 04:03:42,319 --> 04:03:45,239 stack bar visual will depend on your us 5674 04:03:45,239 --> 04:03:47,199 whether you need 100% stacked bar visual 5675 04:03:47,199 --> 04:03:49,960 or simple stacked bar now going to 5676 04:03:49,960 --> 04:03:51,760 create the pi visual so let me add 5677 04:03:51,760 --> 04:03:54,720 another page and in this page uh from 5678 04:03:54,720 --> 04:03:57,399 the build visual I'm going to add the P 5679 04:03:57,399 --> 04:03:59,760 Visual and we have a very similar visual 5680 04:03:59,760 --> 04:04:01,680 donut visual also so at the end I'll 5681 04:04:01,680 --> 04:04:04,359 just show you the donut visual so let me 5682 04:04:04,359 --> 04:04:07,159 click on the pi visual now when you have 5683 04:04:07,159 --> 04:04:09,640 the pi visual the options you have is 5684 04:04:09,640 --> 04:04:13,800 the legend value details and Tool tip a 5685 04:04:13,800 --> 04:04:15,399 pi visual can be created with a set of 5686 04:04:15,399 --> 04:04:19,640 Majors or Legend plus major so I'll tell 5687 04:04:19,640 --> 04:04:22,279 you first how to create a pi visual only 5688 04:04:22,279 --> 04:04:24,239 with measures this is something which 5689 04:04:24,239 --> 04:04:28,439 you might need I'll create with the 5690 04:04:28,439 --> 04:04:31,319 cogs 5691 04:04:31,319 --> 04:04:33,399 discount and 5692 04:04:33,399 --> 04:04:35,520 margin 5693 04:04:35,520 --> 04:04:38,760 okay the cost of goods sold discount and 5694 04:04:38,760 --> 04:04:40,199 margin I've have taken three Majors so 5695 04:04:40,199 --> 04:04:45,080 basically what I can do is I can take 5696 04:04:45,080 --> 04:04:48,800 net discount and 5697 04:04:49,680 --> 04:04:52,600 margin in this manner I can create a p 5698 04:04:52,600 --> 04:04:54,680 visual which can tell me how much each 5699 04:04:54,680 --> 04:04:57,120 of these things are getting contributed 5700 04:04:57,120 --> 04:04:58,880 and you are getting percentage so only 5701 04:04:58,880 --> 04:05:01,199 with the help of major I can create this 5702 04:05:01,199 --> 04:05:04,040 is one way of creating a p visual let me 5703 04:05:04,040 --> 04:05:06,680 move it aside let me add another P 5704 04:05:06,680 --> 04:05:09,120 visual now we can have another Pi visual 5705 04:05:09,120 --> 04:05:11,800 which basically I'm going to use Legend 5706 04:05:11,800 --> 04:05:14,520 This Time so let me use Cate as a legend 5707 04:05:14,520 --> 04:05:17,239 and ideally speaking because there's no 5708 04:05:17,239 --> 04:05:19,239 scrolling you can have in the pi visual 5709 04:05:19,239 --> 04:05:22,319 you should use only Pi to 10 categories 5710 04:05:22,319 --> 04:05:24,720 Max 15 categories in the pi visual more 5711 04:05:24,720 --> 04:05:27,920 than that it's overloading of Pi so I 5712 04:05:27,920 --> 04:05:30,199 drag the category and now I can drag a 5713 04:05:30,199 --> 04:05:33,159 majure now values you should avoid using 5714 04:05:33,159 --> 04:05:35,920 percentage column in this one because it 5715 04:05:35,920 --> 04:05:37,479 is further going to calculate percentage 5716 04:05:37,479 --> 04:05:39,239 of total of that so that's not a great 5717 04:05:39,239 --> 04:05:40,439 idea to 5718 04:05:40,439 --> 04:05:43,040 have so Pi visual has been created with 5719 04:05:43,040 --> 04:05:44,800 Legend uh can we have more than one 5720 04:05:44,800 --> 04:05:46,760 Legend so let me also drag brand on top 5721 04:05:46,760 --> 04:05:49,920 of it and as soon as I add brand the one 5722 04:05:49,920 --> 04:05:52,359 is the drill down structure has came now 5723 04:05:52,359 --> 04:05:54,120 I can go to the next level it is brand 5724 04:05:54,120 --> 04:05:57,279 wise come up I can expand both brand and 5725 04:05:57,279 --> 04:05:59,800 category would be available here so this 5726 04:05:59,800 --> 04:06:01,680 is one manner second is this brand 5727 04:06:01,680 --> 04:06:05,120 instead of having it in the legend I can 5728 04:06:05,120 --> 04:06:06,479 have the brand in the details I can 5729 04:06:06,479 --> 04:06:07,960 click on add data instead of dragging 5730 04:06:07,960 --> 04:06:09,120 and dropping 5731 04:06:09,120 --> 04:06:11,840 it and I can have it here now in this 5732 04:06:11,840 --> 04:06:13,279 case you can see they are not getting uh 5733 04:06:13,279 --> 04:06:15,479 different colors there is a distribution 5734 04:06:15,479 --> 04:06:17,319 of brand is coming inside the same color 5735 04:06:17,319 --> 04:06:19,640 of the category in this manner also you 5736 04:06:19,640 --> 04:06:21,880 can create it so this is one way and 5737 04:06:21,880 --> 04:06:24,239 let's keep them side by side so that you 5738 04:06:24,239 --> 04:06:26,000 can differentiate so this is one way 5739 04:06:26,000 --> 04:06:28,199 where and I'm where you have it and let 5740 04:06:28,199 --> 04:06:30,840 me duplicate it so and this is the 5741 04:06:30,840 --> 04:06:34,359 second way where we actually have the 5742 04:06:34,359 --> 04:06:40,920 brand as the second legent and we expand 5743 04:06:41,239 --> 04:06:45,040 it and you have this and you expand it 5744 04:06:45,040 --> 04:06:46,319 so these are the two meths here 5745 04:06:46,319 --> 04:06:47,479 everything is going to get different 5746 04:06:47,479 --> 04:06:49,560 color and here we have the same color in 5747 04:06:49,560 --> 04:06:51,720 which the brand split is there and when 5748 04:06:51,720 --> 04:06:53,800 you use the tool tip you'll be able to 5749 04:06:53,800 --> 04:06:56,680 see now let's play with the label now so 5750 04:06:56,680 --> 04:06:58,640 if you see by by default the detail 5751 04:06:58,640 --> 04:07:00,720 label is on and if you see the detail 5752 04:07:00,720 --> 04:07:02,279 label right now it is showing data value 5753 04:07:02,279 --> 04:07:03,880 and percentage this is same true for 5754 04:07:03,880 --> 04:07:05,920 here but if you go here you can say all 5755 04:07:05,920 --> 04:07:07,800 the labels and here you will be able to 5756 04:07:07,800 --> 04:07:10,560 get the brand name also so which brand 5757 04:07:10,560 --> 04:07:12,520 is there so within the category which 5758 04:07:12,520 --> 04:07:14,040 brand is there now 5759 04:07:14,040 --> 04:07:15,880 a same way if you go here and if you 5760 04:07:15,880 --> 04:07:18,120 enable all labels then you will also get 5761 04:07:18,120 --> 04:07:21,800 the the name major name and the value 5762 04:07:21,800 --> 04:07:22,800 and the 5763 04:07:22,800 --> 04:07:25,479 percentage now we'll keep the simple 5764 04:07:25,479 --> 04:07:27,560 visual let's me create one more copy and 5765 04:07:27,560 --> 04:07:28,479 here let 5766 04:07:28,479 --> 04:07:32,080 me remove the brand here and as you can 5767 04:07:32,080 --> 04:07:34,560 see we can get category the value and 5768 04:07:34,560 --> 04:07:36,080 the percentage value and we have the 5769 04:07:36,080 --> 04:07:38,800 various options like only data value 5770 04:07:38,800 --> 04:07:41,560 only percentage of total value or only 5771 04:07:41,560 --> 04:07:43,199 category level or all the details and 5772 04:07:43,199 --> 04:07:45,080 then right now it is outside you can say 5773 04:07:45,080 --> 04:07:47,439 inside and now everything can come 5774 04:07:47,439 --> 04:07:49,119 inside so you can always use prefer 5775 04:07:49,119 --> 04:07:50,800 inside or prefer outside so you can say 5776 04:07:50,800 --> 04:07:52,760 prefer inside or you can say prefer 5777 04:07:52,760 --> 04:07:55,040 outside so it will try to adjust some of 5778 04:07:55,040 --> 04:07:57,880 the things to get more values now this 5779 04:07:57,880 --> 04:07:59,520 is the detail label and inside the 5780 04:07:59,520 --> 04:08:01,159 values again you have the font you have 5781 04:08:01,159 --> 04:08:03,040 the color which you want to use 5782 04:08:03,040 --> 04:08:05,680 background is auto if you want on or off 5783 04:08:05,680 --> 04:08:08,119 you can say background is 5784 04:08:08,119 --> 04:08:10,680 on then display units is auto you can 5785 04:08:10,680 --> 04:08:13,080 say use none now this is for the value 5786 04:08:13,080 --> 04:08:14,680 so basic Bally then you have the value 5787 04:08:14,680 --> 04:08:16,159 decimal places because if the value is 5788 04:08:16,159 --> 04:08:17,640 an auto format about how many decimal 5789 04:08:17,640 --> 04:08:19,720 places it need to have then percentage 5790 04:08:19,720 --> 04:08:21,520 decimal place value also you can control 5791 04:08:21,520 --> 04:08:23,520 now it is one decimal it is two decimal 5792 04:08:23,520 --> 04:08:24,960 so all those you can control now 5793 04:08:24,960 --> 04:08:27,600 depending on the space the label may 5794 04:08:27,600 --> 04:08:29,199 come little bit less or more and then 5795 04:08:29,199 --> 04:08:31,319 dot dot dot might start coming then 5796 04:08:31,319 --> 04:08:32,760 there is something which is also known 5797 04:08:32,760 --> 04:08:34,800 as rotation now rotation is basically if 5798 04:08:34,800 --> 04:08:36,159 you see right now it's starting from 5799 04:08:36,159 --> 04:08:38,439 this position let me highlight that for 5800 04:08:38,439 --> 04:08:40,920 you right now it is starting from this 5801 04:08:40,920 --> 04:08:43,560 position now if I do the rotation here 5802 04:08:43,560 --> 04:08:45,920 here the position starting position is 5803 04:08:45,920 --> 04:08:47,560 changing now you can see that it is 5804 04:08:47,560 --> 04:08:49,040 starting from here 5805 04:08:49,040 --> 04:08:51,840 now same way I can completely rotate it 5806 04:08:51,840 --> 04:08:53,760 and if I rotate it 360 it will come at 5807 04:08:53,760 --> 04:08:56,560 the same place so this SK can be helpful 5808 04:08:56,560 --> 04:08:58,439 from where you are starting now let's 5809 04:08:58,439 --> 04:09:00,720 look at the other properties uh we 5810 04:09:00,720 --> 04:09:03,239 similarly we have a size and this 5811 04:09:03,239 --> 04:09:05,880 horizontal position property padding is 5812 04:09:05,880 --> 04:09:07,600 something how much padding we have in 5813 04:09:07,600 --> 04:09:09,560 the space which is available inside the 5814 04:09:09,560 --> 04:09:11,880 chart background on or off we can switch 5815 04:09:11,880 --> 04:09:13,800 it on and off or if you need background 5816 04:09:13,800 --> 04:09:15,720 we can change the color or we can change 5817 04:09:15,720 --> 04:09:18,479 the transparency if we have the color we 5818 04:09:18,479 --> 04:09:20,479 can increase or decrease the 5819 04:09:20,479 --> 04:09:22,319 transparency based on that is visual 5820 04:09:22,319 --> 04:09:23,920 border if you want a border now if I 5821 04:09:23,920 --> 04:09:25,720 come out none of them has border only 5822 04:09:25,720 --> 04:09:28,199 this one has a 5823 04:09:28,359 --> 04:09:31,119 border Shadow if you need Title the 5824 04:09:31,119 --> 04:09:33,560 title is already there we can have a 5825 04:09:33,560 --> 04:09:35,640 title and then we can have a subtitle 5826 04:09:35,640 --> 04:09:38,479 then divider and spacing as usual same 5827 04:09:38,479 --> 04:09:40,520 as other visual Legends again we can 5828 04:09:40,520 --> 04:09:42,880 have the position top right top left and 5829 04:09:42,880 --> 04:09:44,800 Center depending on the place you have 5830 04:09:44,800 --> 04:09:46,399 you can adjust it because right now I 5831 04:09:46,399 --> 04:09:48,520 created a little bit rectangular so I do 5832 04:09:48,520 --> 04:09:50,720 have a position in the center left or 5833 04:09:50,720 --> 04:09:52,960 center right that I can use then the 5834 04:09:52,960 --> 04:09:55,000 title again the title is right now 5835 04:09:55,000 --> 04:09:57,319 category you can change it to whatever 5836 04:09:57,319 --> 04:09:59,560 you want or or you can disable the title 5837 04:09:59,560 --> 04:10:01,520 here then slices for each slices you 5838 04:10:01,520 --> 04:10:04,279 have the color again the P visual use 5839 04:10:04,279 --> 04:10:08,040 Legend So in the slices you have the 5840 04:10:08,040 --> 04:10:09,479 color which you can choose you can 5841 04:10:09,479 --> 04:10:11,399 manually go ahead and change it uh 5842 04:10:11,399 --> 04:10:13,000 conditional formatting is not supported 5843 04:10:13,000 --> 04:10:15,080 but I will tell you later that you know 5844 04:10:15,080 --> 04:10:16,439 there is a work around to support 5845 04:10:16,439 --> 04:10:19,080 initial formatting in pi visual now 5846 04:10:19,080 --> 04:10:21,080 detailed labels we only option we have 5847 04:10:21,080 --> 04:10:23,680 is the label is detailed label and we 5848 04:10:23,680 --> 04:10:25,640 have certain set of options which we can 5849 04:10:25,640 --> 04:10:28,119 use then value and percentage formatting 5850 04:10:28,119 --> 04:10:30,040 we have done so this is py visual for 5851 04:10:30,040 --> 04:10:32,520 you so uh you can create it with Majors 5852 04:10:32,520 --> 04:10:35,080 you can create with Majors Legends 5853 04:10:35,080 --> 04:10:37,439 multiple Legends Legends and details all 5854 04:10:37,439 --> 04:10:40,040 those thing you can try out and finally 5855 04:10:40,040 --> 04:10:42,439 you can also have a donut instead of 5856 04:10:42,439 --> 04:10:45,720 this one so you can have the donut 5857 04:10:45,720 --> 04:10:49,000 instead of having the pi Visual and the 5858 04:10:49,000 --> 04:10:51,800 properties are almost similar so we have 5859 04:10:51,800 --> 04:10:53,760 title Legends inside that we have 5860 04:10:53,760 --> 04:10:57,920 options slices detail label we can have 5861 04:10:57,920 --> 04:11:00,640 rotation now sometime what we do we keep 5862 04:11:00,640 --> 04:11:03,080 this as a transparent and behind that we 5863 04:11:03,080 --> 04:11:05,319 keep a value in a card Visual and we 5864 04:11:05,319 --> 04:11:06,960 start showing that value so it start 5865 04:11:06,960 --> 04:11:08,279 showing like there is a value in the 5866 04:11:08,279 --> 04:11:11,479 middle that we can do and if you want to 5867 04:11:11,479 --> 04:11:12,960 add something additional on the tool tip 5868 04:11:12,960 --> 04:11:14,560 let's say margin percentage you can add 5869 04:11:14,560 --> 04:11:16,840 it and you will be able to 5870 04:11:16,840 --> 04:11:19,880 see let's add margin percentage we have 5871 04:11:19,880 --> 04:11:21,720 added margin margin percentage I'm 5872 04:11:21,720 --> 04:11:24,119 adding so you can have n number of such 5873 04:11:24,119 --> 04:11:26,800 uh things on the tool tip which you want 5874 04:11:26,800 --> 04:11:28,760 and then as usual the generic properties 5875 04:11:28,760 --> 04:11:30,600 you can switch off the tool tip and it 5876 04:11:30,600 --> 04:11:32,000 will not show the tool 5877 04:11:32,000 --> 04:11:34,840 tip let's experiment with a new visual 5878 04:11:34,840 --> 04:11:36,800 the visual which I want to experiment is 5879 04:11:36,800 --> 04:11:38,960 the three map visual so I'm going to add 5880 04:11:38,960 --> 04:11:41,800 a new page and let me rename it as 5881 04:11:41,800 --> 04:11:44,399 threee map some of the pages I'm 5882 04:11:44,399 --> 04:11:47,040 renaming even after closing down the 5883 04:11:47,040 --> 04:11:49,439 video for that particular visual so you 5884 04:11:49,439 --> 04:11:51,080 might find that some of the pages has 5885 04:11:51,080 --> 04:11:52,080 been 5886 04:11:52,080 --> 04:11:54,960 renamed so I click on tree map now tree 5887 04:11:54,960 --> 04:11:57,680 map is kind of a horizontal P the only 5888 04:11:57,680 --> 04:11:59,840 thing is it doesn't show you the 5889 04:11:59,840 --> 04:12:02,479 percentage so we have a category but 5890 04:12:02,479 --> 04:12:04,399 unlike P we don't have a legend concept 5891 04:12:04,399 --> 04:12:06,640 here we have the concept of category 5892 04:12:06,640 --> 04:12:09,720 details and values so first let's start 5893 04:12:09,720 --> 04:12:11,720 with category so we can say brand is my 5894 04:12:11,720 --> 04:12:14,479 category and net is my 5895 04:12:14,479 --> 04:12:17,279 value and then we can enable the data 5896 04:12:17,279 --> 04:12:19,399 labels so it starts showing the values 5897 04:12:19,399 --> 04:12:21,479 if you go down in the data labels it is 5898 04:12:21,479 --> 04:12:23,600 showing what values it's showing so 5899 04:12:23,600 --> 04:12:25,319 value display is Auto and you can see 5900 04:12:25,319 --> 04:12:28,600 the values are out here can see these 5901 04:12:28,600 --> 04:12:31,119 values you can not it down here now and 5902 04:12:31,119 --> 04:12:33,239 make it none so that you can see it in 5903 04:12:33,239 --> 04:12:35,720 the default format similarly you can 5904 04:12:35,720 --> 04:12:38,199 play around with the other properties 5905 04:12:38,199 --> 04:12:43,199 like font face bold italic underlying 5906 04:12:43,199 --> 04:12:48,159 Etc to make the labels appear little bit 5907 04:12:48,159 --> 04:12:50,199 differently now let's say in case I 5908 04:12:50,199 --> 04:12:51,880 wanted to have more than one level I can 5909 04:12:51,880 --> 04:12:53,680 go ahead and add category also and then 5910 04:12:53,680 --> 04:12:55,960 we have that option like next level only 5911 04:12:55,960 --> 04:12:58,279 on category or we can expand it so we 5912 04:12:58,279 --> 04:13:00,560 have both brand and category and in this 5913 04:13:00,560 --> 04:13:01,840 case you will get different different 5914 04:13:01,840 --> 04:13:04,560 colors now going going to the color you 5915 04:13:04,560 --> 04:13:07,199 have option like FX here so at least so 5916 04:13:07,199 --> 04:13:08,640 whenever you are using the categories 5917 04:13:08,640 --> 04:13:10,479 you can color it means you have the 5918 04:13:10,479 --> 04:13:12,279 single category uh then you can have the 5919 04:13:12,279 --> 04:13:14,560 brand colors using using the conditional 5920 04:13:14,560 --> 04:13:17,119 formatting so you can control on that 5921 04:13:17,119 --> 04:13:18,399 but definitely when I'm going to use 5922 04:13:18,399 --> 04:13:20,080 detail will I get that option or not so 5923 04:13:20,080 --> 04:13:21,720 let me remove category from here and let 5924 04:13:21,720 --> 04:13:25,279 me add category on the 5925 04:13:25,319 --> 04:13:27,800 details so once I add the category on 5926 04:13:27,800 --> 04:13:29,520 the details now you can see the FX 5927 04:13:29,520 --> 04:13:33,000 option is no more available for you to 5928 04:13:33,000 --> 04:13:36,319 do the conditional formatting and the 5929 04:13:36,319 --> 04:13:38,960 brand itself is cut down into multiple 5930 04:13:38,960 --> 04:13:40,279 categories and I'm getting the option 5931 04:13:40,279 --> 04:13:42,600 for categories and the values now here 5932 04:13:42,600 --> 04:13:44,479 in this place because I have now place 5933 04:13:44,479 --> 04:13:46,439 where you know a lot of values are there 5934 04:13:46,439 --> 04:13:48,880 so it's better to have a you know Auto 5935 04:13:48,880 --> 04:13:50,479 display so that you know the display 5936 04:13:50,479 --> 04:13:52,119 becomes smaller or maybe we can reduce 5937 04:13:52,119 --> 04:13:55,000 the font also and category labels are 5938 04:13:55,000 --> 04:13:56,359 also there these are the category labels 5939 04:13:56,359 --> 04:13:57,479 and we can reduce the font of the 5940 04:13:57,479 --> 04:14:00,920 category label also so the uh category 5941 04:14:00,920 --> 04:14:02,279 as well as detail label will become a 5942 04:14:02,279 --> 04:14:04,199 little bit smaller if we use the 5943 04:14:04,199 --> 04:14:06,800 category label here that's controlled by 5944 04:14:06,800 --> 04:14:08,439 here and then we can choose the color or 5945 04:14:08,439 --> 04:14:10,279 we can leave it whatever it is so these 5946 04:14:10,279 --> 04:14:11,800 are the various option again if you want 5947 04:14:11,800 --> 04:14:13,319 to have additional information on tool 5948 04:14:13,319 --> 04:14:17,319 tip you can add it on the tool 5949 04:14:17,319 --> 04:14:20,600 tip then we have size title Legends as 5950 04:14:20,600 --> 04:14:22,640 usual so Legends are off but you can add 5951 04:14:22,640 --> 04:14:24,520 the Legends if like Legend is nothing 5952 04:14:24,520 --> 04:14:26,600 but your category display so here you 5953 04:14:26,600 --> 04:14:28,880 are seeing that but definitely the 5954 04:14:28,880 --> 04:14:30,640 position seems to be very important here 5955 04:14:30,640 --> 04:14:33,119 this not conveying much of the message 5956 04:14:33,119 --> 04:14:35,800 so left center right is place where I 5957 04:14:35,800 --> 04:14:38,600 can put it it taking little space but at 5958 04:14:38,600 --> 04:14:40,800 least I'm able to see all the labels so 5959 04:14:40,800 --> 04:14:44,279 legend legend have a title here 5960 04:14:44,279 --> 04:14:45,560 if you want to switch off the title you 5961 04:14:45,560 --> 04:14:49,600 can switch it off there's no title here 5962 04:14:49,600 --> 04:14:52,159 now then we have data label which we 5963 04:14:52,159 --> 04:14:53,840 already explained and the value label as 5964 04:14:53,840 --> 04:14:55,199 well as the category label which we have 5965 04:14:55,199 --> 04:14:57,399 already explained so this is our tree 5966 04:14:57,399 --> 04:15:00,159 map visual let's now explore the line 5967 04:15:00,159 --> 04:15:02,080 visual I'm adding a new page and let me 5968 04:15:02,080 --> 04:15:03,279 rename it as 5969 04:15:03,279 --> 04:15:06,560 line so line visual is given here in the 5970 04:15:06,560 --> 04:15:08,720 build Visual and it is also available 5971 04:15:08,720 --> 04:15:11,560 here on the top insert in the homepage 5972 04:15:11,560 --> 04:15:13,399 from any of the place we can use it CLI 5973 04:15:13,399 --> 04:15:15,040 click on the line visual it will give 5974 04:15:15,040 --> 04:15:16,319 you a line visual let me make it a 5975 04:15:16,319 --> 04:15:18,479 little bit 5976 04:15:18,479 --> 04:15:21,720 larger we can have x-axis y AIS and 5977 04:15:21,720 --> 04:15:23,920 secondary y-axis now we have not used 5978 04:15:23,920 --> 04:15:25,279 the combo visual where we can have 5979 04:15:25,279 --> 04:15:27,479 secondary yaxis but line visual has been 5980 04:15:27,479 --> 04:15:29,080 enhanced in the past to have secondary 5981 04:15:29,080 --> 04:15:31,000 yis but here now there are limitations 5982 04:15:31,000 --> 04:15:33,159 like when you can use secondary yaxis 5983 04:15:33,159 --> 04:15:34,439 but so when you have multiple measure 5984 04:15:34,439 --> 04:15:36,080 you might not be able to use it when you 5985 04:15:36,080 --> 04:15:37,479 have Legend you might not be able to use 5986 04:15:37,479 --> 04:15:39,359 it so we have to explore that out first 5987 04:15:39,359 --> 04:15:41,840 start with very simple visual now unlike 5988 04:15:41,840 --> 04:15:43,359 some of the tools which doesn't allow 5989 04:15:43,359 --> 04:15:47,159 you align the non-time series visuals 5990 04:15:47,159 --> 04:15:48,520 means it's always need to be a Time 5991 04:15:48,520 --> 04:15:50,479 series kind of a visual in power B 5992 04:15:50,479 --> 04:15:52,479 there's no limitation in powerb I can 5993 04:15:52,479 --> 04:15:54,840 create aine chart just like a bar chart 5994 04:15:54,840 --> 04:15:56,640 so let's say I can have brand on my 5995 04:15:56,640 --> 04:15:59,119 x-axis and I can bring in net on the Y 5996 04:15:59,119 --> 04:16:00,760 AIS and I can have a line visual which 5997 04:16:00,760 --> 04:16:02,520 is very simple and again if I need more 5998 04:16:02,520 --> 04:16:04,479 than one line I can have that but line 5999 04:16:04,479 --> 04:16:06,159 visual is definitely more suited for 6000 04:16:06,159 --> 04:16:08,359 Trend so let's bring in date for that 6001 04:16:08,359 --> 04:16:10,000 I'm removing that and from the sales 6002 04:16:10,000 --> 04:16:12,279 table I'm bringing in date now as you 6003 04:16:12,279 --> 04:16:14,159 can see right now date is showing an 6004 04:16:14,159 --> 04:16:15,800 hierarchy and this is what we call Auto 6005 04:16:15,800 --> 04:16:17,359 time intelligence because of the auto 6006 04:16:17,359 --> 04:16:19,000 time intelligence thing showing the 6007 04:16:19,000 --> 04:16:21,640 hierarchy so there was an option in the 6008 04:16:21,640 --> 04:16:23,680 starting if you remember was Auto time 6009 04:16:23,680 --> 04:16:25,439 intelligence which we have not disabled 6010 04:16:25,439 --> 04:16:27,279 if you disable that that will not come 6011 04:16:27,279 --> 04:16:29,479 also right now we have not created a 6012 04:16:29,479 --> 04:16:31,119 date table but when I going to create a 6013 04:16:31,119 --> 04:16:32,520 date table and I'm going to join these 6014 04:16:32,520 --> 04:16:35,399 with date table if they are joining with 6015 04:16:35,399 --> 04:16:38,680 a table which is having a date this 6016 04:16:38,680 --> 04:16:40,560 column again going to join with a key 6017 04:16:40,560 --> 04:16:42,520 column then it will lose the date 6018 04:16:42,520 --> 04:16:43,479 hierarchy 6019 04:16:43,479 --> 04:16:45,680 so in case you wanted to continue to use 6020 04:16:45,680 --> 04:16:48,520 date hierarchy you can duplicate if this 6021 04:16:48,520 --> 04:16:50,600 column you're planning to join so let me 6022 04:16:50,600 --> 04:16:52,600 bring in that into the x-axis and as you 6023 04:16:52,600 --> 04:16:53,880 can see it is showing me a date 6024 04:16:53,880 --> 04:16:56,119 hierarchy now if I want to keep date 6025 04:16:56,119 --> 04:16:57,800 hierarchy it's fine I I will see these 6026 04:16:57,800 --> 04:17:00,239 options like you know drill up and drill 6027 04:17:00,239 --> 04:17:02,760 down so it can start with ear and then I 6028 04:17:02,760 --> 04:17:06,040 can you know further go down by press 6029 04:17:06,040 --> 04:17:07,000 drill 6030 04:17:07,000 --> 04:17:11,479 down by going like this or and drill 6031 04:17:11,479 --> 04:17:15,560 up or I have option to 6032 04:17:15,800 --> 04:17:18,600 expand and finally at Day level this is 6033 04:17:18,600 --> 04:17:20,880 what I can do or I can click on this 6034 04:17:20,880 --> 04:17:23,239 Arrow instead of date hierarchy I can 6035 04:17:23,239 --> 04:17:25,600 use simply sve date when I use the sve 6036 04:17:25,600 --> 04:17:26,920 date you will see you are still seeing 6037 04:17:26,920 --> 04:17:29,000 the same value but now you don't have a 6038 04:17:29,000 --> 04:17:31,040 drill up or drill down option so that 6039 04:17:31,040 --> 04:17:32,880 option is not available with you you are 6040 04:17:32,880 --> 04:17:35,040 getting is a continuous visual now what 6041 04:17:35,040 --> 04:17:37,319 is this continuous visual now this 6042 04:17:37,319 --> 04:17:39,040 continuous visual is possible both in 6043 04:17:39,040 --> 04:17:41,920 case of bar as well as line now this 6044 04:17:41,920 --> 04:17:44,239 continuous access is coming in x-axis we 6045 04:17:44,239 --> 04:17:46,560 have a type continuous and categoric now 6046 04:17:46,560 --> 04:17:48,640 when you have a date or you have a 6047 04:17:48,640 --> 04:17:50,520 number you can get this option 6048 04:17:50,520 --> 04:17:53,000 categorical and continuous access also 6049 04:17:53,000 --> 04:17:55,000 get this minimum maximum range in terms 6050 04:17:55,000 --> 04:17:57,560 of dates also which we have seen in the 6051 04:17:57,560 --> 04:17:59,279 y axis in terms of value we have the 6052 04:17:59,279 --> 04:18:02,439 minimum maximum range in terms of the 6053 04:18:02,439 --> 04:18:05,439 date now I can make it categorical and 6054 04:18:05,439 --> 04:18:07,319 now you can see all the dates and now we 6055 04:18:07,319 --> 04:18:08,399 have to make the access a little bit 6056 04:18:08,399 --> 04:18:10,800 bigger or we can change the format of 6057 04:18:10,800 --> 04:18:12,159 the date so right now the format of the 6058 04:18:12,159 --> 04:18:14,080 date is like such a big format I can 6059 04:18:14,080 --> 04:18:15,800 make it as a short date now I can see 6060 04:18:15,800 --> 04:18:17,560 each and every date and now because 6061 04:18:17,560 --> 04:18:19,319 visual is too big powerb is 6062 04:18:19,319 --> 04:18:22,159 automatically giving me scrolling it 6063 04:18:22,159 --> 04:18:24,080 can't fit in you remember when it was 6064 04:18:24,080 --> 04:18:26,000 continuous it do try to fit it into the 6065 04:18:26,000 --> 04:18:28,479 single page I can make it continuous and 6066 04:18:28,479 --> 04:18:30,600 categoric now the option of continuous 6067 04:18:30,600 --> 04:18:33,000 categorical is limited to date and the 6068 04:18:33,000 --> 04:18:35,000 numbers right now you're saying this is 6069 04:18:35,000 --> 04:18:36,319 coming in the ascending order but you 6070 04:18:36,319 --> 04:18:38,399 can use this invert AIS it will actually 6071 04:18:38,399 --> 04:18:40,600 start it in ascending order actually 6072 04:18:40,600 --> 04:18:42,119 when you have the continuous AIS you 6073 04:18:42,119 --> 04:18:43,680 don't have an option option to sort it 6074 04:18:43,680 --> 04:18:45,880 on the using the three dots so you can 6075 04:18:45,880 --> 04:18:48,000 use this invert access option now you 6076 04:18:48,000 --> 04:18:49,760 can go to the values inside the values 6077 04:18:49,760 --> 04:18:52,159 the values are right now on on the 6078 04:18:52,159 --> 04:18:54,239 x-axis if you want to hide those xaxis 6079 04:18:54,239 --> 04:18:56,319 value you can use this now again the 6080 04:18:56,319 --> 04:18:58,000 display is Auto and then you have a 6081 04:18:58,000 --> 04:18:59,680 title you want to remove the x-axis 6082 04:18:59,680 --> 04:19:01,600 title now you don't see any sales date 6083 04:19:01,600 --> 04:19:04,159 here on the 6084 04:19:04,159 --> 04:19:06,080 bottom now there's a sales date 6085 04:19:06,080 --> 04:19:07,800 similarly for y axis you have minimum 6086 04:19:07,800 --> 04:19:10,199 maximum range logarithmic axis if you 6087 04:19:10,199 --> 04:19:12,199 need invert range if you want to invert 6088 04:19:12,199 --> 04:19:15,319 the range on the top and 70k this case 6089 04:19:15,319 --> 04:19:18,680 at the bottom the direction has 6090 04:19:18,680 --> 04:19:21,840 changed let me invert it again again the 6091 04:19:21,840 --> 04:19:23,359 values you want to show the values or 6092 04:19:23,359 --> 04:19:25,439 not you can switch off the X's you can 6093 04:19:25,439 --> 04:19:27,080 pay attention to the Y axis there's no 6094 04:19:27,080 --> 04:19:29,560 values now again want to display unit 6095 04:19:29,560 --> 04:19:31,439 and everything title again we have the Y 6096 04:19:31,439 --> 04:19:34,159 AIS title we can disable the title 6097 04:19:34,159 --> 04:19:36,159 secondary yaxis this is important now 6098 04:19:36,159 --> 04:19:38,119 let's see we have two measures does it 6099 04:19:38,119 --> 04:19:39,479 allow us the third measure on the 6100 04:19:39,479 --> 04:19:41,520 secondary Y axis I try to drag the 6101 04:19:41,520 --> 04:19:43,479 discount on the secondary axis 6102 04:19:43,479 --> 04:19:45,840 and as you can see we have the discount 6103 04:19:45,840 --> 04:19:49,199 on the secondary y-axis but when we have 6104 04:19:49,199 --> 04:19:51,520 a legend let's say I try to bring in 6105 04:19:51,520 --> 04:19:53,239 category now I can't bring category on 6106 04:19:53,239 --> 04:19:55,640 the legend I remove the secondary yaxis 6107 04:19:55,640 --> 04:19:57,239 and I try to bring category on the 6108 04:19:57,239 --> 04:19:59,760 legend I can't bring it I can only have 6109 04:19:59,760 --> 04:20:01,760 the category as a legend when I only 6110 04:20:01,760 --> 04:20:03,840 have the one major let me try the 6111 04:20:03,840 --> 04:20:06,560 category along with the one major I have 6112 04:20:06,560 --> 04:20:08,680 the now categories at the legend but can 6113 04:20:08,680 --> 04:20:11,880 I have a secondary y-axis when I'm using 6114 04:20:11,880 --> 04:20:14,279 Legend so let me try to bring in Gross 6115 04:20:14,279 --> 04:20:17,199 on the secondary axis I can't so the cas 6116 04:20:17,199 --> 04:20:20,239 is when you are using a category you 6117 04:20:20,239 --> 04:20:23,279 can't use the line on the secondary 6118 04:20:23,279 --> 04:20:25,680 yaxis while if you're using a combo 6119 04:20:25,680 --> 04:20:28,319 visual like clustered bar line visual or 6120 04:20:28,319 --> 04:20:30,239 cluster stack bar visual you would be 6121 04:20:30,239 --> 04:20:32,159 allowed a line in the secondary yaxis 6122 04:20:32,159 --> 04:20:34,199 along with Legend but that's not allowed 6123 04:20:34,199 --> 04:20:35,840 in the line visual so that's the 6124 04:20:35,840 --> 04:20:37,720 limitation but yes if you have multiple 6125 04:20:37,720 --> 04:20:39,760 measures uh you can still have one of 6126 04:20:39,760 --> 04:20:42,159 them on the secondary Y axis let's bring 6127 04:20:42,159 --> 04:20:43,960 in multiple measures and try to see what 6128 04:20:43,960 --> 04:20:46,279 all secondary yaxis has to offer to us 6129 04:20:46,279 --> 04:20:47,640 and I'm bringing in cogs on the 6130 04:20:47,640 --> 04:20:49,760 secondary y axis and in case it doesn't 6131 04:20:49,760 --> 04:20:51,680 show you the secondary ya axis sometime 6132 04:20:51,680 --> 04:20:54,680 it happen that it might not show you so 6133 04:20:54,680 --> 04:20:56,880 what you can do here is basically enable 6134 04:20:56,880 --> 04:21:00,560 the values of the secondary yaxis so you 6135 04:21:00,560 --> 04:21:02,399 I have added the secondary yaxis so you 6136 04:21:02,399 --> 04:21:03,960 will be able to show usually what 6137 04:21:03,960 --> 04:21:05,920 happens is we columns like margin 6138 04:21:05,920 --> 04:21:07,680 percentage on the secondary Y axis which 6139 04:21:07,680 --> 04:21:09,399 have all together different range so 6140 04:21:09,399 --> 04:21:10,680 they create a different meaning now this 6141 04:21:10,680 --> 04:21:12,239 could be a really complex chart if we do 6142 04:21:12,239 --> 04:21:13,880 those things things we should try to 6143 04:21:13,880 --> 04:21:15,600 keep them as simple as possible so I 6144 04:21:15,600 --> 04:21:18,119 have removed one of them now again 6145 04:21:18,119 --> 04:21:20,040 because this line AIS is continuous you 6146 04:21:20,040 --> 04:21:22,239 have a lot of information out here then 6147 04:21:22,239 --> 04:21:25,159 we have the Legends as I've shown you 6148 04:21:25,159 --> 04:21:27,399 you can either use Legends or secondary 6149 04:21:27,399 --> 04:21:29,800 ya Axis or multiple majors and then 6150 04:21:29,800 --> 04:21:32,520 small multiples we'll check it later now 6151 04:21:32,520 --> 04:21:34,159 in the Legends when you are showing uh 6152 04:21:34,159 --> 04:21:37,159 the Legends can also be for the major 6153 04:21:37,159 --> 04:21:40,159 display it's not only the legend we can 6154 04:21:40,159 --> 04:21:41,880 check their change their position so 6155 04:21:41,880 --> 04:21:44,880 right I moved them into the 6156 04:21:44,880 --> 04:21:47,279 center then the text font you can change 6157 04:21:47,279 --> 04:21:48,760 the title you can switch it on and 6158 04:21:48,760 --> 04:21:51,560 switch it off like add Legend title I 6159 04:21:51,560 --> 04:21:53,159 can say it's 6160 04:21:53,159 --> 04:21:56,680 net by 6161 04:21:57,840 --> 04:22:00,439 date small multiples options are not 6162 04:22:00,439 --> 04:22:01,880 enabled because we are not using small 6163 04:22:01,880 --> 04:22:04,239 multiples grid lines in case we wanted 6164 04:22:04,239 --> 04:22:05,800 to have grid lines can increase the 6165 04:22:05,800 --> 04:22:07,600 width of the grid lines as you can see 6166 04:22:07,600 --> 04:22:09,479 now I think we need to use little bit 6167 04:22:09,479 --> 04:22:12,640 darker color to make them visible 6168 04:22:12,640 --> 04:22:14,720 we can have the vertical grid lines if 6169 04:22:14,720 --> 04:22:18,840 we need again we need to have color 6170 04:22:18,840 --> 04:22:20,239 darker color so we can have vertical 6171 04:22:20,239 --> 04:22:21,920 grid lines also 6172 04:22:21,920 --> 04:22:24,920 here Zoom slider to zoom your xaxis and 6173 04:22:24,920 --> 04:22:26,680 y axis now these are both continuous 6174 04:22:26,680 --> 04:22:28,319 axis so in both the axes you can have 6175 04:22:28,319 --> 04:22:30,640 the zoom slider and as you go down you 6176 04:22:30,640 --> 04:22:33,319 will be able to see 6177 04:22:33,319 --> 04:22:36,800 the dates 6178 04:22:36,800 --> 04:22:39,159 here so this is the advantage of Zoom 6179 04:22:39,159 --> 04:22:41,840 slider especially in the continuous AIS 6180 04:22:41,840 --> 04:22:44,560 you will be able to see the exactly 6181 04:22:44,560 --> 04:22:46,199 going down to the drill down to the 6182 04:22:46,199 --> 04:22:48,000 level and as we have already seen on the 6183 04:22:48,000 --> 04:22:50,279 y-axis you actually goad and see the 6184 04:22:50,279 --> 04:22:54,960 values on the y- axis by going 6185 04:22:54,960 --> 04:22:57,960 down now secondary Y axis also if you 6186 04:22:57,960 --> 04:22:59,560 need so Zoom slider I can have on the 6187 04:22:59,560 --> 04:23:02,880 secondary yaxis also slicer label and 6188 04:23:02,880 --> 04:23:04,880 Tool tip is few things which you can 6189 04:23:04,880 --> 04:23:06,800 enable and based on that 6190 04:23:06,800 --> 04:23:09,560 it's as you can see now there are two 6191 04:23:09,560 --> 04:23:11,560 set of information one which I initially 6192 04:23:11,560 --> 04:23:13,600 had and one which is is changing 6193 04:23:13,600 --> 04:23:16,199 over so all these things you can use I 6194 04:23:16,199 --> 04:23:18,399 going to disable the zoom slider as of 6195 04:23:18,399 --> 04:23:21,359 now now for each lines you can have you 6196 04:23:21,359 --> 04:23:23,720 know what color you want and everything 6197 04:23:23,720 --> 04:23:25,239 again conditional formatting is not 6198 04:23:25,239 --> 04:23:27,560 supported but uh uh if you go to the 6199 04:23:27,560 --> 04:23:29,119 color you will see the margin and net 6200 04:23:29,119 --> 04:23:32,000 you can have the colors even if you use 6201 04:23:32,000 --> 04:23:34,399 the one major like right now I'm only 6202 04:23:34,399 --> 04:23:36,319 using one major on Y axis still there is 6203 04:23:36,319 --> 04:23:38,479 no conditional formatting enable but 6204 04:23:38,479 --> 04:23:39,920 instead of conditional formatting you 6205 04:23:39,920 --> 04:23:42,560 have a color dot which you can get and 6206 04:23:42,560 --> 04:23:44,600 that you can get when you come back from 6207 04:23:44,600 --> 04:23:47,239 the bar visual by doing the conditional 6208 04:23:47,239 --> 04:23:49,119 formatting on bar visual which we'll see 6209 04:23:49,119 --> 04:23:50,960 later now there is something really 6210 04:23:50,960 --> 04:23:52,119 really interesting you can have the 6211 04:23:52,119 --> 04:23:53,760 markers you can switch on the markers 6212 04:23:53,760 --> 04:23:56,000 here and you will start seeing markers 6213 04:23:56,000 --> 04:23:58,840 marker properties have been changed and 6214 04:23:58,840 --> 04:24:00,760 once we are done with the line and the 6215 04:24:00,760 --> 04:24:04,520 scatter visual I will showcase you those 6216 04:24:04,520 --> 04:24:05,960 now you can play around with the size of 6217 04:24:05,960 --> 04:24:07,760 the marker and you know the shape of the 6218 04:24:07,760 --> 04:24:09,600 marker but there are more things which 6219 04:24:09,600 --> 04:24:11,119 you can do here is basically what you 6220 04:24:11,119 --> 04:24:13,800 can do is you can go to your line style 6221 04:24:13,800 --> 04:24:16,159 and here like right now the line style 6222 04:24:16,159 --> 04:24:17,720 because there's too much of data if I 6223 04:24:17,720 --> 04:24:19,640 choose the line change the line style 6224 04:24:19,640 --> 04:24:22,720 linear or smooth or stabbed stab 6225 04:24:22,720 --> 04:24:24,159 actually you will not be able to 6226 04:24:24,159 --> 04:24:27,000 actually see what means stab layout but 6227 04:24:27,000 --> 04:24:28,720 what you can do here is you can decrease 6228 04:24:28,720 --> 04:24:30,640 that width and ultimately you can 6229 04:24:30,640 --> 04:24:32,439 actually make it zero it will become 6230 04:24:32,439 --> 04:24:34,840 like a DOT chart now what you can do is 6231 04:24:34,840 --> 04:24:37,479 instead of doing it for both the series 6232 04:24:37,479 --> 04:24:39,000 what you can do here is you can go to 6233 04:24:39,000 --> 04:24:41,520 let's say margin and margin I have a 6234 04:24:41,520 --> 04:24:43,319 line and and I don't have a line for 6235 04:24:43,319 --> 04:24:46,359 let's say net so there's no line for the 6236 04:24:46,359 --> 04:24:48,720 net but there is a line for margin in 6237 04:24:48,720 --> 04:24:50,359 this manner you can play around now you 6238 04:24:50,359 --> 04:24:52,199 can make it completely dot visual or you 6239 04:24:52,199 --> 04:24:54,040 can have a DOT and especially like if 6240 04:24:54,040 --> 04:24:56,119 the majors are very nearby I can have 6241 04:24:56,119 --> 04:24:58,600 line one of the line without marker so 6242 04:24:58,600 --> 04:25:00,119 what we can do is marker right now is 6243 04:25:00,119 --> 04:25:03,239 for all the series I can go to the 6244 04:25:03,239 --> 04:25:04,800 margin now because I have the line in 6245 04:25:04,800 --> 04:25:07,399 the margin and I can say show marker off 6246 04:25:07,399 --> 04:25:09,479 so now what is happening here is the 6247 04:25:09,479 --> 04:25:12,439 margin is only having the line and there 6248 04:25:12,439 --> 04:25:14,840 are Net series which is only having the 6249 04:25:14,840 --> 04:25:17,279 dot now this is the play around you can 6250 04:25:17,279 --> 04:25:19,119 do and this is especially going to be a 6251 04:25:19,119 --> 04:25:20,880 little bit helpful when you create the 6252 04:25:20,880 --> 04:25:23,040 visual like line stack bar Visual and 6253 04:25:23,040 --> 04:25:25,159 line clustered bar visual where you can 6254 04:25:25,159 --> 04:25:27,000 make your line to 6255 04:25:27,000 --> 04:25:29,040 disappear and you can leave just leave 6256 04:25:29,040 --> 04:25:30,319 the 6257 04:25:30,319 --> 04:25:32,720 markers so that can create more 6258 04:25:32,720 --> 04:25:35,119 combination again the marker colors you 6259 04:25:35,119 --> 04:25:37,359 can control and change the marker color 6260 04:25:37,359 --> 04:25:39,239 depending on like right now I'm based on 6261 04:25:39,239 --> 04:25:41,319 the series I can change but you have 6262 04:25:41,319 --> 04:25:43,279 when you select all the it's not there 6263 04:25:43,279 --> 04:25:44,760 one functionality which is there show 6264 04:25:44,760 --> 04:25:48,040 all now if I switch it on on a 6265 04:25:48,040 --> 04:25:49,560 particular date I can show a different 6266 04:25:49,560 --> 04:25:51,520 color of marker that flexibility is 6267 04:25:51,520 --> 04:25:52,560 there with 6268 04:25:52,560 --> 04:25:55,040 us now this would be too many outside 6269 04:25:55,040 --> 04:25:56,960 the dot now but on a smaller data it 6270 04:25:56,960 --> 04:25:59,720 will do going to make a sense uh that we 6271 04:25:59,720 --> 04:26:02,399 have a different 6272 04:26:03,239 --> 04:26:05,560 color but let me switch it off but you 6273 04:26:05,560 --> 04:26:07,520 have that kind of flexibility here on 6274 04:26:07,520 --> 04:26:09,760 the smaller value then the data label we 6275 04:26:09,760 --> 04:26:11,920 can switch in on the data label and the 6276 04:26:11,920 --> 04:26:13,960 data label have all things like we can 6277 04:26:13,960 --> 04:26:15,520 have title also along with the data 6278 04:26:15,520 --> 04:26:17,640 label the values can be controlled we 6279 04:26:17,640 --> 04:26:19,520 can have a different value basically in 6280 04:26:19,520 --> 04:26:21,439 the label so I can have a different 6281 04:26:21,439 --> 04:26:24,840 value of I'm not using gross here but I 6282 04:26:24,840 --> 04:26:28,680 can use a gross in the value so the 6283 04:26:28,680 --> 04:26:30,680 gross will get added in the label 6284 04:26:30,680 --> 04:26:32,840 instead of net and then I can add a 6285 04:26:32,840 --> 04:26:36,479 detail I can have another column in the 6286 04:26:36,479 --> 04:26:39,279 detail it will start showing two values 6287 04:26:39,279 --> 04:26:41,199 in this case we can have a complicated 6288 04:26:41,199 --> 04:26:43,080 value display and then then again single 6289 04:26:43,080 --> 04:26:44,960 line or multiple line I think in this 6290 04:26:44,960 --> 04:26:46,439 case it's better to have multiple line 6291 04:26:46,439 --> 04:26:48,319 because you have too much of information 6292 04:26:48,319 --> 04:26:50,199 but again uh we have to control the 6293 04:26:50,199 --> 04:26:52,680 density uh here because the line chart 6294 04:26:52,680 --> 04:26:57,439 is too busy can duplicate 6295 04:26:57,720 --> 04:27:00,920 this here let's go back to the 6296 04:27:00,920 --> 04:27:02,840 visualization and make it 6297 04:27:02,840 --> 04:27:05,040 as date 6298 04:27:05,040 --> 04:27:09,119 hery and let's scoll down only one now 6299 04:27:09,119 --> 04:27:11,159 this is the place where you can have you 6300 04:27:11,159 --> 04:27:13,000 can play around much with the labels we 6301 04:27:13,000 --> 04:27:15,520 have the gross value you have net value 6302 04:27:15,520 --> 04:27:17,479 so we are displaying the net values then 6303 04:27:17,479 --> 04:27:19,199 we can add the details in the details we 6304 04:27:19,199 --> 04:27:20,479 can add 6305 04:27:20,479 --> 04:27:23,560 the discount percentage value I'm adding 6306 04:27:23,560 --> 04:27:25,720 a discount percentage also so I'm add 6307 04:27:25,720 --> 04:27:27,239 adding these values and you can see 6308 04:27:27,239 --> 04:27:29,159 these values 6309 04:27:29,159 --> 04:27:31,680 here then we can have a background to 6310 04:27:31,680 --> 04:27:34,840 these labels and now as you can see here 6311 04:27:34,840 --> 04:27:37,000 when I see the margin the percentage 6312 04:27:37,000 --> 04:27:39,199 seems better but not along with this one 6313 04:27:39,199 --> 04:27:41,439 so let's go down and and we go to 6314 04:27:41,439 --> 04:27:42,960 discount percentage p and we will say 6315 04:27:42,960 --> 04:27:46,600 none so it will follow that format and 6316 04:27:46,600 --> 04:27:48,359 if I go to the values again I can say 6317 04:27:48,359 --> 04:27:51,600 none so it will follow the actual 6318 04:27:51,600 --> 04:27:54,800 format this is net and discount net and 6319 04:27:54,800 --> 04:27:56,279 margin this is net and discount 6320 04:27:56,279 --> 04:27:57,840 percentage this is also net and discount 6321 04:27:57,840 --> 04:28:01,119 percentage so the two labels are shown 6322 04:28:01,119 --> 04:28:03,239 for both the serieses and if you want to 6323 04:28:03,239 --> 04:28:05,960 control that in instead of each one you 6324 04:28:05,960 --> 04:28:07,560 can choose one particular series for 6325 04:28:07,560 --> 04:28:09,239 which you want to decide whether you 6326 04:28:09,239 --> 04:28:10,720 want to have a title or not so like see 6327 04:28:10,720 --> 04:28:13,080 I've added a title only for the below 6328 04:28:13,080 --> 04:28:16,159 series now in the values do I want to 6329 04:28:16,159 --> 04:28:18,640 have this net value or not and do I want 6330 04:28:18,640 --> 04:28:19,880 to have details let's say I don't want 6331 04:28:19,880 --> 04:28:21,520 to have details in the Net 6332 04:28:21,520 --> 04:28:24,040 series I don't want to have background 6333 04:28:24,040 --> 04:28:25,279 or I want to have background with a 6334 04:28:25,279 --> 04:28:26,560 little bit different color in the Net 6335 04:28:26,560 --> 04:28:28,560 series so that I can do I have a 6336 04:28:28,560 --> 04:28:30,239 different color background or let me 6337 04:28:30,239 --> 04:28:32,800 change it a little bit different so in 6338 04:28:32,800 --> 04:28:34,720 this manner what's happening I can 6339 04:28:34,720 --> 04:28:37,119 control the label of both the series 6340 04:28:37,119 --> 04:28:39,000 separately and I can display different 6341 04:28:39,000 --> 04:28:42,520 kind of information for each series now 6342 04:28:42,520 --> 04:28:44,159 series labels if you want to switch it 6343 04:28:44,159 --> 04:28:46,520 on so series label is something which is 6344 04:28:46,520 --> 04:28:48,439 shown at the end of the line if you see 6345 04:28:48,439 --> 04:28:50,399 here we have seeing margin and here we 6346 04:28:50,399 --> 04:28:52,040 are seeing net now there is no line we 6347 04:28:52,040 --> 04:28:53,600 have made the line width as zero that's 6348 04:28:53,600 --> 04:28:55,399 why though the last value is appearing 6349 04:28:55,399 --> 04:28:57,119 here so at the last value these series 6350 04:28:57,119 --> 04:28:58,960 labels are shown now again you can 6351 04:28:58,960 --> 04:29:00,680 control like you know what you wanted 6352 04:29:00,680 --> 04:29:03,279 for the net value so you go to the net 6353 04:29:03,279 --> 04:29:06,439 value what color you want and what do 6354 04:29:06,439 --> 04:29:07,680 you want a background so I given a 6355 04:29:07,680 --> 04:29:08,800 background on the net there is no 6356 04:29:08,800 --> 04:29:12,439 background on the margin percentage 6357 04:29:12,439 --> 04:29:14,640 so this is one thing basically when you 6358 04:29:14,640 --> 04:29:16,000 have multiple lines at the end of the 6359 04:29:16,000 --> 04:29:18,159 line you want it to show what the label 6360 04:29:18,159 --> 04:29:20,399 of the line and you want toase the 6361 04:29:20,399 --> 04:29:23,000 information 6362 04:29:24,680 --> 04:29:27,000 there background again I have enabled 6363 04:29:27,000 --> 04:29:29,199 and then you can change the transparency 6364 04:29:29,199 --> 04:29:30,920 plot background area we have seen we can 6365 04:29:30,920 --> 04:29:33,040 add the image here again reference lines 6366 04:29:33,040 --> 04:29:36,119 there are multiple option now x-axis 6367 04:29:36,119 --> 04:29:37,760 constant Line This Is Something xais 6368 04:29:37,760 --> 04:29:39,399 constant line is going to appear when 6369 04:29:39,399 --> 04:29:40,720 you have 6370 04:29:40,720 --> 04:29:44,520 the number numbers or the dates and like 6371 04:29:44,520 --> 04:29:46,399 on a particular date I wanted to have a 6372 04:29:46,399 --> 04:29:49,159 line and I can add multiple such lines 6373 04:29:49,159 --> 04:29:52,359 so this data is from 201819 so I can say 6374 04:29:52,359 --> 04:29:55,520 Okay I want a March 1 March I wanted to 6375 04:29:55,520 --> 04:29:57,159 have a line you can see there is a line 6376 04:29:57,159 --> 04:29:59,279 on the 1 March I can get and then you 6377 04:29:59,279 --> 04:30:01,319 want to have let's say one more line you 6378 04:30:01,319 --> 04:30:03,040 can add one more line and now you can 6379 04:30:03,040 --> 04:30:04,840 click and see this is my one line This 6380 04:30:04,840 --> 04:30:07,159 is my another line here again I choose 6381 04:30:07,159 --> 04:30:10,319 XX constant line then in the line I'll 6382 04:30:10,319 --> 04:30:13,239 go ahead and give a value so 6383 04:30:13,239 --> 04:30:17,680 I'll go to again 2019 let's say December 6384 04:30:17,680 --> 04:30:20,199 31st I got another line so I can have 6385 04:30:20,199 --> 04:30:22,680 these multiple kind of lines and then 6386 04:30:22,680 --> 04:30:24,920 definitely color line font actually 6387 04:30:24,920 --> 04:30:28,279 shaded area on so that particular line 6388 04:30:28,279 --> 04:30:30,560 can have the area before that line is a 6389 04:30:30,560 --> 04:30:33,040 shaded so what we can do is we go to the 6390 04:30:33,040 --> 04:30:34,279 Shaded 6391 04:30:34,279 --> 04:30:37,040 area and this is before or after I can 6392 04:30:37,040 --> 04:30:39,159 do what I can do is I can make this 6393 04:30:39,159 --> 04:30:42,279 color a little bit more transparent 6394 04:30:42,279 --> 04:30:44,359 and now let me do one thing I click on 6395 04:30:44,359 --> 04:30:47,119 this particular line the one before it 6396 04:30:47,119 --> 04:30:48,960 now I again switch on the Shaded area 6397 04:30:48,960 --> 04:30:51,680 now before and now you can see this is 6398 04:30:51,680 --> 04:30:53,359 I'm able to differentiate between this 6399 04:30:53,359 --> 04:30:56,279 area and this area just the way I have 6400 04:30:56,279 --> 04:30:58,399 done the shading in this manner I'm able 6401 04:30:58,399 --> 04:31:00,600 to loate and now what I can do is I can 6402 04:31:00,600 --> 04:31:03,239 also change the color a little bit and I 6403 04:31:03,239 --> 04:31:05,239 can increase the transparency also now 6404 04:31:05,239 --> 04:31:07,479 you're able to see the two shaded areas 6405 04:31:07,479 --> 04:31:09,560 so this can help us to give the Shaded 6406 04:31:09,560 --> 04:31:11,520 area between the lines so you can 6407 04:31:11,520 --> 04:31:14,119 utilize this this is especially useful 6408 04:31:14,119 --> 04:31:15,800 when you are using the kind of visual 6409 04:31:15,800 --> 04:31:18,560 where we have the x-axis constant line 6410 04:31:18,560 --> 04:31:21,479 those which are on Dat date and those of 6411 04:31:21,479 --> 04:31:23,080 which are on the number you should be 6412 04:31:23,080 --> 04:31:25,319 able to get these now again you have the 6413 04:31:25,319 --> 04:31:27,680 data label option here label is for the 6414 04:31:27,680 --> 04:31:30,279 lines so you can have the so whenever 6415 04:31:30,279 --> 04:31:32,000 these lines are there you can see there 6416 04:31:32,000 --> 04:31:33,840 should be some data lab this is the data 6417 04:31:33,840 --> 04:31:36,119 label the date which is appearing on 6418 04:31:36,119 --> 04:31:39,359 which date actually it is there now 6419 04:31:39,359 --> 04:31:42,439 right left above data Value Auto all 6420 04:31:42,439 --> 04:31:44,720 these things are there so if I disable 6421 04:31:44,720 --> 04:31:47,520 the data label you will see that now the 6422 04:31:47,520 --> 04:31:50,319 line is not showing what date it is but 6423 04:31:50,319 --> 04:31:52,119 I can have the data label 6424 04:31:52,119 --> 04:31:55,319 enabled I can say right hand side have 6425 04:31:55,319 --> 04:31:57,279 the one data label and this is for each 6426 04:31:57,279 --> 04:31:59,800 line so I enabled for the one line and 6427 04:31:59,800 --> 04:32:01,680 now I go back and enable the data label 6428 04:32:01,680 --> 04:32:03,640 for another line for both the lines I 6429 04:32:03,640 --> 04:32:06,040 have the data label then we have error 6430 04:32:06,040 --> 04:32:07,960 bars we have already experimented with 6431 04:32:07,960 --> 04:32:09,279 that if you want you can enable those 6432 04:32:09,279 --> 04:32:11,600 error bars and then you have to choose 6433 04:32:11,600 --> 04:32:14,800 up bound lower bound and all those and 6434 04:32:14,800 --> 04:32:17,080 then finally you have find anomalies 6435 04:32:17,080 --> 04:32:19,159 which is not enabled right now based on 6436 04:32:19,159 --> 04:32:21,040 what our selections are we rename this 6437 04:32:21,040 --> 04:32:24,399 as line one so these are the various 6438 04:32:24,399 --> 04:32:26,479 stuff you can do with the line visual 6439 04:32:26,479 --> 04:32:28,040 let's have a quick look at the area 6440 04:32:28,040 --> 04:32:30,880 visual area visual is very similar to 6441 04:32:30,880 --> 04:32:33,720 the line Visual and we have two kind of 6442 04:32:33,720 --> 04:32:36,279 area visuals one is area chart like line 6443 04:32:36,279 --> 04:32:38,279 visual with the Shaded and then we have 6444 04:32:38,279 --> 04:32:40,479 a St DDI chart so let's explore these 6445 04:32:40,479 --> 04:32:44,080 two so I'll click on area chart on the 6446 04:32:44,080 --> 04:32:47,279 build a visual or I can click the same 6447 04:32:47,279 --> 04:32:50,800 in the insert portion of the Home tab to 6448 04:32:50,800 --> 04:32:52,560 get 6449 04:32:52,560 --> 04:32:57,640 it I'll add brand from the item 6450 04:32:58,040 --> 04:33:02,319 here and net major from the base 6451 04:33:02,319 --> 04:33:06,639 majors and as you can see I got a chart 6452 04:33:06,639 --> 04:33:08,480 where I have a shaded portion below 6453 04:33:08,480 --> 04:33:10,760 again I can have multiple columns on 6454 04:33:10,760 --> 04:33:14,119 x-axis I can have a secondary y- AIS I 6455 04:33:14,119 --> 04:33:16,680 can have a legend and similar kind of 6456 04:33:16,680 --> 04:33:19,119 limitations what we have seen on the 6457 04:33:19,119 --> 04:33:21,561 line chart would apply also here so 6458 04:33:21,561 --> 04:33:23,119 let's quickly see what happens when we 6459 04:33:23,119 --> 04:33:25,520 put a legend when I put a legend here 6460 04:33:25,520 --> 04:33:27,080 you will be able to see multiple line 6461 04:33:27,080 --> 04:33:29,600 now usually when you create area visual 6462 04:33:29,600 --> 04:33:32,080 with the date access then you will have 6463 04:33:32,080 --> 04:33:34,879 continuous data even for categories and 6464 04:33:34,879 --> 04:33:37,840 in such cases this visual will look much 6465 04:33:37,840 --> 04:33:40,240 better because you will be able to see 6466 04:33:40,240 --> 04:33:43,119 continuous lines for each categories now 6467 04:33:43,119 --> 04:33:45,760 in this case because each brand does not 6468 04:33:45,760 --> 04:33:49,359 hold every category you are seeing those 6469 04:33:49,359 --> 04:33:52,959 discontinuous areas and it is not 6470 04:33:52,959 --> 04:33:54,680 conveying the message you wanted to 6471 04:33:54,680 --> 04:33:56,920 convey using this particular visual so 6472 04:33:56,920 --> 04:33:59,920 in this case because not all brands have 6473 04:33:59,920 --> 04:34:01,879 all the categories doesn't look so great 6474 04:34:01,879 --> 04:34:03,959 we will take a example later now 6475 04:34:03,959 --> 04:34:06,199 similarly I can also add a major on the 6476 04:34:06,199 --> 04:34:08,199 secondary AIS and test it out so I go to 6477 04:34:08,199 --> 04:34:10,080 drive measure and put margin percentage 6478 04:34:10,080 --> 04:34:12,160 on the secondary AIS and now now you can 6479 04:34:12,160 --> 04:34:15,000 see there are two area charts and one of 6480 04:34:15,000 --> 04:34:17,680 them is appearing on the secondary 6481 04:34:17,680 --> 04:34:21,760 axis I can also go ahead and enhance my 6482 04:34:21,760 --> 04:34:24,279 x-axis by adding another category now 6483 04:34:24,279 --> 04:34:26,240 moment I add the category the default 6484 04:34:26,240 --> 04:34:29,199 option is concate label off which we 6485 04:34:29,199 --> 04:34:32,959 have seen in the line visual also and 6486 04:34:32,959 --> 04:34:36,039 sort ascending but we can go ahead and 6487 04:34:36,039 --> 04:34:39,160 change the setting if 6488 04:34:39,160 --> 04:34:41,879 required if you don't want this expanded 6489 04:34:41,879 --> 04:34:44,680 we can actually use the drill up button 6490 04:34:44,680 --> 04:34:46,160 and 6491 04:34:46,160 --> 04:34:50,799 can go up to the hery we'll see only 6492 04:34:50,799 --> 04:34:53,199 brand then we can either do drill down 6493 04:34:53,199 --> 04:34:54,840 we can go to the next level by looking 6494 04:34:54,840 --> 04:34:57,520 at category or we can have expanded mode 6495 04:34:57,520 --> 04:34:59,520 like we got 6496 04:34:59,520 --> 04:35:02,119 initially now I'm going to open the 6497 04:35:02,119 --> 04:35:04,080 format pane on the the right hand side 6498 04:35:04,080 --> 04:35:06,480 pane because of my settings I'm able to 6499 04:35:06,480 --> 04:35:10,000 see format pain here and we can go ahead 6500 04:35:10,000 --> 04:35:11,680 and look at what all options are 6501 04:35:11,680 --> 04:35:14,879 available here size and style are the 6502 04:35:14,879 --> 04:35:16,959 common options which we have padding of 6503 04:35:16,959 --> 04:35:20,199 the visual uh inside this one how much 6504 04:35:20,199 --> 04:35:22,320 we want like from top and bottom we want 6505 04:35:22,320 --> 04:35:25,000 to reduce something we have background 6506 04:35:25,000 --> 04:35:27,400 if you want a background I we can switch 6507 04:35:27,400 --> 04:35:30,080 it off if there is transparency which we 6508 04:35:30,080 --> 04:35:31,799 need which is 100% if you don't have 6509 04:35:31,799 --> 04:35:33,199 background it will also act like a 6510 04:35:33,199 --> 04:35:36,199 transparent one visual Border in case we 6511 04:35:36,199 --> 04:35:38,959 need the Border shadow in case we need 6512 04:35:38,959 --> 04:35:40,680 Shadow these options we have explored in 6513 04:35:40,680 --> 04:35:43,600 other visual same as other visuals we 6514 04:35:43,600 --> 04:35:45,840 have title again you can use a measure 6515 04:35:45,840 --> 04:35:47,920 inside the title you can set headings 6516 04:35:47,920 --> 04:35:51,359 font you can also have a subtitle you 6517 04:35:51,359 --> 04:35:53,400 can use the divider to have a line 6518 04:35:53,400 --> 04:35:56,799 between the title subtitle and the 6519 04:35:56,799 --> 04:35:59,719 visual and you can change the spacing 6520 04:35:59,719 --> 04:36:02,039 between the line and the label and you 6521 04:36:02,039 --> 04:36:05,920 can customize spacing if required xais 6522 04:36:05,920 --> 04:36:08,439 on x-axis you can disable the values if 6523 04:36:08,439 --> 04:36:10,199 you want like I don't know to say 6524 04:36:10,199 --> 04:36:12,439 whatever it is you can have visual like 6525 04:36:12,439 --> 04:36:14,799 that you can enable that then you can 6526 04:36:14,799 --> 04:36:16,760 only disable the x-axis title which is 6527 04:36:16,760 --> 04:36:18,439 category is only missing if you pay 6528 04:36:18,439 --> 04:36:21,959 attention here I'll enable it 6529 04:36:21,959 --> 04:36:25,000 again same way for y-axis you have 6530 04:36:25,000 --> 04:36:27,160 options like minim and Max where you can 6531 04:36:27,160 --> 04:36:29,039 use measures because FX button is there 6532 04:36:29,039 --> 04:36:31,119 you can give static values you can make 6533 04:36:31,119 --> 04:36:33,119 it as a logarithmic scale if your values 6534 04:36:33,119 --> 04:36:35,279 have too much of difference usually we 6535 04:36:35,279 --> 04:36:38,439 use logarithmic scales let say one value 6536 04:36:38,439 --> 04:36:40,080 is pretty large and another are pretty 6537 04:36:40,080 --> 04:36:42,920 small then in such is logarithmic scale 6538 04:36:42,920 --> 04:36:45,240 and give us a better fit visual which 6539 04:36:45,240 --> 04:36:47,119 will be able to showcase the smaller 6540 04:36:47,119 --> 04:36:49,080 values little bit larger because of 6541 04:36:49,080 --> 04:36:51,719 logarithmic scale we can invert the AIS 6542 04:36:51,719 --> 04:36:53,600 the smaller values on the top the larger 6543 04:36:53,600 --> 04:36:54,719 value 6544 04:36:54,719 --> 04:36:56,799 down then we have 6545 04:36:56,799 --> 04:36:59,359 values which we can hide on the y axis 6546 04:36:59,359 --> 04:37:01,240 if you can see now there is no values 6547 04:37:01,240 --> 04:37:03,840 which is up here near to the net there's 6548 04:37:03,840 --> 04:37:07,039 no values here again we have option for 6549 04:37:07,039 --> 04:37:09,920 font color which we can 6550 04:37:09,920 --> 04:37:12,480 change again color 6551 04:37:12,480 --> 04:37:15,719 of the values can be based on a measure 6552 04:37:15,719 --> 04:37:17,320 title if you want to disable the title 6553 04:37:17,320 --> 04:37:18,600 you don't want to show the title you can 6554 04:37:18,600 --> 04:37:20,240 do that secondary AIS if we have 6555 04:37:20,240 --> 04:37:22,160 secondary AIS we can set up the 6556 04:37:22,160 --> 04:37:24,039 properties for that if you're using 6557 04:37:24,039 --> 04:37:27,119 Legend what position you want the legend 6558 04:37:27,119 --> 04:37:29,520 then text of the legend you can have 6559 04:37:29,520 --> 04:37:31,879 font title of the legend you can enable 6560 04:37:31,879 --> 04:37:34,840 disable smart M multiple we'll try in 6561 04:37:34,840 --> 04:37:37,119 little bit later grid lines in case you 6562 04:37:37,119 --> 04:37:39,320 need grid lines you horizontal grid 6563 04:37:39,320 --> 04:37:41,760 lines is enabled but if I vertical grid 6564 04:37:41,760 --> 04:37:43,080 line again I have to make them little 6565 04:37:43,080 --> 04:37:46,639 bit larger for you to 6566 04:37:46,840 --> 04:37:50,439 see this is vertical grid line 6567 04:37:50,439 --> 04:37:53,359 for the access have zoom slider which we 6568 04:37:53,359 --> 04:37:55,480 have already explained in other visuals 6569 04:37:55,480 --> 04:37:58,000 but we can have a zoom slider and once 6570 04:37:58,000 --> 04:37:59,359 you have the zoom slider you will be 6571 04:37:59,359 --> 04:38:02,879 able to zoom the 6572 04:38:05,039 --> 04:38:07,959 values then we have line option again 6573 04:38:07,959 --> 04:38:10,320 area chart is definitely an extension of 6574 04:38:10,320 --> 04:38:11,959 line chart with the shade 6575 04:38:11,959 --> 04:38:13,279 but you can go ahead and play with the 6576 04:38:13,279 --> 04:38:15,799 Shaded area at transparency here as you 6577 04:38:15,799 --> 04:38:18,799 can see I'm using margin and net again 6578 04:38:18,799 --> 04:38:20,719 just like line visual I am not having 6579 04:38:20,719 --> 04:38:23,400 any option to conditional format 6580 04:38:23,400 --> 04:38:25,840 it and then again stroke which is 6581 04:38:25,840 --> 04:38:27,080 something which you can play around you 6582 04:38:27,080 --> 04:38:29,799 can make it zero so there would be no 6583 04:38:29,799 --> 04:38:31,520 line in that case I have done it for 6584 04:38:31,520 --> 04:38:34,039 both and then transparency you can 6585 04:38:34,039 --> 04:38:37,600 increase or decrease or you can go ahead 6586 04:38:37,600 --> 04:38:40,561 and choose individual line let's say if 6587 04:38:40,561 --> 04:38:42,879 I choose net and and for net I can have 6588 04:38:42,879 --> 04:38:45,439 line there is no shaded area option for 6589 04:38:45,439 --> 04:38:47,520 individual it means the Shaded area 6590 04:38:47,520 --> 04:38:51,000 transparency can only be handled at the 6591 04:38:51,000 --> 04:38:53,320 all level not at the individual series 6592 04:38:53,320 --> 04:38:55,080 level then we have markers just like 6593 04:38:55,080 --> 04:38:56,719 line visual we can enable the markers 6594 04:38:56,719 --> 04:38:58,639 we'll get dots in the above one as you 6595 04:38:58,639 --> 04:39:00,480 can see we don't have the line but we 6596 04:39:00,480 --> 04:39:03,000 still have the dots then we have the 6597 04:39:03,000 --> 04:39:05,400 size of the dot which we can increase or 6598 04:39:05,400 --> 04:39:08,080 decrease then color if we want to change 6599 04:39:08,080 --> 04:39:10,520 the color from the default one data 6600 04:39:10,520 --> 04:39:12,000 labels if you want to enable the data 6601 04:39:12,000 --> 04:39:14,160 label this chart is having too many 6602 04:39:14,160 --> 04:39:16,080 values it is looking busy so you can say 6603 04:39:16,080 --> 04:39:18,160 okay I don't need it for all the cies 6604 04:39:18,160 --> 04:39:20,039 you can disable it for one of the series 6605 04:39:20,039 --> 04:39:23,119 position you can decide Auto above under 6606 04:39:23,119 --> 04:39:26,240 then you have the leader lines we have 6607 04:39:26,240 --> 04:39:27,920 concept of leader lines which we will 6608 04:39:27,920 --> 04:39:29,879 explain you a little bit 6609 04:39:29,879 --> 04:39:32,879 later under the data label we can enable 6610 04:39:32,879 --> 04:39:34,959 or disable data label by margin so let's 6611 04:39:34,959 --> 04:39:37,680 say for net I can disable the data label 6612 04:39:37,680 --> 04:39:39,798 I for margin I can continue to have the 6613 04:39:39,798 --> 04:39:41,878 data labels and there's some is really 6614 04:39:41,878 --> 04:39:44,000 interesting that is leader lines so I 6615 04:39:44,000 --> 04:39:46,080 can enable that to see those leader 6616 04:39:46,080 --> 04:39:48,798 lines you have to at least give 25 to 30 6617 04:39:48,798 --> 04:39:51,240 as a minimum offset then you will will 6618 04:39:51,240 --> 04:39:54,320 get a noticeable lines so as you can see 6619 04:39:54,320 --> 04:39:57,200 I have set the value at 35 and now I can 6620 04:39:57,200 --> 04:39:59,760 see these lines and as you can see these 6621 04:39:59,760 --> 04:40:02,840 lines move your values little bit up in 6622 04:40:02,840 --> 04:40:05,798 case of the label and that's allows you 6623 04:40:05,798 --> 04:40:09,440 to see these values in a much better way 6624 04:40:09,440 --> 04:40:11,440 this feature actually creates a visual 6625 04:40:11,440 --> 04:40:14,480 connection between the each data point 6626 04:40:14,480 --> 04:40:17,520 and its corresponding labels and because 6627 04:40:17,520 --> 04:40:18,760 of this feature you will have better 6628 04:40:18,760 --> 04:40:20,560 experience as you can see values little 6629 04:40:20,560 --> 04:40:22,240 bit away and then there is a connection 6630 04:40:22,240 --> 04:40:24,878 you can have the values under and above 6631 04:40:24,878 --> 04:40:27,120 as you want like if it is under then the 6632 04:40:27,120 --> 04:40:29,638 leader lines will go down and if it is 6633 04:40:29,638 --> 04:40:32,480 above the leader lines will go on the 6634 04:40:32,480 --> 04:40:34,840 upside in case you want title on the 6635 04:40:34,840 --> 04:40:36,878 label you can have title but in this 6636 04:40:36,878 --> 04:40:38,400 case because I have too many values it's 6637 04:40:38,400 --> 04:40:40,520 look busy but these are some of the new 6638 04:40:40,520 --> 04:40:42,840 enhancement which has come where we can 6639 04:40:42,840 --> 04:40:46,240 have title where we can have value and 6640 04:40:46,240 --> 04:40:48,878 values could be a major 6641 04:40:48,878 --> 04:40:51,798 driven Valu so though it is margin but 6642 04:40:51,798 --> 04:40:54,120 actually I can go ahead and put discount 6643 04:40:54,120 --> 04:40:55,798 percentage I'll start seeing discount 6644 04:40:55,798 --> 04:40:57,480 percentage so these what we are called 6645 04:40:57,480 --> 04:41:00,760 the major driven label then we have 6646 04:41:00,760 --> 04:41:02,480 details if you want to add details you 6647 04:41:02,480 --> 04:41:04,360 can add another major let's say I now 6648 04:41:04,360 --> 04:41:06,680 along with margin I want to add discount 6649 04:41:06,680 --> 04:41:09,360 I can add it and then I have formatting 6650 04:41:09,360 --> 04:41:11,958 option transparency and all that and in 6651 04:41:11,958 --> 04:41:14,000 the layout we can want to show them in 6652 04:41:14,000 --> 04:41:16,000 single line or multiple line all those I 6653 04:41:16,000 --> 04:41:16,958 can 6654 04:41:16,958 --> 04:41:19,320 decide so right now I'll remove the 6655 04:41:19,320 --> 04:41:21,600 details we don't need it for this 6656 04:41:21,600 --> 04:41:23,798 particular visual similarly you have 6657 04:41:23,798 --> 04:41:26,240 series label if we can enable the series 6658 04:41:26,240 --> 04:41:27,878 label and as you can see the series 6659 04:41:27,878 --> 04:41:30,480 labels are available at the end if you 6660 04:41:30,480 --> 04:41:32,638 want you can disable particular series 6661 04:41:32,638 --> 04:41:34,718 label let's say I want to disable net 6662 04:41:34,718 --> 04:41:37,400 and as you notice now that there is no 6663 04:41:37,400 --> 04:41:39,680 label for net there is only label for 6664 04:41:39,680 --> 04:41:41,520 margin percentage you can can play 6665 04:41:41,520 --> 04:41:43,560 around with the values you can play 6666 04:41:43,560 --> 04:41:45,000 around with the background if needed 6667 04:41:45,000 --> 04:41:46,638 then we have the plot area background 6668 04:41:46,638 --> 04:41:49,200 where we can have image if needed and 6669 04:41:49,200 --> 04:41:51,000 the reference lines as we have added in 6670 04:41:51,000 --> 04:41:52,798 other visuals we can also have reference 6671 04:41:52,798 --> 04:41:55,280 line here and those reference line could 6672 04:41:55,280 --> 04:41:58,480 be of y-axis constant line Main Line MAX 6673 04:41:58,480 --> 04:42:00,560 Line average line median line percentage 6674 04:42:00,560 --> 04:42:02,878 line these lines keep on changing based 6675 04:42:02,878 --> 04:42:04,798 on the visual you are using I've named 6676 04:42:04,798 --> 04:42:07,600 it as area quickly create a stagged area 6677 04:42:07,600 --> 04:42:10,360 visual I click on a new page and here 6678 04:42:10,360 --> 04:42:12,958 I'll add this tagged area in this tagged 6679 04:42:12,958 --> 04:42:14,920 area again there are two ways to create 6680 04:42:14,920 --> 04:42:17,638 either I could have x-axis and legend or 6681 04:42:17,638 --> 04:42:19,200 I can have multiple measures so let's 6682 04:42:19,200 --> 04:42:23,400 say I wanted to have X brand on the 6683 04:42:23,400 --> 04:42:27,080 x-axis and then I can have 6684 04:42:27,080 --> 04:42:29,958 net on the y axis and along with I can 6685 04:42:29,958 --> 04:42:32,560 have let's say 6686 04:42:32,878 --> 04:42:35,600 margin let's say create an equalent of 6687 04:42:35,600 --> 04:42:39,638 gross or in case I don't want it to have 6688 04:42:39,638 --> 04:42:43,000 the double I can use Legend also to have 6689 04:42:43,000 --> 04:42:44,840 this Ted area this will not look great 6690 04:42:44,840 --> 04:42:47,120 again for this purpose I need to have 6691 04:42:47,120 --> 04:42:49,320 something like date here for looking 6692 04:42:49,320 --> 04:42:51,600 really good so let me go to the sales 6693 04:42:51,600 --> 04:42:54,200 and let me bring in sales date here and 6694 04:42:54,200 --> 04:42:56,120 once you have the trend you can see that 6695 04:42:56,120 --> 04:42:58,400 it looks much better and let me remove 6696 04:42:58,400 --> 04:43:00,440 and make it only a year quarter as you 6697 04:43:00,440 --> 04:43:03,080 can see now it looks much better area 6698 04:43:03,080 --> 04:43:05,638 visual again we have the similar kind of 6699 04:43:05,638 --> 04:43:08,040 format properties which we can play 6700 04:43:08,040 --> 04:43:11,120 around because I'm using the date Fe 6701 04:43:11,120 --> 04:43:12,798 field I am getting the access as 6702 04:43:12,798 --> 04:43:14,920 continuous option I can also choose for 6703 04:43:14,920 --> 04:43:17,240 a categorical option where I get the 6704 04:43:17,240 --> 04:43:19,920 categorical values I can change add 6705 04:43:19,920 --> 04:43:22,360 remove titles on the y axis I can play 6706 04:43:22,360 --> 04:43:25,520 around with the range I can in the text 6707 04:43:25,520 --> 04:43:28,280 font title same way I can play around 6708 04:43:28,280 --> 04:43:31,000 with Legends and red lines Etc same 6709 04:43:31,000 --> 04:43:32,920 options are available for this visual 6710 04:43:32,920 --> 04:43:35,400 also again because I'm using Legend you 6711 04:43:35,400 --> 04:43:36,878 don't see any conditional formatting 6712 04:43:36,878 --> 04:43:39,160 option anyway we don't have any 6713 04:43:39,160 --> 04:43:40,520 conditional formatting option in the 6714 04:43:40,520 --> 04:43:41,600 area visual 6715 04:43:41,600 --> 04:43:43,040 later when we go to the conditional 6716 04:43:43,040 --> 04:43:45,160 formatting I'll also let you know how 6717 04:43:45,160 --> 04:43:47,280 can you color dots in case of line and 6718 04:43:47,280 --> 04:43:48,200 area 6719 04:43:48,200 --> 04:43:50,360 visuals and if there is a shade 6720 04:43:50,360 --> 04:43:52,040 transparency you want to control you can 6721 04:43:52,040 --> 04:43:54,680 do that we can little bit control it 6722 04:43:54,680 --> 04:43:58,600 like this or little bit lighter you can 6723 04:43:58,600 --> 04:44:00,000 increase the transparency or you can 6724 04:44:00,000 --> 04:44:02,320 decrease the transparency manner you can 6725 04:44:02,320 --> 04:44:08,240 create area and stacked area visuals or 6726 04:44:09,840 --> 04:44:13,400 charts now let's discuss scatter visual 6727 04:44:13,400 --> 04:44:15,120 in the scatter visual what we are going 6728 04:44:15,120 --> 04:44:16,840 to do is we are going to discuss the 6729 04:44:16,840 --> 04:44:19,240 scatter visual right now when we go to 6730 04:44:19,240 --> 04:44:20,840 conditional formatting we will learn 6731 04:44:20,840 --> 04:44:24,600 about the quadrant part of it and also 6732 04:44:24,600 --> 04:44:26,400 regarding the markers what we are going 6733 04:44:26,400 --> 04:44:28,520 to do is marker properties we have a 6734 04:44:28,520 --> 04:44:31,000 separate video on marker properties 6735 04:44:31,000 --> 04:44:32,878 there we are going to explore marker 6736 04:44:32,878 --> 04:44:35,560 properties in detail so I'm going to add 6737 04:44:35,560 --> 04:44:39,320 a new page and on that new page I will 6738 04:44:39,320 --> 04:44:41,680 add this scatter visual scatter visual 6739 04:44:41,680 --> 04:44:44,200 is available here in the middle click on 6740 04:44:44,200 --> 04:44:47,760 that now scatter visual have many types 6741 04:44:47,760 --> 04:44:49,760 the best way to create a scatter visual 6742 04:44:49,760 --> 04:44:52,520 is having both x-axis and y axis as a 6743 04:44:52,520 --> 04:44:54,840 measure but there's a possibility of 6744 04:44:54,840 --> 04:44:58,080 having a scatter visual without having a 6745 04:44:58,080 --> 04:45:01,440 measure on XA so let me first give you 6746 04:45:01,440 --> 04:45:04,320 that example so I will take brand from 6747 04:45:04,320 --> 04:45:07,320 item I put that on xaxis and then I take 6748 04:45:07,320 --> 04:45:09,120 a measure let's say margin percentage 6749 04:45:09,120 --> 04:45:11,600 and I put on y- axis this kind of become 6750 04:45:11,600 --> 04:45:14,840 a DOT chart in line chart if you only 6751 04:45:14,840 --> 04:45:17,718 have the markers and you don't have a 6752 04:45:17,718 --> 04:45:20,160 line you will get something like that 6753 04:45:20,160 --> 04:45:22,560 another Advantage which we will get over 6754 04:45:22,560 --> 04:45:24,878 the line marker here is I can go ahead 6755 04:45:24,878 --> 04:45:27,400 and have here a size for that what I can 6756 04:45:27,400 --> 04:45:30,320 do here is I can put gross on the size 6757 04:45:30,320 --> 04:45:32,680 so you can have smaller and larger 6758 04:45:32,680 --> 04:45:35,440 bubbles so this is one way you can 6759 04:45:35,440 --> 04:45:39,680 create it then I have play AIS tool tips 6760 04:45:39,680 --> 04:45:41,840 now play acces might not applicable for 6761 04:45:41,840 --> 04:45:43,958 the current scenario what we are going 6762 04:45:43,958 --> 04:45:46,080 to do here before we move forward and 6763 04:45:46,080 --> 04:45:47,878 move to the scenario where we have both 6764 04:45:47,878 --> 04:45:53,000 xaxis and y axis on the major let's move 6765 04:45:53,000 --> 04:45:53,958 them 6766 04:45:53,958 --> 04:45:57,280 around now we have a CER visual on brand 6767 04:45:57,280 --> 04:45:59,440 and margin percentage can we swep can we 6768 04:45:59,440 --> 04:46:02,160 have brand also on Y axis so let's try 6769 04:46:02,160 --> 04:46:03,878 that out let me remove the brand from 6770 04:46:03,878 --> 04:46:07,878 the x-axis and margin from the Y AIS and 6771 04:46:07,878 --> 04:46:10,400 let me see if I can have brand on the y- 6772 04:46:10,400 --> 04:46:12,958 axis no I'm not able to have it so it 6773 04:46:12,958 --> 04:46:15,600 means the possibility of me having a 6774 04:46:15,600 --> 04:46:17,920 brand on the y- axis is not there let me 6775 04:46:17,920 --> 04:46:21,000 remove the size again and try so brand 6776 04:46:21,000 --> 04:46:24,040 on the Y AIS so that's not possible I'm 6777 04:46:24,040 --> 04:46:25,878 not able to do now what I'm going to do 6778 04:46:25,878 --> 04:46:27,798 is the next thing which I wanted to play 6779 04:46:27,798 --> 04:46:30,680 around is having x-axis as a major let's 6780 04:46:30,680 --> 04:46:32,718 say discount percentage Y axis as a 6781 04:46:32,718 --> 04:46:35,718 major and that is margin percentage so 6782 04:46:35,718 --> 04:46:38,400 we have the majors now major cannot give 6783 04:46:38,400 --> 04:46:41,160 me a a dotted chart for that I need it's 6784 04:46:41,160 --> 04:46:43,320 definitely something which gives me 6785 04:46:43,320 --> 04:46:46,520 those series for series I can drag in 6786 04:46:46,520 --> 04:46:49,200 City out here City on the values if I 6787 04:46:49,200 --> 04:46:51,680 drag you will be able to see the dots 6788 04:46:51,680 --> 04:46:54,080 again for size I can drag in Gross here 6789 04:46:54,080 --> 04:46:56,878 onto the size and for size we have the 6790 04:46:56,878 --> 04:46:59,400 format where we can you know play around 6791 04:46:59,400 --> 04:47:02,120 and you know make the size smaller or 6792 04:47:02,120 --> 04:47:05,360 larger so marker is that for that and 6793 04:47:05,360 --> 04:47:07,360 usually when you have these kind of 6794 04:47:07,360 --> 04:47:10,920 stuff I have find out that minus 27 28 6795 04:47:10,920 --> 04:47:13,520 or - 30 is a little better suitable size 6796 04:47:13,520 --> 04:47:16,280 so let me go to- 27 so now this is a 6797 04:47:16,280 --> 04:47:18,000 little better size in terms of what we 6798 04:47:18,000 --> 04:47:20,120 want it to have and then we have 6799 04:47:20,120 --> 04:47:21,600 different kind of shapes which we can 6800 04:47:21,600 --> 04:47:24,200 take in the marker so marker can control 6801 04:47:24,200 --> 04:47:26,080 this size and the bubble and we can have 6802 04:47:26,080 --> 04:47:28,120 different kind of bubbles also now do we 6803 04:47:28,120 --> 04:47:30,638 want it for all categories or single 6804 04:47:30,638 --> 04:47:33,320 category that also we can play around so 6805 04:47:33,320 --> 04:47:36,200 that is with the size now you can also 6806 04:47:36,200 --> 04:47:39,240 have the conditional formatting done on 6807 04:47:39,240 --> 04:47:42,400 these Bubbles and for that you have the 6808 04:47:42,400 --> 04:47:45,320 option available under markers only if 6809 04:47:45,320 --> 04:47:47,080 you go to the marker color you can see 6810 04:47:47,080 --> 04:47:49,520 the f sign here it means I can use a 6811 04:47:49,520 --> 04:47:51,958 measure out here that we'll explore 6812 04:47:51,958 --> 04:47:53,558 little later in the conditional 6813 04:47:53,558 --> 04:47:55,920 formatting I can have a legend and once 6814 04:47:55,920 --> 04:47:58,080 I have a legend then I will not be able 6815 04:47:58,080 --> 04:48:01,760 to change the color of the marker using 6816 04:48:01,760 --> 04:48:03,400 conditional formatting so let's say if I 6817 04:48:03,400 --> 04:48:07,040 want to have a category as my 6818 04:48:07,040 --> 04:48:09,680 Legend you can see for each category I 6819 04:48:09,680 --> 04:48:12,558 have color but inside the color of the 6820 04:48:12,558 --> 04:48:15,160 marker now you don't have any option to 6821 04:48:15,160 --> 04:48:17,958 change the marker color dynamically 6822 04:48:17,958 --> 04:48:20,638 using the conditional formatting but it 6823 04:48:20,638 --> 04:48:23,520 allows you to have the both city as well 6824 04:48:23,520 --> 04:48:26,400 as the category in one particular Visual 6825 04:48:26,400 --> 04:48:28,840 and have the data at the city category 6826 04:48:28,840 --> 04:48:31,040 level or you can have City Brand level 6827 04:48:31,040 --> 04:48:32,878 State Brand level at that level you can 6828 04:48:32,878 --> 04:48:35,280 have data so you can add more detail by 6829 04:48:35,280 --> 04:48:37,958 using legend or you can also do let's 6830 04:48:37,958 --> 04:48:40,280 say we drag the category inside the 6831 04:48:40,280 --> 04:48:41,798 values 6832 04:48:41,798 --> 04:48:44,680 only so I dragged it and then we can 6833 04:48:44,680 --> 04:48:47,320 expand it the moment you have more than 6834 04:48:47,320 --> 04:48:49,798 one value in the values again the same 6835 04:48:49,798 --> 04:48:52,280 way you will get the expand option as 6836 04:48:52,280 --> 04:48:54,760 you were getting previously in case of 6837 04:48:54,760 --> 04:48:58,920 bar visual Pi visual or L visual so here 6838 04:48:58,920 --> 04:49:00,840 expand is a better option for us we can 6839 04:49:00,840 --> 04:49:02,520 definitely go to the next level or we 6840 04:49:02,520 --> 04:49:05,520 can go do the drill down but let's go 6841 04:49:05,520 --> 04:49:08,280 and expand this now you are seeing the 6842 04:49:08,280 --> 04:49:11,920 city and category but is still the FX 6843 04:49:11,920 --> 04:49:14,718 option is available as you can see the 6844 04:49:14,718 --> 04:49:17,000 color of the marker is still available 6845 04:49:17,000 --> 04:49:19,638 now with the FX option means I can do 6846 04:49:19,638 --> 04:49:22,000 the conditional formatting I will be 6847 04:49:22,000 --> 04:49:25,400 able to change these bubbles using the 6848 04:49:25,400 --> 04:49:27,958 conditional formatting logic so that 6849 04:49:27,958 --> 04:49:30,480 give me little flexibility to have more 6850 04:49:30,480 --> 04:49:32,760 than one granularity and then I can use 6851 04:49:32,760 --> 04:49:35,040 the color these are some of the play 6852 04:49:35,040 --> 04:49:36,798 arounds you can do with the scatter 6853 04:49:36,798 --> 04:49:40,200 visual now to take this neck forward 6854 04:49:40,200 --> 04:49:43,760 let's see can we add a play access most 6855 04:49:43,760 --> 04:49:46,280 suitable play access is basically a Time 6856 04:49:46,280 --> 04:49:48,080 range but right now we don't have date 6857 04:49:48,080 --> 04:49:51,320 table so but we would still like to see 6858 04:49:51,320 --> 04:49:54,878 if we can put State on the play Axis I'm 6859 04:49:54,878 --> 04:49:56,680 able to put that and let me play around 6860 04:49:56,680 --> 04:49:59,840 so for each state now you can see that 6861 04:49:59,840 --> 04:50:02,878 I'm able to see the data and you can do 6862 04:50:02,878 --> 04:50:05,160 the same with the time ranges month here 6863 04:50:05,160 --> 04:50:07,240 dates and everything and it will play 6864 04:50:07,240 --> 04:50:09,440 for all the values one by one so I don't 6865 04:50:09,440 --> 04:50:12,360 have to do anything I just to play we 6866 04:50:12,360 --> 04:50:15,558 have created the visual we have seen how 6867 04:50:15,558 --> 04:50:18,360 to add the play AIS now let's remove the 6868 04:50:18,360 --> 04:50:20,160 play 6869 04:50:20,160 --> 04:50:23,798 acces also remove the category just keep 6870 04:50:23,798 --> 04:50:26,000 it on the city and let's start exploring 6871 04:50:26,000 --> 04:50:28,120 the visual properties so we have size 6872 04:50:28,120 --> 04:50:30,520 and style basically it is dependent on 6873 04:50:30,520 --> 04:50:33,200 what size we have what location we have 6874 04:50:33,200 --> 04:50:35,440 based on that this can be changed this 6875 04:50:35,440 --> 04:50:37,520 is just the positioning which we have 6876 04:50:37,520 --> 04:50:39,760 then the padding basically the space on 6877 04:50:39,760 --> 04:50:43,240 the all four side s es background right 6878 04:50:43,240 --> 04:50:45,320 now we have background on if you have a 6879 04:50:45,320 --> 04:50:47,760 background off it will take the color 6880 04:50:47,760 --> 04:50:50,600 from the background of the canvas right 6881 04:50:50,600 --> 04:50:53,558 now when I when it is on it means the 6882 04:50:53,558 --> 04:50:56,440 visual can have its own color and you 6883 04:50:56,440 --> 04:50:58,320 have to reduce the transparency to see 6884 04:50:58,320 --> 04:51:00,200 that color as you can see if I'm 6885 04:51:00,200 --> 04:51:02,520 reducing the transparency I am able to 6886 04:51:02,520 --> 04:51:05,160 see the color I can have the 100% 6887 04:51:05,160 --> 04:51:08,240 transparency or I can switch it off even 6888 04:51:08,240 --> 04:51:10,080 if I don't want to have along with the 6889 04:51:10,080 --> 04:51:11,240 transparency 6890 04:51:11,240 --> 04:51:12,958 then I have the visual Border in case I 6891 04:51:12,958 --> 04:51:15,320 need a border for the visual so if you 6892 04:51:15,320 --> 04:51:17,798 click outside the visual you will be 6893 04:51:17,798 --> 04:51:20,280 able to see the border and then for 6894 04:51:20,280 --> 04:51:23,600 Border you can have the rounded Corners 6895 04:51:23,600 --> 04:51:25,440 if you want and you can have width if 6896 04:51:25,440 --> 04:51:26,840 you want to increase the width of the 6897 04:51:26,840 --> 04:51:28,920 Border I actually don't need a border so 6898 04:51:28,920 --> 04:51:31,120 I'm going to switch it off then you have 6899 04:51:31,120 --> 04:51:33,240 title as usual for every visual you can 6900 04:51:33,240 --> 04:51:35,280 have a title the title can also come 6901 04:51:35,280 --> 04:51:37,320 from a major so if needed we can have a 6902 04:51:37,320 --> 04:51:40,878 from Major the headings from nor noral 6903 04:51:40,878 --> 04:51:43,040 heading two heading six we can have any 6904 04:51:43,040 --> 04:51:46,320 headings we can decide the font and the 6905 04:51:46,320 --> 04:51:49,600 font size Bard italic and underlying for 6906 04:51:49,600 --> 04:51:52,440 our titles we can decide the text color 6907 04:51:52,440 --> 04:51:54,440 of our title let's say other than black 6908 04:51:54,440 --> 04:51:56,200 if I want to have some other color I can 6909 04:51:56,200 --> 04:51:58,360 have that I can have the background 6910 04:51:58,360 --> 04:52:00,558 color also for the title means only 6911 04:52:00,558 --> 04:52:02,440 title will have its own background color 6912 04:52:02,440 --> 04:52:05,520 as you can see then we can align the T 6913 04:52:05,520 --> 04:52:08,680 title left Center or right depending on 6914 04:52:08,680 --> 04:52:11,120 the need and if the title is too long we 6915 04:52:11,120 --> 04:52:13,240 can also use the word rep property by 6916 04:52:13,240 --> 04:52:15,600 default it is on we'll keep it on we 6917 04:52:15,600 --> 04:52:17,920 have seen this subtitle property now you 6918 04:52:17,920 --> 04:52:20,080 can have a subtitle other than title the 6919 04:52:20,080 --> 04:52:22,240 moment you enable it it create an 6920 04:52:22,240 --> 04:52:24,280 additional row where you can have the 6921 04:52:24,280 --> 04:52:26,798 subtitle you can have a text or you can 6922 04:52:26,798 --> 04:52:29,920 use the FX function FX it means you can 6923 04:52:29,920 --> 04:52:33,000 have the subtitle based on a measure you 6924 04:52:33,000 --> 04:52:36,798 can have the heading normal H1 H2 H3 H4 6925 04:52:36,798 --> 04:52:38,240 then you can have a heading two adding 6926 04:52:38,240 --> 04:52:39,680 three heading four whatever heading you 6927 04:52:39,680 --> 04:52:43,440 want on font size bold italic underline 6928 04:52:43,440 --> 04:52:45,760 you can change the text color again 6929 04:52:45,760 --> 04:52:49,680 alignment left center right or rap text 6930 04:52:49,680 --> 04:52:51,480 I don't need a subtitle so I'm going to 6931 04:52:51,480 --> 04:52:53,920 disable that then we have a divider 6932 04:52:53,920 --> 04:52:56,200 divider if you remember is going to come 6933 04:52:56,200 --> 04:52:58,718 between the title subtitle and the 6934 04:52:58,718 --> 04:53:01,000 visual so title subtitle is one party 6935 04:53:01,000 --> 04:53:03,680 and the visual is one party then we can 6936 04:53:03,680 --> 04:53:05,798 have a color we can have the style and 6937 04:53:05,798 --> 04:53:07,600 then we we can increase the width of the 6938 04:53:07,600 --> 04:53:09,760 line so that we can see the divider 6939 04:53:09,760 --> 04:53:12,200 between the Visual and the headers I'm 6940 04:53:12,200 --> 04:53:14,798 reducing it now again I'm also going to 6941 04:53:14,798 --> 04:53:17,840 remove the divider then x-axis 6942 04:53:17,840 --> 04:53:20,200 properties because we going to use major 6943 04:53:20,200 --> 04:53:21,798 so you can have minimum and maximum 6944 04:53:21,798 --> 04:53:24,920 range you can have logarithmic scale you 6945 04:53:24,920 --> 04:53:27,638 can invert the scale if you need inward 6946 04:53:27,638 --> 04:53:30,320 scale means the numbers will come from 6947 04:53:30,320 --> 04:53:32,680 bigger to smaller so if you can see now 6948 04:53:32,680 --> 04:53:36,360 26% is before and then 24 then 22 and 6949 04:53:36,360 --> 04:53:39,638 then 20 if I revert it it will start 6950 04:53:39,638 --> 04:53:43,120 from 20 to 26 so that is possible here 6951 04:53:43,120 --> 04:53:45,160 this is xaxis then we have the xaxis 6952 04:53:45,160 --> 04:53:48,000 values where you can go on the font 6953 04:53:48,000 --> 04:53:50,718 color now the color can again come from 6954 04:53:50,718 --> 04:53:52,200 based on the conditional formatting we 6955 04:53:52,200 --> 04:53:54,000 can bring in but we have to remember 6956 04:53:54,000 --> 04:53:58,040 sometime the x-axis labels only work on 6957 04:53:58,040 --> 04:54:00,240 grand total so we do have to check that 6958 04:54:00,240 --> 04:54:02,400 out and then display is auto we can 6959 04:54:02,400 --> 04:54:04,680 change the display as per me value 6960 04:54:04,680 --> 04:54:07,320 decimal places because it is a major we 6961 04:54:07,320 --> 04:54:09,840 can have value decimal places so blank 6962 04:54:09,840 --> 04:54:11,760 values is off but if we need it we can 6963 04:54:11,760 --> 04:54:14,958 add it title xais title if you want to 6964 04:54:14,958 --> 04:54:16,878 disable x-axis title you will not see 6965 04:54:16,878 --> 04:54:18,600 discount if I enable it you will be able 6966 04:54:18,600 --> 04:54:20,958 to see discount so the play around is 6967 04:54:20,958 --> 04:54:23,360 here for the 6968 04:54:23,360 --> 04:54:26,120 title the discount is going and coming 6969 04:54:26,120 --> 04:54:29,240 back same way Y axis again Y axis is a 6970 04:54:29,240 --> 04:54:32,040 numeric axis so you have the minimum and 6971 04:54:32,040 --> 04:54:34,760 maximum for the range logarithmic scale 6972 04:54:34,760 --> 04:54:37,080 invert AIS again this AIS can also be 6973 04:54:37,080 --> 04:54:39,000 inverted and this is going to be useful 6974 04:54:39,000 --> 04:54:42,280 sometime when we specifically create the 6975 04:54:42,280 --> 04:54:44,400 quadrant it could be really helpful when 6976 04:54:44,400 --> 04:54:47,718 we actually want high and low to be on a 6977 04:54:47,718 --> 04:54:49,718 particular quadrant then it could be of 6978 04:54:49,718 --> 04:54:52,558 real help so margin as you can see now 6979 04:54:52,558 --> 04:54:55,520 the scale is inverted we have from 6980 04:54:55,520 --> 04:54:57,798 smaller to larger on the scale in a 6981 04:54:57,798 --> 04:55:00,240 reverse manner same way we can play 6982 04:55:00,240 --> 04:55:03,400 around with the value font font size 6983 04:55:03,400 --> 04:55:06,040 bold italic underline we can use the 6984 04:55:06,040 --> 04:55:08,558 function to color means we can use 6985 04:55:08,558 --> 04:55:10,558 conditional formatting then we have have 6986 04:55:10,558 --> 04:55:12,878 the value decimal place because it's a 6987 04:55:12,878 --> 04:55:15,360 number then we have switch AIS position 6988 04:55:15,360 --> 04:55:18,280 means we want primary AIS which is right 6989 04:55:18,280 --> 04:55:20,840 now on the first y-axis margin is there 6990 04:55:20,840 --> 04:55:22,718 I switch it now it is on the second 6991 04:55:22,718 --> 04:55:24,558 y-axis you can see it on the right hand 6992 04:55:24,558 --> 04:55:27,480 side back on the left hand side show 6993 04:55:27,480 --> 04:55:29,160 blank values in case you want to show 6994 04:55:29,160 --> 04:55:32,200 the blank values title again the title 6995 04:55:32,200 --> 04:55:34,040 margin percentage you can observe it is 6996 04:55:34,040 --> 04:55:36,920 written but if I disable it it is not 6997 04:55:36,920 --> 04:55:39,798 there again enable it is there same way 6998 04:55:39,798 --> 04:55:41,798 we can if you need it we can have grid 6999 04:55:41,798 --> 04:55:43,798 lines right now horizontal grid lines 7000 04:55:43,798 --> 04:55:46,400 are they are they're pretty light right 7001 04:55:46,400 --> 04:55:49,400 now if we want we can increase its width 7002 04:55:49,400 --> 04:55:52,240 and it will be made visible as you can 7003 04:55:52,240 --> 04:55:55,440 see now but I'm not very found of that 7004 04:55:55,440 --> 04:55:58,240 so I'm going to reduce it vertical is on 7005 04:55:58,240 --> 04:56:00,440 again we need to increase the width to 7006 04:56:00,440 --> 04:56:04,840 see them again not very intuitive in 7007 04:56:04,840 --> 04:56:06,638 this case so I'm going to reduce it 7008 04:56:06,638 --> 04:56:08,920 again so these are the properties of 7009 04:56:08,920 --> 04:56:11,718 basically AES now let's move to the zoom 7010 04:56:11,718 --> 04:56:13,480 slider Zoom slider will actually give 7011 04:56:13,480 --> 04:56:15,920 the sliders on the axis you can have 7012 04:56:15,920 --> 04:56:18,360 x-axis slider and y axis slider and then 7013 04:56:18,360 --> 04:56:20,798 you can you know scroll them to get the 7014 04:56:20,798 --> 04:56:23,280 values this is really helpful when you 7015 04:56:23,280 --> 04:56:26,120 wanted to have the sliders then if you 7016 04:56:26,120 --> 04:56:27,958 want to have the slider labels and Tool 7017 04:56:27,958 --> 04:56:29,760 tip you can also have that we have 7018 04:56:29,760 --> 04:56:31,760 played around with that in the past 7019 04:56:31,760 --> 04:56:33,760 markers we have seen basic marker 7020 04:56:33,760 --> 04:56:36,520 properties we have seen the marker type 7021 04:56:36,520 --> 04:56:38,520 I can change it to different type of 7022 04:56:38,520 --> 04:56:40,718 markers 7023 04:56:40,718 --> 04:56:44,440 then we have uh range scaling Auto 7024 04:56:44,440 --> 04:56:47,160 magnitude data range we can say Based on 7025 04:56:47,160 --> 04:56:49,000 data range so you can see that you know 7026 04:56:49,000 --> 04:56:51,680 the dots are little up from lower to 7027 04:56:51,680 --> 04:56:54,280 higher that is more suitable actually 7028 04:56:54,280 --> 04:56:56,718 compared to any other thing color by 7029 04:56:56,718 --> 04:56:59,360 category on or off so that is marker 7030 04:56:59,360 --> 04:57:00,958 property which has came new we'll 7031 04:57:00,958 --> 04:57:02,680 discuss a little later then border for 7032 04:57:02,680 --> 04:57:04,558 marker has also came we'll discuss that 7033 04:57:04,558 --> 04:57:06,558 later now category labels is something 7034 04:57:06,558 --> 04:57:08,718 which is label if you want to display 7035 04:57:08,718 --> 04:57:10,798 basically the value labels and now we 7036 04:57:10,798 --> 04:57:12,760 have city so we are seeing City label 7037 04:57:12,760 --> 04:57:14,760 now when we have City category let's say 7038 04:57:14,760 --> 04:57:16,000 what happened when we have the city 7039 04:57:16,000 --> 04:57:18,558 category and we expand it what would 7040 04:57:18,558 --> 04:57:20,480 happen there now you can see City and 7041 04:57:20,480 --> 04:57:22,840 category label coming together we need 7042 04:57:22,840 --> 04:57:24,760 to be very selective in case we wanted 7043 04:57:24,760 --> 04:57:26,840 to enable the category label 7044 04:57:26,840 --> 04:57:29,080 specifically on scatter visual which is 7045 04:57:29,080 --> 04:57:31,920 having lot of values it may not be the 7046 04:57:31,920 --> 04:57:34,320 best thing to have then you can have the 7047 04:57:34,320 --> 04:57:35,958 category label can have background so 7048 04:57:35,958 --> 04:57:38,280 that they look little different and once 7049 04:57:38,280 --> 04:57:39,638 you have the background then you can 7050 04:57:39,638 --> 04:57:42,878 have background color transparency Etc 7051 04:57:42,878 --> 04:57:45,320 then you have the plot area background 7052 04:57:45,320 --> 04:57:47,280 if you want to put an image you can do 7053 04:57:47,280 --> 04:57:49,200 that then you have reference line and 7054 04:57:49,200 --> 04:57:51,240 this is really important because that is 7055 04:57:51,240 --> 04:57:53,480 where we want to create the quadrants 7056 04:57:53,480 --> 04:57:55,920 here before I do that let me go ahead 7057 04:57:55,920 --> 04:57:57,958 and disable the category labels 7058 04:57:57,958 --> 04:58:00,680 quadrants basically we can create by 7059 04:58:00,680 --> 04:58:03,480 using the average lines but I'll tell 7060 04:58:03,480 --> 04:58:05,000 you the average lines are not most 7061 04:58:05,000 --> 04:58:06,958 suitable so let me go ahead and add an 7062 04:58:06,958 --> 04:58:09,000 average line and as you can see this 7063 04:58:09,000 --> 04:58:10,680 average line comes in Middle but the 7064 04:58:10,680 --> 04:58:13,280 best most most suitable would be the 7065 04:58:13,280 --> 04:58:15,840 constant line and use the same measure 7066 04:58:15,840 --> 04:58:17,680 but right now I added the average line 7067 04:58:17,680 --> 04:58:19,480 and the series is discount percentage 7068 04:58:19,480 --> 04:58:22,080 let me add one more average line and 7069 04:58:22,080 --> 04:58:24,080 then this line is also going to be the 7070 04:58:24,080 --> 04:58:26,920 average line and for this one let me 7071 04:58:26,920 --> 04:58:29,840 choose the series as margin percentage 7072 04:58:29,840 --> 04:58:32,080 as you can see both these serieses are 7073 04:58:32,080 --> 04:58:34,760 available here but if you use the 7074 04:58:34,760 --> 04:58:36,520 constant line you will find out the 7075 04:58:36,520 --> 04:58:38,920 difference of to do that let's go ahead 7076 04:58:38,920 --> 04:58:41,120 and do one thing let's remove the second 7077 04:58:41,120 --> 04:58:43,760 average line and then keep for the first 7078 04:58:43,760 --> 04:58:45,840 one on the discount and on the line is 7079 04:58:45,840 --> 04:58:48,920 fine let's enable the data label for 7080 04:58:48,920 --> 04:58:50,718 this line so we have option for data 7081 04:58:50,718 --> 04:58:53,760 label so I got this data label and let 7082 04:58:53,760 --> 04:58:56,520 me add one more line and this time I'm 7083 04:58:56,520 --> 04:58:59,440 going to add a constant line so I select 7084 04:58:59,440 --> 04:59:02,080 the second line I'll go here on the type 7085 04:59:02,080 --> 04:59:04,558 and I'll select the x-axis constant line 7086 04:59:04,558 --> 04:59:07,160 because it's on the ACC by default it 7087 04:59:07,160 --> 04:59:09,558 will come on zero so I'll go to the line 7088 04:59:09,558 --> 04:59:10,600 which is on 7089 04:59:10,600 --> 04:59:12,878 values which is zero I'll go to the FX I 7090 04:59:12,878 --> 04:59:14,480 don't want a constant line but this 7091 04:59:14,480 --> 04:59:16,440 gives me an option to use conditional 7092 04:59:16,440 --> 04:59:20,480 formatting UI which actually is the 7093 04:59:20,480 --> 04:59:22,958 major selection UI for me and here I 7094 04:59:22,958 --> 04:59:25,360 select discount percentage by default 7095 04:59:25,360 --> 04:59:27,480 one major would be available for you to 7096 04:59:27,480 --> 04:59:29,718 selection and usually it is the x-axis 7097 04:59:29,718 --> 04:59:31,280 major or the major which you are going 7098 04:59:31,280 --> 04:59:33,080 to select for first time so I've 7099 04:59:33,080 --> 04:59:36,000 selected that line and constant line 7100 04:59:36,000 --> 04:59:37,920 don't work together that's what my 7101 04:59:37,920 --> 04:59:39,520 observation is so what I'm going to do 7102 04:59:39,520 --> 04:59:42,040 here is I'll go to this average line now 7103 04:59:42,040 --> 04:59:44,160 remember the value 7104 04:59:44,160 --> 04:59:47,360 13.11 and I'll go to the constant line 7105 04:59:47,360 --> 04:59:49,638 and let me enable the value first of all 7106 04:59:49,638 --> 04:59:51,920 the data label we will see that value 7107 04:59:51,920 --> 04:59:53,638 but this is right now not working even 7108 04:59:53,638 --> 04:59:55,760 using FX I'm going to go ahead and 7109 04:59:55,760 --> 04:59:58,040 delete this average line and the moment 7110 04:59:58,040 --> 04:59:59,520 I deleted you are able to see the 7111 04:59:59,520 --> 05:00:01,400 constant line using the mejor which is 7112 05:00:01,400 --> 05:00:03,360 actually the correct average that's not 7113 05:00:03,360 --> 05:00:05,760 the simple average in this manner I 7114 05:00:05,760 --> 05:00:09,558 usually prefer this constant line let me 7115 05:00:09,558 --> 05:00:11,040 keep this and then we have the 7116 05:00:11,040 --> 05:00:15,000 properties like FX value the color so if 7117 05:00:15,000 --> 05:00:17,638 you go to the reference line you have 7118 05:00:17,638 --> 05:00:20,280 the constant lines then you have min max 7119 05:00:20,280 --> 05:00:22,400 average median and percentile line which 7120 05:00:22,400 --> 05:00:24,558 is most of them want to decide their 7121 05:00:24,558 --> 05:00:26,558 values by themselves you don't have any 7122 05:00:26,558 --> 05:00:28,718 intervention in between in constant line 7123 05:00:28,718 --> 05:00:30,760 you have the flexibility to provide the 7124 05:00:30,760 --> 05:00:33,120 measure then you can decide the color 7125 05:00:33,120 --> 05:00:34,958 right now I am having a color which is 7126 05:00:34,958 --> 05:00:37,320 matching with my marker color so I can 7127 05:00:37,320 --> 05:00:40,320 change it transparency dashed line style 7128 05:00:40,320 --> 05:00:43,360 is dashed solid dotted or custom I can 7129 05:00:43,360 --> 05:00:46,200 have let's say custom then we can decide 7130 05:00:46,200 --> 05:00:48,760 what kind of line we want then we have 7131 05:00:48,760 --> 05:00:50,958 the width width of the line right now is 7132 05:00:50,958 --> 05:00:52,840 solid and you can see width is three 7133 05:00:52,840 --> 05:00:55,440 that's good enough positioning in front 7134 05:00:55,440 --> 05:00:57,360 or back means is it should be in the 7135 05:00:57,360 --> 05:01:00,160 front of your markers or back side of 7136 05:01:00,160 --> 05:01:02,638 your marker that you can do data label 7137 05:01:02,638 --> 05:01:05,000 we have already seen we have enabled it 7138 05:01:05,000 --> 05:01:06,958 now the data label could be on the left 7139 05:01:06,958 --> 05:01:09,160 hand side or right hand side vertical 7140 05:01:09,160 --> 05:01:12,520 position is about or under so we have we 7141 05:01:12,520 --> 05:01:14,280 have the horizontal position left and 7142 05:01:14,280 --> 05:01:16,160 right and we have vertical position 7143 05:01:16,160 --> 05:01:17,680 which is above and under depending on 7144 05:01:17,680 --> 05:01:19,760 the need so if we put under here it will 7145 05:01:19,760 --> 05:01:22,000 go through the down and the same things 7146 05:01:22,000 --> 05:01:23,878 will look a little differently when we 7147 05:01:23,878 --> 05:01:26,520 have the y axis constant line the styl 7148 05:01:26,520 --> 05:01:29,920 is data value by name you want the name 7149 05:01:29,920 --> 05:01:33,200 and both if I want name as well as value 7150 05:01:33,200 --> 05:01:35,240 then display unit is auto I can change 7151 05:01:35,240 --> 05:01:37,360 the display unit here so these are the 7152 05:01:37,360 --> 05:01:39,400 various values around the reference 7153 05:01:39,400 --> 05:01:41,480 lines and that is really important here 7154 05:01:41,480 --> 05:01:43,360 now then we have the symmetrical shading 7155 05:01:43,360 --> 05:01:45,320 if you want you can switch it on and you 7156 05:01:45,320 --> 05:01:47,080 will have the symmetrical shading upper 7157 05:01:47,080 --> 05:01:49,600 portion Shing lower portion heading 7158 05:01:49,600 --> 05:01:52,040 upper shading lower shading or depends 7159 05:01:52,040 --> 05:01:54,080 on the visual the it may have some part 7160 05:01:54,080 --> 05:01:56,200 because in my visual right now the 7161 05:01:56,200 --> 05:01:58,718 symmetric is coming this place the 7162 05:01:58,718 --> 05:02:00,558 reason is both of them are not starting 7163 05:02:00,558 --> 05:02:02,878 from zero if they start from the zero 7164 05:02:02,878 --> 05:02:05,200 this will make sense but most of my data 7165 05:02:05,200 --> 05:02:08,600 is in the middle starting around 20% so 7166 05:02:08,600 --> 05:02:10,558 that is why this is not the and this 7167 05:02:10,558 --> 05:02:12,120 maybe because I'm taking the data at 7168 05:02:12,120 --> 05:02:13,760 City level if I take a little different 7169 05:02:13,760 --> 05:02:16,520 level it may be a different case I'll 7170 05:02:16,520 --> 05:02:18,240 switch off the symmetric shading right 7171 05:02:18,240 --> 05:02:20,840 now then I have a ratio line I can 7172 05:02:20,840 --> 05:02:23,718 switch it on you can see a ratio line 7173 05:02:23,718 --> 05:02:26,400 now you want you can have a color 7174 05:02:26,400 --> 05:02:30,600 transparency style width Etc to that so 7175 05:02:30,600 --> 05:02:34,320 this is overall just a brief overview of 7176 05:02:34,320 --> 05:02:37,200 scatter Visual and how you can design a 7177 05:02:37,200 --> 05:02:39,958 scatter visual there are play arounds 7178 05:02:39,958 --> 05:02:41,480 with the you know quadrant colors and 7179 05:02:41,480 --> 05:02:43,080 all those that we are going to discuss 7180 05:02:43,080 --> 05:02:44,400 in conditional 7181 05:02:44,400 --> 05:02:47,520 form markers has been enhanced in 7182 05:02:47,520 --> 05:02:48,920 October 7183 05:02:48,920 --> 05:02:52,080 2024 so let's have a look at what marker 7184 05:02:52,080 --> 05:02:53,798 announcement has been 7185 05:02:53,798 --> 05:02:56,240 done in this part we are going to 7186 05:02:56,240 --> 05:02:58,840 discuss the marker enhancement which has 7187 05:02:58,840 --> 05:03:01,360 been specifically done around the line 7188 05:03:01,360 --> 05:03:04,160 Visual and the scatter visual Microsoft 7189 05:03:04,160 --> 05:03:06,480 powerbi has done lot of enhancement in 7190 05:03:06,480 --> 05:03:08,798 the visualization and some of those 7191 05:03:08,798 --> 05:03:10,958 enhancements we have not discussed so 7192 05:03:10,958 --> 05:03:13,240 far so what I'm going to do in today's 7193 05:03:13,240 --> 05:03:14,920 video I'm going to take you through one 7194 05:03:14,920 --> 05:03:17,280 of such enhancements on the markers in 7195 05:03:17,280 --> 05:03:19,798 October 2024 so let's look at the 7196 05:03:19,798 --> 05:03:23,240 release notes of October 2024 so this is 7197 05:03:23,240 --> 05:03:26,240 October 2024 feature summary and if you 7198 05:03:26,240 --> 05:03:29,798 scroll down here inside the content you 7199 05:03:29,798 --> 05:03:33,600 will find out marker enhancements so let 7200 05:03:33,600 --> 05:03:35,920 me click on the marker enhancements to 7201 05:03:35,920 --> 05:03:38,240 go down and look into the details so 7202 05:03:38,240 --> 05:03:39,920 let's look at the release notes in 7203 05:03:39,920 --> 05:03:43,360 details marker enhancements reamping the 7204 05:03:43,360 --> 05:03:46,958 rendering of column bars ribbons line 7205 05:03:46,958 --> 05:03:50,680 area charts and marker is a top priority 7206 05:03:50,680 --> 05:03:52,760 these element form the foundation of our 7207 05:03:52,760 --> 05:03:55,160 core Visual and will eventually impact 7208 05:03:55,160 --> 05:03:57,840 other areas by provisioning more control 7209 05:03:57,840 --> 05:03:59,718 our report creators can enhance their 7210 05:03:59,718 --> 05:04:02,320 storytelling and help users easily to 7211 05:04:02,320 --> 05:04:05,320 interpret data in October 2024 update 7212 05:04:05,320 --> 05:04:08,280 markers for line chart C chart and 7213 05:04:08,280 --> 05:04:10,520 anomalies are Improv improved with this 7214 05:04:10,520 --> 05:04:12,798 revamp this update introduced new 7215 05:04:12,798 --> 05:04:14,958 options that offer greater customization 7216 05:04:14,958 --> 05:04:17,200 and flexibility explore these new 7217 05:04:17,200 --> 05:04:19,878 options and maximize their potential 7218 05:04:19,878 --> 05:04:21,958 marker for line and cluster chart can be 7219 05:04:21,958 --> 05:04:24,718 customized now in two ways categories me 7220 05:04:24,718 --> 05:04:26,718 each and individual category like you 7221 05:04:26,718 --> 05:04:28,798 have gen Fab Mar or brand one brand two 7222 05:04:28,798 --> 05:04:30,638 brand three when you have only single 7223 05:04:30,638 --> 05:04:33,440 series or basically you only have xaes 7224 05:04:33,440 --> 05:04:36,280 let's say when your chart has no series 7225 05:04:36,280 --> 05:04:38,440 The drop- down menu displays category 7226 05:04:38,440 --> 05:04:40,718 you can customize each data points 7227 05:04:40,718 --> 05:04:42,958 marker based on the selected x-axis 7228 05:04:42,958 --> 05:04:45,080 category you only have the categories 7229 05:04:45,080 --> 05:04:47,360 you don't have the legend or multiple 7230 05:04:47,360 --> 05:04:50,160 majors in that scenario now series when 7231 05:04:50,160 --> 05:04:52,360 the chart displays Legend the drop down 7232 05:04:52,360 --> 05:04:54,638 menu displays the series The Legend 7233 05:04:54,638 --> 05:04:56,680 series you can customize the marker for 7234 05:04:56,680 --> 05:04:59,000 the complete set of data points within 7235 05:04:59,000 --> 05:05:01,600 the selected C overall you can change 7236 05:05:01,600 --> 05:05:03,520 there you can hide and show the marker 7237 05:05:03,520 --> 05:05:05,840 for a specific data point category by 7238 05:05:05,840 --> 05:05:08,520 toggling show for this category option 7239 05:05:08,520 --> 05:05:10,958 please note the marker toggle has been 7240 05:05:10,958 --> 05:05:14,080 moved under show for all series new 7241 05:05:14,080 --> 05:05:15,958 format settings have been added to the 7242 05:05:15,958 --> 05:05:18,760 marker for each line T catter chart and 7243 05:05:18,760 --> 05:05:22,400 anomalies including shape shape of the 7244 05:05:22,400 --> 05:05:24,718 marker continue to offer control over 7245 05:05:24,718 --> 05:05:27,638 their type size additionally rotation is 7246 05:05:27,638 --> 05:05:30,160 now available for all shapes and size 7247 05:05:30,160 --> 05:05:32,000 except for the circle shape rotation 7248 05:05:32,000 --> 05:05:34,558 shapes as the variety of shape type at 7249 05:05:34,558 --> 05:05:36,440 your disposal which is particularly 7250 05:05:36,440 --> 05:05:38,320 convenient when multiple lies are 7251 05:05:38,320 --> 05:05:40,120 required unique shape 7252 05:05:40,120 --> 05:05:42,320 color changing the color of the marker 7253 05:05:42,320 --> 05:05:44,480 has been a convenient control now you 7254 05:05:44,480 --> 05:05:47,200 can also modify the transparency of the 7255 05:05:47,200 --> 05:05:49,400 marker for a specific category series or 7256 05:05:49,400 --> 05:05:51,878 all markers border this is the new 7257 05:05:51,878 --> 05:05:53,878 feature border for the marker has been 7258 05:05:53,878 --> 05:05:56,360 introduced allowing you to add borders 7259 05:05:56,360 --> 05:05:58,558 to specific marker category series for 7260 05:05:58,558 --> 05:06:00,558 all markers Additionally you can fully 7261 05:06:00,558 --> 05:06:02,200 customize the marker borders by 7262 05:06:02,200 --> 05:06:03,878 adjusting their transparency and the 7263 05:06:03,878 --> 05:06:05,760 width so these are the features which 7264 05:06:05,760 --> 05:06:08,080 has been released some time back first 7265 05:06:08,080 --> 05:06:09,798 of all let's look into the detail is 7266 05:06:09,798 --> 05:06:11,798 what we are going to learn today so we 7267 05:06:11,798 --> 05:06:14,400 will learn how to enable the marker how 7268 05:06:14,400 --> 05:06:16,760 to do changes at categories or series 7269 05:06:16,760 --> 05:06:19,000 level how to change color size and 7270 05:06:19,000 --> 05:06:21,320 transparency of the marker how to change 7271 05:06:21,320 --> 05:06:23,120 color size of transparency of the marker 7272 05:06:23,120 --> 05:06:25,200 B and this can be done both at the 7273 05:06:25,200 --> 05:06:27,798 series level or categorical level for 7274 05:06:27,798 --> 05:06:29,760 both marker and marker border so that we 7275 05:06:29,760 --> 05:06:32,958 are going to understand today in details 7276 05:06:32,958 --> 05:06:34,878 so let's jump onto the powerbi and 7277 05:06:34,878 --> 05:06:37,480 explore that out so I'm here on the 7278 05:06:37,480 --> 05:06:39,958 powerbi desktop and I would like to add 7279 05:06:39,958 --> 05:06:42,638 a new page to start exploring the 7280 05:06:42,638 --> 05:06:45,320 markers so on this new page first of all 7281 05:06:45,320 --> 05:06:48,200 I would like to add a line visual so 7282 05:06:48,200 --> 05:06:52,000 item wise net so this is the visual I've 7283 05:06:52,000 --> 05:06:54,760 created item wise net and let me enable 7284 05:06:54,760 --> 05:06:57,638 the format if your format is not visible 7285 05:06:57,638 --> 05:06:59,320 you can go to the view from there you 7286 05:06:59,320 --> 05:07:02,160 can enable it after that on the if it is 7287 05:07:02,160 --> 05:07:04,120 still not available here check out the 7288 05:07:04,120 --> 05:07:06,600 rightmost side is it disabled from there 7289 05:07:06,600 --> 05:07:09,638 or it has been minimized from there 7290 05:07:09,638 --> 05:07:11,080 these are the places where you are to 7291 05:07:11,080 --> 05:07:13,240 look 7292 05:07:13,280 --> 05:07:16,400 for now once I go inside right now I 7293 05:07:16,400 --> 05:07:19,320 have a single measure I have only one 7294 05:07:19,320 --> 05:07:22,080 series I go down to the marker and here 7295 05:07:22,080 --> 05:07:24,000 you can see that I have option for 7296 05:07:24,000 --> 05:07:25,718 categories I can choose individual 7297 05:07:25,718 --> 05:07:27,718 category or show for all categories let 7298 05:07:27,718 --> 05:07:29,638 me enable show for all categories now I 7299 05:07:29,638 --> 05:07:31,558 can choose the shape so let me choose a 7300 05:07:31,558 --> 05:07:33,240 little different shape let me choose a 7301 05:07:33,240 --> 05:07:36,558 triangular now I can increase the size I 7302 05:07:36,558 --> 05:07:38,240 can change the rotation let me rotate it 7303 05:07:38,240 --> 05:07:43,000 by 90° 92 let me write down 90 so I 7304 05:07:43,000 --> 05:07:45,120 rotated it by 90 color I can change the 7305 05:07:45,120 --> 05:07:47,080 color right now it's very similar to 7306 05:07:47,080 --> 05:07:48,520 what I have on the line I change the 7307 05:07:48,520 --> 05:07:51,040 color then I can go to the Border Swit 7308 05:07:51,040 --> 05:07:52,920 on the border now you can see a small 7309 05:07:52,920 --> 05:07:55,680 line uh match with the series color will 7310 05:07:55,680 --> 05:07:57,958 start matching with the series color 7311 05:07:57,958 --> 05:07:59,878 uncheck this and go ahead and change it 7312 05:07:59,878 --> 05:08:01,480 manually so let's say something like 7313 05:08:01,480 --> 05:08:04,000 this now transparency first of all let 7314 05:08:04,000 --> 05:08:05,480 me increase the WID so that you can 7315 05:08:05,480 --> 05:08:07,400 understand transparency 7316 05:08:07,400 --> 05:08:09,718 later I think five point is good enough 7317 05:08:09,718 --> 05:08:11,200 now look at the transparency when I 7318 05:08:11,200 --> 05:08:14,320 decrease it you can see the transparency 7319 05:08:14,320 --> 05:08:15,958 and I can completely wipe it off so 7320 05:08:15,958 --> 05:08:17,878 there will be no bottle one way to hide 7321 05:08:17,878 --> 05:08:20,080 is you completely make it transparent so 7322 05:08:20,080 --> 05:08:21,680 it will go away so now what I have done 7323 05:08:21,680 --> 05:08:23,480 here is I have done the transparency on 7324 05:08:23,480 --> 05:08:25,120 the shape and zero transparency on the 7325 05:08:25,120 --> 05:08:27,160 border so you are seeing like empty 7326 05:08:27,160 --> 05:08:28,558 markers so this is one another way you 7327 05:08:28,558 --> 05:08:30,600 can get like empty markers where you 7328 05:08:30,600 --> 05:08:33,680 have no color inside or you have the 7329 05:08:33,680 --> 05:08:35,718 transparency which is 100% for the 7330 05:08:35,718 --> 05:08:38,600 inside this is for the overall category 7331 05:08:38,600 --> 05:08:41,320 or overall the complete x-axis series 7332 05:08:41,320 --> 05:08:43,000 but I can go to individual and I can 7333 05:08:43,000 --> 05:08:44,920 check it let's say brand8 I can go and 7334 05:08:44,920 --> 05:08:46,320 change it so right now it is showing the 7335 05:08:46,320 --> 05:08:48,320 same properties but what I can do here 7336 05:08:48,320 --> 05:08:49,600 is I can let's say choose a different 7337 05:08:49,600 --> 05:08:51,400 marker there so instead of triangle let 7338 05:08:51,400 --> 05:08:53,200 me choose a circle so you can see now 7339 05:08:53,200 --> 05:08:55,400 there is one Circle which is available 7340 05:08:55,400 --> 05:08:57,200 it is an empty circle because I have 7341 05:08:57,200 --> 05:08:59,840 100% transparency at the marker level I 7342 05:08:59,840 --> 05:09:03,400 can reduce it now only this point is 7343 05:09:03,400 --> 05:09:05,798 having color because the transparency is 7344 05:09:05,798 --> 05:09:08,240 not there so individually I'm 7345 05:09:08,240 --> 05:09:10,600 controlling one particular category in 7346 05:09:10,600 --> 05:09:13,240 this manner I can do this action let's 7347 05:09:13,240 --> 05:09:15,240 see what happens in case we add another 7348 05:09:15,240 --> 05:09:17,000 measure so let me add a gross measure 7349 05:09:17,000 --> 05:09:18,840 now so this is a net measure now I add a 7350 05:09:18,840 --> 05:09:21,160 gross me the moment I do it you see 7351 05:09:21,160 --> 05:09:23,840 everything has been replicated for both 7352 05:09:23,840 --> 05:09:26,080 the serieses gross as well as neet if 7353 05:09:26,080 --> 05:09:28,000 you go here now you have the only 7354 05:09:28,000 --> 05:09:30,240 control over gross on neet the category 7355 05:09:30,240 --> 05:09:32,638 control is not in your hand but whatever 7356 05:09:32,638 --> 05:09:34,400 you have done previously is there so it 7357 05:09:34,400 --> 05:09:36,878 means in case you want individual things 7358 05:09:36,878 --> 05:09:38,958 to be done at the start of the line or 7359 05:09:38,958 --> 05:09:41,160 the end of the line now it is static in 7360 05:09:41,160 --> 05:09:43,080 nature as of now but you can do that and 7361 05:09:43,080 --> 05:09:45,200 then change your series or then add the 7362 05:09:45,200 --> 05:09:47,520 series now here I can go ahead and let's 7363 05:09:47,520 --> 05:09:49,600 say choose gross for gross I can go 7364 05:09:49,600 --> 05:09:51,480 ahead and change the type to square 7365 05:09:51,480 --> 05:09:52,878 everything is changed to square other 7366 05:09:52,878 --> 05:09:54,520 than see look at this 7367 05:09:54,520 --> 05:09:57,718 brand moving ahead I can go ahead and 7368 05:09:57,718 --> 05:10:00,080 change the transparency for the gross to 7369 05:10:00,080 --> 05:10:03,160 zero so that I will get color inside my 7370 05:10:03,160 --> 05:10:06,040 squares each series have its own type 7371 05:10:06,040 --> 05:10:08,240 and can have its own color also now I'm 7372 05:10:08,240 --> 05:10:09,920 changing the individual one but brand 7373 05:10:09,920 --> 05:10:11,360 Aid which we have changed previously 7374 05:10:11,360 --> 05:10:13,040 using category is still remain so that's 7375 05:10:13,040 --> 05:10:14,600 a good thing we can do it previously and 7376 05:10:14,600 --> 05:10:17,040 then do it also go ahead and change the 7377 05:10:17,040 --> 05:10:18,840 Border color so in this case I can 7378 05:10:18,840 --> 05:10:21,120 choose different color and I can also 7379 05:10:21,120 --> 05:10:23,798 change the width of the marker you got a 7380 05:10:23,798 --> 05:10:26,440 different look and feel for your markers 7381 05:10:26,440 --> 05:10:28,760 this will enhance the visual experience 7382 05:10:28,760 --> 05:10:31,320 of your line now let me tell you one 7383 05:10:31,320 --> 05:10:33,718 more trick for that we have to go and 7384 05:10:33,718 --> 05:10:36,600 adjust the line width you can go ahead 7385 05:10:36,600 --> 05:10:39,360 and reduce the line width to zero so 7386 05:10:39,360 --> 05:10:41,120 that line disappears you will only see 7387 05:10:41,120 --> 05:10:43,200 marker now this is for all the series 7388 05:10:43,200 --> 05:10:44,638 you can choose individually which series 7389 05:10:44,638 --> 05:10:46,400 you want what I can do is let me have 7390 05:10:46,400 --> 05:10:49,360 the width three and let me go to let's 7391 05:10:49,360 --> 05:10:52,000 say gross and make it zero there is no 7392 05:10:52,000 --> 05:10:54,200 line for the gross there are only marker 7393 05:10:54,200 --> 05:10:55,920 and it could be helpful sometime you 7394 05:10:55,920 --> 05:10:57,718 just wanted to show the markers you 7395 05:10:57,718 --> 05:11:00,080 don't want to show the line and then you 7396 05:11:00,080 --> 05:11:02,440 can selectively enable data label also 7397 05:11:02,440 --> 05:11:04,480 and go to the series let's say gross is 7398 05:11:04,480 --> 05:11:06,798 on and net you can switch it off now 7399 05:11:06,798 --> 05:11:11,718 you're only getting the labels for the 7400 05:11:14,120 --> 05:11:16,520 gross what I would like to do here is I 7401 05:11:16,520 --> 05:11:17,798 would like to play around with the 7402 05:11:17,798 --> 05:11:20,440 legend means I would like to have not 7403 05:11:20,440 --> 05:11:22,400 the major series I want to have the 7404 05:11:22,400 --> 05:11:24,638 Legend series to do that let me add a 7405 05:11:24,638 --> 05:11:26,440 new page and in this new page I'm going 7406 05:11:26,440 --> 05:11:29,080 to add one more line Visual and this 7407 05:11:29,080 --> 05:11:30,760 line visual I'm going to have it on 7408 05:11:30,760 --> 05:11:33,320 month year xaxis is month year from item 7409 05:11:33,320 --> 05:11:34,798 Dimension I'm going to take category as 7410 05:11:34,798 --> 05:11:37,638 a legend and let me take a major as that 7411 05:11:37,638 --> 05:11:39,638 on the y- axis now as you can can see 7412 05:11:39,638 --> 05:11:41,878 for each series I have a line I can go 7413 05:11:41,878 --> 05:11:43,878 to the markers and as you can see I have 7414 05:11:43,878 --> 05:11:45,958 a series for each series I can have some 7415 05:11:45,958 --> 05:11:47,638 kind of a marker or I can enable the 7416 05:11:47,638 --> 05:11:49,760 marker for everything now I enable the 7417 05:11:49,760 --> 05:11:51,440 marker for everything I go to the 7418 05:11:51,440 --> 05:11:53,280 category one I disable the marker so 7419 05:11:53,280 --> 05:11:54,958 there's no marker for category one now 7420 05:11:54,958 --> 05:11:56,638 you can check it out here there's no 7421 05:11:56,638 --> 05:11:59,718 marker so now let me go to category two 7422 05:11:59,718 --> 05:12:01,520 and for category two let me change the 7423 05:12:01,520 --> 05:12:03,600 markers as triangles and let me also 7424 05:12:03,600 --> 05:12:05,760 make them little bigger same way I can 7425 05:12:05,760 --> 05:12:07,480 go to category three and I can change 7426 05:12:07,480 --> 05:12:10,240 the marker to square and and I can also 7427 05:12:10,240 --> 05:12:12,360 make them little bigger can go to 7428 05:12:12,360 --> 05:12:16,520 category 4 and choose X as a marker and 7429 05:12:16,520 --> 05:12:20,040 make it little bigger also I can change 7430 05:12:20,040 --> 05:12:22,320 color for some of them if required let's 7431 05:12:22,320 --> 05:12:24,520 change the color for category 4 to the 7432 05:12:24,520 --> 05:12:27,000 Violet for x and then I told you the 7433 05:12:27,000 --> 05:12:28,600 trick you can hide some of the marker 7434 05:12:28,600 --> 05:12:31,000 using transparency or you can hide using 7435 05:12:31,000 --> 05:12:32,638 goow for that series there are few 7436 05:12:32,638 --> 05:12:34,840 options and you can have border if 7437 05:12:34,840 --> 05:12:36,760 required in this manner you can play 7438 05:12:36,760 --> 05:12:38,638 around with this now what let's do one 7439 05:12:38,638 --> 05:12:40,360 thing let's also experiment on the 7440 05:12:40,360 --> 05:12:42,440 scatter visual that's one of the very 7441 05:12:42,440 --> 05:12:44,680 common visual which we use so let me add 7442 05:12:44,680 --> 05:12:46,680 a new page and in this new page I'm 7443 05:12:46,680 --> 05:12:49,000 going to add the scatter visual let me 7444 05:12:49,000 --> 05:12:51,240 add to access which is my discount 7445 05:12:51,240 --> 05:12:53,558 percentage let me see the drive measures 7446 05:12:53,558 --> 05:12:56,160 the discount percentage and the margin 7447 05:12:56,160 --> 05:12:59,840 percentage on two x's let me add City 7448 05:12:59,840 --> 05:13:01,840 from the geography table as values I 7449 05:13:01,840 --> 05:13:03,958 have got a good number of cities scatter 7450 05:13:03,958 --> 05:13:06,840 visual shows markers what we can do is 7451 05:13:06,840 --> 05:13:09,798 we can change the marker completely for 7452 05:13:09,798 --> 05:13:12,080 everything or we can change it for each 7453 05:13:12,080 --> 05:13:14,638 category now as you can see I already 7454 05:13:14,638 --> 05:13:15,958 have the marker open so for all the 7455 05:13:15,958 --> 05:13:17,798 categories I can have you know something 7456 05:13:17,798 --> 05:13:19,240 so first of all I would like to increase 7457 05:13:19,240 --> 05:13:21,000 the size so I let me make them a little 7458 05:13:21,000 --> 05:13:23,400 bigger now I can go to a particular City 7459 05:13:23,400 --> 05:13:24,480 let's say I want to highlight a 7460 05:13:24,480 --> 05:13:26,120 particular City so I can choose a 7461 05:13:26,120 --> 05:13:28,120 particular City in the category so let 7462 05:13:28,120 --> 05:13:31,120 me go to Los Angeles and let me choose 7463 05:13:31,120 --> 05:13:32,840 different shape for Los Angeles I have 7464 05:13:32,840 --> 05:13:34,320 choose it in a triangle now you can see 7465 05:13:34,320 --> 05:13:36,160 one triangle into the 7466 05:13:36,160 --> 05:13:38,240 middle let me do one more thing is 7467 05:13:38,240 --> 05:13:40,040 basically uh right now the size is not 7468 05:13:40,040 --> 05:13:41,680 govern by something so let me govern the 7469 05:13:41,680 --> 05:13:44,920 size by gross so size is now govern by 7470 05:13:44,920 --> 05:13:48,080 gross now this is too big for size so we 7471 05:13:48,080 --> 05:13:50,638 need to reduce the size so we go to the 7472 05:13:50,638 --> 05:13:52,400 all now you got to reduce the size here 7473 05:13:52,400 --> 05:13:55,638 so we go to the size whenever I use 7474 05:13:55,638 --> 05:13:58,160 gross I usually take any value between 7475 05:13:58,160 --> 05:14:02,360 -25 to -30 depending on the need now 7476 05:14:02,360 --> 05:14:05,840 let's go back to the Los Angeles now I 7477 05:14:05,840 --> 05:14:07,360 what I'm going to do I've chosen the Los 7478 05:14:07,360 --> 05:14:09,600 Angeles again and I'm going to 7479 05:14:09,600 --> 05:14:11,280 change the border so border is switched 7480 05:14:11,280 --> 05:14:12,680 on right now it's matching color so I 7481 05:14:12,680 --> 05:14:14,200 switch off the matching color I want it 7482 05:14:14,200 --> 05:14:15,600 little different color so that I can 7483 05:14:15,600 --> 05:14:16,958 highlight it and let me increase the 7484 05:14:16,958 --> 05:14:19,520 width now you can see the Los Angeles 7485 05:14:19,520 --> 05:14:21,878 there with this one and color 7486 05:14:21,878 --> 05:14:24,240 transparency let me reduce it to zero 7487 05:14:24,240 --> 05:14:26,280 and I would also like to change its 7488 05:14:26,280 --> 05:14:28,760 rotation so let me change its 7489 05:14:28,760 --> 05:14:31,718 rotation I change the rotation to 97° so 7490 05:14:31,718 --> 05:14:33,760 it's looking like Arrow right now here 7491 05:14:33,760 --> 05:14:35,520 in this manner what can happen here is 7492 05:14:35,520 --> 05:14:38,680 basically you can go ahead and do very 7493 05:14:38,680 --> 05:14:41,558 special specific stuff on your markers 7494 05:14:41,558 --> 05:14:43,878 you can change the shape for each 7495 05:14:43,878 --> 05:14:46,320 category or series you can change the 7496 05:14:46,320 --> 05:14:49,558 rotation color transparency of the color 7497 05:14:49,558 --> 05:14:51,280 you can change the Border color 7498 05:14:51,280 --> 05:14:54,000 transparency and width and these are the 7499 05:14:54,000 --> 05:14:55,958 various features which has been released 7500 05:14:55,958 --> 05:14:58,160 as part of October 7501 05:14:58,160 --> 05:15:01,120 2024 so why don't you go ahead and try 7502 05:15:01,120 --> 05:15:02,080 them 7503 05:15:02,080 --> 05:15:04,320 out the next visual which I want to 7504 05:15:04,320 --> 05:15:06,558 discuss is be the funnel visual so let 7505 05:15:06,558 --> 05:15:08,520 me add a new page for that funnel visual 7506 05:15:08,520 --> 05:15:10,480 is especially use in case of sales when 7507 05:15:10,480 --> 05:15:12,400 we have lead opportunities and 7508 05:15:12,400 --> 05:15:14,558 conversions now again there are a couple 7509 05:15:14,558 --> 05:15:16,440 of ways you can have it one is basically 7510 05:15:16,440 --> 05:15:17,878 if you have multiple measures you can 7511 05:15:17,878 --> 05:15:20,440 use the funnel visual in that let me 7512 05:15:20,440 --> 05:15:21,878 drag 7513 05:15:21,878 --> 05:15:24,638 cogs 7514 05:15:24,638 --> 05:15:27,240 net 7515 05:15:27,240 --> 05:15:31,280 gross we also drag margin here you can 7516 05:15:31,280 --> 05:15:34,240 treat this as your opportunities leads 7517 05:15:34,240 --> 05:15:36,240 conversions this you can treat like you 7518 05:15:36,240 --> 05:15:38,400 know you know total leads you have how 7519 05:15:38,400 --> 05:15:40,878 many of are opportunity how many are 7520 05:15:40,878 --> 05:15:42,558 them of hot leads and finally how many 7521 05:15:42,558 --> 05:15:44,360 are converted something like that in 7522 05:15:44,360 --> 05:15:46,000 this manner you can get it now in case 7523 05:15:46,000 --> 05:15:47,440 you don't want that you can have 7524 05:15:47,440 --> 05:15:50,120 category let's say those opportunities 7525 05:15:50,120 --> 05:15:53,840 are not in terms of the majors it is in 7526 05:15:53,840 --> 05:15:58,280 terms of the values values in the rows 7527 05:15:58,280 --> 05:16:01,000 let's say let's treat category as one of 7528 05:16:01,000 --> 05:16:03,440 them and I bring in category here and as 7529 05:16:03,440 --> 05:16:05,400 you can see now we have Category 2 7530 05:16:05,400 --> 05:16:07,160 category 4 category 1 and it 7531 05:16:07,160 --> 05:16:10,000 automatically you know adjust into that 7532 05:16:10,000 --> 05:16:13,320 as that method otherwise what you can do 7533 05:16:13,320 --> 05:16:14,958 is you can go to the set acces and you 7534 05:16:14,958 --> 05:16:16,480 know you can say I want to certain 7535 05:16:16,480 --> 05:16:18,320 category so it can give it but it's not 7536 05:16:18,320 --> 05:16:19,600 going to make sense unless your 7537 05:16:19,600 --> 05:16:21,680 categories are sorted in that particular 7538 05:16:21,680 --> 05:16:24,240 manner like opportunity leads H leads 7539 05:16:24,240 --> 05:16:25,558 and sales 7540 05:16:25,558 --> 05:16:28,120 Etc if you are simply using numeric 7541 05:16:28,120 --> 05:16:30,360 value should sort it in the best way and 7542 05:16:30,360 --> 05:16:31,840 then you can have sort ascending and 7543 05:16:31,840 --> 05:16:34,240 sort descending to make sure the kind of 7544 05:16:34,240 --> 05:16:35,680 visual you want to get whether you want 7545 05:16:35,680 --> 05:16:38,000 to get the funnel or you want to get a 7546 05:16:38,000 --> 05:16:40,878 pyramid based on that you can take 7547 05:16:40,878 --> 05:16:42,840 action on this visual again if you want 7548 05:16:42,840 --> 05:16:44,360 to look at the property of this visual 7549 05:16:44,360 --> 05:16:48,400 you have title subtitle divider spacing 7550 05:16:48,400 --> 05:16:51,240 data labels on and off so you you can 7551 05:16:51,240 --> 05:16:53,680 see the data into the middle of it you 7552 05:16:53,680 --> 05:16:55,638 can switch it on and off you have inside 7553 05:16:55,638 --> 05:16:59,280 Center and outside and as an 7554 05:17:00,400 --> 05:17:02,680 option now you have data value 7555 05:17:02,680 --> 05:17:04,798 percentage of first that is really 7556 05:17:04,798 --> 05:17:08,000 important percentage of previous then we 7557 05:17:08,000 --> 05:17:09,680 have data value and percentage of first 7558 05:17:09,680 --> 05:17:11,040 and data value and percentage of 7559 05:17:11,040 --> 05:17:14,040 previous these options are available I 7560 05:17:14,040 --> 05:17:15,680 think percentage of first is something I 7561 05:17:15,680 --> 05:17:18,440 want to keep and for that I would 7562 05:17:18,440 --> 05:17:21,840 actually like to have it s 7563 05:17:21,878 --> 05:17:24,920 descending this looks much better to me 7564 05:17:24,920 --> 05:17:27,440 values a value font and color you can 7565 05:17:27,440 --> 05:17:29,920 change decimal places you can control 7566 05:17:29,920 --> 05:17:31,520 you can control the percentage decimal 7567 05:17:31,520 --> 05:17:32,878 places in case you want to have 7568 05:17:32,878 --> 05:17:35,080 background you can have a background I 7569 05:17:35,080 --> 05:17:36,480 have a little bit lighter background 7570 05:17:36,480 --> 05:17:38,920 there on the backand side now I made it 7571 05:17:38,920 --> 05:17:40,878 it little bit more darker so you can see 7572 05:17:40,878 --> 05:17:43,638 it now category labels the labels of 7573 05:17:43,638 --> 05:17:46,080 category 1 2 3 4 here it is category but 7574 05:17:46,080 --> 05:17:47,798 it could be anything else if you don't 7575 05:17:47,798 --> 05:17:50,320 want that you can switch that off again 7576 05:17:50,320 --> 05:17:52,760 I'm switching it on then we have display 7577 05:17:52,760 --> 05:17:54,680 conversion label 7578 05:17:54,680 --> 05:17:57,760 option that is the top and the bottom 7579 05:17:57,760 --> 05:17:59,920 lines if you are seeing so basically 7580 05:17:59,920 --> 05:18:03,600 this is 100% And it 24% got converted 7581 05:18:03,600 --> 05:18:05,000 that's what this means is but if you 7582 05:18:05,000 --> 05:18:06,320 don't want to display that you can 7583 05:18:06,320 --> 05:18:09,638 disable that so this is for chart mostly 7584 05:18:09,638 --> 05:18:13,120 useful in sales and finance based on the 7585 05:18:13,120 --> 05:18:15,440 requirement you can use this visual to 7586 05:18:15,440 --> 05:18:17,760 enhance your visual experience let me 7587 05:18:17,760 --> 05:18:20,120 rename the page before 7588 05:18:20,120 --> 05:18:22,680 I switch to the next 7589 05:18:22,680 --> 05:18:25,878 visual the next is not a visual the set 7590 05:18:25,878 --> 05:18:28,600 of visuals which is basically 7591 05:18:28,600 --> 05:18:32,280 the maps which I wanted to explore and 7592 05:18:32,280 --> 05:18:34,440 we have few Maps out here and some of 7593 05:18:34,440 --> 05:18:36,718 them are dependent on settings and the 7594 05:18:36,718 --> 05:18:39,480 login especially map and shape map 7595 05:18:39,480 --> 05:18:41,120 visuals they are controlled by the 7596 05:18:41,120 --> 05:18:42,600 preview settings and the security 7597 05:18:42,600 --> 05:18:44,760 settings so let me showcase you the 7598 05:18:44,760 --> 05:18:47,200 settings quickly once again so I'll go 7599 05:18:47,200 --> 05:18:49,840 to file then I go to the options and 7600 05:18:49,840 --> 05:18:52,760 setting and 7601 05:18:54,040 --> 05:18:56,520 options and I have preview feature where 7602 05:18:56,520 --> 05:18:58,200 I have the shape map visual if you can 7603 05:18:58,200 --> 05:19:01,440 see which I have enabled then you have 7604 05:19:01,440 --> 05:19:03,000 to go to the security settings and 7605 05:19:03,000 --> 05:19:04,558 inside the security setting if you 7606 05:19:04,558 --> 05:19:08,200 scroll down you have to enable RGS map 7607 05:19:08,200 --> 05:19:10,840 and field m map visual now I have not 7608 05:19:10,840 --> 05:19:12,798 logged in and if it gives a problem on 7609 05:19:12,798 --> 05:19:15,040 my tenant settings you also need tenant 7610 05:19:15,040 --> 05:19:17,638 settings to enable the map and when you 7611 05:19:17,638 --> 05:19:20,360 are signed in it do create an impact so 7612 05:19:20,360 --> 05:19:22,600 let me first start with the map visual I 7613 05:19:22,600 --> 05:19:25,120 click on the map Visual and in the map 7614 05:19:25,120 --> 05:19:28,840 visual I'll add State I have two options 7615 05:19:28,840 --> 05:19:30,718 only state and city so let me start with 7616 05:19:30,718 --> 05:19:32,760 the state state is part of my geography 7617 05:19:32,760 --> 05:19:35,798 Dimension I drag it here and with that 7618 05:19:35,798 --> 05:19:37,440 I'm going to drag 7619 05:19:37,440 --> 05:19:41,320 net it creates bubble for me and the the 7620 05:19:41,320 --> 05:19:43,958 moment I drag the net that controls the 7621 05:19:43,958 --> 05:19:46,040 size of the bubble and then we can do 7622 05:19:46,040 --> 05:19:48,760 little bit play around now because this 7623 05:19:48,760 --> 05:19:50,600 visual have a legend and if I drag a 7624 05:19:50,600 --> 05:19:52,878 legend it will also create a pie chart 7625 05:19:52,878 --> 05:19:54,240 you can create a pie chart in case you 7626 05:19:54,240 --> 05:19:56,280 need a pie chart and then let's look at 7627 05:19:56,280 --> 05:19:58,320 the properties quickly we have the size 7628 05:19:58,320 --> 05:20:00,718 properties then we have the background 7629 05:20:00,718 --> 05:20:03,040 visual border Shadow title these are the 7630 05:20:03,040 --> 05:20:05,558 same properties subtitles spacing 7631 05:20:05,558 --> 05:20:08,040 Legends on and off in case you are using 7632 05:20:08,040 --> 05:20:10,440 Legend if if you're not using Legend 7633 05:20:10,440 --> 05:20:14,240 then that on and off option is not much 7634 05:20:14,240 --> 05:20:17,040 useful then we go to Bubble and as you 7635 05:20:17,040 --> 05:20:19,320 can see we have the size property which 7636 05:20:19,320 --> 05:20:21,440 we can play around we can decrease or 7637 05:20:21,440 --> 05:20:24,600 increase the size now depending on how 7638 05:20:24,600 --> 05:20:26,400 much is your range you can choose this 7639 05:20:26,400 --> 05:20:30,200 size then rendering is 7640 05:20:31,798 --> 05:20:36,080 magnitude data range and auto there are 7641 05:20:36,080 --> 05:20:37,638 small small differences in that then 7642 05:20:37,638 --> 05:20:39,600 color now because because I used Legend 7643 05:20:39,600 --> 05:20:41,040 I'll not get option for conditional 7644 05:20:41,040 --> 05:20:43,400 formatting but if I remove the category 7645 05:20:43,400 --> 05:20:46,280 from The Legend I have the option for FX 7646 05:20:46,280 --> 05:20:48,600 means I can do conditional formatting or 7647 05:20:48,600 --> 05:20:51,600 I can change the color manually also 7648 05:20:51,600 --> 05:20:53,280 then if I go down we have category 7649 05:20:53,280 --> 05:20:55,360 labels if I switch it on it will allow 7650 05:20:55,360 --> 05:20:57,798 me to show the state labels or the 7651 05:20:57,798 --> 05:21:00,080 category labels I can have a background 7652 05:21:00,080 --> 05:21:01,878 or I can switch off the background to if 7653 05:21:01,878 --> 05:21:04,040 I want to show only names I can have 7654 05:21:04,040 --> 05:21:07,480 color for the map now if you go if you 7655 05:21:07,480 --> 05:21:09,240 want to have a heat map you again have 7656 05:21:09,240 --> 05:21:11,920 options for heat map and you know 7657 05:21:11,920 --> 05:21:14,080 gradient zero how should it look 7658 05:21:14,080 --> 05:21:16,718 gradient 50% and gate 100% how should it 7659 05:21:16,718 --> 05:21:18,440 look and then you can increase or 7660 05:21:18,440 --> 05:21:21,240 decrease the radius to Showcase uh the 7661 05:21:21,240 --> 05:21:24,400 heat map here this play in pixel you can 7662 05:21:24,400 --> 05:21:26,638 attend meter and transparency all these 7663 05:21:26,638 --> 05:21:28,558 things you can control I'll switch off 7664 05:21:28,558 --> 05:21:30,680 the heat map there is something known as 7665 05:21:30,680 --> 05:21:32,920 map setting so right now the map setting 7666 05:21:32,920 --> 05:21:36,400 is road but I can have aial this is how 7667 05:21:36,400 --> 05:21:40,520 it will look like dark 7668 05:21:44,080 --> 05:21:46,400 light gray 7669 05:21:46,400 --> 05:21:48,680 scale and 7670 05:21:48,680 --> 05:21:51,240 Road and we have the option for show and 7671 05:21:51,240 --> 05:21:54,360 off show label off label so you see the 7672 05:21:54,360 --> 05:21:56,000 labels I'll let me highlight you which 7673 05:21:56,000 --> 05:21:58,240 labels let look at these 7674 05:21:58,240 --> 05:22:00,558 labels and if I switch it off you will 7675 05:22:00,558 --> 05:22:02,400 not see the country 7676 05:22:02,400 --> 05:22:04,760 labels then we have few controls like 7677 05:22:04,760 --> 05:22:07,718 auto zoom which is enabled so if I go 7678 05:22:07,718 --> 05:22:09,280 here I can zoom 7679 05:22:09,280 --> 05:22:11,320 or it will what happen if there is some 7680 05:22:11,320 --> 05:22:13,920 value get selected by some some slicers 7681 05:22:13,920 --> 05:22:15,718 or something then also it will 7682 05:22:15,718 --> 05:22:17,280 automatically Zoom so let me add a 7683 05:22:17,280 --> 05:22:20,520 slicer externally and try to select 7684 05:22:20,520 --> 05:22:23,280 something let me add it City slicer the 7685 05:22:23,280 --> 05:22:25,040 moment I select a city because of that 7686 05:22:25,040 --> 05:22:27,798 state got filtered and you can see that 7687 05:22:27,798 --> 05:22:29,638 that got highlighted and this is because 7688 05:22:29,638 --> 05:22:32,680 of the feature of auto zoom then if you 7689 05:22:32,680 --> 05:22:34,638 want you can have zoom buttons if you 7690 05:22:34,638 --> 05:22:36,160 click on Zoom buttons you'll get this 7691 05:22:36,160 --> 05:22:38,160 plus and minus which you can use for 7692 05:22:38,160 --> 05:22:40,440 zoom 7693 05:22:40,920 --> 05:22:43,240 in and you can change the position if 7694 05:22:43,240 --> 05:22:46,000 you want to zoom 7695 05:22:49,520 --> 05:22:52,280 here then there is a lesso button if I 7696 05:22:52,280 --> 05:22:53,920 enable lesso this is really interesting 7697 05:22:53,920 --> 05:22:56,120 feature what does Leo select does is 7698 05:22:56,120 --> 05:22:58,718 basically I can press the control button 7699 05:22:58,718 --> 05:23:01,320 and then I can select multiple 7700 05:23:01,320 --> 05:23:04,120 values and to what does it do for that 7701 05:23:04,120 --> 05:23:05,798 what I'm going to do is basically let me 7702 05:23:05,798 --> 05:23:08,480 click here on this visual make it as a 7703 05:23:08,480 --> 05:23:10,680 table 7704 05:23:10,680 --> 05:23:14,000 Visual and let me few cities here like 7705 05:23:14,000 --> 05:23:18,000 using control and drag and as you can 7706 05:23:18,000 --> 05:23:19,958 see the values are changing let me do it 7707 05:23:19,958 --> 05:23:22,600 only on Hawai here you can see only this 7708 05:23:22,600 --> 05:23:25,440 value if I click back in the any space 7709 05:23:25,440 --> 05:23:28,240 it will go away I selected two of them 7710 05:23:28,240 --> 05:23:30,200 again click on empty space it will go 7711 05:23:30,200 --> 05:23:32,638 select few of them here on this side you 7712 05:23:32,638 --> 05:23:34,160 can see the values are changing so this 7713 05:23:34,160 --> 05:23:36,040 is the advantage of leso Select 7714 05:23:36,040 --> 05:23:37,440 basically with the control you can do 7715 05:23:37,440 --> 05:23:38,760 the selection you have to enable the 7716 05:23:38,760 --> 05:23:41,440 lesso select and geoc coding is 7717 05:23:41,440 --> 05:23:42,840 basically what kind of geoc coding you 7718 05:23:42,840 --> 05:23:44,680 want if you want different cultures you 7719 05:23:44,680 --> 05:23:46,480 can use 7720 05:23:46,480 --> 05:23:49,000 those so this is what we call as map 7721 05:23:49,000 --> 05:23:50,958 visual let me add another visual which 7722 05:23:50,958 --> 05:23:54,400 is basically the Bui map visual now in 7723 05:23:54,400 --> 05:23:56,480 the field map visual we have location 7724 05:23:56,480 --> 05:23:59,040 Legend latitude longitude so in case you 7725 05:23:59,040 --> 05:24:00,718 have latitude longitude you can use I 7726 05:24:00,718 --> 05:24:03,440 don't have so I can use city or state 7727 05:24:03,440 --> 05:24:06,120 but this is not a visual for City let's 7728 05:24:06,120 --> 05:24:09,240 see can we get it I drag the value here 7729 05:24:09,240 --> 05:24:10,840 for the shading no this is not the 7730 05:24:10,840 --> 05:24:12,320 visual for that this is a visual more 7731 05:24:12,320 --> 05:24:15,520 suitable for States so I can put State 7732 05:24:15,520 --> 05:24:17,280 and I have already drag one major based 7733 05:24:17,280 --> 05:24:18,718 on that it is giving me color it's going 7734 05:24:18,718 --> 05:24:20,840 to give one tool tip but if you want to 7735 05:24:20,840 --> 05:24:22,638 have the shading basically what you can 7736 05:24:22,638 --> 05:24:25,480 do is you can go 7737 05:24:25,480 --> 05:24:28,718 here in the fill color you can use the 7738 05:24:28,718 --> 05:24:31,520 conditional formatting 7739 05:24:31,760 --> 05:24:34,280 here you can use okay and you can get 7740 05:24:34,280 --> 05:24:36,120 the conditional formatting here then 7741 05:24:36,120 --> 05:24:38,400 this one and all those controls and 7742 05:24:38,400 --> 05:24:40,600 everything is applied here now if you 7743 05:24:40,600 --> 05:24:42,040 want you going to use a legend and if 7744 05:24:42,040 --> 05:24:43,878 you use Legend you might not get the FX 7745 05:24:43,878 --> 05:24:45,798 option in the color so let me use a 7746 05:24:45,798 --> 05:24:48,718 legend of category here now this option 7747 05:24:48,718 --> 05:24:50,280 might not be really useful you do have 7748 05:24:50,280 --> 05:24:51,878 the color but it always end up showing 7749 05:24:51,878 --> 05:24:54,360 you only one category we create 7750 05:24:54,360 --> 05:24:57,200 something known as topper um first 7751 05:24:57,200 --> 05:24:58,958 topper and second topper kind of where 7752 05:24:58,958 --> 05:25:01,400 we can find out every category which is 7753 05:25:01,400 --> 05:25:04,480 topper in each state and there we can 7754 05:25:04,480 --> 05:25:07,520 use this filter that out that only top 7755 05:25:07,520 --> 05:25:10,160 categories are there so we see rank one 7756 05:25:10,160 --> 05:25:12,638 and then it would be more beneficial for 7757 05:25:12,638 --> 05:25:15,360 us to have this kind of visual so this 7758 05:25:15,360 --> 05:25:17,200 is the fill map visual for you next 7759 05:25:17,200 --> 05:25:18,520 visual which you want to explore is the 7760 05:25:18,520 --> 05:25:21,480 shape Visual and the shape map visual is 7761 05:25:21,480 --> 05:25:24,040 one visual where you can also have your 7762 05:25:24,040 --> 05:25:26,840 own shapes coming in so I'm bringing in 7763 05:25:26,840 --> 05:25:28,878 state but if you go here into the map 7764 05:25:28,878 --> 05:25:31,000 settings it is showing that it's a US 7765 05:25:31,000 --> 05:25:33,240 state map but if you have these are the 7766 05:25:33,240 --> 05:25:34,638 other state maps which are also 7767 05:25:34,638 --> 05:25:37,400 available but you can also bring in your 7768 05:25:37,400 --> 05:25:39,558 own Maps 7769 05:25:39,558 --> 05:25:41,400 or you can browse the map type you can 7770 05:25:41,400 --> 05:25:43,638 have your custom map and you can browse 7771 05:25:43,638 --> 05:25:47,240 the map and you can use that so right 7772 05:25:47,240 --> 05:25:51,000 now we are using the USA map St 7773 05:25:51,000 --> 05:25:54,000 we but you can have your own map and we 7774 05:25:54,000 --> 05:25:55,600 have similar kind of setting here but in 7775 05:25:55,600 --> 05:25:57,958 this one you have the color saturation 7776 05:25:57,958 --> 05:25:59,558 already available so one of the ways you 7777 05:25:59,558 --> 05:26:01,798 use color saturation secondly you use 7778 05:26:01,798 --> 05:26:03,480 the fill color so if you go to the fill 7779 05:26:03,480 --> 05:26:05,638 color directly without using the color 7780 05:26:05,638 --> 05:26:07,958 situation you can have FX button and in 7781 05:26:07,958 --> 05:26:09,878 the F button you can use let's say 7782 05:26:09,878 --> 05:26:12,040 gradient and you can click okay so it 7783 05:26:12,040 --> 05:26:14,160 will give you the conditional 7784 05:26:14,160 --> 05:26:16,280 formatting it will give you the gradient 7785 05:26:16,280 --> 05:26:19,280 based on that and also you can use the 7786 05:26:19,280 --> 05:26:20,760 conditional formatting like rule based 7787 05:26:20,760 --> 05:26:21,958 conditional formatting or field value 7788 05:26:21,958 --> 05:26:24,718 based conditional formatting here but 7789 05:26:24,718 --> 05:26:26,480 what you can also do here is you can 7790 05:26:26,480 --> 05:26:28,718 have color saturation you say no no I 7791 05:26:28,718 --> 05:26:30,600 don't want to control it let power ba 7792 05:26:30,600 --> 05:26:32,200 controls it you can put net into the 7793 05:26:32,200 --> 05:26:34,160 color saturation the moment you do it 7794 05:26:34,160 --> 05:26:35,920 you will not get that particular option 7795 05:26:35,920 --> 05:26:38,600 means now you have the gradient which is 7796 05:26:38,600 --> 05:26:40,040 you can choose the color and based on 7797 05:26:40,040 --> 05:26:41,600 min max value it's very similar to the 7798 05:26:41,600 --> 05:26:43,958 gradient what we have there but if you 7799 05:26:43,958 --> 05:26:46,200 don't use the color s situation you more 7800 05:26:46,200 --> 05:26:48,120 flexibility to use conditional 7801 05:26:48,120 --> 05:26:50,000 formatting where we will also be able to 7802 05:26:50,000 --> 05:26:52,878 use um rule based conditional formatting 7803 05:26:52,878 --> 05:26:54,480 or measor based conditional formatting 7804 05:26:54,480 --> 05:26:56,160 which is field value 7805 05:26:56,160 --> 05:26:58,920 base then for the blank areas no blank 7806 05:26:58,920 --> 05:27:02,200 areas on or off I use off then you don't 7807 05:27:02,200 --> 05:27:03,798 see the blank areas here you this is 7808 05:27:03,798 --> 05:27:05,320 white in color and otherwise you want to 7809 05:27:05,320 --> 05:27:07,200 show it or you want to show it in black 7810 05:27:07,200 --> 05:27:08,638 color you can decide how you want to 7811 05:27:08,638 --> 05:27:10,400 show the blank areas if you want to use 7812 05:27:10,400 --> 05:27:12,600 Legend again Legend would be not very 7813 05:27:12,600 --> 05:27:15,360 useful if unless you plan to show the 7814 05:27:15,360 --> 05:27:17,760 top ranker or second top ranker we need 7815 05:27:17,760 --> 05:27:19,920 to take example of what does you mean by 7816 05:27:19,920 --> 05:27:21,718 top ranker and second top ranker what we 7817 05:27:21,718 --> 05:27:23,240 need to do is we need to create category 7818 05:27:23,240 --> 05:27:25,798 ranks and then we need to filter the top 7819 05:27:25,798 --> 05:27:28,760 rank and that we will do once we learn 7820 05:27:28,760 --> 05:27:31,520 how to create rank index and then later 7821 05:27:31,520 --> 05:27:33,638 on we'll come back to conditional 7822 05:27:33,638 --> 05:27:36,480 formatting then we will learn how to use 7823 05:27:36,480 --> 05:27:39,600 that so this is shap ape map Visual and 7824 05:27:39,600 --> 05:27:41,360 really powerful in case you want your 7825 05:27:41,360 --> 05:27:43,280 own custom shape you can go ahead and 7826 05:27:43,280 --> 05:27:45,600 try that out the next one which I want 7827 05:27:45,600 --> 05:27:47,040 to use is 7828 05:27:47,040 --> 05:27:50,200 Azor Azor map visual has recently been 7829 05:27:50,200 --> 05:27:52,400 enhanced and one of the thing which you 7830 05:27:52,400 --> 05:27:54,600 must remember that it requires a sign in 7831 05:27:54,600 --> 05:27:57,040 so now I need to sign in before I use 7832 05:27:57,040 --> 05:27:58,680 and it need to be enabled at my tenant 7833 05:27:58,680 --> 05:28:02,798 level so let me sign in 7834 05:28:14,240 --> 05:28:17,000 I have signed in into my 7835 05:28:17,000 --> 05:28:19,320 popup let's remove this and try to add 7836 05:28:19,320 --> 05:28:21,000 it 7837 05:28:21,000 --> 05:28:23,760 again it give me a disclaimer 7838 05:28:23,760 --> 05:28:26,600 Also let's try to add some location to 7839 05:28:26,600 --> 05:28:29,120 it those of you who used your map visual 7840 05:28:29,120 --> 05:28:31,080 in the past or seen the past 7841 05:28:31,080 --> 05:28:33,480 video the location is something which 7842 05:28:33,480 --> 05:28:35,240 very recently got added so let me add a 7843 05:28:35,240 --> 05:28:37,600 location here but this visual is coming 7844 05:28:37,600 --> 05:28:39,760 out as one of the powerful visuals that 7845 05:28:39,760 --> 05:28:42,080 we can have here then we have a size 7846 05:28:42,080 --> 05:28:44,600 which we can bring in using net here by 7847 05:28:44,600 --> 05:28:46,840 default it has given all the same size 7848 05:28:46,840 --> 05:28:48,600 now I have the size so let me go into 7849 05:28:48,600 --> 05:28:50,280 the property of this visual so you have 7850 05:28:50,280 --> 05:28:51,920 the map setting where you have the style 7851 05:28:51,920 --> 05:28:55,000 different kind of style like 7852 05:28:55,400 --> 05:28:58,400 Road 7853 05:28:58,440 --> 05:29:01,440 hybrid 7854 05:29:02,840 --> 05:29:04,718 satellite 7855 05:29:04,718 --> 05:29:09,160 gray scale light 7856 05:29:10,840 --> 05:29:13,840 Tera 7857 05:29:15,558 --> 05:29:19,000 blank lanks 7858 05:29:19,200 --> 05:29:22,840 accessible high contrast 7859 05:29:22,840 --> 05:29:25,718 dark high contrast 7860 05:29:25,718 --> 05:29:28,040 light these are the Styles available let 7861 05:29:28,040 --> 05:29:29,920 me keep it a road 7862 05:29:29,920 --> 05:29:34,760 only then you have view auto zoom o on 7863 05:29:34,760 --> 05:29:36,638 and you can have different options if 7864 05:29:36,638 --> 05:29:39,558 you want to disable the auto zoom like 7865 05:29:39,558 --> 05:29:41,080 you know you can observe the difference 7866 05:29:41,080 --> 05:29:43,638 the moment I remove the auto zoom it 7867 05:29:43,638 --> 05:29:45,000 actually comes in and then you have the 7868 05:29:45,000 --> 05:29:47,480 buttons which can control it but I think 7869 05:29:47,480 --> 05:29:49,440 auto zoom is a better option so I'm 7870 05:29:49,440 --> 05:29:51,280 going to keep it but yes you will get 7871 05:29:51,280 --> 05:29:53,878 the zoom buttons you will have the reset 7872 05:29:53,878 --> 05:29:56,680 options up and down options and some of 7873 05:29:56,680 --> 05:29:58,558 the options are available on the visual 7874 05:29:58,558 --> 05:30:01,638 for users to change 7875 05:30:02,320 --> 05:30:06,520 it then you have the controls so word RP 7876 05:30:06,520 --> 05:30:09,878 can enable disable style picker so if 7877 05:30:09,878 --> 05:30:12,718 you in the top if want to use see this 7878 05:30:12,718 --> 05:30:14,320 is the your style 7879 05:30:14,320 --> 05:30:17,160 picker and I I can disable it so you 7880 05:30:17,160 --> 05:30:18,920 can't change it on the Fly Like if I 7881 05:30:18,920 --> 05:30:20,958 give this you can change it on the fly 7882 05:30:20,958 --> 05:30:22,798 but I'm going to disable that navigation 7883 05:30:22,798 --> 05:30:25,360 buttons you 7884 05:30:26,160 --> 05:30:29,440 have I disabled that selection and 7885 05:30:29,440 --> 05:30:31,400 switch on and off selection button Geo 7886 05:30:31,400 --> 05:30:33,680 coding is auto I'm going to keep then 7887 05:30:33,680 --> 05:30:34,718 you have 7888 05:30:34,718 --> 05:30:37,480 the layer settings which is minimum and 7889 05:30:37,480 --> 05:30:40,000 maximum unselected disappear you can 7890 05:30:40,000 --> 05:30:42,120 have Legends in case we are not using 7891 05:30:42,120 --> 05:30:45,120 Legends as of now here uh we'll see the 7892 05:30:45,120 --> 05:30:47,520 field 7893 05:30:47,958 --> 05:30:50,320 map not applicable right now bubble 7894 05:30:50,320 --> 05:30:53,320 layer is a category label so we have the 7895 05:30:53,320 --> 05:30:56,160 heat map option in the heat map option 7896 05:30:56,160 --> 05:30:58,760 we can play around with the radius and 7897 05:30:58,760 --> 05:31:01,120 when heat map is enabled we can switch 7898 05:31:01,120 --> 05:31:03,558 off the bubble layer so that we only get 7899 05:31:03,558 --> 05:31:06,280 the heat map layer in this case there 7900 05:31:06,280 --> 05:31:07,718 are multiple levels so we can disable 7901 05:31:07,718 --> 05:31:09,558 this 7902 05:31:09,558 --> 05:31:12,240 now we have the color option where we 7903 05:31:12,240 --> 05:31:15,040 have the color of the gradient right now 7904 05:31:15,040 --> 05:31:17,280 which is applicable in this case if we 7905 05:31:17,280 --> 05:31:19,760 switch off the heat map then that color 7906 05:31:19,760 --> 05:31:22,400 option will go bubble layer is on right 7907 05:31:22,400 --> 05:31:23,558 now in the bubble layer you have the 7908 05:31:23,558 --> 05:31:25,638 cluster bubble and then the color and 7909 05:31:25,638 --> 05:31:28,080 then we have the size of the bubble 7910 05:31:28,080 --> 05:31:29,600 which is minimum and a maximum we can 7911 05:31:29,600 --> 05:31:31,320 say minimum is five and maximum we can 7912 05:31:31,320 --> 05:31:32,680 also control so we'll have little 7913 05:31:32,680 --> 05:31:34,638 smaller bubble range selected is data 7914 05:31:34,638 --> 05:31:37,280 range or magnitude or Auto we can keep 7915 05:31:37,280 --> 05:31:40,160 it data range your auto a shape 7916 05:31:40,160 --> 05:31:41,878 transparency we can control inside the 7917 05:31:41,878 --> 05:31:43,120 shape so I'll make it little bit 7918 05:31:43,120 --> 05:31:44,920 transparent color you have the 7919 05:31:44,920 --> 05:31:47,360 conditional formatting option we have 7920 05:31:47,360 --> 05:31:49,080 conditional formatting options and we 7921 05:31:49,080 --> 05:31:51,000 can do conditional formatting based on 7922 05:31:51,000 --> 05:31:53,360 gradient color rule based or field value 7923 05:31:53,360 --> 05:31:56,798 base let me try based on gradient as of 7924 05:31:56,798 --> 05:31:59,440 now based on the margin percentage uh 7925 05:31:59,440 --> 05:32:00,878 it's rule based right now I'll make it 7926 05:32:00,878 --> 05:32:02,718 gradient based so that I can easily do 7927 05:32:02,718 --> 05:32:05,120 it or I can say based on certain rules I 7928 05:32:05,120 --> 05:32:07,320 can have those values so this is 7929 05:32:07,320 --> 05:32:09,760 gradient BAS 7930 05:32:09,760 --> 05:32:11,920 color so this is all all I'm doing for 7931 05:32:11,920 --> 05:32:13,638 bubble then bubble can have border or 7932 05:32:13,638 --> 05:32:16,120 not you can decide right switch on 7933 05:32:16,120 --> 05:32:18,000 Border switch off border you have the 7934 05:32:18,000 --> 05:32:20,120 zoom option then you have the options 7935 05:32:20,120 --> 05:32:24,160 which is pitch alignment Viewpoint or 7936 05:32:24,680 --> 05:32:27,680 map labels are below or above right now 7937 05:32:27,680 --> 05:32:30,558 I don't think we are showing 7938 05:32:32,200 --> 05:32:34,360 labels you can enable the category 7939 05:32:34,360 --> 05:32:36,520 labels now you have the 7940 05:32:36,520 --> 05:32:38,958 labels and labels can have background or 7941 05:32:38,958 --> 05:32:40,920 cannot have background and you can add a 7942 05:32:40,920 --> 05:32:43,520 heat map layer as we discussed now if we 7943 05:32:43,520 --> 05:32:46,920 go here can put let's say Legend I'll 7944 05:32:46,920 --> 05:32:49,080 put category as a 7945 05:32:49,080 --> 05:32:51,958 legend the moment I put the legend you 7946 05:32:51,958 --> 05:32:54,240 can see the pie charts the labels are 7947 05:32:54,240 --> 05:32:56,920 too big we need to disable them I'm 7948 05:32:56,920 --> 05:32:59,080 disabling the category labels you can 7949 05:32:59,080 --> 05:33:00,798 see the pie chart better as soon as I 7950 05:33:00,798 --> 05:33:03,558 add the legend you cannot have the color 7951 05:33:03,558 --> 05:33:05,320 using conditional formatting so that is 7952 05:33:05,320 --> 05:33:08,000 gone you have the border and the width 7953 05:33:08,000 --> 05:33:10,360 of the Border if you want simply you 7954 05:33:10,360 --> 05:33:12,320 know a totally covered P you can have 7955 05:33:12,320 --> 05:33:13,680 the transparency if you want you can 7956 05:33:13,680 --> 05:33:16,400 increase the transparency of the 7957 05:33:16,400 --> 05:33:19,200 colors you can CH change the size again 7958 05:33:19,200 --> 05:33:21,878 we can start with little bit smaller and 7959 05:33:21,878 --> 05:33:23,400 going to a little bit 7960 05:33:23,400 --> 05:33:25,760 larger you can control the size you can 7961 05:33:25,760 --> 05:33:29,240 control the shape transparency again I 7962 05:33:29,240 --> 05:33:31,400 want lesser transparency in this case so 7963 05:33:31,400 --> 05:33:32,958 these are the various options you can 7964 05:33:32,958 --> 05:33:36,200 also use with the Azor map visual map 7965 05:33:36,200 --> 05:33:38,680 visual is coming as an stronger option 7966 05:33:38,680 --> 05:33:40,520 compared to all other visuals and you're 7967 05:33:40,520 --> 05:33:42,680 getting a lot of enhancement on that so 7968 05:33:42,680 --> 05:33:44,680 start exploring that it may give you 7969 05:33:44,680 --> 05:33:46,840 options which you have in other visuals 7970 05:33:46,840 --> 05:33:48,520 so it could act as a replacement of 7971 05:33:48,520 --> 05:33:51,280 those visuals the next uh visual which I 7972 05:33:51,280 --> 05:33:54,320 want to discuss here is card visual very 7973 05:33:54,320 --> 05:33:58,240 simple visual so let's add a new page 7974 05:33:58,240 --> 05:34:01,240 and from the build a visual I'm opening 7975 05:34:01,240 --> 05:34:02,680 the Builder visual pan this time I 7976 05:34:02,680 --> 05:34:06,360 closed it so I opened it by clicking on 7977 05:34:06,360 --> 05:34:08,520 build a visual 7978 05:34:08,520 --> 05:34:10,480 and in the Builder visual we have this 7979 05:34:10,480 --> 05:34:12,400 is card visual we also have a new card 7980 05:34:12,400 --> 05:34:14,638 visual which we'll learn after we learn 7981 05:34:14,638 --> 05:34:16,240 the major because we wanted to create an 7982 05:34:16,240 --> 05:34:19,080 icon measure for this and this visual is 7983 05:34:19,080 --> 05:34:21,240 also available here in the insert of the 7984 05:34:21,240 --> 05:34:24,280 Home tab so let me click on the card 7985 05:34:24,280 --> 05:34:27,480 visual we do do have a multi row card 7986 05:34:27,480 --> 05:34:29,958 Visual and the new card visual but let's 7987 05:34:29,958 --> 05:34:32,040 focus on this so in the card visual 7988 05:34:32,040 --> 05:34:34,760 let's drag a major and you can have one 7989 05:34:34,760 --> 05:34:37,200 mejor only at a time so I drag net then 7990 05:34:37,200 --> 05:34:39,280 if I try to Dr margin and it will 7991 05:34:39,280 --> 05:34:41,400 replace margin so I can have only one 7992 05:34:41,400 --> 05:34:44,600 major so I'll have net here now I'll 7993 05:34:44,600 --> 05:34:48,040 open the format by clicking on the 7994 05:34:48,040 --> 05:34:51,160 format and we have the size and the 7995 05:34:51,160 --> 05:34:52,798 position which is coming because we 7996 05:34:52,798 --> 05:34:55,480 draged versus what we how much size we 7997 05:34:55,480 --> 05:34:57,878 have given padding is for the top and 7998 05:34:57,878 --> 05:35:00,878 bottom if we want a tight fit text then 7999 05:35:00,878 --> 05:35:04,000 we can reduce the top and bottom spaces 8000 05:35:04,000 --> 05:35:05,440 background we can switch off we don't 8001 05:35:05,440 --> 05:35:07,320 need a background and in casee you need 8002 05:35:07,320 --> 05:35:09,320 a back ground and along with the color 8003 05:35:09,320 --> 05:35:10,878 like you want your background color to 8004 05:35:10,878 --> 05:35:12,558 change let's say my margin is positive 8005 05:35:12,558 --> 05:35:14,480 then it should be green and red then you 8006 05:35:14,480 --> 05:35:17,200 can do it using that then we have visual 8007 05:35:17,200 --> 05:35:20,558 borders uh in case you need it shadow in 8008 05:35:20,558 --> 05:35:22,558 case you need a shadow on and off as 8009 05:35:22,558 --> 05:35:24,520 usual we have tried out in the pass 8010 05:35:24,520 --> 05:35:27,160 title now sometime you may like to have 8011 05:35:27,160 --> 05:35:30,680 title or you know want to have a 8012 05:35:30,680 --> 05:35:32,360 category label like let me switch off 8013 05:35:32,360 --> 05:35:34,200 the category label so you can see the 8014 05:35:34,200 --> 05:35:36,840 net is not available now here so there 8015 05:35:36,840 --> 05:35:38,718 is no net value here when I switch off 8016 05:35:38,718 --> 05:35:41,840 the category label so instead of that I 8017 05:35:41,840 --> 05:35:43,480 may like to have a title which is known 8018 05:35:43,480 --> 05:35:44,760 as 8019 05:35:44,760 --> 05:35:48,558 net and I may would like to do it is 8020 05:35:48,558 --> 05:35:51,160 Central align and then I can have my 8021 05:35:51,160 --> 05:35:53,040 card visual like this now you have the 8022 05:35:53,040 --> 05:35:54,878 title now you can have a subtitle here 8023 05:35:54,878 --> 05:35:56,760 but I don't feel a need for giving but 8024 05:35:56,760 --> 05:35:58,558 you have an option for that having a 8025 05:35:58,558 --> 05:36:01,320 subtitle then divider in case you need a 8026 05:36:01,320 --> 05:36:04,558 divider between subtitle and the value 8027 05:36:04,558 --> 05:36:06,638 and then when I go to the call out value 8028 05:36:06,638 --> 05:36:08,040 that's why I created a little bit of 8029 05:36:08,040 --> 05:36:10,320 space because in the call out value I 8030 05:36:10,320 --> 05:36:12,920 want to use none so I can change my 8031 05:36:12,920 --> 05:36:15,320 format here and decimal place I'm also 8032 05:36:15,320 --> 05:36:17,280 going to make it zero my major do have a 8033 05:36:17,280 --> 05:36:18,718 decimal place but I can change the 8034 05:36:18,718 --> 05:36:20,638 number of decimal place text WP in case 8035 05:36:20,638 --> 05:36:23,320 it is bigger then we can have a text WP 8036 05:36:23,320 --> 05:36:25,040 then category level as we switched off 8037 05:36:25,040 --> 05:36:26,480 but if you want you can have category 8038 05:36:26,480 --> 05:36:27,760 level then you need to give a space 8039 05:36:27,760 --> 05:36:29,160 according to it I think both are not 8040 05:36:29,160 --> 05:36:31,680 needed you can have the font italic 8041 05:36:31,680 --> 05:36:34,200 underline in case you need that again uh 8042 05:36:34,200 --> 05:36:36,680 we have FX like basically the name 8043 05:36:36,680 --> 05:36:38,080 should change based on on the 8044 05:36:38,080 --> 05:36:40,320 conditional formatting let's say if the 8045 05:36:40,320 --> 05:36:42,240 net is passing some value we want to 8046 05:36:42,240 --> 05:36:45,400 have the label have changing its color 8047 05:36:45,400 --> 05:36:47,958 or call out value changing is color so 8048 05:36:47,958 --> 05:36:49,718 you can see these FX option is there in 8049 05:36:49,718 --> 05:36:51,920 the call out value this is there in the 8050 05:36:51,920 --> 05:36:53,958 category value category label it is 8051 05:36:53,958 --> 05:36:55,840 there and as well as in the background 8052 05:36:55,840 --> 05:36:58,718 also this same thing is available title 8053 05:36:58,718 --> 05:37:00,040 also it is 8054 05:37:00,040 --> 05:37:04,040 available text color background color FX 8055 05:37:04,040 --> 05:37:07,040 option and background also we have FX 8056 05:37:07,040 --> 05:37:09,440 option in means all these we can use 8057 05:37:09,440 --> 05:37:13,400 conditional formatting to change these 8058 05:37:13,400 --> 05:37:15,480 color so what I'm going to do here is 8059 05:37:15,480 --> 05:37:17,240 I'm going to disable again the category 8060 05:37:17,240 --> 05:37:19,558 label this looks much better and what I 8061 05:37:19,558 --> 05:37:22,638 can do is I can copy paste this and in 8062 05:37:22,638 --> 05:37:25,040 this new one instead of net I'll bring 8063 05:37:25,040 --> 05:37:27,798 in Gross and it has taken the same 8064 05:37:27,798 --> 05:37:30,120 properties so this is a trick that you 8065 05:37:30,120 --> 05:37:33,120 create a card Visual and set all the 8066 05:37:33,120 --> 05:37:37,160 properties and then duplicate it for the 8067 05:37:37,160 --> 05:37:40,680 s similar measures and use that in such 8068 05:37:40,680 --> 05:37:44,920 cases you will require lesser changes in 8069 05:37:44,920 --> 05:37:47,958 the new card visual which are coming in 8070 05:37:47,958 --> 05:37:50,240 and you will be able to use same set of 8071 05:37:50,240 --> 05:37:53,120 properties in multiple card visuals 8072 05:37:53,120 --> 05:37:56,000 finally go ahead and change it and now I 8073 05:37:56,000 --> 05:37:59,320 can use gross as a title here in this 8074 05:37:59,320 --> 05:38:01,558 manner you will require lesser amount of 8075 05:38:01,558 --> 05:38:03,760 work to format all your card visuals 8076 05:38:03,760 --> 05:38:05,240 there are certain time we can do multi 8077 05:38:05,240 --> 05:38:06,878 select some of the common properties are 8078 05:38:06,878 --> 05:38:08,480 visible and you can change those so that 8079 05:38:08,480 --> 05:38:11,558 is also you can do a faster formatting 8080 05:38:11,558 --> 05:38:13,878 so this is the card visual for you the 8081 05:38:13,878 --> 05:38:15,920 next visual which I want to discuss is 8082 05:38:15,920 --> 05:38:20,798 the multi row card Visual and what I'm 8083 05:38:20,798 --> 05:38:22,320 going to do is I'm going to add that on 8084 05:38:22,320 --> 05:38:24,120 the my card visual page so I opened 8085 05:38:24,120 --> 05:38:26,160 again my card visual page and this is 8086 05:38:26,160 --> 05:38:28,240 the multirow card visual here in a 8087 05:38:28,240 --> 05:38:32,520 builder Visual and it is appearing 8088 05:38:33,600 --> 05:38:36,878 here I can make it little bit bigger now 8089 05:38:36,878 --> 05:38:38,440 as the name suggest it's a multi row 8090 05:38:38,440 --> 05:38:41,040 card visual so one thing which comes to 8091 05:38:41,040 --> 05:38:43,840 my mind that I can have multiple 8092 05:38:43,840 --> 05:38:47,558 measures okay so let me copy paste it 8093 05:38:47,558 --> 05:38:51,798 duplicate it and let me see can I have 8094 05:38:51,798 --> 05:38:56,680 brand or category also as one of the 8095 05:38:56,680 --> 05:38:59,558 field I can have category 1 Category 2 8096 05:38:59,558 --> 05:39:01,840 Category 3 category 4 these kind of 8097 05:39:01,840 --> 05:39:04,520 values and so I can have a field as well 8098 05:39:04,520 --> 05:39:06,520 as a measure along with that so let's 8099 05:39:06,520 --> 05:39:08,240 start formatting the and see what all 8100 05:39:08,240 --> 05:39:10,240 the formatting options we have the 8101 05:39:10,240 --> 05:39:12,360 movement I used categorical field it 8102 05:39:12,360 --> 05:39:13,840 seems like I'm getting only vertical 8103 05:39:13,840 --> 05:39:16,080 here I was getting horizontal also so in 8104 05:39:16,080 --> 05:39:18,638 the first one let's add few more and see 8105 05:39:18,638 --> 05:39:21,000 is this is the the style or can we 8106 05:39:21,000 --> 05:39:24,478 change it seems like it do can do some 8107 05:39:24,478 --> 05:39:26,958 kind of adjustment but let's see how 8108 05:39:26,958 --> 05:39:29,160 much control do we have I clicked on the 8109 05:39:29,160 --> 05:39:30,320 first one and I'm going to change the 8110 05:39:30,320 --> 05:39:31,840 properties of the first one again the 8111 05:39:31,840 --> 05:39:33,600 background is something which I don't 8112 05:39:33,600 --> 05:39:35,840 require visual border again we have 8113 05:39:35,840 --> 05:39:37,440 learned in the past we don't require 8114 05:39:37,440 --> 05:39:39,360 that shadow we don't require title is 8115 05:39:39,360 --> 05:39:41,240 definitely you can if you required you 8116 05:39:41,240 --> 05:39:43,718 can call it 8117 05:39:43,718 --> 05:39:45,798 kpi 8118 05:39:45,798 --> 05:39:47,920 kpi or 8119 05:39:47,920 --> 05:39:50,718 kpis then again bold italic underline 8120 05:39:50,718 --> 05:39:53,240 text color you can do subtitle if you 8121 05:39:53,240 --> 05:39:56,160 require divider in case you need a line 8122 05:39:56,160 --> 05:39:58,558 between 8123 05:39:59,280 --> 05:40:03,718 these spacing then let's go to the card 8124 05:40:03,718 --> 05:40:09,320 so card we have a style which is top 8125 05:40:09,920 --> 05:40:12,240 bottom 8126 05:40:12,240 --> 05:40:15,718 left right these are just alignments if 8127 05:40:15,718 --> 05:40:18,558 you look at it so you have styles your 8128 05:40:18,558 --> 05:40:20,400 background your padding padding between 8129 05:40:20,400 --> 05:40:22,798 these things asent bar bar is something 8130 05:40:22,798 --> 05:40:24,958 which is available here basically and 8131 05:40:24,958 --> 05:40:27,558 want to remove that you can can remove 8132 05:40:27,558 --> 05:40:29,840 it and let me do a little bit of 8133 05:40:29,840 --> 05:40:32,958 adjustment here and that's where the new 8134 05:40:32,958 --> 05:40:35,440 card visual is much better here compared 8135 05:40:35,440 --> 05:40:37,558 to this one because as you can see not 8136 05:40:37,558 --> 05:40:39,600 much options are under control on the 8137 05:40:39,600 --> 05:40:43,000 design in case of uh the kpis and that's 8138 05:40:43,000 --> 05:40:44,558 where the new card visual is going to be 8139 05:40:44,558 --> 05:40:46,200 a better option which we discuss in 8140 05:40:46,200 --> 05:40:48,638 sometime now let me go here uh in this 8141 05:40:48,638 --> 05:40:51,320 one and as you we have size visual 8142 05:40:51,320 --> 05:40:54,040 border Shadow title call out values then 8143 05:40:54,040 --> 05:40:55,680 category labels is something which I 8144 05:40:55,680 --> 05:40:57,878 would like to disable now if I disable I 8145 05:40:57,878 --> 05:40:59,920 will not see gross and anyway here I I 8146 05:40:59,920 --> 05:41:02,040 don't want to see gross again and again 8147 05:41:02,040 --> 05:41:03,958 in this one but if you I want to have 8148 05:41:03,958 --> 05:41:05,478 category label I can have conditional 8149 05:41:05,478 --> 05:41:07,798 formatting that can change the color so 8150 05:41:07,798 --> 05:41:09,400 here we have the conditional formatting 8151 05:41:09,400 --> 05:41:11,798 options on call out values and call out 8152 05:41:11,798 --> 05:41:13,478 value is nothing but your actual value 8153 05:41:13,478 --> 05:41:16,320 so I can make it bold so that you 8154 05:41:16,320 --> 05:41:17,878 understand this is what we call call out 8155 05:41:17,878 --> 05:41:20,360 value category label youve seen this is 8156 05:41:20,360 --> 05:41:23,280 what you call category 8157 05:41:23,360 --> 05:41:25,798 label and we have conditional formatting 8158 05:41:25,798 --> 05:41:27,200 available at the call out value level 8159 05:41:27,200 --> 05:41:28,760 and category label label here I don't 8160 05:41:28,760 --> 05:41:30,558 need the category label so I'm going to 8161 05:41:30,558 --> 05:41:32,400 hide it but definitely we can use 8162 05:41:32,400 --> 05:41:34,320 conditional formatting so we can go 8163 05:41:34,320 --> 05:41:36,160 ahead and say okay we need the 8164 05:41:36,160 --> 05:41:37,718 conditional formatting based on let's 8165 05:41:37,718 --> 05:41:40,360 say discount percentage and we have 8166 05:41:40,360 --> 05:41:46,120 discount from 0 to 25 maximum or 35 8167 05:41:46,120 --> 05:41:48,520 maximum and we'll say okay and as you 8168 05:41:48,520 --> 05:41:51,478 can see the text has color but all the 8169 05:41:51,478 --> 05:41:54,440 colors are very nearby tell you a better 8170 05:41:54,440 --> 05:41:56,638 way to know the range so go here and add 8171 05:41:56,638 --> 05:41:58,958 the discount percentage so you can see 8172 05:41:58,958 --> 05:42:00,558 the entire discount percentage is 8173 05:42:00,558 --> 05:42:04,840 between 22.8 n and 8174 05:42:04,840 --> 05:42:07,440 23.4 so what I've done basically I set 8175 05:42:07,440 --> 05:42:11,440 up the value between 225 and 235 and try 8176 05:42:11,440 --> 05:42:14,160 to keep it but as our values are pretty 8177 05:42:14,160 --> 05:42:16,478 nearby you will see that you know most 8178 05:42:16,478 --> 05:42:19,680 of the values are having color which is 8179 05:42:19,680 --> 05:42:21,360 very near to each other because these 8180 05:42:21,360 --> 05:42:24,200 values are very nearby or we could have 8181 05:42:24,200 --> 05:42:25,520 actually done what on the margin 8182 05:42:25,520 --> 05:42:27,280 percentage if you take margin percentage 8183 05:42:27,280 --> 05:42:29,120 basically uh you have we have a little 8184 05:42:29,120 --> 05:42:31,240 bit bigger range but for categories we 8185 05:42:31,240 --> 05:42:33,718 don't have so these kind of challenges 8186 05:42:33,718 --> 05:42:35,958 can come if your ranges are very nearby 8187 05:42:35,958 --> 05:42:38,040 so in such cases you can use use field 8188 05:42:38,040 --> 05:42:40,160 value base or rule based and call out 8189 05:42:40,160 --> 05:42:42,600 explicit color which can differentiate 8190 05:42:42,600 --> 05:42:45,240 that we will learn little bit later as 8191 05:42:45,240 --> 05:42:46,798 you might have seen that I added 8192 05:42:46,798 --> 05:42:48,600 discount percentage and margin 8193 05:42:48,600 --> 05:42:51,160 percentage also I can add here at this 8194 05:42:51,160 --> 05:42:52,958 moment it is really important to know 8195 05:42:52,958 --> 05:42:55,320 what category label it is and I have to 8196 05:42:55,320 --> 05:42:56,958 now enable the category label if I want 8197 05:42:56,958 --> 05:42:59,080 to show it so in the previous case the 8198 05:42:59,080 --> 05:43:01,320 category label was not uh required when 8199 05:43:01,320 --> 05:43:02,878 I only have the one value but now 8200 05:43:02,878 --> 05:43:05,080 because I have multiple of them it is 8201 05:43:05,080 --> 05:43:07,160 required that I have the category level 8202 05:43:07,160 --> 05:43:08,760 multiple purpose so some of those 8203 05:43:08,760 --> 05:43:11,040 purpose may not be easily served by the 8204 05:43:11,040 --> 05:43:12,760 new card Visual and one of those purpose 8205 05:43:12,760 --> 05:43:14,760 is this purpose where I have a category 8206 05:43:14,760 --> 05:43:16,718 and I then I display these multiple 8207 05:43:16,718 --> 05:43:18,840 Majors below it and this kind of display 8208 05:43:18,840 --> 05:43:20,760 is something very specific to the 8209 05:43:20,760 --> 05:43:23,120 multirow card this is multi card visual 8210 05:43:23,120 --> 05:43:25,638 for you so the next thing I want to 8211 05:43:25,638 --> 05:43:28,160 discuss uh filter pan with you and 8212 05:43:28,160 --> 05:43:30,558 before going to the next visualization 8213 05:43:30,558 --> 05:43:32,680 which is basically slicer I would like 8214 05:43:32,680 --> 05:43:35,240 to discuss filter pain with you because 8215 05:43:35,240 --> 05:43:37,958 how filter pain applies and house slicer 8216 05:43:37,958 --> 05:43:39,280 is going to be a little bit different 8217 05:43:39,280 --> 05:43:40,638 from that this is something I want to 8218 05:43:40,638 --> 05:43:42,320 explain what I've done here is basically 8219 05:43:42,320 --> 05:43:43,760 from different pages which we already 8220 05:43:43,760 --> 05:43:46,400 created this is Matrix visual this is 8221 05:43:46,400 --> 05:43:48,520 the tagged bar visual this is p Visual 8222 05:43:48,520 --> 05:43:49,638 and this is table visual these are the 8223 05:43:49,638 --> 05:43:51,080 same visual which we have created in the 8224 05:43:51,080 --> 05:43:53,320 past some time back in the other pages 8225 05:43:53,320 --> 05:43:54,718 and from there I copy paste it and 8226 05:43:54,718 --> 05:43:57,360 resize it let me open the filter pan now 8227 05:43:57,360 --> 05:43:59,040 now let's try to understand what is this 8228 05:43:59,040 --> 05:44:00,680 so now when the no visual is selected 8229 05:44:00,680 --> 05:44:02,440 you see filter on this page and filter 8230 05:44:02,440 --> 05:44:04,680 on all page and you don't see any value 8231 05:44:04,680 --> 05:44:06,440 inside it but if I click on a particular 8232 05:44:06,440 --> 05:44:08,080 visual in this case when I clicked on 8233 05:44:08,080 --> 05:44:10,120 the pi visual you do see category margin 8234 05:44:10,120 --> 05:44:13,520 margin percentage as the filters which 8235 05:44:13,520 --> 05:44:15,798 is available means 8236 05:44:15,798 --> 05:44:18,680 both categorical variable and the 8237 05:44:18,680 --> 05:44:20,200 numerical variable which is basically 8238 05:44:20,200 --> 05:44:22,840 the majors Majors as well as the fields 8239 05:44:22,840 --> 05:44:24,520 or the columns are available for 8240 05:44:24,520 --> 05:44:25,920 filtering when I click on the table 8241 05:44:25,920 --> 05:44:28,240 visual you see what is be added so 8242 05:44:28,240 --> 05:44:29,600 typically what has been added is by 8243 05:44:29,600 --> 05:44:31,760 default available in the filters of that 8244 05:44:31,760 --> 05:44:33,718 particular visual we can definitely go 8245 05:44:33,718 --> 05:44:36,760 ahead and add a few more values now let 8246 05:44:36,760 --> 05:44:38,400 me come to this particular visual in the 8247 05:44:38,400 --> 05:44:40,200 category Visual and if I want to filter 8248 05:44:40,200 --> 05:44:42,920 something I go ahead and filter this now 8249 05:44:42,920 --> 05:44:44,600 as you can see there is no impact on the 8250 05:44:44,600 --> 05:44:45,440 other 8251 05:44:45,440 --> 05:44:47,798 visuals I'm filtering a value and there 8252 05:44:47,798 --> 05:44:49,320 is no impact on the other visual when 8253 05:44:49,320 --> 05:44:50,958 I'm filtering from the visual level 8254 05:44:50,958 --> 05:44:52,680 filter so visual level filter only 8255 05:44:52,680 --> 05:44:55,240 impact a particular visual then the 8256 05:44:55,240 --> 05:44:57,360 second thing I'm seeing some Majors also 8257 05:44:57,360 --> 05:45:00,000 like margin margin percentage here in 8258 05:45:00,000 --> 05:45:02,520 this visualization so let me go to this 8259 05:45:02,520 --> 05:45:03,760 column 8260 05:45:03,760 --> 05:45:07,840 net and let me say the value is 8261 05:45:07,840 --> 05:45:09,478 what are the options I have so in the 8262 05:45:09,478 --> 05:45:11,638 net I have option is less than is more 8263 05:45:11,638 --> 05:45:15,360 than is blank Etc so what I'm going to 8264 05:45:15,360 --> 05:45:18,040 say here is basically if you see I have 8265 05:45:18,040 --> 05:45:20,558 values which is basically 1.3 million 8266 05:45:20,558 --> 05:45:24,320 1.7 million 1.8 million 2.5 million so 8267 05:45:24,320 --> 05:45:27,558 let me say value is greater than and I'm 8268 05:45:27,558 --> 05:45:29,478 going to write down 1.5 8269 05:45:29,478 --> 05:45:32,240 million so this is 1.5 million value 8270 05:45:32,240 --> 05:45:34,478 basically and I say apply filter so now 8271 05:45:34,478 --> 05:45:37,120 you can see the it is getting filtered 8272 05:45:37,120 --> 05:45:39,400 based on the value one most important 8273 05:45:39,400 --> 05:45:41,280 thing which you have to remember that 8274 05:45:41,280 --> 05:45:45,120 you can only use major filter the filter 8275 05:45:45,120 --> 05:45:48,760 on a measure in the visual level filter 8276 05:45:48,760 --> 05:45:51,840 only so you can only filter measure at 8277 05:45:51,840 --> 05:45:55,400 the visual level now there is one more 8278 05:45:55,400 --> 05:45:57,320 which you can use here and for that what 8279 05:45:57,320 --> 05:45:59,080 let me do is let me simplify this table 8280 05:45:59,080 --> 05:46:01,080 visual I go to the table Visual and open 8281 05:46:01,080 --> 05:46:02,520 it build and from there I'm going to 8282 05:46:02,520 --> 05:46:04,638 remove category I'm trying to simplify 8283 05:46:04,638 --> 05:46:08,120 it and when I go to brand 8284 05:46:08,120 --> 05:46:10,320 actually instead of basic filtering I 8285 05:46:10,320 --> 05:46:13,520 can do the advanced filtering just like 8286 05:46:13,520 --> 05:46:15,440 I have done in the text majure where I 8287 05:46:15,440 --> 05:46:16,840 used Advanced filtering not the basic 8288 05:46:16,840 --> 05:46:18,638 filtering so the basic filtering is 8289 05:46:18,638 --> 05:46:21,638 basically the values I can select brand 8290 05:46:21,638 --> 05:46:24,638 one and I can also select brand 10 Brand 8291 05:46:24,638 --> 05:46:27,000 11 that's my basic filtering the values 8292 05:46:27,000 --> 05:46:29,878 filtering then you need Advanced 8293 05:46:29,878 --> 05:46:31,400 filtering so in advanced filing I can 8294 05:46:31,400 --> 05:46:34,240 have contain uh does not contain but I 8295 05:46:34,240 --> 05:46:35,478 have very similar so I can say Okay 8296 05:46:35,478 --> 05:46:38,798 contain one and apply all those which 8297 05:46:38,798 --> 05:46:41,240 contain one will come 8298 05:46:41,240 --> 05:46:43,680 now as you can see in the contain I can 8299 05:46:43,680 --> 05:46:45,958 have contain this or this there are only 8300 05:46:45,958 --> 05:46:47,760 two options but if you need multiple 8301 05:46:47,760 --> 05:46:50,240 contain what you need to do so in case 8302 05:46:50,240 --> 05:46:51,920 you need more than one values in the 8303 05:46:51,920 --> 05:46:54,240 advanced filtering what you do is go to 8304 05:46:54,240 --> 05:46:55,520 the basic filtering let's say I need 8305 05:46:55,520 --> 05:46:57,920 three conditions so check out three here 8306 05:46:57,920 --> 05:47:01,000 and then go and say advanc filtering so 8307 05:47:01,000 --> 05:47:02,558 you will get three conditions there and 8308 05:47:02,558 --> 05:47:05,958 now you can say is and does not start 8309 05:47:05,958 --> 05:47:08,200 with or start with so and and or 8310 05:47:08,200 --> 05:47:10,200 combinations you can create so we can 8311 05:47:10,200 --> 05:47:13,120 say is brand one or is brand 10 or is 8312 05:47:13,120 --> 05:47:14,958 Brand 11 that's the three values 8313 05:47:14,958 --> 05:47:17,520 basically in or multiple selection means 8314 05:47:17,520 --> 05:47:22,558 that add otherwise we can say 8315 05:47:22,558 --> 05:47:26,878 or contains or start with we say or 8316 05:47:26,878 --> 05:47:28,718 contains let's say 8317 05:47:28,718 --> 05:47:31,520 two either it is brand one or brand 10 8318 05:47:31,520 --> 05:47:33,920 or it contains two we got a different 8319 05:47:33,920 --> 05:47:35,798 combination in this manner you can have 8320 05:47:35,798 --> 05:47:37,320 multiple conditions and and with the 8321 05:47:37,320 --> 05:47:39,638 Eraser with the help of the Eraser here 8322 05:47:39,638 --> 05:47:42,600 you can actually remove it so now you 8323 05:47:42,600 --> 05:47:43,878 understand the basic filtering selection 8324 05:47:43,878 --> 05:47:45,360 of values Advanced filtering you have 8325 05:47:45,360 --> 05:47:47,440 lot of options and the options would 8326 05:47:47,440 --> 05:47:49,200 change based on whether it's a number or 8327 05:47:49,200 --> 05:47:51,558 whether it's aing data type you can have 8328 05:47:51,558 --> 05:47:53,478 like contains does not contain is not 8329 05:47:53,478 --> 05:47:56,040 blank blank is really important because 8330 05:47:56,040 --> 05:47:58,400 is blank or is not blank or empty values 8331 05:47:58,400 --> 05:47:59,798 when you don't have the values it is 8332 05:47:59,798 --> 05:48:01,798 going to help you out now the Third Kind 8333 05:48:01,798 --> 05:48:03,920 of filtering which we wanted to discuss 8334 05:48:03,920 --> 05:48:06,240 is the top end and the that is because 8335 05:48:06,240 --> 05:48:08,638 of which I actually I also removed the 8336 05:48:08,638 --> 05:48:10,280 category because I want to explain you 8337 05:48:10,280 --> 05:48:11,878 this easily so you have something known 8338 05:48:11,878 --> 05:48:14,000 as top end filter in the top end you can 8339 05:48:14,000 --> 05:48:17,160 specify I need five now five based on 8340 05:48:17,160 --> 05:48:19,240 what let's say cogs discount margin 8341 05:48:19,240 --> 05:48:20,798 margin percentage let's say net I'll 8342 05:48:20,798 --> 05:48:23,360 bring in net here now remember right now 8343 05:48:23,360 --> 05:48:26,120 you are not do net here but I still 8344 05:48:26,120 --> 05:48:28,638 based on the net I want to filter and 8345 05:48:28,638 --> 05:48:32,600 I'll say apply I ask for top five and 8346 05:48:32,600 --> 05:48:34,120 you might be surprised why it is not G 8347 05:48:34,120 --> 05:48:35,718 toet price the reason for that is this 8348 05:48:35,718 --> 05:48:38,920 quantity because the sales quantity is 8349 05:48:38,920 --> 05:48:40,798 unsummon summarize so I'm going to 8350 05:48:40,798 --> 05:48:42,400 remove it and now you're only going to 8351 05:48:42,400 --> 05:48:44,280 see five properties I don't have net 8352 05:48:44,280 --> 05:48:46,360 inside this visual but still I can do it 8353 05:48:46,360 --> 05:48:49,680 so this is top five based on net I can 8354 05:48:49,680 --> 05:48:52,680 change it based on margin percentage or 8355 05:48:52,680 --> 05:48:54,280 this percentage that percent I can only 8356 05:48:54,280 --> 05:48:57,000 have one one such thing because if you 8357 05:48:57,000 --> 05:49:00,360 say I want let's say State also here you 8358 05:49:00,360 --> 05:49:02,120 can add a state as a visual level filter 8359 05:49:02,120 --> 05:49:04,200 but if you now wanted to do let's say 8360 05:49:04,200 --> 05:49:06,478 top end you can only apply one top end 8361 05:49:06,478 --> 05:49:08,000 filter so you can't apply more than one 8362 05:49:08,000 --> 05:49:10,040 top end filter if you want that kind of 8363 05:49:10,040 --> 05:49:11,680 stuff where you have more than one top 8364 05:49:11,680 --> 05:49:13,760 end filter then you have to go ahead and 8365 05:49:13,760 --> 05:49:16,120 write down a top and major or you have 8366 05:49:16,120 --> 05:49:17,600 to write down a rank and then you to 8367 05:49:17,600 --> 05:49:20,798 filter it so top end and the major 8368 05:49:20,798 --> 05:49:22,400 filters are visual level filter 8369 05:49:22,400 --> 05:49:24,280 properties so visual level is something 8370 05:49:24,280 --> 05:49:25,760 which only filters that particular 8371 05:49:25,760 --> 05:49:27,478 visual see anything I'm doing on this 8372 05:49:27,478 --> 05:49:29,240 visual is not impacting any other visual 8373 05:49:29,240 --> 05:49:31,240 you might have seen the entire exercise 8374 05:49:31,240 --> 05:49:33,160 which we have done there's nothing 8375 05:49:33,160 --> 05:49:35,080 changing in other visual now what we're 8376 05:49:35,080 --> 05:49:37,478 going to do is let's go ahead and 8377 05:49:37,478 --> 05:49:39,878 continue with this these visuals will 8378 05:49:39,878 --> 05:49:41,440 keep as is so this is filtering on 8379 05:49:41,440 --> 05:49:44,280 category this is filtering on brand and 8380 05:49:44,280 --> 05:49:46,000 what we going to do is on the page level 8381 05:49:46,000 --> 05:49:48,160 filter now I'll go to the page level 8382 05:49:48,160 --> 05:49:51,120 filter and let me bring in a brand on 8383 05:49:51,120 --> 05:49:53,160 the page level filter this is Page level 8384 05:49:53,160 --> 05:49:55,280 filter and I select brand one now 8385 05:49:55,280 --> 05:49:57,040 there's no brand one here we don't know 8386 05:49:57,040 --> 05:49:59,320 which whether in this category brand one 8387 05:49:59,320 --> 05:50:00,878 are appears or not we definitely no 8388 05:50:00,878 --> 05:50:02,280 brand appearance here and their Valu 8389 05:50:02,280 --> 05:50:05,638 should change I click on brand one now 8390 05:50:05,638 --> 05:50:07,400 the brand one does does not appear in 8391 05:50:07,400 --> 05:50:09,798 that particular set of categories so it 8392 05:50:09,798 --> 05:50:12,240 disappeared here brand one why you're 8393 05:50:12,240 --> 05:50:14,040 getting brand one here the reason is the 8394 05:50:14,040 --> 05:50:16,160 moment I filter the page 8395 05:50:16,160 --> 05:50:19,440 data my top five got adjusted to that 8396 05:50:19,440 --> 05:50:21,120 and because I only selected brand one I 8397 05:50:21,120 --> 05:50:22,920 can get top five in that when I add 8398 05:50:22,920 --> 05:50:25,000 let's say Brand 11 brand 12 brand 13 8399 05:50:25,000 --> 05:50:29,718 brand 10 brand two I get a new top five 8400 05:50:29,718 --> 05:50:32,040 based on my selection so that's where 8401 05:50:32,040 --> 05:50:33,680 the top end filter is working and that's 8402 05:50:33,680 --> 05:50:35,638 why we have brand still there and you 8403 05:50:35,638 --> 05:50:37,478 can see other places we have more values 8404 05:50:37,478 --> 05:50:39,400 and these values continue to change 8405 05:50:39,400 --> 05:50:40,798 anything which you apply on the page 8406 05:50:40,798 --> 05:50:42,798 level is going to filter all the content 8407 05:50:42,798 --> 05:50:45,160 of the page now one of the limitation 8408 05:50:45,160 --> 05:50:47,160 which the filters have and that's where 8409 05:50:47,160 --> 05:50:50,638 we are going to have slicer that I I 8410 05:50:50,638 --> 05:50:54,840 can't stop the filtering of this visual 8411 05:50:54,840 --> 05:50:56,558 when I apply the page level filter so 8412 05:50:56,558 --> 05:50:58,000 either I do visual level filter which 8413 05:50:58,000 --> 05:50:59,920 filters the visual or I filter all the 8414 05:50:59,920 --> 05:51:03,240 visual I cannot stop my filter to 8415 05:51:03,240 --> 05:51:06,120 interact or stop the interaction between 8416 05:51:06,120 --> 05:51:07,478 a filter 8417 05:51:07,478 --> 05:51:10,160 of the page level or filter at the all 8418 05:51:10,160 --> 05:51:12,600 page level which is below I cannot stop 8419 05:51:12,600 --> 05:51:15,840 its interaction with any of my visual 8420 05:51:15,840 --> 05:51:17,360 which is available in my page now at the 8421 05:51:17,360 --> 05:51:18,520 page level filter we have basic 8422 05:51:18,520 --> 05:51:20,240 filtering and advanced filtering in 8423 05:51:20,240 --> 05:51:21,600 advanced filtering because I selected 8424 05:51:21,600 --> 05:51:23,040 multiple values it's giving me this 8425 05:51:23,040 --> 05:51:25,200 option but I can erase it again based on 8426 05:51:25,200 --> 05:51:27,520 what I select I selected this on brand 8427 05:51:27,520 --> 05:51:29,478 so I can have contained is not blank is 8428 05:51:29,478 --> 05:51:31,920 not blank is empty does not contain so 8429 05:51:31,920 --> 05:51:34,798 let's say do not start with b and we 8430 05:51:34,798 --> 05:51:36,798 don't have any brand which which is 8431 05:51:36,798 --> 05:51:38,240 doesn't start with B all the brands 8432 05:51:38,240 --> 05:51:40,360 start with B so we will not have any 8433 05:51:40,360 --> 05:51:42,840 value we'll do one thing we'll remove 8434 05:51:42,840 --> 05:51:45,558 this filter all together on the brand 8435 05:51:45,558 --> 05:51:48,360 and let's bring in state from the 8436 05:51:48,360 --> 05:51:50,520 geography at the page level filter and 8437 05:51:50,520 --> 05:51:52,360 here Advanced filtering is little bit 8438 05:51:52,360 --> 05:51:54,878 interesting because then here we can say 8439 05:51:54,878 --> 05:51:59,360 let's say start with n New York 8440 05:51:59,360 --> 05:52:02,478 NE you can say we got New York as the 8441 05:52:02,478 --> 05:52:03,878 state level and then there are few more 8442 05:52:03,878 --> 05:52:06,638 State like New Jersey and New Mexico 8443 05:52:06,638 --> 05:52:08,878 which start with new so it's also 8444 05:52:08,878 --> 05:52:10,798 possible that the categories are not 8445 05:52:10,798 --> 05:52:12,520 having that kind of data so they are not 8446 05:52:12,520 --> 05:52:14,680 getting the values so we are able to 8447 05:52:14,680 --> 05:52:16,558 filter the values so not now what I'm 8448 05:52:16,558 --> 05:52:17,798 going to do is I'm going to erase these 8449 05:52:17,798 --> 05:52:19,240 values and let's go to the all page 8450 05:52:19,240 --> 05:52:21,040 level what's the difference between this 8451 05:52:21,040 --> 05:52:22,798 page level and all page level so we 8452 05:52:22,798 --> 05:52:24,478 understood that visual level is only at 8453 05:52:24,478 --> 05:52:26,200 visual page level is going to filter all 8454 05:52:26,200 --> 05:52:29,478 the visuals on the page but if I bring 8455 05:52:29,478 --> 05:52:31,000 something at state 8456 05:52:31,000 --> 05:52:33,878 level and let's say I select laska it's 8457 05:52:33,878 --> 05:52:35,680 filtered the everything in this one go 8458 05:52:35,680 --> 05:52:37,520 to other page 8459 05:52:37,520 --> 05:52:38,760 this page is also 8460 05:52:38,760 --> 05:52:41,440 filtered what this page this page is 8461 05:52:41,440 --> 05:52:43,440 also filtered so everything is Alaska 8462 05:52:43,440 --> 05:52:45,718 here we said no no no how do I make sure 8463 05:52:45,718 --> 05:52:48,000 that it's only the multiple page level 8464 05:52:48,000 --> 05:52:50,798 which filing so we filter Arizona here 8465 05:52:50,798 --> 05:52:53,400 and then we go back to the filter pane 8466 05:52:53,400 --> 05:52:56,280 page and Arizona is filtered here you 8467 05:52:56,280 --> 05:52:59,760 say it may possible that the page level 8468 05:52:59,760 --> 05:53:02,000 is filtering also on all the pages not 8469 05:53:02,000 --> 05:53:04,360 this one so let's experiment let's go to 8470 05:53:04,360 --> 05:53:05,840 the page level filter again this is 8471 05:53:05,840 --> 05:53:08,478 filter on this page and let's go to the 8472 05:53:08,478 --> 05:53:10,080 basic filtering and let try to filter 8473 05:53:10,080 --> 05:53:12,240 let's say Alaska and Arizona now this 8474 05:53:12,240 --> 05:53:14,600 page is Alaska and Arizona but if I go 8475 05:53:14,600 --> 05:53:16,600 to this Azor map and you can still see 8476 05:53:16,600 --> 05:53:19,000 all the values okay you say very good 8477 05:53:19,000 --> 05:53:20,718 all the and you don't have a page level 8478 05:53:20,718 --> 05:53:22,718 filter also here you can you can see 8479 05:53:22,718 --> 05:53:24,080 this there is no page level filter this 8480 05:53:24,080 --> 05:53:26,718 all page level is all fine okay let me 8481 05:53:26,718 --> 05:53:28,000 go ahead and un check this and let's 8482 05:53:28,000 --> 05:53:30,360 select Alaska I select Alaska come back 8483 05:53:30,360 --> 05:53:33,400 to the filter pan and I see only alasa 8484 05:53:33,400 --> 05:53:35,160 value here remember we have two values 8485 05:53:35,160 --> 05:53:37,440 selected Alaska Arizona but the all page 8486 05:53:37,440 --> 05:53:39,280 level filter is restricting it to Alaska 8487 05:53:39,280 --> 05:53:40,520 so we are only getting the value of 8488 05:53:40,520 --> 05:53:43,520 Alaska and the cities of 8489 05:53:43,520 --> 05:53:45,680 Alaska in this manner what is happening 8490 05:53:45,680 --> 05:53:48,320 is basically we are able to filter at 8491 05:53:48,320 --> 05:53:50,200 different level visual level page level 8492 05:53:50,200 --> 05:53:51,878 and all page 8493 05:53:51,878 --> 05:53:55,120 level with this now we will go ahead and 8494 05:53:55,120 --> 05:53:56,798 learn 8495 05:53:56,798 --> 05:53:59,240 slicers now slicers are at the page 8496 05:53:59,240 --> 05:54:01,360 level but there is a feature sync slicer 8497 05:54:01,360 --> 05:54:04,240 which can make them available on 8498 05:54:04,240 --> 05:54:06,878 multiple pages so we have to learn that 8499 05:54:06,878 --> 05:54:09,200 we will now explore slicers what I've 8500 05:54:09,200 --> 05:54:10,760 done basically is I already created a 8501 05:54:10,760 --> 05:54:12,478 page where I 8502 05:54:12,478 --> 05:54:15,000 have taken the visuals from the older 8503 05:54:15,000 --> 05:54:17,920 page and when we was doing the filter 8504 05:54:17,920 --> 05:54:19,440 pan these are the same set of visual 8505 05:54:19,440 --> 05:54:22,920 which were there I removed visual level 8506 05:54:22,920 --> 05:54:27,000 filter from the category uh pie chart 8507 05:54:27,000 --> 05:54:29,000 and I kept visual level filter as you 8508 05:54:29,000 --> 05:54:30,360 can see top five brand on the table 8509 05:54:30,360 --> 05:54:32,280 level and I created a little bit of 8510 05:54:32,280 --> 05:54:34,520 space here so that you know we can use 8511 05:54:34,520 --> 05:54:37,120 the slicers now with we will use one 8512 05:54:37,120 --> 05:54:38,760 property interaction here which I'm 8513 05:54:38,760 --> 05:54:40,840 going to Deep dive into the details 8514 05:54:40,840 --> 05:54:44,360 later but we will be able to understand 8515 05:54:44,360 --> 05:54:46,680 the slicer functionality better if we 8516 05:54:46,680 --> 05:54:48,798 understand that how the 8517 05:54:48,798 --> 05:54:51,638 slicer Behavior can be changed using 8518 05:54:51,638 --> 05:54:54,478 interaction to add the slicer we have 8519 05:54:54,478 --> 05:54:57,160 two slicer options both available in 8520 05:54:57,160 --> 05:55:01,320 Builder visual as well as homage insert 8521 05:55:01,320 --> 05:55:04,000 so we will open the homepage insert and 8522 05:55:04,000 --> 05:55:05,958 if we scroll down we will be able to see 8523 05:55:05,958 --> 05:55:11,320 both the the slices the new slicer and 8524 05:55:11,320 --> 05:55:14,718 the old slicer as of now we'll start 8525 05:55:14,718 --> 05:55:16,760 with the old slicer and then we are 8526 05:55:16,760 --> 05:55:19,558 going to go to the new slicer also if I 8527 05:55:19,558 --> 05:55:21,520 enable the build visual region again we 8528 05:55:21,520 --> 05:55:25,360 have the new new slicer here and we have 8529 05:55:25,360 --> 05:55:27,440 the old slicer here they are not at this 8530 05:55:27,440 --> 05:55:30,120 nearby place they're little bit far away 8531 05:55:30,120 --> 05:55:32,558 but you have the two of them here the 8532 05:55:32,558 --> 05:55:33,798 first thing which you want to do is we 8533 05:55:33,798 --> 05:55:37,080 want to use this old slicer and so if 8534 05:55:37,080 --> 05:55:39,360 you click on empty space and click on 8535 05:55:39,360 --> 05:55:42,200 the new slicer you'll get it in empty I 8536 05:55:42,200 --> 05:55:46,080 would start by filtering the brand so I 8537 05:55:46,080 --> 05:55:48,878 can simply drag in a slicer and then I 8538 05:55:48,878 --> 05:55:51,200 can drag in a value field value here and 8539 05:55:51,200 --> 05:55:55,558 I can get a simple like this one and 8540 05:55:55,558 --> 05:55:57,360 this is basically categorical because of 8541 05:55:57,360 --> 05:55:59,440 that the slicer has come like this and I 8542 05:55:59,440 --> 05:56:02,638 can actually select values like this if 8543 05:56:02,638 --> 05:56:04,160 I click on another value it's going to 8544 05:56:04,160 --> 05:56:06,760 remove the previous value and select the 8545 05:56:06,760 --> 05:56:08,920 next value now if I want to select 8546 05:56:08,920 --> 05:56:11,718 multiple I can click with control we can 8547 05:56:11,718 --> 05:56:13,080 change this 8548 05:56:13,080 --> 05:56:15,280 Behavior with control I can select 8549 05:56:15,280 --> 05:56:17,638 multiple values control again control is 8550 05:56:17,638 --> 05:56:19,160 present right now when I'm doing all 8551 05:56:19,160 --> 05:56:24,798 these so this is the first look now 8552 05:56:24,798 --> 05:56:26,958 there are tons of format available with 8553 05:56:26,958 --> 05:56:28,760 this one also and then we can create the 8554 05:56:28,760 --> 05:56:31,080 hierarchical sler also so basically 8555 05:56:31,080 --> 05:56:32,840 let's look at the properties and then we 8556 05:56:32,840 --> 05:56:34,440 have to do multiple versions of this 8557 05:56:34,440 --> 05:56:36,440 slice survey so this is size and style 8558 05:56:36,440 --> 05:56:37,878 and padding which is very common 8559 05:56:37,878 --> 05:56:39,360 background we have seen visual border 8560 05:56:39,360 --> 05:56:40,958 and Shadow these are the things we are 8561 05:56:40,958 --> 05:56:42,680 not bothered about title is something 8562 05:56:42,680 --> 05:56:44,558 which if you want you can add it now 8563 05:56:44,558 --> 05:56:47,160 brand already is available as a slicer 8564 05:56:47,160 --> 05:56:48,718 header which I can remove if I want 8565 05:56:48,718 --> 05:56:51,160 title Now understand there is something 8566 05:56:51,160 --> 05:56:52,760 known as slicer header the moment I give 8567 05:56:52,760 --> 05:56:54,760 it it comes as a brand here and then 8568 05:56:54,760 --> 05:56:56,958 there is a set of properties for that if 8569 05:56:56,958 --> 05:56:58,760 I don't need I can create a title which 8570 05:56:58,760 --> 05:57:01,400 is separate than slicer and the title 8571 05:57:01,400 --> 05:57:04,280 can also be a function driven okay so I 8572 05:57:04,280 --> 05:57:07,840 can write down brand and then I can get 8573 05:57:07,840 --> 05:57:10,240 it based on a major and then there's a 8574 05:57:10,240 --> 05:57:12,958 conditional formatting also available 8575 05:57:12,958 --> 05:57:15,400 let's say in this one I want to write 8576 05:57:15,400 --> 05:57:17,080 down the set of selected values on the 8577 05:57:17,080 --> 05:57:19,360 title so I can do that we will once we 8578 05:57:19,360 --> 05:57:21,320 learn little bit more about the majors 8579 05:57:21,320 --> 05:57:24,120 we will be able to create that kind of a 8580 05:57:24,120 --> 05:57:26,440 function which can give all the values 8581 05:57:26,440 --> 05:57:28,400 on the title then we have the slicer 8582 05:57:28,400 --> 05:57:29,878 setting now this is really important 8583 05:57:29,878 --> 05:57:31,600 this is something which we right now 8584 05:57:31,600 --> 05:57:34,320 seeing we call it as a vertical list you 8585 05:57:34,320 --> 05:57:36,400 have tiles basically the tile will 8586 05:57:36,400 --> 05:57:37,680 comeing something like this and that's 8587 05:57:37,680 --> 05:57:39,638 why I kept little bit space here and 8588 05:57:39,638 --> 05:57:42,360 make it so you have the tiles here and 8589 05:57:42,360 --> 05:57:43,760 then if there are more values there 8590 05:57:43,760 --> 05:57:46,120 would can be horizontal scale we have 8591 05:57:46,120 --> 05:57:49,080 the horizontal one so this is style 8592 05:57:49,080 --> 05:57:51,240 previously this was known as orientation 8593 05:57:51,240 --> 05:57:53,440 horizontal this is style and if I click 8594 05:57:53,440 --> 05:57:55,320 here as usual it's going to filter the 8595 05:57:55,320 --> 05:57:57,280 values and with control I can click on 8596 05:57:57,280 --> 05:57:58,798 multiple 8597 05:57:58,798 --> 05:58:01,878 Val so this was previously known as and 8598 05:58:01,878 --> 05:58:03,558 if you watched the last year video this 8599 05:58:03,558 --> 05:58:06,478 is known as orientation horizontal then 8600 05:58:06,478 --> 05:58:09,400 we have a drop down we can again adjust 8601 05:58:09,400 --> 05:58:11,600 it so drop down is something which you 8602 05:58:11,600 --> 05:58:14,280 will not see the values as Styles as 8603 05:58:14,280 --> 05:58:16,240 well as the vertical you will have a 8604 05:58:16,240 --> 05:58:17,718 drop down and when you open it you will 8605 05:58:17,718 --> 05:58:20,760 be able to see the values you can create 8606 05:58:20,760 --> 05:58:22,600 Slicer in any of such ways so let me do 8607 05:58:22,600 --> 05:58:26,080 one thing let me duplicate this 8608 05:58:26,080 --> 05:58:30,558 one and I'll change it to 8609 05:58:30,558 --> 05:58:33,000 category so instead of brand let me go 8610 05:58:33,000 --> 05:58:34,558 ahead and and this is really good 8611 05:58:34,558 --> 05:58:36,638 feature you go to the arrow and then you 8612 05:58:36,638 --> 05:58:38,878 go ahead and change it it get changed 8613 05:58:38,878 --> 05:58:40,878 and this one we can I'll keep it as a 8614 05:58:40,878 --> 05:58:43,600 tile okay so smaller value tile is 8615 05:58:43,600 --> 05:58:46,440 better option let's look at the 8616 05:58:46,440 --> 05:58:47,878 selection option so we have a single 8617 05:58:47,878 --> 05:58:49,520 select means if you make it as a single 8618 05:58:49,520 --> 05:58:51,040 select single select here is not going 8619 05:58:51,040 --> 05:58:52,160 to make any difference but the only 8620 05:58:52,160 --> 05:58:53,600 thing is even if I press with control 8621 05:58:53,600 --> 05:58:56,240 it's going to keep the single value but 8622 05:58:56,240 --> 05:58:57,920 if you go ahead and do a single select 8623 05:58:57,920 --> 05:58:59,600 here let's say on the this kind of 8624 05:58:59,600 --> 05:59:01,878 visual which is drop down or tile what 8625 05:59:01,878 --> 05:59:03,680 would happen so what we let's do one 8626 05:59:03,680 --> 05:59:06,878 thing let's have one more here make it a 8627 05:59:06,878 --> 05:59:09,360 littleit small let's adjust the brand 8628 05:59:09,360 --> 05:59:11,360 here and let me do one thing let's 8629 05:59:11,360 --> 05:59:13,080 create little bit more space deleting 8630 05:59:13,080 --> 05:59:14,920 this 8631 05:59:14,920 --> 05:59:17,440 visual your brand let's duplicate this 8632 05:59:17,440 --> 05:59:20,400 copy paste and let's create a little bit 8633 05:59:20,400 --> 05:59:22,718 bigger visual here and this I'm going to 8634 05:59:22,718 --> 05:59:24,440 bring in from other dimension so let me 8635 05:59:24,440 --> 05:59:26,558 bring in state here I removed everything 8636 05:59:26,558 --> 05:59:29,120 and now I'm going to drag State and 8637 05:59:29,120 --> 05:59:30,798 definitely because the previous property 8638 05:59:30,798 --> 05:59:32,558 it retained it dropped down I'm going to 8639 05:59:32,558 --> 05:59:34,320 change it to Vertical list what happens 8640 05:59:34,320 --> 05:59:35,680 when I make them single select what is 8641 05:59:35,680 --> 05:59:37,558 the difference so here we don't see any 8642 05:59:37,558 --> 05:59:39,440 difference because even if we click with 8643 05:59:39,440 --> 05:59:40,478 control click the only thing is 8644 05:59:40,478 --> 05:59:42,520 selecting one value the look and feel is 8645 05:59:42,520 --> 05:59:44,718 having no difference when I go to drop 8646 05:59:44,718 --> 05:59:46,878 down so this is right now my drop down 8647 05:59:46,878 --> 05:59:48,958 and if I go to the selection and make it 8648 05:59:48,958 --> 05:59:52,440 as single select on you can see it 8649 05:59:52,440 --> 05:59:54,878 becomes radio buttons it becomes radio 8650 05:59:54,878 --> 05:59:57,080 button and there is only one value you 8651 05:59:57,080 --> 05:59:59,120 can uh select so if you want to select 8652 05:59:59,120 --> 06:00:02,200 mult all and single select brand then 8653 06:00:02,200 --> 06:00:03,798 you can watch my video Single select 8654 06:00:03,798 --> 06:00:05,760 with all that will help now what I'm 8655 06:00:05,760 --> 06:00:07,798 going to do is I'm going to switch off 8656 06:00:07,798 --> 06:00:10,400 the single select and I'll go to the 8657 06:00:10,400 --> 06:00:12,400 brand Visual and now here I'll make it 8658 06:00:12,400 --> 06:00:15,240 as a single select as on and once I make 8659 06:00:15,240 --> 06:00:17,000 the single select on you can see that 8660 06:00:17,000 --> 06:00:18,840 this is how it looks like so the 8661 06:00:18,840 --> 06:00:21,360 vertical list and 8662 06:00:21,360 --> 06:00:23,718 the drop down has similar kind of 8663 06:00:23,718 --> 06:00:25,920 feature we I'm again going to make it as 8664 06:00:25,920 --> 06:00:28,558 a toggle of the single select off and 8665 06:00:28,558 --> 06:00:30,040 these properties have changed over a 8666 06:00:30,040 --> 06:00:32,160 period of time in last one year so those 8667 06:00:32,160 --> 06:00:33,958 of you are watching the older videos and 8668 06:00:33,958 --> 06:00:36,958 maybe think it's l bit different yes in 8669 06:00:36,958 --> 06:00:39,280 2023 we have lot of these UI changes lot 8670 06:00:39,280 --> 06:00:41,520 of renaming has happened with the new 8671 06:00:41,520 --> 06:00:43,040 format pan with the on object 8672 06:00:43,040 --> 06:00:45,000 interactions the consolidation of the 8673 06:00:45,000 --> 06:00:46,798 properties has happened in the different 8674 06:00:46,798 --> 06:00:48,520 places so that's why you will see all 8675 06:00:48,520 --> 06:00:50,160 these things with a little bit different 8676 06:00:50,160 --> 06:00:51,638 name like we have this single select 8677 06:00:51,638 --> 06:00:53,600 option now if I toggle this option I 8678 06:00:53,600 --> 06:00:55,600 will not be able to see multi select 8679 06:00:55,600 --> 06:00:57,840 option and select all option these are 8680 06:00:57,840 --> 06:01:00,240 few of the changes which we have got as 8681 06:01:00,240 --> 06:01:01,638 part of the 8682 06:01:01,638 --> 06:01:04,440 2023 before I tell you more about multi 8683 06:01:04,440 --> 06:01:07,160 select let me case you how to use select 8684 06:01:07,160 --> 06:01:09,558 all so I can enable the select all and 8685 06:01:09,558 --> 06:01:11,440 in this state visual you can see now I 8686 06:01:11,440 --> 06:01:13,920 have the select all option and once I 8687 06:01:13,920 --> 06:01:16,200 click on the select to I will get all 8688 06:01:16,200 --> 06:01:19,600 the values selected what I can also do 8689 06:01:19,600 --> 06:01:22,920 is I can click on select all and it will 8690 06:01:22,920 --> 06:01:24,240 uncheck all the 8691 06:01:24,240 --> 06:01:27,120 values in the same manner I can go to 8692 06:01:27,120 --> 06:01:29,718 the brand slicer and again there I will 8693 06:01:29,718 --> 06:01:33,638 be enabling to select all once I enable 8694 06:01:33,638 --> 06:01:36,280 the select all it will be start showing 8695 06:01:36,280 --> 06:01:39,240 me select all option inside the brand 8696 06:01:39,240 --> 06:01:42,280 and I can check and uncheck all the 8697 06:01:42,280 --> 06:01:44,200 values using the select 8698 06:01:44,200 --> 06:01:46,798 all 8699 06:01:46,798 --> 06:01:49,280 and how do I erase the values so let me 8700 06:01:49,280 --> 06:01:51,878 make it a little bit bigger so if you 8701 06:01:51,878 --> 06:01:53,760 are not using slicer header then you 8702 06:01:53,760 --> 06:01:56,718 will not get this erase option see if I 8703 06:01:56,718 --> 06:01:58,840 want to erase if I have slicer header 8704 06:01:58,840 --> 06:02:01,280 then I'll get so the disadvantage of not 8705 06:02:01,280 --> 06:02:02,718 having this slicer header is that you 8706 06:02:02,718 --> 06:02:04,680 will not get it title is not going to be 8707 06:02:04,680 --> 06:02:06,760 a great option for us header seems to be 8708 06:02:06,760 --> 06:02:08,280 better option because we got a eraser 8709 06:02:08,280 --> 06:02:09,878 button we know the title is not a better 8710 06:02:09,878 --> 06:02:11,958 option so I remove the title and now I 8711 06:02:11,958 --> 06:02:13,520 if I select more than one values with 8712 06:02:13,520 --> 06:02:16,160 control and then I can erase it so I can 8713 06:02:16,160 --> 06:02:18,000 clear it off so that's the advantage of 8714 06:02:18,000 --> 06:02:20,440 having the slicer header there is one 8715 06:02:20,440 --> 06:02:21,760 option which we have not discussed and 8716 06:02:21,760 --> 06:02:25,160 that was multi select with control and 8717 06:02:25,160 --> 06:02:26,920 this is not visible completely so I can 8718 06:02:26,920 --> 06:02:28,280 make it a little bit larger so you can 8719 06:02:28,280 --> 06:02:30,638 see this so multi select with control is 8720 06:02:30,638 --> 06:02:34,280 the property which um if I disable it 8721 06:02:34,280 --> 06:02:36,120 which is right now on then what would 8722 06:02:36,120 --> 06:02:38,638 happen is basically if I now select I'm 8723 06:02:38,638 --> 06:02:40,080 not I have not pressed control but still 8724 06:02:40,080 --> 06:02:42,638 I'm able to do multiple selection if I 8725 06:02:42,638 --> 06:02:45,120 don't want to select anything then I 8726 06:02:45,120 --> 06:02:46,558 have to either press select all and 8727 06:02:46,558 --> 06:02:49,040 unselect all or when I selected multiple 8728 06:02:49,040 --> 06:02:50,798 venue I can use eraser 8729 06:02:50,798 --> 06:02:53,958 button come back and erase all the 8730 06:02:53,958 --> 06:02:56,680 values so same way you can have this 8731 06:02:56,680 --> 06:02:58,680 multi select here again we have to 8732 06:02:58,680 --> 06:03:00,840 enable the slicer header if you need the 8733 06:03:00,840 --> 06:03:03,558 Eraser so I enabled the slicer header 8734 06:03:03,558 --> 06:03:05,920 and then I can enable this one and I and 8735 06:03:05,920 --> 06:03:09,000 disable the title now I can select 8736 06:03:09,000 --> 06:03:10,958 multiple values without pressing control 8737 06:03:10,958 --> 06:03:12,558 and use the Eraser button to remove all 8738 06:03:12,558 --> 06:03:14,120 the 8739 06:03:14,120 --> 06:03:16,520 values but otherwise if you select let's 8740 06:03:16,520 --> 06:03:18,958 say if I selected these three values now 8741 06:03:18,958 --> 06:03:21,040 if I press control I continue to select 8742 06:03:21,040 --> 06:03:23,600 the same number of value so I click 8743 06:03:23,600 --> 06:03:25,840 again on that value to uncheck it so in 8744 06:03:25,840 --> 06:03:27,360 powerb typically the selection is when 8745 06:03:27,360 --> 06:03:29,280 you click first time it get checked and 8746 06:03:29,280 --> 06:03:30,638 when you click on second time it get 8747 06:03:30,638 --> 06:03:34,160 unchecked so in this manner you will be 8748 06:03:34,160 --> 06:03:35,958 able to check uncheck value and had 8749 06:03:35,958 --> 06:03:39,120 different kind of styles options on the 8750 06:03:39,120 --> 06:03:41,000 slicer now let's look at the other 8751 06:03:41,000 --> 06:03:42,680 properties like you have the Border 8752 06:03:42,680 --> 06:03:44,760 background padding icons all those 8753 06:03:44,760 --> 06:03:46,840 things you have adding icons and 8754 06:03:46,840 --> 06:03:48,600 background and values so now let's go to 8755 06:03:48,600 --> 06:03:50,080 the values let's check what options we 8756 06:03:50,080 --> 06:03:51,760 have in the values by clicking on this 8757 06:03:51,760 --> 06:03:53,120 state so that everything is we have a 8758 06:03:53,120 --> 06:03:54,920 bold value we have italic we have 8759 06:03:54,920 --> 06:03:56,400 underline if you want those we can 8760 06:03:56,400 --> 06:03:58,320 change the color but I do usually don't 8761 06:03:58,320 --> 06:04:00,638 prefer it because I would prefer these 8762 06:04:00,638 --> 06:04:02,718 things to change by theme uh there's a 8763 06:04:02,718 --> 06:04:04,600 border option so you can have a border 8764 06:04:04,600 --> 06:04:07,478 top bottom right if you want you know 8765 06:04:07,478 --> 06:04:09,478 values to have a border then you can 8766 06:04:09,478 --> 06:04:11,440 have it top you want you can on the top 8767 06:04:11,440 --> 06:04:13,040 left you want you can have that right 8768 06:04:13,040 --> 06:04:14,320 you want you can have or you can have 8769 06:04:14,320 --> 06:04:16,160 all of them then you can choose the 8770 06:04:16,160 --> 06:04:17,478 color for the border and then you can 8771 06:04:17,478 --> 06:04:18,840 have background right now there's no 8772 06:04:18,840 --> 06:04:20,878 background but I can go ahead and put a 8773 06:04:20,878 --> 06:04:23,638 background if you need it or we can 8774 06:04:23,638 --> 06:04:26,040 simply give a white background or we can 8775 06:04:26,040 --> 06:04:28,120 say reset to default so it will go back 8776 06:04:28,120 --> 06:04:31,280 to the original value now this is what 8777 06:04:31,280 --> 06:04:34,080 we had when we have one value let me go 8778 06:04:34,080 --> 06:04:37,638 back and bring in the build a visual we 8779 06:04:37,638 --> 06:04:39,478 can have this slicer having more than 8780 06:04:39,478 --> 06:04:43,400 one Fields also let me bring in city 8781 06:04:43,400 --> 06:04:45,680 that's where we start calling it heral 8782 06:04:45,680 --> 06:04:49,440 slicer so now you have the hierarchy and 8783 06:04:49,440 --> 06:04:50,920 you can open it and you can see the 8784 06:04:50,920 --> 06:04:53,040 multiple values now I can either select 8785 06:04:53,040 --> 06:04:55,440 the complete State like this or I can 8786 06:04:55,440 --> 06:04:58,040 open like the California I can open and 8787 06:04:58,040 --> 06:04:59,558 then I can select individual value from 8788 06:04:59,558 --> 06:05:01,638 the California so both is possible and 8789 06:05:01,638 --> 06:05:03,760 based on that it will work now remember 8790 06:05:03,760 --> 06:05:04,638 we 8791 06:05:04,638 --> 06:05:06,760 have check the option select with 8792 06:05:06,760 --> 06:05:08,440 control so that is why the moment I'm 8793 06:05:08,440 --> 06:05:10,920 clicking it is selecting multiple values 8794 06:05:10,920 --> 06:05:13,240 and this is useful when you have the 8795 06:05:13,240 --> 06:05:14,920 related values and you say okay if I 8796 06:05:14,920 --> 06:05:16,160 select state I want to select all the 8797 06:05:16,160 --> 06:05:18,120 cities this gives you flexibility to 8798 06:05:18,120 --> 06:05:20,478 have more than one into one slicer 8799 06:05:20,478 --> 06:05:22,520 instead of having dependent slicer you 8800 06:05:22,520 --> 06:05:24,200 can have this so typically what happens 8801 06:05:24,200 --> 06:05:26,920 is usually people say I want slicer one 8802 06:05:26,920 --> 06:05:29,320 to filter slicers to definitely if they 8803 06:05:29,320 --> 06:05:31,360 are from the same Dimension slicer one 8804 06:05:31,360 --> 06:05:34,280 do filter the slicer 2 but in this case 8805 06:05:34,280 --> 06:05:35,760 you have the values inside the the 8806 06:05:35,760 --> 06:05:37,400 second one so you have a better control 8807 06:05:37,400 --> 06:05:39,478 over it let me show you that example 8808 06:05:39,478 --> 06:05:41,760 where slicer one will the slicer 2 so 8809 06:05:41,760 --> 06:05:44,958 contrl C control V copy pasted it and 8810 06:05:44,958 --> 06:05:46,920 I'm going to remove state from this 8811 06:05:46,920 --> 06:05:51,440 slicer and let me go ahead here check 8812 06:05:51,440 --> 06:05:53,320 all and let me click only on Alaska so 8813 06:05:53,320 --> 06:05:55,558 City slicer is getting filtered by the 8814 06:05:55,558 --> 06:05:57,440 state slicer which is city state and I 8815 06:05:57,440 --> 06:06:00,160 can remove City from here now you see 8816 06:06:00,160 --> 06:06:02,000 only Alaska is selected and Alaska do 8817 06:06:02,000 --> 06:06:04,080 filtering the cities which we have now 8818 06:06:04,080 --> 06:06:06,638 Arizona is also giving Arizona City here 8819 06:06:06,638 --> 06:06:08,760 so slicer do filter each other when they 8820 06:06:08,760 --> 06:06:10,680 belong from the same table but if you 8821 06:06:10,680 --> 06:06:13,920 want that I I want one values inside 8822 06:06:13,920 --> 06:06:15,878 another one like a hery then you can 8823 06:06:15,878 --> 06:06:17,638 drag both of them into the one Visual 8824 06:06:17,638 --> 06:06:19,440 and then you have that kind of a tap 8825 06:06:19,440 --> 06:06:21,320 down selection which you can do and you 8826 06:06:21,320 --> 06:06:22,680 can select the complete state or you can 8827 06:06:22,680 --> 06:06:24,638 select single cities and pretty useful 8828 06:06:24,638 --> 06:06:27,000 especially when you have the month year 8829 06:06:27,000 --> 06:06:29,200 quarter all those things it is really 8830 06:06:29,200 --> 06:06:33,280 useful now what we have seen till now in 8831 06:06:33,280 --> 06:06:36,400 the slices was only the categorical 8832 06:06:36,400 --> 06:06:38,920 slicer let now let me remove this city 8833 06:06:38,920 --> 06:06:41,558 slicer and let me make space for the 8834 06:06:41,558 --> 06:06:44,798 date slicers I go to the sales table I 8835 06:06:44,798 --> 06:06:47,558 bring in sales date here and it created 8836 06:06:47,558 --> 06:06:49,040 a table visual automatically let me 8837 06:06:49,040 --> 06:06:51,558 click on the slicer the moment I click 8838 06:06:51,558 --> 06:06:54,280 on the slicer because this is date is 8839 06:06:54,280 --> 06:06:56,240 having the her is created the Hier 8840 06:06:56,240 --> 06:06:59,360 slicer for me and as usual I can you 8841 06:06:59,360 --> 06:07:01,440 know do those kind of selection which is 8842 06:07:01,440 --> 06:07:03,280 month year quarter and I can either 8843 06:07:03,280 --> 06:07:05,320 select let's say quarter q1 2018 I don't 8844 06:07:05,320 --> 06:07:08,878 have data I have data in Q4 of 2018 so I 8845 06:07:08,878 --> 06:07:11,200 can click there and can get some data 8846 06:07:11,200 --> 06:07:14,040 now here we know date because right now 8847 06:07:14,040 --> 06:07:15,878 it's getting hery and once we connect it 8848 06:07:15,878 --> 06:07:18,080 with date table it will not get later on 8849 06:07:18,080 --> 06:07:20,000 but we have an option where instead of 8850 06:07:20,000 --> 06:07:21,958 date hery we can actually go ahead and 8851 06:07:21,958 --> 06:07:24,320 say that we don't want to use the date 8852 06:07:24,320 --> 06:07:26,798 hery we actually want to use the sales 8853 06:07:26,798 --> 06:07:29,040 date itself it created this list visual 8854 06:07:29,040 --> 06:07:31,080 but there are more options now so I'll 8855 06:07:31,080 --> 06:07:34,400 open the format now again and let me 8856 06:07:34,400 --> 06:07:36,360 close few of them so it's still remain 8857 06:07:36,360 --> 06:07:38,680 bigger now if I go to the slicer 8858 06:07:38,680 --> 06:07:42,000 settings you have vertical list tile but 8859 06:07:42,000 --> 06:07:44,000 there are new options like between can 8860 06:07:44,000 --> 06:07:45,320 have date range 8861 06:07:45,320 --> 06:07:48,478 between we can have before before this 8862 06:07:48,478 --> 06:07:53,040 date so anything before three 0 2020 now 8863 06:07:53,040 --> 06:07:55,160 I have all the data before that but what 8864 06:07:55,160 --> 06:07:56,600 I can do here is basically I can go 8865 06:07:56,600 --> 06:07:58,600 ahead and ose this data and as you can 8866 06:07:58,600 --> 06:08:00,638 see little bit change in the data is 8867 06:08:00,638 --> 06:08:03,718 there there and if I scroll the more the 8868 06:08:03,718 --> 06:08:07,000 lesser the values are coming 8869 06:08:07,000 --> 06:08:09,160 similarly I have the after 8870 06:08:09,160 --> 06:08:12,520 slicer we have the drop down we the very 8871 06:08:12,520 --> 06:08:14,878 important thing which we have the date 8872 06:08:14,878 --> 06:08:16,200 other than the drop down is relative 8873 06:08:16,200 --> 06:08:20,160 date slicer you can say last one day 8874 06:08:20,160 --> 06:08:23,120 month year now my data is ending in 8875 06:08:23,120 --> 06:08:25,558 2020 so if even if I say one year it's 8876 06:08:25,558 --> 06:08:27,040 not going to come out and it is always 8877 06:08:27,040 --> 06:08:28,680 run based on today so I let I have to 8878 06:08:28,680 --> 06:08:31,520 say use three years in last 3 years I 8879 06:08:31,520 --> 06:08:33,478 don't have anything in last 3 years also 8880 06:08:33,478 --> 06:08:36,680 four years I have something last 4 years 8881 06:08:36,680 --> 06:08:39,520 from and look at the date based on the 8882 06:08:39,520 --> 06:08:42,600 date it calculated those last four years 8883 06:08:42,600 --> 06:08:44,558 the relative date so relative when you 8884 06:08:44,558 --> 06:08:46,520 go to this relative slicer when you 8885 06:08:46,520 --> 06:08:48,798 drill down to the year then there is an 8886 06:08:48,798 --> 06:08:50,520 option relative year or the calendar 8887 06:08:50,520 --> 06:08:52,040 year so now when I say calendar year you 8888 06:08:52,040 --> 06:08:54,240 can see the complete 2019 is coming when 8889 06:08:54,240 --> 06:08:56,558 I said relative it actually the rolling 8890 06:08:56,558 --> 06:08:58,478 four years which has come so in this 8891 06:08:58,478 --> 06:09:00,478 manner you can use relative date slices 8892 06:09:00,478 --> 06:09:03,000 also so you have option for days weeks 8893 06:09:03,000 --> 06:09:05,440 months quarter year and all those so 8894 06:09:05,440 --> 06:09:07,160 definitely it can help you like when you 8895 06:09:07,160 --> 06:09:10,000 say I need month calendar rolling four 8896 06:09:10,000 --> 06:09:12,360 months for the calendar or let's say 8897 06:09:12,360 --> 06:09:13,760 last 1 8898 06:09:13,760 --> 06:09:16,160 month now this is last one month but you 8899 06:09:16,160 --> 06:09:19,840 have option here next the next one month 8900 06:09:19,840 --> 06:09:22,320 and then you have this when you use this 8901 06:09:22,320 --> 06:09:23,558 there is a little bit different option 8902 06:09:23,558 --> 06:09:24,920 from next because you don't have the 8903 06:09:24,920 --> 06:09:27,360 calendar and this one differently this 8904 06:09:27,360 --> 06:09:30,440 is the reality so we only have the month 8905 06:09:30,440 --> 06:09:32,478 or day so this day this week this month 8906 06:09:32,478 --> 06:09:34,320 this quarter this year so you you can 8907 06:09:34,320 --> 06:09:36,120 use this and this is one of the best 8908 06:09:36,120 --> 06:09:38,478 options you can have in the date slicer 8909 06:09:38,478 --> 06:09:41,360 remember one of the problem with the 8910 06:09:41,360 --> 06:09:44,680 slicers that we cannot 8911 06:09:44,680 --> 06:09:47,360 default it based on a function means if 8912 06:09:47,360 --> 06:09:49,400 you ask me can you default it on today I 8913 06:09:49,400 --> 06:09:50,798 can't do 8914 06:09:50,798 --> 06:09:54,280 it there's no option actually can you 8915 06:09:54,280 --> 06:09:56,000 default it on the first value no I don't 8916 06:09:56,000 --> 06:09:57,120 have any option you have seen the 8917 06:09:57,120 --> 06:09:58,478 properties we don't have any option 8918 06:09:58,478 --> 06:09:59,840 let's go to the values even we don't 8919 06:09:59,840 --> 06:10:02,840 have an option here we do have an anchor 8920 06:10:02,840 --> 06:10:04,520 date option here we we don't have an 8921 06:10:04,520 --> 06:10:06,558 option here also in the values where it 8922 06:10:06,558 --> 06:10:10,040 can default using some major or a 8923 06:10:10,040 --> 06:10:12,840 function so relative date slicer can 8924 06:10:12,840 --> 06:10:15,080 help it you can initialize it on last 8925 06:10:15,080 --> 06:10:17,840 one month this month last week this day 8926 06:10:17,840 --> 06:10:20,478 this year this is one way and it will 8927 06:10:20,478 --> 06:10:21,958 automatically keep on changing and this 8928 06:10:21,958 --> 06:10:24,120 is really helpful but if you want to 8929 06:10:24,120 --> 06:10:26,840 save it on Max month on Max this and 8930 06:10:26,840 --> 06:10:30,200 that that's not good so best way in case 8931 06:10:30,200 --> 06:10:33,160 you wanted to save it on the this month 8932 06:10:33,160 --> 06:10:35,680 last month this year last year calendar 8933 06:10:35,680 --> 06:10:38,160 year or relative year you have to use 8934 06:10:38,160 --> 06:10:39,840 relative date slicer that's going to 8935 06:10:39,840 --> 06:10:42,680 give you that flexibility to save it if 8936 06:10:42,680 --> 06:10:44,520 you don't want to use it then we have to 8937 06:10:44,520 --> 06:10:47,240 create a column which is going to give 8938 06:10:47,240 --> 06:10:49,360 us values like today this month next 8939 06:10:49,360 --> 06:10:50,798 month and using that we have to 8940 06:10:50,798 --> 06:10:52,718 initialize which we will learn little 8941 06:10:52,718 --> 06:10:55,160 bit later when we create the date table 8942 06:10:55,160 --> 06:10:56,680 so you have the 8943 06:10:56,680 --> 06:10:58,798 slicers you know the different kind of 8944 06:10:58,798 --> 06:11:01,000 slicer and also you know the challenges 8945 06:11:01,000 --> 06:11:03,478 with default value and how relative date 8946 06:11:03,478 --> 06:11:05,558 can help here now there there are 8947 06:11:05,558 --> 06:11:06,680 certain time when you will have 8948 06:11:06,680 --> 06:11:08,600 challenges when you select certain value 8949 06:11:08,600 --> 06:11:10,280 and the value is not there can you 8950 06:11:10,280 --> 06:11:12,320 select the first value no it doesn't 8951 06:11:12,320 --> 06:11:14,320 happen like that so first value 8952 06:11:14,320 --> 06:11:16,000 selection last value selection little 8953 06:11:16,000 --> 06:11:19,360 bit more Dynamic default value selection 8954 06:11:19,360 --> 06:11:21,040 for the slicer is not available as of 8955 06:11:21,040 --> 06:11:23,440 now we may see these kind of future very 8956 06:11:23,440 --> 06:11:25,320 soon for the number slicers if you want 8957 06:11:25,320 --> 06:11:27,160 to create a number slicer you also will 8958 06:11:27,160 --> 06:11:29,680 get a between and all those options so 8959 06:11:29,680 --> 06:11:32,958 let me quickly show you a number slicer 8960 06:11:32,958 --> 06:11:36,280 and so let me go here and and bring in I 8961 06:11:36,280 --> 06:11:39,000 have quantities which are only three in 8962 06:11:39,000 --> 06:11:41,240 number and not 8963 06:11:41,240 --> 06:11:44,040 getting okay and let me create make it 8964 06:11:44,040 --> 06:11:46,240 as a slicer so I go to build a visual I 8965 06:11:46,240 --> 06:11:48,520 make it slicer I have only three values 8966 06:11:48,520 --> 06:11:50,080 It Is by default created a between 8967 06:11:50,080 --> 06:11:52,558 slicer then I can have the less than 8968 06:11:52,558 --> 06:11:54,478 quantity or equal to quantity greater 8969 06:11:54,478 --> 06:11:56,798 than quantity so I can say Quantity 8970 06:11:56,798 --> 06:11:59,120 greater than one I can say consider only 8971 06:11:59,120 --> 06:12:00,400 those rows where quantity is greater 8972 06:12:00,400 --> 06:12:02,840 than two the values are changing so we 8973 06:12:02,840 --> 06:12:04,760 have between before and after for this 8974 06:12:04,760 --> 06:12:06,200 one 8975 06:12:06,200 --> 06:12:08,958 so number slicer date range slicer 8976 06:12:08,958 --> 06:12:12,160 categorical slicer same slicer going to 8977 06:12:12,160 --> 06:12:13,840 work for all of them you just need to 8978 06:12:13,840 --> 06:12:15,040 change few 8979 06:12:15,040 --> 06:12:21,200 property we will now discuss the uh new 8980 06:12:22,040 --> 06:12:24,760 slicer so new slicer is available either 8981 06:12:24,760 --> 06:12:26,718 in the insert 8982 06:12:26,718 --> 06:12:30,520 menu under the slicer option or in the 8983 06:12:30,520 --> 06:12:33,200 build visual it is also 8984 06:12:33,200 --> 06:12:35,320 available I have enabled the build 8985 06:12:35,320 --> 06:12:38,280 visual now it was not uh enabled so I 8986 06:12:38,280 --> 06:12:39,798 enabled the build Visual and inside the 8987 06:12:39,798 --> 06:12:43,760 build visual this is the ler new new 8988 06:12:43,760 --> 06:12:46,520 slicer which we are going to explore 8989 06:12:46,520 --> 06:12:49,760 powerbi has changed a lot over last one 8990 06:12:49,760 --> 06:12:53,798 year the new slicer has been renamed as 8991 06:12:53,798 --> 06:12:58,520 tile slicer over the course of time you 8992 06:12:58,520 --> 06:13:02,360 can find it along with other new slices 8993 06:13:02,360 --> 06:13:05,878 on the build window you will see tile 8994 06:13:05,878 --> 06:13:09,478 slicer text slicer and the list slicer 8995 06:13:09,478 --> 06:13:12,718 text slicer and list slicer are added 8996 06:13:12,718 --> 06:13:15,040 little later after this video has been 8997 06:13:15,040 --> 06:13:18,920 recorded but we will cover them little 8998 06:13:18,920 --> 06:13:22,120 later so let me add a new page let me 8999 06:13:22,120 --> 06:13:25,520 close the reasons which are not 9000 06:13:27,558 --> 06:13:30,160 needed and in this visual first of all 9001 06:13:30,160 --> 06:13:31,920 I'll add the new 9002 06:13:31,920 --> 06:13:34,680 slicer now in the new slicer I'll need 9003 06:13:34,680 --> 06:13:37,320 the column so I can go to 9004 06:13:37,320 --> 06:13:40,400 the add data I can press the button add 9005 06:13:40,400 --> 06:13:42,798 in the add data and I can 9006 06:13:42,798 --> 06:13:44,878 add want to add 9007 06:13:44,878 --> 06:13:47,798 brand and the moment I add the brand it 9008 06:13:47,798 --> 06:13:50,718 gives me buttons for the brands like 9009 06:13:50,718 --> 06:13:54,760 this now by default it's giv me a 3X3 9010 06:13:54,760 --> 06:13:57,240 kind of a matrix I can 9011 06:13:57,240 --> 06:14:00,520 goer by clicking on 9012 06:14:00,520 --> 06:14:03,520 the format more options I can play 9013 06:14:03,520 --> 06:14:05,638 around with size as you already played 9014 06:14:05,638 --> 06:14:08,718 around padding border visual border and 9015 06:14:08,718 --> 06:14:10,240 Shadow are common one we can give a 9016 06:14:10,240 --> 06:14:11,360 title if 9017 06:14:11,360 --> 06:14:14,120 needed so title is already available as 9018 06:14:14,120 --> 06:14:16,440 a brand and then we have the conditional 9019 06:14:16,440 --> 06:14:18,080 formatting available for color and 9020 06:14:18,080 --> 06:14:21,120 background title can be aligned we can 9021 06:14:21,120 --> 06:14:23,080 have a subtitle divider and spacing this 9022 06:14:23,080 --> 06:14:25,360 is same for all those and we go to the 9023 06:14:25,360 --> 06:14:27,478 slicer setting we have option for single 9024 06:14:27,478 --> 06:14:29,360 select select all option you want to 9025 06:14:29,360 --> 06:14:31,040 select all option that is also available 9026 06:14:31,040 --> 06:14:33,840 here so those options are available 9027 06:14:33,840 --> 06:14:35,520 we'll see when we want to use the select 9028 06:14:35,520 --> 06:14:37,958 all option and in the shape we right now 9029 06:14:37,958 --> 06:14:39,478 it's a rectangular shape but we can have 9030 06:14:39,478 --> 06:14:42,360 rounded rectangular shape like this so 9031 06:14:42,360 --> 06:14:44,280 they are now rounded rounded 9032 06:14:44,280 --> 06:14:47,520 rectangles then rounded Corner we can 9033 06:14:47,520 --> 06:14:49,160 remove the little bit of rounding by 9034 06:14:49,160 --> 06:14:50,798 making it less or you can have custom 9035 06:14:50,798 --> 06:14:53,280 style means you will be able to decide 9036 06:14:53,280 --> 06:14:55,638 how much the top corner should be like 9037 06:14:55,638 --> 06:14:58,200 if I make top Corner round little bit 9038 06:14:58,200 --> 06:15:00,878 you can observe 9039 06:15:00,878 --> 06:15:04,478 here then this is top left corner then I 9040 06:15:04,478 --> 06:15:05,798 can have top right 9041 06:15:05,798 --> 06:15:08,558 corner now you can observe here in this 9042 06:15:08,558 --> 06:15:10,440 manner I can control but actually I 9043 06:15:10,440 --> 06:15:12,120 don't want to do individually so I'll 9044 06:15:12,120 --> 06:15:15,680 keep it like customize option off and 9045 06:15:15,680 --> 06:15:18,080 I'll keep rounded rectangle and then we 9046 06:15:18,080 --> 06:15:20,798 have the tab both top all those options 9047 06:15:20,798 --> 06:15:22,320 are available we can play around with 9048 06:15:22,320 --> 06:15:24,600 that now we go to the layout this is 9049 06:15:24,600 --> 06:15:26,120 important one right why we are seeing 9050 06:15:26,120 --> 06:15:28,240 this 3x3 because we have three rows and 9051 06:15:28,240 --> 06:15:30,280 three columns the max number which you 9052 06:15:30,280 --> 06:15:33,840 can give here is 10 so you can have 10 9053 06:15:33,840 --> 06:15:35,478 rows 9054 06:15:35,478 --> 06:15:37,360 or you can have 10 9055 06:15:37,360 --> 06:15:39,200 columns what I'm going to do is I'm 9056 06:15:39,200 --> 06:15:40,600 going to say row is 9057 06:15:40,600 --> 06:15:44,200 one I'll have columns as 10 now let me 9058 06:15:44,200 --> 06:15:46,320 try because I have 13 Brands so can I 9059 06:15:46,320 --> 06:15:48,840 give let's say 15 you can't give 15 9060 06:15:48,840 --> 06:15:51,080 let's try 11 you can't give 11 so you 9061 06:15:51,080 --> 06:15:53,558 can maximum have 10 after 10 there would 9062 06:15:53,558 --> 06:15:55,680 be a pagination for overflow so you can 9063 06:15:55,680 --> 06:15:57,558 have continuous scroll means you can 9064 06:15:57,558 --> 06:16:00,478 have a scroll or you can have the 9065 06:16:00,478 --> 06:16:02,760 paginated I will make it 9066 06:16:02,760 --> 06:16:05,240 paginated you want vertical means this 9067 06:16:05,240 --> 06:16:07,798 Arrow would be here you can see there is 9068 06:16:07,798 --> 06:16:10,558 an arrow here I when I went down and if 9069 06:16:10,558 --> 06:16:13,160 I went up there's a 9070 06:16:13,160 --> 06:16:16,440 down so I can keep it horizontal because 9071 06:16:16,440 --> 06:16:18,478 I'm keeping it like this then I can make 9072 06:16:18,478 --> 06:16:21,600 it little bit smaller like this 9073 06:16:21,600 --> 06:16:25,400 now brand header look title looks little 9074 06:16:25,400 --> 06:16:27,200 bit bigger so we can make it little 9075 06:16:27,200 --> 06:16:29,600 smaller now usually I don't change the 9076 06:16:29,600 --> 06:16:32,080 font as I told you in the past but in 9077 06:16:32,080 --> 06:16:35,120 this case I'm manually changing it or 9078 06:16:35,120 --> 06:16:37,558 maybe I'll just switch off the title I 9079 06:16:37,558 --> 06:16:40,200 don't need a title actually so I'm I 9080 06:16:40,200 --> 06:16:41,920 have removed my title so now these this 9081 06:16:41,920 --> 06:16:44,638 is my brand now what I can do is let's 9082 06:16:44,638 --> 06:16:46,320 create a visual and we can copy paste 9083 06:16:46,320 --> 06:16:48,600 one visual from the other pages so we go 9084 06:16:48,600 --> 06:16:51,080 to the slicer page and from there we 9085 06:16:51,080 --> 06:16:53,680 copy this visual contrl C come to this 9086 06:16:53,680 --> 06:16:56,958 page contrl V now if I filter brand one 9087 06:16:56,958 --> 06:16:59,558 I'll get brand one you can click on any 9088 06:16:59,558 --> 06:17:03,280 of the brands now let's go to the lier 9089 06:17:03,280 --> 06:17:05,440 setting and single select is by default 9090 06:17:05,440 --> 06:17:07,760 on I'm going to switch it off and I'll 9091 06:17:07,760 --> 06:17:09,760 also add show all so now with the 9092 06:17:09,760 --> 06:17:11,680 control click I'm able to select 9093 06:17:11,680 --> 06:17:15,280 multiple and I can say select all also I 9094 06:17:15,280 --> 06:17:17,080 say select all it is all selection is 9095 06:17:17,080 --> 06:17:19,200 there and in this visual we have lot of 9096 06:17:19,200 --> 06:17:21,400 settings around you know H selection and 9097 06:17:21,400 --> 06:17:23,840 all those so when you go to the buttons 9098 06:17:23,840 --> 06:17:26,840 here way down you have the default 9099 06:17:26,840 --> 06:17:28,280 setting you have the H setting you have 9100 06:17:28,280 --> 06:17:29,600 the Press setting you the selected 9101 06:17:29,600 --> 06:17:30,878 settings so you have so many settings 9102 06:17:30,878 --> 06:17:33,680 out here we we can do those settings 9103 06:17:33,680 --> 06:17:35,718 then you have the call out value Val so 9104 06:17:35,718 --> 06:17:37,680 call out values is by default default 9105 06:17:37,680 --> 06:17:39,600 I'll change the color so that you can 9106 06:17:39,600 --> 06:17:41,760 know which what one what is call this is 9107 06:17:41,760 --> 06:17:43,280 the call out value the value which is in 9108 06:17:43,280 --> 06:17:46,000 the middle is the call out value I'll 9109 06:17:46,000 --> 06:17:48,320 and the best way to do is and then I can 9110 06:17:48,320 --> 06:17:49,878 make it middle align so you can again 9111 06:17:49,878 --> 06:17:51,798 see the difference here let me do the 9112 06:17:51,798 --> 06:17:53,240 alignment little bit here so that you 9113 06:17:53,240 --> 06:17:54,320 are able to 9114 06:17:54,320 --> 06:17:56,320 differentiate now pay attention the 9115 06:17:56,320 --> 06:17:57,958 small small adjustment are there when I 9116 06:17:57,958 --> 06:18:00,040 change the alignment unit of display I'm 9117 06:18:00,040 --> 06:18:02,920 keeping as whatever it is and then show 9118 06:18:02,920 --> 06:18:05,280 blank as hyphen iph there is a blank 9119 06:18:05,280 --> 06:18:07,638 value and then there is a label option I 9120 06:18:07,638 --> 06:18:09,840 can switch it on and I can add another 9121 06:18:09,840 --> 06:18:12,958 column let's say I want to add 9122 06:18:12,958 --> 06:18:16,320 category so you can have little bit more 9123 06:18:16,320 --> 06:18:17,680 information in these buttons you can 9124 06:18:17,680 --> 06:18:21,320 have additional values so this is one 9125 06:18:21,478 --> 06:18:24,320 option now we will remove this option 9126 06:18:24,320 --> 06:18:26,280 label right now we don't want a label 9127 06:18:26,280 --> 06:18:28,160 and I switch it off so that it doesn't 9128 06:18:28,160 --> 06:18:31,040 take even a space now the option which I 9129 06:18:31,040 --> 06:18:34,200 want to explore is images the default 9130 06:18:34,200 --> 06:18:36,240 stage over stage selected stage we can 9131 06:18:36,240 --> 06:18:37,638 have different different places where we 9132 06:18:37,638 --> 06:18:41,000 can do this we can say add images field 9133 06:18:41,000 --> 06:18:43,878 here we can use a field for images now I 9134 06:18:43,878 --> 06:18:45,240 need to build a field because I don't 9135 06:18:45,240 --> 06:18:46,760 have but what I've done for this is 9136 06:18:46,760 --> 06:18:49,160 basically I have created few Mage which 9137 06:18:49,160 --> 06:18:50,920 Ive loaded to my GitHub account I won't 9138 06:18:50,920 --> 06:18:53,958 like to show you that 9139 06:18:54,040 --> 06:18:56,478 first so in my GitHub account I have 9140 06:18:56,478 --> 06:18:58,240 this icon folder where I've created few 9141 06:18:58,240 --> 06:19:02,320 icons which is 1 2 3 4 5 6 7 8 9 10 11 9142 06:19:02,320 --> 06:19:04,360 the these are just numbers and I also 9143 06:19:04,360 --> 06:19:07,080 created few images here so I have brand 9144 06:19:07,080 --> 06:19:10,160 images which is from B1 to 9145 06:19:10,160 --> 06:19:12,878 B16 then I have category images which is 9146 06:19:12,878 --> 06:19:16,080 13 then I have few human images also 9147 06:19:16,080 --> 06:19:18,000 which are faces we can use for customer 9148 06:19:18,000 --> 06:19:20,760 so I'm give you the link and you will be 9149 06:19:20,760 --> 06:19:22,240 able to use it so what I'm going to do 9150 06:19:22,240 --> 06:19:24,440 here is I will go to brand and this is 9151 06:19:24,440 --> 06:19:26,920 known as B1 B2 B3 so I can go to any one 9152 06:19:26,920 --> 06:19:29,320 of these you can copy this and replace 9153 06:19:29,320 --> 06:19:32,400 the blob with the raw go here and you 9154 06:19:32,400 --> 06:19:36,040 replace blob with the draw and if you 9155 06:19:36,040 --> 06:19:37,440 open the you will still be able to see 9156 06:19:37,440 --> 06:19:40,040 the image I want to use this but 9157 06:19:40,040 --> 06:19:41,440 understand one thing I want to make this 9158 06:19:41,440 --> 06:19:42,878 little bit Dynamic so I'll tell you how 9159 06:19:42,878 --> 06:19:46,160 to create such a column so I I'll go 9160 06:19:46,160 --> 06:19:48,760 back to my powerbi and in powerbi I'll 9161 06:19:48,760 --> 06:19:51,638 go to the table View and inside the 9162 06:19:51,638 --> 06:19:54,520 table view I click on the item table the 9163 06:19:54,520 --> 06:19:56,200 item table is already open I'll click on 9164 06:19:56,200 --> 06:19:58,360 that and you have this option for new 9165 06:19:58,360 --> 06:20:01,200 column under the table tool when you 9166 06:20:01,200 --> 06:20:02,558 click on the table you get the table 9167 06:20:02,558 --> 06:20:04,160 tool and inside that one you have an 9168 06:20:04,160 --> 06:20:07,160 option new column I'll click on the new 9169 06:20:07,160 --> 06:20:09,400 column and I'll call this column as 9170 06:20:09,400 --> 06:20:11,718 brand 9171 06:20:12,520 --> 06:20:14,920 URL now in the brand URL I'll give this 9172 06:20:14,920 --> 06:20:17,558 URL but it would be same I want the 9173 06:20:17,558 --> 06:20:19,160 after B the changes should happen so I 9174 06:20:19,160 --> 06:20:21,240 close my string at after 9175 06:20:21,240 --> 06:20:25,320 B now I don't want this one coming from 9176 06:20:25,320 --> 06:20:28,840 my image I want it Dynamic so between 9177 06:20:28,840 --> 06:20:31,798 the two strings I can concatenate by 9178 06:20:31,798 --> 06:20:33,680 them M perent but from where I'll get 1 9179 06:20:33,680 --> 06:20:36,878 2 3 4 5 6 I put 2 m% and between the 2 9180 06:20:36,878 --> 06:20:39,718 m% I can again create one more and I'll 9181 06:20:39,718 --> 06:20:41,280 here I'll take brand ID so what would 9182 06:20:41,280 --> 06:20:44,240 happen with B without space brand ID 9183 06:20:44,240 --> 06:20:46,840 ment again concatenating the string ment 9184 06:20:46,840 --> 06:20:50,638 concatenate the strings do PNG now let's 9185 06:20:50,638 --> 06:20:54,520 see what we get so we got a URL here and 9186 06:20:54,520 --> 06:20:57,040 this URL should work similarly I can 9187 06:20:57,040 --> 06:20:59,478 create a category URL we have category 9188 06:20:59,478 --> 06:21:01,520 C1 C2 C3 and the folder name is also 9189 06:21:01,520 --> 06:21:03,920 different there but let me go ahead and 9190 06:21:03,920 --> 06:21:05,558 add a new 9191 06:21:05,558 --> 06:21:08,958 column paste this and let me call 9192 06:21:08,958 --> 06:21:12,360 it category 9193 06:21:12,958 --> 06:21:16,040 URL I'll do some changes here first of 9194 06:21:16,040 --> 06:21:18,520 all this is not brand this is category 9195 06:21:18,520 --> 06:21:19,798 and this is 9196 06:21:19,798 --> 06:21:22,558 C same way I can develop a logic for 9197 06:21:22,558 --> 06:21:26,000 human for customer I only have 20 images 9198 06:21:26,000 --> 06:21:27,638 so you may have to develop some logic 9199 06:21:27,638 --> 06:21:30,400 that you keep on using those 20 images 9200 06:21:30,400 --> 06:21:33,600 these cannot be brand ID here I need to 9201 06:21:33,600 --> 06:21:36,320 put category ID 9202 06:21:36,320 --> 06:21:39,200 so these are my two URLs so now this is 9203 06:21:39,200 --> 06:21:42,280 category C1 C2 C3 C4 and this is brand 9204 06:21:42,280 --> 06:21:44,120 URL now for both these column what we 9205 06:21:44,120 --> 06:21:46,440 have to do is click on the column in the 9206 06:21:46,440 --> 06:21:48,000 data category you have to call it as 9207 06:21:48,000 --> 06:21:50,320 image 9208 06:21:50,400 --> 06:21:54,280 URL this is image URL okay same way for 9209 06:21:54,280 --> 06:21:56,478 category click on category Ur and into 9210 06:21:56,478 --> 06:21:58,000 the column tools you should get column 9211 06:21:58,000 --> 06:22:00,400 tools and inside the column tools go 9212 06:22:00,400 --> 06:22:03,160 ahead and change this data category to 9213 06:22:03,160 --> 06:22:05,040 image UR 9214 06:22:05,040 --> 06:22:07,120 both of them are now image Ur now let's 9215 06:22:07,120 --> 06:22:08,878 go back to our visualization we got the 9216 06:22:08,878 --> 06:22:10,958 images inside the image field I'll click 9217 06:22:10,958 --> 06:22:12,120 on add 9218 06:22:12,120 --> 06:22:17,600 data item and I'll click on brand URL 9219 06:22:17,600 --> 06:22:19,920 now you can see images here now we need 9220 06:22:19,920 --> 06:22:21,360 to do a little bit of adjustment I'll 9221 06:22:21,360 --> 06:22:23,840 I'll make I made it little bit larger 9222 06:22:23,840 --> 06:22:26,080 but I can go ahead and decide the 9223 06:22:26,080 --> 06:22:29,478 transparency saturation blur 9224 06:22:29,478 --> 06:22:32,000 position position could be 9225 06:22:32,000 --> 06:22:35,600 left position could be right 9226 06:22:35,600 --> 06:22:37,440 and we need a different kind of slicer 9227 06:22:37,440 --> 06:22:39,240 for that so this we will keep top or 9228 06:22:39,240 --> 06:22:41,400 bottom only set as background we can set 9229 06:22:41,400 --> 06:22:43,440 it as a background so this is setting 9230 06:22:43,440 --> 06:22:45,360 for the default one you can change the 9231 06:22:45,360 --> 06:22:48,600 setting for the hover pressed or 9232 06:22:48,600 --> 06:22:50,240 selected you can change those things 9233 06:22:50,240 --> 06:22:52,558 settings but I'll keep it default what I 9234 06:22:52,558 --> 06:22:54,120 would like to do now is I would like to 9235 06:22:54,120 --> 06:22:56,280 add another slicer so I'll add a new 9236 06:22:56,280 --> 06:22:59,320 slicer here and in this slicer the new 9237 06:22:59,320 --> 06:23:01,920 slicer I'll make it little bit vertical 9238 06:23:01,920 --> 06:23:03,920 after I add the column so in this one 9239 06:23:03,920 --> 06:23:07,200 I'm going to use add data I'll go to 9240 06:23:07,200 --> 06:23:09,200 item and I'll add 9241 06:23:09,200 --> 06:23:11,840 category I have the categories the 9242 06:23:11,840 --> 06:23:13,478 settings which I want here is basically 9243 06:23:13,478 --> 06:23:15,558 I'll go to the slicer settings uh I 9244 06:23:15,558 --> 06:23:17,120 don't want single select I want multiple 9245 06:23:17,120 --> 06:23:18,878 select I don't want show all option and 9246 06:23:18,878 --> 06:23:20,520 I'll let you know why I don't want the 9247 06:23:20,520 --> 06:23:23,200 show all option I go to the shapes I 9248 06:23:23,200 --> 06:23:24,600 would like it little bit rounded so 9249 06:23:24,600 --> 06:23:27,440 rounded rectangles and I'll I'll reduce 9250 06:23:27,440 --> 06:23:30,760 it to it's say 15 I don't want to round 9251 06:23:30,760 --> 06:23:33,638 it one also no custom option layout I'll 9252 06:23:33,638 --> 06:23:36,638 go in here I'll say five rows and I 9253 06:23:36,638 --> 06:23:38,600 don't want too many columns I only want 9254 06:23:38,600 --> 06:23:40,400 one column space between the card I'm 9255 06:23:40,400 --> 06:23:42,160 going to reduce little 9256 06:23:42,160 --> 06:23:45,680 bit then overflow is continuous scroll 9257 06:23:45,680 --> 06:23:47,958 no I want pagination and vertical 9258 06:23:47,958 --> 06:23:50,958 pagination or horizontal let's keep it 9259 06:23:50,958 --> 06:23:54,120 horizontal so right now we don't have 9260 06:23:54,120 --> 06:23:56,478 any kind of overflow so we can keep it 9261 06:23:56,478 --> 06:23:58,718 scroll also continuous scroll there's no 9262 06:23:58,718 --> 06:24:01,160 need basically we have given the five 9263 06:24:01,160 --> 06:24:02,958 now we'll go to the call out values 9264 06:24:02,958 --> 06:24:04,798 we'll keep call out values as is as of 9265 06:24:04,798 --> 06:24:07,878 now let's go down and in 9266 06:24:07,878 --> 06:24:10,000 label if you want the label we can 9267 06:24:10,000 --> 06:24:12,080 enable but label what happens you can 9268 06:24:12,080 --> 06:24:13,760 add additional field which we don't want 9269 06:24:13,760 --> 06:24:15,478 here we don't want subcategory or 9270 06:24:15,478 --> 06:24:17,320 something like that I'll go to images 9271 06:24:17,320 --> 06:24:19,798 and here I want to add an image so I'll 9272 06:24:19,798 --> 06:24:20,958 use 9273 06:24:20,958 --> 06:24:24,320 add data and inside the data I'll go to 9274 06:24:24,320 --> 06:24:26,240 item and I'll use category now I got the 9275 06:24:26,240 --> 06:24:28,040 categories here this is first category 9276 06:24:28,040 --> 06:24:29,440 why it is first C we actually need a 9277 06:24:29,440 --> 06:24:32,040 major but we are using a column so we 9278 06:24:32,040 --> 06:24:34,718 can only use First 9279 06:24:34,718 --> 06:24:36,160 I'll do a little bit of adjustment and 9280 06:24:36,160 --> 06:24:38,120 now what could happen basically here is 9281 06:24:38,120 --> 06:24:40,360 actually might not need values like 9282 06:24:40,360 --> 06:24:43,320 category 1 2 3 4 5 in your organization 9283 06:24:43,320 --> 06:24:44,958 it might be possible but looking at the 9284 06:24:44,958 --> 06:24:46,718 color of the brand or let's looking at 9285 06:24:46,718 --> 06:24:48,958 the logo you are able to decide and that 9286 06:24:48,958 --> 06:24:50,638 is the use case I want here so I 9287 06:24:50,638 --> 06:24:52,680 actually want to switch off the values 9288 06:24:52,680 --> 06:24:54,200 now there are only icon this is category 9289 06:24:54,200 --> 06:24:56,718 1 this is Category 2 Category 3 this is 9290 06:24:56,718 --> 06:25:00,240 category 4 Category 5 this is what I 9291 06:25:00,240 --> 06:25:04,200 want so I with the logo itself I'm able 9292 06:25:04,200 --> 06:25:06,240 to to decide I'll go down the button 9293 06:25:06,240 --> 06:25:07,718 properties now let's look at button 9294 06:25:07,718 --> 06:25:10,280 properties fault H pressed and selected 9295 06:25:10,280 --> 06:25:11,798 values we can do different different 9296 06:25:11,798 --> 06:25:14,040 settings right I I'll keep it on default 9297 06:25:14,040 --> 06:25:16,120 padding you want white padding narrow 9298 06:25:16,120 --> 06:25:18,040 padding we can use narrow paddings 9299 06:25:18,040 --> 06:25:20,478 border I don't like but border on this 9300 06:25:20,478 --> 06:25:22,160 button at least I don't want a border so 9301 06:25:22,160 --> 06:25:23,840 I'll remove border these images are good 9302 06:25:23,840 --> 06:25:25,920 enough we come to Shadow let's have a 9303 06:25:25,920 --> 06:25:28,638 little bit of Shadow here but the 9304 06:25:28,638 --> 06:25:30,240 challenge with the shadow if you want to 9305 06:25:30,240 --> 06:25:32,958 have Shadow here it takes a lot of space 9306 06:25:32,958 --> 06:25:34,798 and then you have outside or inside 9307 06:25:34,798 --> 06:25:36,440 Shadow based on that it is going to give 9308 06:25:36,440 --> 06:25:39,320 you the shadow so while the option is 9309 06:25:39,320 --> 06:25:41,080 pretty good but because I need a lot of 9310 06:25:41,080 --> 06:25:42,520 space I'm not going to use the shadow 9311 06:25:42,520 --> 06:25:44,958 option glow is another the Shadow and 9312 06:25:44,958 --> 06:25:46,320 glow options are something which 9313 06:25:46,320 --> 06:25:48,478 actually require a little bit of space 9314 06:25:48,478 --> 06:25:50,080 and then you need to go ahead and you 9315 06:25:50,080 --> 06:25:53,160 know choose the colors and all those 9316 06:25:53,160 --> 06:25:57,240 so for that outside and inside is the 9317 06:25:57,240 --> 06:26:00,080 option Center bottom center right top 9318 06:26:00,080 --> 06:26:01,478 right and all those options are there 9319 06:26:01,478 --> 06:26:04,840 for the glow disable that as ENT bar is 9320 06:26:04,840 --> 06:26:06,638 one option where you will have a bar in 9321 06:26:06,638 --> 06:26:09,160 front of it so every line you can see 9322 06:26:09,160 --> 06:26:11,958 there's a bar this bar if you need then 9323 06:26:11,958 --> 06:26:13,718 you can enable the ascent bar which 9324 06:26:13,718 --> 06:26:15,280 which also I don't need and let me say 9325 06:26:15,280 --> 06:26:17,320 reset to default so I I have reset it to 9326 06:26:17,320 --> 06:26:18,478 default the only thing which I don't 9327 06:26:18,478 --> 06:26:20,360 need is the Border in this manner now 9328 06:26:20,360 --> 06:26:22,440 you can see that we have a different 9329 06:26:22,440 --> 06:26:24,600 visual experience here we don't have 9330 06:26:24,600 --> 06:26:29,400 even names and in this case we have the 9331 06:26:29,400 --> 06:26:31,920 names and the selection is highlighting 9332 06:26:31,920 --> 06:26:34,240 you might have this is actually multiple 9333 06:26:34,240 --> 06:26:36,440 select we have to check and uncheck we 9334 06:26:36,440 --> 06:26:37,920 can have select all it's all selected 9335 06:26:37,920 --> 06:26:39,840 and deselect all and in this case you 9336 06:26:39,840 --> 06:26:42,878 can only see a boundary basically very 9337 06:26:42,878 --> 06:26:44,558 so when you use these kind of stuff 9338 06:26:44,558 --> 06:26:46,320 maybe we would like to change more 9339 06:26:46,320 --> 06:26:49,478 properties when it is selected so what 9340 06:26:49,478 --> 06:26:51,400 you can do is here it is default when it 9341 06:26:51,400 --> 06:26:54,718 is pressed do you want to do something 9342 06:26:54,718 --> 06:26:57,040 okay so want to increase the 9343 06:26:57,040 --> 06:27:00,400 transparency or you saturation something 9344 06:27:00,400 --> 06:27:02,680 you want to do when it is press so let 9345 06:27:02,680 --> 06:27:04,280 me increase the transparency and press 9346 06:27:04,280 --> 06:27:07,478 now let me go ahead and press 9347 06:27:08,120 --> 06:27:11,840 it then when it is selected so I'll go 9348 06:27:11,840 --> 06:27:13,958 ahead and say saturation is less and 9349 06:27:13,958 --> 06:27:16,240 then transparency is more saturation is 9350 06:27:16,240 --> 06:27:18,478 less these are the seating in this press 9351 06:27:18,478 --> 06:27:20,240 so now when it is pressed it looks 9352 06:27:20,240 --> 06:27:21,958 little bit different so these kind of 9353 06:27:21,958 --> 06:27:23,120 stuff can help you now when I'm 9354 06:27:23,120 --> 06:27:25,160 selecting you can see the 9355 06:27:25,160 --> 06:27:28,040 difference so these things especially 9356 06:27:28,040 --> 06:27:29,478 when you are only dealing with the image 9357 06:27:29,478 --> 06:27:32,000 you need that because so when it is text 9358 06:27:32,000 --> 06:27:34,000 you will be able to identify because of 9359 06:27:34,000 --> 06:27:36,798 the text highlighting but you need it 9360 06:27:36,798 --> 06:27:38,840 when it is only image you need some kind 9361 06:27:38,840 --> 06:27:41,400 of change in the Highlight as well as 9362 06:27:41,400 --> 06:27:45,240 the saturation so that you can identify 9363 06:27:45,240 --> 06:27:47,360 that there is a difference when we are 9364 06:27:47,360 --> 06:27:50,000 selecting or pressing it so this new 9365 06:27:50,000 --> 06:27:53,638 slicer allowing you to give a visual 9366 06:27:53,638 --> 06:27:56,080 appealing experience and as you can see 9367 06:27:56,080 --> 06:27:59,080 we can use images to make it be more 9368 06:27:59,080 --> 06:28:01,638 intuitive let us now discuss the newly 9369 06:28:01,638 --> 06:28:04,320 released feature of tech slicer Tech X 9370 06:28:04,320 --> 06:28:07,400 slicer was released in November 9371 06:28:07,400 --> 06:28:11,840 2024 so let's jump onto the release 9372 06:28:11,840 --> 06:28:15,280 notes this is the powerbi November 2024 9373 06:28:15,280 --> 06:28:18,000 feature summary and then we scroll 9374 06:28:18,000 --> 06:28:21,320 little down you will find inside the 9375 06:28:21,320 --> 06:28:24,638 content we have a new visual the visual 9376 06:28:24,638 --> 06:28:27,920 is texer and it came as a 9377 06:28:27,920 --> 06:28:30,478 perview now let me click on that and 9378 06:28:30,478 --> 06:28:33,040 we'll reach to the notes these are the 9379 06:28:33,040 --> 06:28:35,920 notes of the new visual the text slicer 9380 06:28:35,920 --> 06:28:38,760 introducing the new text slicer now 9381 06:28:38,760 --> 06:28:41,478 available in our core visual Gallery 9382 06:28:41,478 --> 06:28:43,520 this oneth brings the arrival of the new 9383 06:28:43,520 --> 06:28:46,520 text Slicer in powerbi offering new 9384 06:28:46,520 --> 06:28:49,080 possibilities for both users and 9385 06:28:49,080 --> 06:28:52,160 organization how to enable you have to 9386 06:28:52,160 --> 06:28:54,400 go to the options and setting options 9387 06:28:54,400 --> 06:28:57,400 preview features and text slicer visual 9388 06:28:57,400 --> 06:29:00,160 you have to enable it using that I'm 9389 06:29:00,160 --> 06:29:02,840 going to Showcase you that setting the 9390 06:29:02,840 --> 06:29:05,200 Tex slicer works by allowing user to 9391 06:29:05,200 --> 06:29:08,240 input specific text that act as a filter 9392 06:29:08,240 --> 06:29:11,638 targeting a design data feed by entering 9393 06:29:11,638 --> 06:29:14,160 the design text into the slicer input 9394 06:29:14,160 --> 06:29:16,878 box the slicer effectively Narrows down 9395 06:29:16,878 --> 06:29:19,680 the data set to display only relevant 9396 06:29:19,680 --> 06:29:23,840 information that contains the enter text 9397 06:29:23,840 --> 06:29:25,718 the functionality is particularly 9398 06:29:25,718 --> 06:29:27,600 helpful for handling large data set 9399 06:29:27,600 --> 06:29:30,120 where quick and precise filtering is 9400 06:29:30,120 --> 06:29:32,680 essential for Effective data analysis 9401 06:29:32,680 --> 06:29:34,478 and presentation 9402 06:29:34,478 --> 06:29:36,440 now how to create you will get this new 9403 06:29:36,440 --> 06:29:38,638 text slice and you can drag it to the 9404 06:29:38,638 --> 06:29:41,320 canvas to filter the data set add a 9405 06:29:41,320 --> 06:29:43,360 field from the data model to the to the 9406 06:29:43,360 --> 06:29:46,120 Field Val to establish the text slicer 9407 06:29:46,120 --> 06:29:48,280 functionality allowing it to filter the 9408 06:29:48,280 --> 06:29:51,320 data set based on the user input simply 9409 06:29:51,320 --> 06:29:54,080 add text to the slicer input box select 9410 06:29:54,080 --> 06:29:57,440 apply icon or press enter the slicer 9411 06:29:57,440 --> 06:29:59,320 immediately filters the data had 9412 06:29:59,320 --> 06:30:01,680 displaying the visual results the new 9413 06:30:01,680 --> 06:30:03,440 text slicer introduced powerful 9414 06:30:03,440 --> 06:30:06,440 customization filtering tool for powerbi 9415 06:30:06,440 --> 06:30:09,360 improved user experience and unmatch 9416 06:30:09,360 --> 06:30:11,558 customization so let's jump onto the 9417 06:30:11,558 --> 06:30:15,320 powerbi to explore this feature out I'm 9418 06:30:15,320 --> 06:30:18,200 here on the powerbi and before I explore 9419 06:30:18,200 --> 06:30:20,600 that feature of text slicer let me 9420 06:30:20,600 --> 06:30:23,760 showcase you how to enable this feature 9421 06:30:23,760 --> 06:30:28,240 go to file options and setting options 9422 06:30:28,240 --> 06:30:31,040 it will open a popup inside the preview 9423 06:30:31,040 --> 06:30:33,080 feature when you scroll down you will 9424 06:30:33,080 --> 06:30:35,958 see new text slicer visual feature you 9425 06:30:35,958 --> 06:30:38,440 have to enable that click on okay if 9426 06:30:38,440 --> 06:30:40,840 you're enabling it for first time as I 9427 06:30:40,840 --> 06:30:42,920 already enabled I'm going to click on 9428 06:30:42,920 --> 06:30:45,680 cancel you might have to open a new file 9429 06:30:45,680 --> 06:30:48,638 or close and open the file to get this 9430 06:30:48,638 --> 06:30:51,040 slicer inside your 9431 06:30:51,040 --> 06:30:54,600 visualization I'm back onto the powerbi 9432 06:30:54,600 --> 06:30:57,798 report View and let me add a page to use 9433 06:30:57,798 --> 06:31:00,080 this visual so let me click on the plus 9434 06:31:00,080 --> 06:31:02,558 button and here what I'm going to do is 9435 06:31:02,558 --> 06:31:04,878 first of all let me create a a visual 9436 06:31:04,878 --> 06:31:08,040 want to create a table visual brand wise 9437 06:31:08,040 --> 06:31:11,320 net brand wise 9438 06:31:11,320 --> 06:31:15,558 net let me converted into a table visual 9439 06:31:15,558 --> 06:31:18,760 now I would like to add the text 9440 06:31:18,760 --> 06:31:22,160 slicer here in the text lizer let me add 9441 06:31:22,160 --> 06:31:25,558 the brand from the item into the fields 9442 06:31:25,558 --> 06:31:27,520 by bringing the into the 9443 06:31:27,520 --> 06:31:30,520 fields here let me type one and press 9444 06:31:30,520 --> 06:31:33,680 enter and as you can see all the branch 9445 06:31:33,680 --> 06:31:37,160 that contains one has been 9446 06:31:37,160 --> 06:31:40,040 filtered I clicked inside and I'm now 9447 06:31:40,040 --> 06:31:43,320 entering 11 and let me press enter now I 9448 06:31:43,320 --> 06:31:46,120 am getting data only for Brand 11 or 9449 06:31:46,120 --> 06:31:49,040 everything which contains 11 again go 9450 06:31:49,040 --> 06:31:51,920 back and let's say WR 10 and let me 9451 06:31:51,920 --> 06:31:54,360 click on this Arrow which is apply 9452 06:31:54,360 --> 06:31:56,958 button I'm getting everything which 9453 06:31:56,958 --> 06:31:59,638 contains 10 and in this case it is only 9454 06:31:59,638 --> 06:32:04,398 brand 10 and we use nine and arrow 9455 06:32:04,398 --> 06:32:07,760 apply I got brand n same way I can 9456 06:32:07,760 --> 06:32:11,280 filter other things on the three dots 9457 06:32:11,280 --> 06:32:13,240 you have the options like export data 9458 06:32:13,240 --> 06:32:15,638 show as table Spotlight sorted sending 9459 06:32:15,638 --> 06:32:18,798 descending and format you have a clear 9460 06:32:18,798 --> 06:32:20,718 button to clear the selection you will 9461 06:32:20,718 --> 06:32:23,600 get all the values now I would like to 9462 06:32:23,600 --> 06:32:27,280 create a dependent slicer on this text 9463 06:32:27,280 --> 06:32:30,478 slicer which will get filtered and based 9464 06:32:30,478 --> 06:32:33,160 on that slicer I'm going to filter the 9465 06:32:33,160 --> 06:32:36,558 table visual ual or other visuals let me 9466 06:32:36,558 --> 06:32:38,120 add one more 9467 06:32:38,120 --> 06:32:41,478 slicer let me add brand to the slicer 9468 06:32:41,478 --> 06:32:43,840 and make it as a list 9469 06:32:43,840 --> 06:32:46,958 slicer if I go ahead and try to filter 9470 06:32:46,958 --> 06:32:50,398 one in the text slicer it will filter 9471 06:32:50,398 --> 06:32:53,798 both cable visual as well as the brand 9472 06:32:53,798 --> 06:32:56,638 list slicer but I only want it to filter 9473 06:32:56,638 --> 06:32:58,840 the brand list slicer and based on that 9474 06:32:58,840 --> 06:33:01,280 I want to filter the table visual for 9475 06:33:01,280 --> 06:33:04,120 that we have to use edit interaction and 9476 06:33:04,120 --> 06:33:06,558 feature or click on the any of the 9477 06:33:06,558 --> 06:33:10,798 visuals and go to format enable edit 9478 06:33:10,798 --> 06:33:13,398 interaction this case we have to disable 9479 06:33:13,398 --> 06:33:16,878 brand text slicers interaction with all 9480 06:33:16,878 --> 06:33:21,160 other visuals other than the brand list 9481 06:33:21,160 --> 06:33:24,080 Slicer in this case there are only two 9482 06:33:24,080 --> 06:33:26,440 but let me add few more so that you 9483 06:33:26,440 --> 06:33:28,878 understand it better let me control C 9484 06:33:28,878 --> 06:33:31,840 control V I create two visuals now this 9485 06:33:31,840 --> 06:33:34,280 visual is filtering let me Al so change 9486 06:33:34,280 --> 06:33:36,000 this visual to 9487 06:33:36,000 --> 06:33:39,798 category let me disable B text slicers 9488 06:33:39,798 --> 06:33:42,558 interaction with this new visual also 9489 06:33:42,558 --> 06:33:45,840 brand Tex slicer as of now is only 9490 06:33:45,840 --> 06:33:49,200 interacting with the brand list slicer 9491 06:33:49,200 --> 06:33:52,558 and it is not interacting with any other 9492 06:33:52,558 --> 06:33:56,200 visual on the page as of now so let me 9493 06:33:56,200 --> 06:33:58,240 start playing around with this let me 9494 06:33:58,240 --> 06:34:01,718 end two the TX slicer as of now is only 9495 06:34:01,718 --> 06:34:04,200 filtering the brand list slicer and when 9496 06:34:04,200 --> 06:34:06,200 I filter the value in the brand list 9497 06:34:06,200 --> 06:34:08,398 slicer it is going to filter the other 9498 06:34:08,398 --> 06:34:11,120 visuals in this manner I am able to 9499 06:34:11,120 --> 06:34:14,120 create a dependency of a search on a 9500 06:34:14,120 --> 06:34:16,958 slicer and then I'm able to use that 9501 06:34:16,958 --> 06:34:19,080 particular slicer which is filtered by 9502 06:34:19,080 --> 06:34:21,958 the search to filter my other visuals in 9503 06:34:21,958 --> 06:34:24,718 this manner I able to create a search 9504 06:34:24,718 --> 06:34:28,040 experience along with the list 9505 06:34:28,040 --> 06:34:31,040 experience let me enter a value one and 9506 06:34:31,040 --> 06:34:34,520 click on apply and once I do that I will 9507 06:34:34,520 --> 06:34:37,718 only be seeing value which contains one 9508 06:34:37,718 --> 06:34:41,040 in my brand values and using those 9509 06:34:41,040 --> 06:34:43,120 values let's say I can select brand 10 9510 06:34:43,120 --> 06:34:45,680 and 11 and that will filter my 9511 06:34:45,680 --> 06:34:47,840 visualization so what is happening here 9512 06:34:47,840 --> 06:34:51,000 is I am able to create of dependent 9513 06:34:51,000 --> 06:34:54,320 slicer on my text slicer and then I'm 9514 06:34:54,320 --> 06:34:57,120 able to use that dependent slicer to 9515 06:34:57,120 --> 06:35:00,958 filter my values of all other visuals TX 9516 06:35:00,958 --> 06:35:04,000 slicer as of now support only one f 9517 06:35:04,000 --> 06:35:06,080 means either I can have brand or I can 9518 06:35:06,080 --> 06:35:09,160 let's say drag category and once I drag 9519 06:35:09,160 --> 06:35:12,160 category it will only filter category it 9520 06:35:12,160 --> 06:35:14,240 cannot filter brand and category 9521 06:35:14,240 --> 06:35:17,000 together so I can have one at a time in 9522 06:35:17,000 --> 06:35:19,920 the past on the similar situation when I 9523 06:35:19,920 --> 06:35:21,878 use the text filter which is a very 9524 06:35:21,878 --> 06:35:25,200 similar slicer to the text slicer we 9525 06:35:25,200 --> 06:35:28,718 have concatenated the values of all the 9526 06:35:28,718 --> 06:35:31,240 columns of a table into one column and 9527 06:35:31,240 --> 06:35:33,200 then we have used that particular column 9528 06:35:33,200 --> 06:35:36,160 to fill filter the values I'll go to the 9529 06:35:36,160 --> 06:35:38,920 table view I go to the item table and 9530 06:35:38,920 --> 06:35:41,878 here I'll create a new column click on 9531 06:35:41,878 --> 06:35:44,520 any of the column and you will get the 9532 06:35:44,520 --> 06:35:47,478 column tools and inside the column tools 9533 06:35:47,478 --> 06:35:49,718 click on new column once you click on 9534 06:35:49,718 --> 06:35:52,798 the new column in this new column we can 9535 06:35:52,798 --> 06:35:55,520 append multiple Columns of the item 9536 06:35:55,520 --> 06:35:59,240 table into one column and then we can 9537 06:35:59,240 --> 06:36:02,000 use that for filter so let's create an 9538 06:36:02,000 --> 06:36:05,558 column appended 9539 06:36:05,958 --> 06:36:09,520 column and here we can have 9540 06:36:09,520 --> 06:36:11,558 brand 9541 06:36:11,558 --> 06:36:15,240 m% is m% 9542 06:36:15,240 --> 06:36:17,080 category 9543 06:36:17,080 --> 06:36:23,798 m% is m per a now we got a combined 9544 06:36:23,798 --> 06:36:25,398 string I could have added all the 9545 06:36:25,398 --> 06:36:26,878 columns but right now just for 9546 06:36:26,878 --> 06:36:30,718 Simplicity I added only few columns now 9547 06:36:30,718 --> 06:36:33,840 let's go back and inside this text 9548 06:36:33,840 --> 06:36:36,958 slicer instead of brand let's add that 9549 06:36:36,958 --> 06:36:39,600 appended 9550 06:36:40,120 --> 06:36:42,760 column and let me do one thing now let 9551 06:36:42,760 --> 06:36:45,718 me enable the interaction this visual 9552 06:36:45,718 --> 06:36:48,760 let me start filtering out now as you 9553 06:36:48,760 --> 06:36:50,520 can see with the category one what it is 9554 06:36:50,520 --> 06:36:53,798 all fitting I have added this new column 9555 06:36:53,798 --> 06:36:56,440 A pend column Here and Now what I've 9556 06:36:56,440 --> 06:36:58,680 also done is I have enabled the 9557 06:36:58,680 --> 06:37:00,798 filtering on both the visuals and I'm 9558 06:37:00,798 --> 06:37:02,680 going to remove this visual now I don't 9559 06:37:02,680 --> 06:37:04,878 need this additional for understanding 9560 06:37:04,878 --> 06:37:07,360 of this so let me remove this now let me 9561 06:37:07,360 --> 06:37:09,958 start filtering let's say I enter a 9562 06:37:09,958 --> 06:37:13,798 value let's say 10 when I enter 10 I see 9563 06:37:13,798 --> 06:37:16,680 both brand 10 as well as brand 2 I'm 9564 06:37:16,680 --> 06:37:19,000 seeing brand two because 10 can be 9565 06:37:19,000 --> 06:37:21,760 anywhere it can be in brand it can be in 9566 06:37:21,760 --> 06:37:23,680 item so in this case it is coming 9567 06:37:23,680 --> 06:37:26,798 because of item we can add a new visual 9568 06:37:26,798 --> 06:37:30,240 on item name and we can see that these 9569 06:37:30,240 --> 06:37:32,920 are the items which are getting filtered 9570 06:37:32,920 --> 06:37:35,878 because of 10 it may be anywhere in the 9571 06:37:35,878 --> 06:37:40,120 string broad category or name 9572 06:37:40,120 --> 06:37:42,600 anywhere in this manner you can work on 9573 06:37:42,600 --> 06:37:44,920 multiple columns but that's still a work 9574 06:37:44,920 --> 06:37:48,040 around hopefully I get supported with 9575 06:37:48,040 --> 06:37:50,638 multiple columns will be able to use 9576 06:37:50,638 --> 06:37:54,920 that so this is all about the new text 9577 06:37:54,920 --> 06:37:57,280 prer why don't you go ahead and try that 9578 06:37:57,280 --> 06:38:00,280 out 9579 06:38:03,558 --> 06:38:05,638 now we will discuss about the list 9580 06:38:05,638 --> 06:38:09,520 slicer the list slicer was released in 9581 06:38:09,520 --> 06:38:11,040 October 9582 06:38:11,040 --> 06:38:13,958 2024 so first of all let's have a look 9583 06:38:13,958 --> 06:38:17,600 at the release notes of October 2024 so 9584 06:38:17,600 --> 06:38:23,440 I'm here on October 2024 release 9585 06:38:23,878 --> 06:38:26,958 notes and if I scroll a little down I 9586 06:38:26,958 --> 06:38:29,638 can see one of the feature is new list 9587 06:38:29,638 --> 06:38:32,040 slicer and this is under 9588 06:38:32,040 --> 06:38:35,798 preview so let's click on that and we'll 9589 06:38:35,798 --> 06:38:38,320 reach to the feature so first of all we 9590 06:38:38,320 --> 06:38:41,520 have to enable it so to enable it go to 9591 06:38:41,520 --> 06:38:43,478 options and setting option preview 9592 06:38:43,478 --> 06:38:45,638 feature and list slicer visual we have 9593 06:38:45,638 --> 06:38:48,558 to enable it let's look at the release 9594 06:38:48,558 --> 06:38:51,840 notes major enhancements are upcoming in 9595 06:38:51,840 --> 06:38:54,878 the image support label additional 9596 06:38:54,878 --> 06:38:56,440 conditional formatting option and 9597 06:38:56,440 --> 06:38:58,920 improve default style specifically 9598 06:38:58,920 --> 06:39:02,520 designed for erical layouts please note 9599 06:39:02,520 --> 06:39:05,120 new visual is in the early development 9600 06:39:05,120 --> 06:39:07,398 and we won't recommend using it in the 9601 06:39:07,398 --> 06:39:10,040 production permanently however this is 9602 06:39:10,040 --> 06:39:12,600 excellent opportunity to experience the 9603 06:39:12,600 --> 06:39:15,718 capability of this new slicer provide us 9604 06:39:15,718 --> 06:39:17,600 the feedback for the further Improvement 9605 06:39:17,600 --> 06:39:20,440 so it is still in the preview feature 9606 06:39:20,440 --> 06:39:23,520 the new list slicer can become hcal when 9607 06:39:23,520 --> 06:39:25,760 more than one field is driv into the 9608 06:39:25,760 --> 06:39:28,600 field data well this action will 9609 06:39:28,600 --> 06:39:31,000 activate additional formatting settings 9610 06:39:31,000 --> 06:39:34,760 specific to antical data some of the 9611 06:39:34,760 --> 06:39:37,320 advanced new slicer level customization 9612 06:39:37,320 --> 06:39:40,600 offering are selection shape layout 9613 06:39:40,600 --> 06:39:44,360 overflow St style selection icon expand 9614 06:39:44,360 --> 06:39:47,398 collaps icon and button style these are 9615 06:39:47,398 --> 06:39:49,160 the few attributes which has been 9616 06:39:49,160 --> 06:39:52,718 released with the new list slicer so why 9617 06:39:52,718 --> 06:39:55,320 don't we go ahead and explore it out and 9618 06:39:55,320 --> 06:40:00,120 for that I'm going to use N2 n12 file so 9619 06:40:00,120 --> 06:40:03,000 I'm here on the N2 n12 file and I'm 9620 06:40:03,000 --> 06:40:05,958 going to add a new page to explore this 9621 06:40:05,958 --> 06:40:08,798 visual so the new slicer I have already 9622 06:40:08,798 --> 06:40:11,558 added but let me tell you how I added it 9623 06:40:11,558 --> 06:40:14,360 go to file options and 9624 06:40:14,360 --> 06:40:16,120 setting 9625 06:40:16,120 --> 06:40:18,558 options options and setting popup has 9626 06:40:18,558 --> 06:40:20,840 now opened up inside that preview 9627 06:40:20,840 --> 06:40:23,240 features and inside the preview feature 9628 06:40:23,240 --> 06:40:26,478 you have to enable the list 9629 06:40:26,760 --> 06:40:30,200 slicer and then you can click on okay so 9630 06:40:30,200 --> 06:40:32,878 that you can use it some of the feature 9631 06:40:32,878 --> 06:40:34,718 require restart so you might have to 9632 06:40:34,718 --> 06:40:37,360 close and open your file again as I've 9633 06:40:37,360 --> 06:40:40,240 already added I'm pressing on cancel so 9634 06:40:40,240 --> 06:40:43,240 I'm back on my layout let me add the 9635 06:40:43,240 --> 06:40:46,320 list slicer it looks like very similar 9636 06:40:46,320 --> 06:40:49,878 to the normal slicer so let me doag item 9637 06:40:49,878 --> 06:40:52,680 R and you can see there is a single 9638 06:40:52,680 --> 06:40:55,280 select list which has been created here 9639 06:40:55,280 --> 06:40:57,958 now let me do one thing before I go 9640 06:40:57,958 --> 06:41:00,000 ahead and add certain additional stuff 9641 06:41:00,000 --> 06:41:02,718 let me enable the format for it in case 9642 06:41:02,718 --> 06:41:04,558 you are not able to see the format 9643 06:41:04,558 --> 06:41:06,558 option on the right hand side to enable 9644 06:41:06,558 --> 06:41:09,680 the format page you can get it from the 9645 06:41:09,680 --> 06:41:12,638 view view 9646 06:41:12,638 --> 06:41:14,920 format and then on the right hand side 9647 06:41:14,920 --> 06:41:16,878 you have another format option once you 9648 06:41:16,878 --> 06:41:18,440 click that you should be able to see the 9649 06:41:18,440 --> 06:41:21,398 format page once you see the format pen 9650 06:41:21,398 --> 06:41:23,080 you can start working on the properties 9651 06:41:23,080 --> 06:41:25,558 if you're visually selected so we know 9652 06:41:25,558 --> 06:41:28,840 the size and style very simple based on 9653 06:41:28,840 --> 06:41:30,638 your location and the size they can 9654 06:41:30,638 --> 06:41:33,638 change 9655 06:41:34,840 --> 06:41:37,320 then we have the padding padding uh 9656 06:41:37,320 --> 06:41:39,320 right now I would like to keep as is I 9657 06:41:39,320 --> 06:41:41,478 don't want to change it background in 9658 06:41:41,478 --> 06:41:43,040 case we want it to have a background 9659 06:41:43,040 --> 06:41:45,680 color we can change it and if you change 9660 06:41:45,680 --> 06:41:47,040 the color we need to make it a little 9661 06:41:47,040 --> 06:41:49,440 less transparent so that we can see it 9662 06:41:49,440 --> 06:41:51,360 but right now I don't need any 9663 06:41:51,360 --> 06:41:53,160 background color so I'm going to disable 9664 06:41:53,160 --> 06:41:55,718 it visual Border in case you need a 9665 06:41:55,718 --> 06:41:57,360 border and if you want to have the 9666 06:41:57,360 --> 06:41:59,280 Border you need to increase the light 9667 06:41:59,280 --> 06:42:02,000 and come out of the visual there you can 9668 06:42:02,000 --> 06:42:04,120 see the visual border 9669 06:42:04,120 --> 06:42:05,920 again I don't need visual border so I'm 9670 06:42:05,920 --> 06:42:08,320 disabling it in case you need Shadow for 9671 06:42:08,320 --> 06:42:10,200 the visual you can enable it you can 9672 06:42:10,200 --> 06:42:11,240 observe the 9673 06:42:11,240 --> 06:42:14,320 shadow below the visual and then for the 9674 06:42:14,320 --> 06:42:16,040 shadow we have various option like 9675 06:42:16,040 --> 06:42:19,520 outside and outside where bottom right 9676 06:42:19,520 --> 06:42:23,798 bottom bottom left right Etc again I 9677 06:42:23,798 --> 06:42:25,638 don't need Shadow as of now so I'm going 9678 06:42:25,638 --> 06:42:28,478 to disable it title we already have a 9679 06:42:28,478 --> 06:42:31,558 title as brand but we can use a major in 9680 06:42:31,558 --> 06:42:34,240 the title we can have different headings 9681 06:42:34,240 --> 06:42:37,798 like heading 2 3 4 on normal right now I 9682 06:42:37,798 --> 06:42:40,840 keep it as is we can have font color we 9683 06:42:40,840 --> 06:42:44,878 can have font name size Bard italic 9684 06:42:44,878 --> 06:42:47,520 underline and the text color for the 9685 06:42:47,520 --> 06:42:49,398 title we can also have a background 9686 06:42:49,398 --> 06:42:51,558 color for the title and the alignment we 9687 06:42:51,558 --> 06:42:53,958 can keep it let's say cental align or 9688 06:42:53,958 --> 06:42:56,878 the right align or left align Tex rep in 9689 06:42:56,878 --> 06:42:58,680 case there is a bigger title it should 9690 06:42:58,680 --> 06:43:00,958 wrap out every visual now can have a 9691 06:43:00,958 --> 06:43:03,240 subtitle so we can have a subtitle if 9692 06:43:03,240 --> 06:43:05,360 needed if we enable it we'll get 9693 06:43:05,360 --> 06:43:07,878 additional space for subtitle then we 9694 06:43:07,878 --> 06:43:09,760 can have a divider between the visual 9695 06:43:09,760 --> 06:43:12,040 and the title subtitle right now I'm 9696 06:43:12,040 --> 06:43:15,440 going to disable that also spacing 9697 06:43:15,440 --> 06:43:17,280 customize spacing if you want to 9698 06:43:17,280 --> 06:43:19,520 customize the spacing between the titter 9699 06:43:19,520 --> 06:43:23,240 and the divider but right now I don't 9700 06:43:23,240 --> 06:43:25,240 want to change it I can even reduce it 9701 06:43:25,240 --> 06:43:28,280 further to save some space now comes the 9702 06:43:28,280 --> 06:43:30,240 important slicer setting it is a single 9703 06:43:30,240 --> 06:43:32,520 select slicer you can see the radio 9704 06:43:32,520 --> 06:43:35,120 buttons I can make it multi- select by 9705 06:43:35,120 --> 06:43:37,440 unchecking the single select and now I 9706 06:43:37,440 --> 06:43:40,280 can select more than 9707 06:43:40,280 --> 06:43:43,798 one now importantly this visualiz a show 9708 06:43:43,798 --> 06:43:46,360 all so you will say that is there with 9709 06:43:46,360 --> 06:43:49,718 the slicer when we have the multi select 9710 06:43:49,718 --> 06:43:52,120 but even if I enable the single select I 9711 06:43:52,120 --> 06:43:55,160 have the select all is this property 9712 06:43:55,160 --> 06:43:57,120 only specific to this one or added to 9713 06:43:57,120 --> 06:43:59,040 normal slicer let's check that out right 9714 06:43:59,040 --> 06:44:01,320 away let's bring in the additional 9715 06:44:01,320 --> 06:44:03,958 slicer the normal slicer put Brown 9716 06:44:03,958 --> 06:44:06,040 inside it and let us see is that 9717 06:44:06,040 --> 06:44:08,440 property also changed for this visual we 9718 06:44:08,440 --> 06:44:11,520 go here to the slicer setting and we use 9719 06:44:11,520 --> 06:44:14,478 select all and then we enable single 9720 06:44:14,478 --> 06:44:16,840 select so you can see in the single 9721 06:44:16,840 --> 06:44:19,080 select we don't see select all in the 9722 06:44:19,080 --> 06:44:22,080 normal slicer but in the list slicer we 9723 06:44:22,080 --> 06:44:24,958 have single select along with the select 9724 06:44:24,958 --> 06:44:27,958 all so let me remove this normal slicer 9725 06:44:27,958 --> 06:44:30,600 or the old slicer and we can now enjoy 9726 06:44:30,600 --> 06:44:34,040 select all but does it work work to 9727 06:44:34,040 --> 06:44:35,840 check that out let me create a visual 9728 06:44:35,840 --> 06:44:37,080 brand 9729 06:44:37,080 --> 06:44:39,360 wise net 9730 06:44:39,360 --> 06:44:42,000 major now let me do select all 9731 06:44:42,000 --> 06:44:44,280 everything is working let me deselect 9732 06:44:44,280 --> 06:44:49,160 all brand one brand 10 Brand 11 brand 12 9733 06:44:49,160 --> 06:44:50,200 one more thing which you might have 9734 06:44:50,200 --> 06:44:52,558 noticed if I do select all and if I 9735 06:44:52,558 --> 06:44:54,680 uncheck brand one only one is getting 9736 06:44:54,680 --> 06:44:57,320 unselected so we have one deselection 9737 06:44:57,320 --> 06:44:59,878 feature also here so these are some of 9738 06:44:59,878 --> 06:45:02,200 the properties so let's go back to the 9739 06:45:02,200 --> 06:45:05,000 format pan again of this 9740 06:45:05,000 --> 06:45:08,240 slicer we are on the slicer settings so 9741 06:45:08,240 --> 06:45:10,040 we have played around with that now we 9742 06:45:10,040 --> 06:45:12,080 are very happy with the select all 9743 06:45:12,080 --> 06:45:15,478 option also then here the shape 9744 06:45:15,478 --> 06:45:18,040 rectangle shape rounded rectangle snip 9745 06:45:18,040 --> 06:45:20,638 uh snip tab both these are the shapes 9746 06:45:20,638 --> 06:45:22,840 which are available so I'm going to 9747 06:45:22,840 --> 06:45:25,000 leave them as is I'm not want to chck 9748 06:45:25,000 --> 06:45:27,440 but I would like to go to the layout 9749 06:45:27,440 --> 06:45:30,478 layout is fixed number of button is on 9750 06:45:30,478 --> 06:45:32,558 number of button sh is it and I can 9751 06:45:32,558 --> 06:45:35,440 uncheck that it it creates a little 9752 06:45:35,440 --> 06:45:38,080 compact UI space between the button if 9753 06:45:38,080 --> 06:45:39,798 you want to increase the button space 9754 06:45:39,798 --> 06:45:41,398 between the button you can do that but I 9755 06:45:41,398 --> 06:45:43,878 think right now it is fine indentation 9756 06:45:43,878 --> 06:45:45,200 now reverse 9757 06:45:45,200 --> 06:45:47,958 indentation now this will play a little 9758 06:45:47,958 --> 06:45:50,520 better role when we have more than one 9759 06:45:50,520 --> 06:45:52,558 intend the butter container that also 9760 06:45:52,558 --> 06:45:54,000 will play a little better role when we 9761 06:45:54,000 --> 06:45:56,040 have more than one when we create the 9762 06:45:56,040 --> 06:45:59,240 hercal slicer call out values the values 9763 06:45:59,240 --> 06:46:01,040 which we have if you disable the call 9764 06:46:01,040 --> 06:46:03,600 out value you not see anything we need 9765 06:46:03,600 --> 06:46:05,040 to have the call out value it means 9766 06:46:05,040 --> 06:46:06,638 these are the color for the values like 9767 06:46:06,638 --> 06:46:11,080 brand one brand 10 so font size bold 9768 06:46:11,080 --> 06:46:14,320 italic underline color transparency 9769 06:46:14,320 --> 06:46:16,080 alignment like we can make them right 9770 06:46:16,080 --> 06:46:19,718 align penter align left align all these 9771 06:46:19,718 --> 06:46:22,680 properties are display unit is Auto and 9772 06:46:22,680 --> 06:46:24,440 show values as blink and then we have 9773 06:46:24,440 --> 06:46:27,200 the layout vertical 9774 06:46:27,200 --> 06:46:29,280 alignments also there then we have a 9775 06:46:29,280 --> 06:46:31,840 selection icon which we can enable or 9776 06:46:31,840 --> 06:46:34,478 disable definitely we need the selection 9777 06:46:34,478 --> 06:46:35,958 icon what happens if we don't have 9778 06:46:35,958 --> 06:46:38,478 selection iton I click click on Brand 11 9779 06:46:38,478 --> 06:46:40,440 Brand 11 selected brand 12 but I'm not 9780 06:46:40,440 --> 06:46:42,320 able to see so better to have a 9781 06:46:42,320 --> 06:46:45,398 selection icon then I have buttons this 9782 06:46:45,398 --> 06:46:48,558 is also little important because the 9783 06:46:48,558 --> 06:46:50,920 buttons are not visible unless you start 9784 06:46:50,920 --> 06:46:52,920 grading a Bott once you have bot you can 9785 06:46:52,920 --> 06:46:55,520 see the you know buttons then you can 9786 06:46:55,520 --> 06:46:58,040 have fill or don't fill you can have a 9787 06:46:58,040 --> 06:47:00,760 shadow you can have blow you can have 9788 06:47:00,760 --> 06:47:03,160 Ascent bar on the buttons so with this 9789 06:47:03,160 --> 06:47:04,920 property you can create a button land of 9790 06:47:04,920 --> 06:47:06,718 a UI but definitely if you want to make 9791 06:47:06,718 --> 06:47:08,760 it as a button then you need little more 9792 06:47:08,760 --> 06:47:11,558 space for each one of 9793 06:47:11,558 --> 06:47:14,680 them so if I want to let's say have 9794 06:47:14,680 --> 06:47:17,718 Shadow now you can see if I made give it 9795 06:47:17,718 --> 06:47:19,280 little more space then I can have the 9796 06:47:19,280 --> 06:47:21,440 Shadow or you reduce the number of 9797 06:47:21,440 --> 06:47:24,040 buttons then you can also have these 9798 06:47:24,040 --> 06:47:26,958 things so I will disable that but these 9799 06:47:26,958 --> 06:47:28,760 are the various property you can play 9800 06:47:28,760 --> 06:47:31,478 around now let's take the next step by 9801 06:47:31,478 --> 06:47:33,398 bringing in one more 9802 06:47:33,398 --> 06:47:36,320 field to the slizer and let me bring in 9803 06:47:36,320 --> 06:47:38,840 category once I bring in category you 9804 06:47:38,840 --> 06:47:41,520 can see that I can open the arrow there 9805 06:47:41,520 --> 06:47:43,680 will be nothing on the select on but for 9806 06:47:43,680 --> 06:47:46,520 each brand I can have next level and I 9807 06:47:46,520 --> 06:47:48,398 can do the right now it is single select 9808 06:47:48,398 --> 06:47:50,240 we can switch off the single select to 9809 06:47:50,240 --> 06:47:51,718 make it multi select that's one more 9810 06:47:51,718 --> 06:47:54,040 change which has came in last one year 9811 06:47:54,040 --> 06:47:55,920 where if you uncheck the single select 9812 06:47:55,920 --> 06:47:57,920 it become multi- select so in this 9813 06:47:57,920 --> 06:48:00,000 manner you have these properties and now 9814 06:48:00,000 --> 06:48:01,600 you can play around the little more 9815 06:48:01,600 --> 06:48:05,440 properties here on the layout and on the 9816 06:48:05,440 --> 06:48:08,958 icon so especially expand icon now if I 9817 06:48:08,958 --> 06:48:12,320 go here and play around expand icon I 9818 06:48:12,320 --> 06:48:14,878 can go to the layout look at where is 9819 06:48:14,878 --> 06:48:17,200 expand icon right now it is on left look 9820 06:48:17,200 --> 06:48:21,520 at that Arrow now it is going to 9821 06:48:21,760 --> 06:48:24,478 WR look at the icon 9822 06:48:24,478 --> 06:48:27,878 here same way alignment we can play 9823 06:48:27,878 --> 06:48:32,160 around THS and the spacing all these 9824 06:48:32,160 --> 06:48:35,280 things we can play around with this list 9825 06:48:35,280 --> 06:48:37,878 license some important properties have 9826 06:48:37,878 --> 06:48:40,600 come in and powerbi is paying a lot of 9827 06:48:40,600 --> 06:48:44,558 attention to the visual property so here 9828 06:48:44,558 --> 06:48:46,638 what we are going to get is basically a 9829 06:48:46,638 --> 06:48:49,280 new visual experience which with lot of 9830 06:48:49,280 --> 06:48:51,398 properties which we can play around and 9831 06:48:51,398 --> 06:48:54,240 make it suitable for our use case now we 9832 06:48:54,240 --> 06:48:55,958 have quite a few kind of slicer we have 9833 06:48:55,958 --> 06:48:58,760 a normal slicer the we have the list 9834 06:48:58,760 --> 06:49:00,958 slicer which is previously known as the 9835 06:49:00,958 --> 06:49:03,398 new slicer or the button slicer then we 9836 06:49:03,398 --> 06:49:06,000 have text slicer and we also have the 9837 06:49:06,000 --> 06:49:08,240 list slicer so why don't you go ahead 9838 06:49:08,240 --> 06:49:11,280 and try the list slicer out we have 9839 06:49:11,280 --> 06:49:13,878 learned slicers and we saw slicer apply 9840 06:49:13,878 --> 06:49:15,920 on a page but in case of filter we do 9841 06:49:15,920 --> 06:49:17,878 had an option where it can work on all 9842 06:49:17,878 --> 06:49:19,240 the page and we have something very 9843 06:49:19,240 --> 06:49:23,478 simiz sync slicer is a process in which 9844 06:49:23,478 --> 06:49:27,558 we can sync a slicer on one page with a 9845 06:49:27,558 --> 06:49:31,398 slicer on another page now usually We 9846 06:49:31,398 --> 06:49:33,280 sync the slicer 9847 06:49:33,280 --> 06:49:35,080 which is having the same name or the 9848 06:49:35,080 --> 06:49:38,398 same table on the other page at little 9849 06:49:38,398 --> 06:49:41,280 bit later I'll also show you a way where 9850 06:49:41,280 --> 06:49:43,440 you can sync the slicer which do not 9851 06:49:43,440 --> 06:49:47,160 belong to one table means the slicers 9852 06:49:47,160 --> 06:49:49,718 are coming from two different tables and 9853 06:49:49,718 --> 06:49:52,000 they can have two different names also 9854 06:49:52,000 --> 06:49:55,120 but they are of same type like 9855 06:49:55,120 --> 06:49:58,160 City so let me add this page and here 9856 06:49:58,160 --> 06:49:59,558 there are certain slicer which are 9857 06:49:59,558 --> 06:50:01,638 applied and I have this visual copy this 9858 06:50:01,638 --> 06:50:04,200 visual need page two so can I can I get 9859 06:50:04,200 --> 06:50:06,600 the category slic can I go ahead have a 9860 06:50:06,600 --> 06:50:08,600 category slicer and if I filter 9861 06:50:08,600 --> 06:50:11,080 something here can it do filter there on 9862 06:50:11,080 --> 06:50:12,200 this first of all this is a single 9863 06:50:12,200 --> 06:50:14,320 select kind of a slicer can I do that 9864 06:50:14,320 --> 06:50:16,360 there's something known as s slicer 9865 06:50:16,360 --> 06:50:17,958 there would be limitations what is 9866 06:50:17,958 --> 06:50:19,558 happening on that select category two 9867 06:50:19,558 --> 06:50:21,160 and if I go to this page is it going to 9868 06:50:21,160 --> 06:50:22,160 be 9869 06:50:22,160 --> 06:50:25,558 category so there are couple of ways to 9870 06:50:25,558 --> 06:50:28,160 achieve syn slicer I'm going to tell you 9871 06:50:28,160 --> 06:50:31,000 both of them so one of the way is from 9872 06:50:31,000 --> 06:50:32,840 menu options where you go to the the 9873 06:50:32,840 --> 06:50:36,440 menu and use the view Tab and there you 9874 06:50:36,440 --> 06:50:38,520 have the syn slicer option that you can 9875 06:50:38,520 --> 06:50:40,958 use and the second option is when you 9876 06:50:40,958 --> 06:50:43,920 copy paste the slicer you do get an 9877 06:50:43,920 --> 06:50:46,120 option to sync you have to click that 9878 06:50:46,120 --> 06:50:48,120 option to sync and then it will get 9879 06:50:48,120 --> 06:50:50,638 synced automatically so let's start with 9880 06:50:50,638 --> 06:50:52,600 the first option and then there is a 9881 06:50:52,600 --> 06:50:54,440 known as we have insert and in the 9882 06:50:54,440 --> 06:50:56,680 insert we have we have View and inside 9883 06:50:56,680 --> 06:50:58,680 view we have sync slicer so if I select 9884 06:50:58,680 --> 06:51:01,160 this slicer it is telling me that I can 9885 06:51:01,160 --> 06:51:03,840 sync it in the slicer and the page two 9886 06:51:03,840 --> 06:51:05,398 we have View and inside view we have 9887 06:51:05,398 --> 06:51:07,840 sync slicer so if I select this slicer 9888 06:51:07,840 --> 06:51:10,398 it is telling me that I can sync it in 9889 06:51:10,398 --> 06:51:12,798 the slicer and the page two let me do 9890 06:51:12,798 --> 06:51:15,160 that so one option is think and second 9891 06:51:15,160 --> 06:51:17,520 is visible I've done that now I go back 9892 06:51:17,520 --> 06:51:19,878 to the Category 3 category 4 I come back 9893 06:51:19,878 --> 06:51:21,798 on the page two I see only category 4 9894 06:51:21,798 --> 06:51:23,878 enlarge it the slicer are getting other 9895 06:51:23,878 --> 06:51:25,558 way and easier way to do this thing 9896 06:51:25,558 --> 06:51:28,600 slicer is copy it contrl C and crl V it 9897 06:51:28,600 --> 06:51:30,638 asked for saying slicer you I want now 9898 06:51:30,638 --> 06:51:33,558 you can see that I select brand one I go 9899 06:51:33,558 --> 06:51:35,440 here it is I'm able to sync the slicer 9900 06:51:35,440 --> 06:51:37,680 Pages this is sync this is the old 9901 06:51:37,680 --> 06:51:40,200 slicer and the copy paste or using the 9902 06:51:40,200 --> 06:51:42,440 sync slicer paint which is available in 9903 06:51:42,440 --> 06:51:45,000 the view we can do that but can we do it 9904 06:51:45,000 --> 06:51:46,920 on the model new slicer where is our new 9905 06:51:46,920 --> 06:51:48,878 slicer our new slicer and I do the same 9906 06:51:48,878 --> 06:51:51,798 let me contrl c go to the page contrl V 9907 06:51:51,798 --> 06:51:54,360 is asking for slicer brand 10 I filter a 9908 06:51:54,360 --> 06:51:56,200 brand 10 here I go to the other slicer 9909 06:51:56,200 --> 06:51:57,478 it should show brand 10 because they 9910 06:51:57,478 --> 06:51:58,920 belong to the same table if I go to the 9911 06:51:58,920 --> 06:52:01,680 new slicer page is also brand 10 so both 9912 06:52:01,680 --> 06:52:05,280 the old slicer and the new slicer can be 9913 06:52:05,280 --> 06:52:07,958 you think either by copy paste or using 9914 06:52:07,958 --> 06:52:10,000 view think slicer only thing you have to 9915 06:52:10,000 --> 06:52:12,240 do is click on a slicer know where it 9916 06:52:12,240 --> 06:52:14,398 should be visible so in this manner can 9917 06:52:14,398 --> 06:52:16,478 sync the slicer and then they can filter 9918 06:52:16,478 --> 06:52:18,798 the data across the 9919 06:52:18,798 --> 06:52:21,760 pages so now we would like to discuss a 9920 06:52:21,760 --> 06:52:24,798 use case which is syn slicer across 9921 06:52:24,798 --> 06:52:27,000 different fields and these different 9922 06:52:27,000 --> 06:52:29,240 fields could be across two different 9923 06:52:29,240 --> 06:52:31,718 tables columns so typically the SN 9924 06:52:31,718 --> 06:52:34,680 slicer is for the same field so let's 9925 06:52:34,680 --> 06:52:36,718 say if I have geography City on page one 9926 06:52:36,718 --> 06:52:38,600 I have a geography City on page two I 9927 06:52:38,600 --> 06:52:41,240 want to sync them but this case is a 9928 06:52:41,240 --> 06:52:43,280 little different I want to sync the 9929 06:52:43,280 --> 06:52:45,840 slicer which is across two tables let's 9930 06:52:45,840 --> 06:52:48,280 say customer City and geography City I 9931 06:52:48,280 --> 06:52:50,878 want to sync them they may not have even 9932 06:52:50,878 --> 06:52:52,680 name a city they could be little 9933 06:52:52,680 --> 06:52:55,478 different name so we want to sync slicer 9934 06:52:55,478 --> 06:52:57,120 across two different field that's what 9935 06:52:57,120 --> 06:52:59,558 the main objective is for this one what 9936 06:52:59,558 --> 06:53:01,360 has happened that I have used a little 9937 06:53:01,360 --> 06:53:04,120 different file that's very common file 9938 06:53:04,120 --> 06:53:06,600 which I use for abstract thesis series 9939 06:53:06,600 --> 06:53:09,520 the file at GitHub which you can also 9940 06:53:09,520 --> 06:53:12,080 get from my GitHub account the file 9941 06:53:12,080 --> 06:53:13,878 follows the same model which we are 9942 06:53:13,878 --> 06:53:17,200 following in the learn power ba series 9943 06:53:17,200 --> 06:53:19,638 you will be able to relate with the 9944 06:53:19,638 --> 06:53:22,600 fields which I'm using in this art of 9945 06:53:22,600 --> 06:53:26,520 the video also so how can we do that so 9946 06:53:26,520 --> 06:53:29,240 to do that let's try that out on power 9947 06:53:29,240 --> 06:53:32,840 ba file so let me open my power ba file 9948 06:53:32,840 --> 06:53:36,000 so I'm here in my power ba file and I'm 9949 06:53:36,000 --> 06:53:38,760 using the generic model which I'm using 9950 06:53:38,760 --> 06:53:41,840 in most of my other videos so here I'm 9951 06:53:41,840 --> 06:53:44,360 using my common sales model which I'm 9952 06:53:44,360 --> 06:53:47,638 using for most of my videos and this 9953 06:53:47,638 --> 06:53:50,440 model contains a sales table join with 9954 06:53:50,440 --> 06:53:53,558 the date item customer and geography 9955 06:53:53,558 --> 06:53:55,600 table one to many single directional 9956 06:53:55,600 --> 06:53:58,280 join from Dimension to fact the same 9957 06:53:58,280 --> 06:54:00,600 model we are going to continue here and 9958 06:54:00,600 --> 06:54:03,080 here what we wanted to try out is is 9959 06:54:03,080 --> 06:54:06,958 basically I would like to add let's say 9960 06:54:06,958 --> 06:54:10,878 from the customer Dimension I have a 9961 06:54:11,478 --> 06:54:16,040 city and let me convert this into a 9962 06:54:16,478 --> 06:54:20,320 slicer I have a customer slicer City and 9963 06:54:20,320 --> 06:54:23,160 I also would like to add a slicer from 9964 06:54:23,160 --> 06:54:26,040 geography table which is city let me 9965 06:54:26,040 --> 06:54:28,200 change this also to a 9966 06:54:28,200 --> 06:54:30,958 slices so I have two slices which are 9967 06:54:30,958 --> 06:54:32,760 basically on City on different one one 9968 06:54:32,760 --> 06:54:35,558 is on geography City another one is on 9969 06:54:35,558 --> 06:54:37,920 customer City so if I select one of them 9970 06:54:37,920 --> 06:54:40,398 as you can see there is no impact on 9971 06:54:40,398 --> 06:54:43,080 each other but if I go down and add 9972 06:54:43,080 --> 06:54:45,680 let's say some Visual and in that visual 9973 06:54:45,680 --> 06:54:50,878 I'll take data from item brand and and 9974 06:54:50,878 --> 06:54:52,680 take a measure like 9975 06:54:52,680 --> 06:54:56,040 net now if I select something let's say 9976 06:54:56,040 --> 06:54:57,878 I select one of the city from here you 9977 06:54:57,878 --> 06:54:59,878 can see the data is changing if I select 9978 06:54:59,878 --> 06:55:01,360 another one from here you can see 9979 06:55:01,360 --> 06:55:04,120 changes I select from both of them may 9980 06:55:04,120 --> 06:55:06,718 not get any data because mostly these 9981 06:55:06,718 --> 06:55:09,040 cities are kind of similar kind of City 9982 06:55:09,040 --> 06:55:11,040 whether this is this page or let's say 9983 06:55:11,040 --> 06:55:13,320 if I even duplicate this page they are 9984 06:55:13,320 --> 06:55:16,040 on this page I would like to have sync 9985 06:55:16,040 --> 06:55:19,320 slicer so I want to sync the slicer 9986 06:55:19,320 --> 06:55:22,558 either on within the page or across the 9987 06:55:22,558 --> 06:55:25,680 pages so how do I do that because if I 9988 06:55:25,680 --> 06:55:27,878 select a value there is no way I can you 9989 06:55:27,878 --> 06:55:30,558 know think with this and if I go to 9990 06:55:30,558 --> 06:55:33,398 let's say View and if I I go to sync 9991 06:55:33,398 --> 06:55:35,878 slicers as you can see I have do have 9992 06:55:35,878 --> 06:55:37,718 option where I can sync it with other 9993 06:55:37,718 --> 06:55:40,558 page but I don't seems to have an option 9994 06:55:40,558 --> 06:55:42,878 where I can sync these different one 9995 06:55:42,878 --> 06:55:45,360 with this as you can see I can see the 9996 06:55:45,360 --> 06:55:47,718 slicer here there are two slicers which 9997 06:55:47,718 --> 06:55:49,878 I can see across different pages which 9998 06:55:49,878 --> 06:55:52,520 is visible this one city customer city 9999 06:55:52,520 --> 06:55:54,520 as you can see it is highlighting that 10000 06:55:54,520 --> 06:55:56,440 customer city is available in those 10001 06:55:56,440 --> 06:55:59,200 pages and I can sync them by clicking on 10002 06:55:59,200 --> 06:56:01,240 the value so if I do 10003 06:56:01,240 --> 06:56:04,520 this if I sync it across the pages if I 10004 06:56:04,520 --> 06:56:06,798 clicked on let's say Atlanta here and if 10005 06:56:06,798 --> 06:56:08,958 I go to the duplicate page you can see 10006 06:56:08,958 --> 06:56:10,440 that Atlanta 10007 06:56:10,440 --> 06:56:14,558 values but how do I sync these two SES 10008 06:56:14,558 --> 06:56:16,760 on the same page which are from 10009 06:56:16,760 --> 06:56:19,120 different dimension let's look at the 10010 06:56:19,120 --> 06:56:21,558 details of the sync slicers 10011 06:56:21,558 --> 06:56:23,958 again in the syn slicer what I'm going 10012 06:56:23,958 --> 06:56:26,040 to do here is I'm going to go to the 10013 06:56:26,040 --> 06:56:27,718 Advance option I've unchecked the 10014 06:56:27,718 --> 06:56:30,680 syncing right now I go to the advance so 10015 06:56:30,680 --> 06:56:32,760 let me give it as a name City 10016 06:56:32,760 --> 06:56:36,160 Dy so I've given it as a name c Dy and 10017 06:56:36,160 --> 06:56:38,638 let me come to this slicer and also give 10018 06:56:38,638 --> 06:56:42,798 it as a name c Dy now this is cdy and 10019 06:56:42,798 --> 06:56:45,600 this is also cdy let me select one of 10020 06:56:45,600 --> 06:56:47,878 these now you can see whatever values 10021 06:56:47,878 --> 06:56:50,320 I'm selecting is also getting selected 10022 06:56:50,320 --> 06:56:52,718 on the other 10023 06:56:52,718 --> 06:56:55,440 slicer so now you can see that whatever 10024 06:56:55,440 --> 06:56:57,638 value I'm selecting here on the first 10025 06:56:57,638 --> 06:57:00,478 slicer is also getting selected on the 10026 06:57:00,478 --> 06:57:02,798 second slicer so there from different 10027 06:57:02,798 --> 06:57:05,478 dimension but I able to sync them now 10028 06:57:05,478 --> 06:57:07,798 can I sync them across the page so what 10029 06:57:07,798 --> 06:57:09,840 for that what we have to do is let's say 10030 06:57:09,840 --> 06:57:12,638 this is the slicer here I go and here I 10031 06:57:12,638 --> 06:57:16,798 so if I give the name as tore Dy it will 10032 06:57:16,798 --> 06:57:19,398 also get sync so let's say if I select a 10033 06:57:19,398 --> 06:57:21,558 value here check this value let me 10034 06:57:21,558 --> 06:57:23,958 select a value Austin here go back to 10035 06:57:23,958 --> 06:57:26,760 the first page you can see all these 10036 06:57:26,760 --> 06:57:28,920 three slicer are now showing the atin 10037 06:57:28,920 --> 06:57:32,920 value so I'm able to sync across page 10038 06:57:32,920 --> 06:57:34,798 which I was able to do previously but 10039 06:57:34,798 --> 06:57:37,398 across different dimension table or 10040 06:57:37,398 --> 06:57:40,360 across different table columns I'm able 10041 06:57:40,360 --> 06:57:43,718 to sync using syn slicer so the property 10042 06:57:43,718 --> 06:57:45,798 is lying in the advance once you rename 10043 06:57:45,798 --> 06:57:48,000 and give them a common name that is 10044 06:57:48,000 --> 06:57:50,200 where you have an opportunity that you 10045 06:57:50,200 --> 06:57:53,240 can syn slicer across tables with 10046 06:57:53,240 --> 06:57:56,240 columns coming from two different tables 10047 06:57:56,240 --> 06:57:58,840 so why don't you go ahead and try this 10048 06:57:58,840 --> 06:58:01,718 out we will now try to create combo 10049 06:58:01,718 --> 06:58:03,478 visuals combo visuals are the visual 10050 06:58:03,478 --> 06:58:04,558 where we 10051 06:58:04,558 --> 06:58:07,520 have basically either bar and line 10052 06:58:07,520 --> 06:58:10,398 together or stagged bar and line 10053 06:58:10,398 --> 06:58:12,320 together so couple of combo visuals are 10054 06:58:12,320 --> 06:58:15,520 there uh they can be found here in the 10055 06:58:15,520 --> 06:58:17,798 build visuals region or you can find 10056 06:58:17,798 --> 06:58:19,958 them here now line visual we have 10057 06:58:19,958 --> 06:58:22,920 already seen the secondary axis now the 10058 06:58:22,920 --> 06:58:24,120 thing which you are going to get here is 10059 06:58:24,120 --> 06:58:25,600 the secondary AIS and I'm going to start 10060 06:58:25,600 --> 06:58:28,160 with the cluster column 10061 06:58:28,160 --> 06:58:30,520 chart I bring in the cluster column 10062 06:58:30,520 --> 06:58:33,440 chart and here on the xaxis let me bring 10063 06:58:33,440 --> 06:58:36,280 in brand and on the y- axis let me bring 10064 06:58:36,280 --> 06:58:38,440 in 10065 06:58:40,638 --> 06:58:45,478 net now there is a line axis line Y axis 10066 06:58:45,478 --> 06:58:46,878 now what I'm going to do first time I'm 10067 06:58:46,878 --> 06:58:50,240 going to bring in Gross here 10068 06:58:50,240 --> 06:58:52,878 and you will find that the there's a 10069 06:58:52,878 --> 06:58:55,000 line y- axis but I did not get in a 10070 06:58:55,000 --> 06:58:58,398 secondary Y axis if you see both of them 10071 06:58:58,398 --> 06:59:01,638 get adjust yis there's no secondary y 10072 06:59:01,638 --> 06:59:02,558 axis 10073 06:59:02,558 --> 06:59:06,240 now this happens when you take the two 10074 06:59:06,240 --> 06:59:07,958 variables which are having the similar 10075 06:59:07,958 --> 06:59:09,760 kind of stuff it automatically put them 10076 06:59:09,760 --> 06:59:12,520 on the same one now what happens if you 10077 06:59:12,520 --> 06:59:14,360 need the secondary AIS I actually want 10078 06:59:14,360 --> 06:59:16,000 it to have so you go to the visual 10079 06:59:16,000 --> 06:59:18,120 format which is right now available here 10080 06:59:18,120 --> 06:59:20,000 otherwise go and click on the three dots 10081 06:59:20,000 --> 06:59:22,280 and format to get it in case you are not 10082 06:59:22,280 --> 06:59:24,398 getting it now you are not getting a 10083 06:59:24,398 --> 06:59:26,760 secondary Y axis we do see the property 10084 06:59:26,760 --> 06:59:29,958 of the secondary Y axis here and you go 10085 06:59:29,958 --> 06:59:31,520 and enable the values the moment you 10086 06:59:31,520 --> 06:59:34,040 enable the the values start showing the 10087 06:59:34,040 --> 06:59:37,000 secondary y AIS now because of kind of 10088 06:59:37,000 --> 06:59:38,558 values you have there was no need of 10089 06:59:38,558 --> 06:59:40,520 secondary ya axis it was not showing but 10090 06:59:40,520 --> 06:59:42,558 you can enable it let me disable it and 10091 06:59:42,558 --> 06:59:44,520 let me do one thing instead of gross let 10092 06:59:44,520 --> 06:59:46,680 me try to bring in 10093 06:59:46,680 --> 06:59:50,878 margin on the second line 10094 06:59:50,920 --> 06:59:53,440 AIS now the moment I bring in margin 10095 06:59:53,440 --> 06:59:55,120 percentage because I manually switched 10096 06:59:55,120 --> 06:59:58,000 it off it's not showing me so I will 10097 06:59:58,000 --> 07:00:00,320 switch it on and do but usually what 10098 07:00:00,320 --> 07:00:03,360 happens is basically when you have the 10099 07:00:03,360 --> 07:00:06,520 majors which are not of the same kind of 10100 07:00:06,520 --> 07:00:10,638 a range it will show you the secondary 10101 07:00:10,638 --> 07:00:12,600 yaxis automatically now what I'm going 10102 07:00:12,600 --> 07:00:15,120 to do here is I'll going to play around 10103 07:00:15,120 --> 07:00:16,680 few things and tell you what all you can 10104 07:00:16,680 --> 07:00:18,520 do now this is one thing which you can 10105 07:00:18,520 --> 07:00:22,478 have similarly you can even have a 10106 07:00:22,478 --> 07:00:24,798 legend and along with the legend also it 10107 07:00:24,798 --> 07:00:26,840 will work but Legend do not work for the 10108 07:00:26,840 --> 07:00:29,718 line so if you want multiple lines you 10109 07:00:29,718 --> 07:00:31,440 need to have multiple measures so like I 10110 07:00:31,440 --> 07:00:33,718 have I have margin on the line axis I 10111 07:00:33,718 --> 07:00:36,040 can have discount but the legend is not 10112 07:00:36,040 --> 07:00:38,280 going to work if you're looking for a 10113 07:00:38,280 --> 07:00:41,040 legend then it's not going to work on 10114 07:00:41,040 --> 07:00:44,320 the secondary y AIS it is true across 10115 07:00:44,320 --> 07:00:45,718 line 10116 07:00:45,718 --> 07:00:48,320 chart line clustered column chart and 10117 07:00:48,320 --> 07:00:49,680 line 10118 07:00:49,680 --> 07:00:52,200 tagged column chart it's through across 10119 07:00:52,200 --> 07:00:54,478 that so I'm going to remove it again 10120 07:00:54,478 --> 07:00:55,958 same thing we have one more thing which 10121 07:00:55,958 --> 07:00:57,798 we have done in the past instead of 10122 07:00:57,798 --> 07:01:00,080 having it as a legend we can have it 10123 07:01:00,080 --> 07:01:02,478 second AIS more than one and 10124 07:01:02,478 --> 07:01:04,080 both are them in the expanded manner 10125 07:01:04,080 --> 07:01:06,280 then also we can have it but again we 10126 07:01:06,280 --> 07:01:08,958 have the lines based on the majors we 10127 07:01:08,958 --> 07:01:11,080 know can't use legend for that now you 10128 07:01:11,080 --> 07:01:13,718 have the lines U then again you can use 10129 07:01:13,718 --> 07:01:15,240 different kind of formattings what we 10130 07:01:15,240 --> 07:01:18,040 are going to do here is first of all um 10131 07:01:18,040 --> 07:01:19,360 we will go to 10132 07:01:19,360 --> 07:01:22,360 the below and the there is section for 10133 07:01:22,360 --> 07:01:23,878 columns where we can do the formatting 10134 07:01:23,878 --> 07:01:25,398 for the columns and then there is a 10135 07:01:25,398 --> 07:01:26,840 section for the line where we can do the 10136 07:01:26,840 --> 07:01:29,840 formatting for the line now because we 10137 07:01:29,840 --> 07:01:32,760 are using only one to xais or we are not 10138 07:01:32,760 --> 07:01:34,958 using any Legend there is only one major 10139 07:01:34,958 --> 07:01:38,040 we get the FX option so that is again 10140 07:01:38,040 --> 07:01:40,398 the what you are showing on the primary 10141 07:01:40,398 --> 07:01:41,920 AIS even if you're showing the line on 10142 07:01:41,920 --> 07:01:44,718 the primary AIS still if ideally there 10143 07:01:44,718 --> 07:01:47,440 is this column contains one there's no 10144 07:01:47,440 --> 07:01:49,638 Legend then you will be able to get the 10145 07:01:49,638 --> 07:01:51,120 FX option means you can do conditional 10146 07:01:51,120 --> 07:01:53,440 formatting now if you want border we can 10147 07:01:53,440 --> 07:01:56,280 have the Border here I like to increase 10148 07:01:56,280 --> 07:01:57,680 little bit transparency this is too 10149 07:01:57,680 --> 07:01:59,478 darker so I actually wanted to increase 10150 07:01:59,478 --> 07:02:01,680 a little bit transparency to look look 10151 07:02:01,680 --> 07:02:03,040 and match the column color is something 10152 07:02:03,040 --> 07:02:04,360 which I want to use I also want to 10153 07:02:04,360 --> 07:02:06,718 increase the Border width so that it is 10154 07:02:06,718 --> 07:02:09,280 little bit wider so these are some of 10155 07:02:09,280 --> 07:02:10,760 the things we have done in the others 10156 07:02:10,760 --> 07:02:13,000 also and then if required you can 10157 07:02:13,000 --> 07:02:14,680 increase the space between categories so 10158 07:02:14,680 --> 07:02:17,440 that they are little thinner bar you can 10159 07:02:17,440 --> 07:02:19,080 use reset to default for a particular 10160 07:02:19,080 --> 07:02:21,638 category to make it now series is we are 10161 07:02:21,638 --> 07:02:23,440 talking about margin all or discount so 10162 07:02:23,440 --> 07:02:25,878 if all what are the options you have is 10163 07:02:25,878 --> 07:02:27,000 you can decide for both the lines 10164 07:02:27,000 --> 07:02:28,958 whether you want solid or dotted now 10165 07:02:28,958 --> 07:02:32,160 here I'm going to CH show you this line 10166 07:02:32,160 --> 07:02:33,920 smooth and sted so now I'm going to make 10167 07:02:33,920 --> 07:02:35,680 it smooth you see this is the smooth 10168 07:02:35,680 --> 07:02:37,398 line and this is the property I've not 10169 07:02:37,398 --> 07:02:38,798 shown you in the line visual because we 10170 07:02:38,798 --> 07:02:41,000 had too many values there then you have 10171 07:02:41,000 --> 07:02:42,840 the sted layout which is basically the 10172 07:02:42,840 --> 07:02:44,920 step one so let's do one thing uh 10173 07:02:44,920 --> 07:02:46,320 instead of all the series let's go to 10174 07:02:46,320 --> 07:02:48,398 the margin percentage we have the margin 10175 07:02:48,398 --> 07:02:50,000 percentage as the smooth 10176 07:02:50,000 --> 07:02:52,558 line so we have one smooth line and when 10177 07:02:52,558 --> 07:02:55,240 we have stepped line now width right now 10178 07:02:55,240 --> 07:02:57,440 is three but I'm going to do one thing 10179 07:02:57,440 --> 07:02:59,240 I'm going to go to markers enable it now 10180 07:02:59,240 --> 07:03:01,040 both the lines are markers what I'm 10181 07:03:01,040 --> 07:03:02,760 going to do here is I go to the margin 10182 07:03:02,760 --> 07:03:05,360 percentage and let me see do I need 10183 07:03:05,360 --> 07:03:07,520 disable no I need margin I need marker 10184 07:03:07,520 --> 07:03:09,520 for margin percentage I don't need 10185 07:03:09,520 --> 07:03:13,240 marker for the one the step layout so I 10186 07:03:13,240 --> 07:03:14,200 removed 10187 07:03:14,200 --> 07:03:16,840 the marker for the discount percentage 10188 07:03:16,840 --> 07:03:18,200 so there is no marker for the discount 10189 07:03:18,200 --> 07:03:20,280 percentage let me change it to margin 10190 07:03:20,280 --> 07:03:23,280 percentage I keep the marker and I can 10191 07:03:23,280 --> 07:03:24,440 have different kind of marker let me 10192 07:03:24,440 --> 07:03:25,600 take a different kind of marker this 10193 07:03:25,600 --> 07:03:28,798 time make it little bit bigger color I 10194 07:03:28,798 --> 07:03:31,000 am fine with whatever color it has but 10195 07:03:31,000 --> 07:03:32,638 what I'm going to do here is I will go 10196 07:03:32,638 --> 07:03:35,040 up and right now already in the series I 10197 07:03:35,040 --> 07:03:36,120 have margin 10198 07:03:36,120 --> 07:03:40,200 percentage I go to the line and I make 10199 07:03:40,200 --> 07:03:41,558 St as 10200 07:03:41,558 --> 07:03:44,798 zero all the value is there now what we 10201 07:03:44,798 --> 07:03:46,440 can do here is basically when we go to 10202 07:03:46,440 --> 07:03:48,360 the data label and enable 10203 07:03:48,360 --> 07:03:52,240 it now we have enabled for everything 10204 07:03:52,240 --> 07:03:55,600 now one thing is that only for this dot 10205 07:03:55,600 --> 07:03:57,718 this values is coming this percentage 10206 07:03:57,718 --> 07:04:00,000 value is only for this dot you see 10207 07:04:00,000 --> 07:04:01,718 carefully that for this dot the values 10208 07:04:01,718 --> 07:04:03,760 is coming I can completely remove the 10209 07:04:03,760 --> 07:04:05,440 marker also and keep the values also 10210 07:04:05,440 --> 07:04:07,798 sometime we do that kind of hiding off 10211 07:04:07,798 --> 07:04:09,120 line and just keeping the value let's 10212 07:04:09,120 --> 07:04:10,798 say I'm showing net and I want to show 10213 07:04:10,798 --> 07:04:13,558 the value of gross and I put a line of 10214 07:04:13,558 --> 07:04:15,398 gross and then I just keep the values of 10215 07:04:15,398 --> 07:04:18,080 gross and don't show anything on but I 10216 07:04:18,080 --> 07:04:20,280 can see the de values and all the data 10217 07:04:20,280 --> 07:04:22,958 level properties like title value this 10218 07:04:22,958 --> 07:04:25,360 is basically major driven so basically 10219 07:04:25,360 --> 07:04:27,600 what I happening these labels are major 10220 07:04:27,600 --> 07:04:30,200 driven labels now everything which you 10221 07:04:30,200 --> 07:04:32,200 want to do you can have a major me for 10222 07:04:32,200 --> 07:04:33,798 title you can have measure for Value you 10223 07:04:33,798 --> 07:04:36,080 can have measure for details so three 10224 07:04:36,080 --> 07:04:37,798 things you can have like not everywhere 10225 07:04:37,798 --> 07:04:39,798 I want to have titles so what I can do 10226 07:04:39,798 --> 07:04:41,360 here is basically when I go to data 10227 07:04:41,360 --> 07:04:43,958 label I can for the margin 10228 07:04:43,958 --> 07:04:48,040 percentage I wanted to have a title also 10229 07:04:48,040 --> 07:04:50,080 for margin percentage I have title in 10230 07:04:50,080 --> 07:04:52,160 the single line right now it is there if 10231 07:04:52,160 --> 07:04:54,240 you remember the property we have here 10232 07:04:54,240 --> 07:04:58,080 is when we go Below in the layout we can 10233 07:04:58,080 --> 07:04:59,320 decide whether it's a single line or 10234 07:04:59,320 --> 07:05:02,440 multi-line I can make it multi-line 10235 07:05:02,440 --> 07:05:04,440 uh now I'm as of now I'm only doing it 10236 07:05:04,440 --> 07:05:07,160 for Discount I can do it for all of them 10237 07:05:07,160 --> 07:05:09,440 in this manner we can do those changes 10238 07:05:09,440 --> 07:05:13,398 so this is our bar and line let me call 10239 07:05:13,398 --> 07:05:15,440 it with the simpler 10240 07:05:15,440 --> 07:05:17,958 name and let me duplicate 10241 07:05:17,958 --> 07:05:20,478 this same way what I can do is I can 10242 07:05:20,478 --> 07:05:23,280 click on this and convert it into staged 10243 07:05:23,280 --> 07:05:26,398 bar and line now when I convert it you 10244 07:05:26,398 --> 07:05:28,320 will might see only small difference 10245 07:05:28,320 --> 07:05:30,398 nothing much has changed but the things 10246 07:05:30,398 --> 07:05:31,878 will change the moment I bring in 10247 07:05:31,878 --> 07:05:33,398 category 10248 07:05:33,398 --> 07:05:36,440 here once I bring in the legend now you 10249 07:05:36,440 --> 07:05:40,638 can see the Legends also here and then 10250 07:05:40,638 --> 07:05:43,680 as usual on the column values you have 10251 07:05:43,680 --> 07:05:46,920 this thought order 10252 07:05:46,920 --> 07:05:49,280 reversal and you can have the space 10253 07:05:49,280 --> 07:05:50,840 between the 10254 07:05:50,840 --> 07:05:54,680 serieses now for line we 10255 07:05:54,680 --> 07:05:57,760 have markers and everything so you can 10256 07:05:57,760 --> 07:05:59,200 play around with the data label if you 10257 07:05:59,200 --> 07:06:02,000 want and then we have the series label 10258 07:06:02,000 --> 07:06:03,840 when we go down we have the CDs discount 10259 07:06:03,840 --> 07:06:07,680 and margin the labels are shown here 10260 07:06:07,680 --> 07:06:09,958 basically if I enable it now you can 10261 07:06:09,958 --> 07:06:12,200 decide for each series what you want the 10262 07:06:12,200 --> 07:06:14,718 position on right or left you want and 10263 07:06:14,718 --> 07:06:16,878 the value and the series color whatever 10264 07:06:16,878 --> 07:06:18,878 you want and word r if the series name 10265 07:06:18,878 --> 07:06:20,920 is pretty long you can have that you 10266 07:06:20,920 --> 07:06:22,558 want to have background so I enabled the 10267 07:06:22,558 --> 07:06:24,680 background but both the series color and 10268 07:06:24,680 --> 07:06:26,280 the background color uh need to be a 10269 07:06:26,280 --> 07:06:27,718 little bit different so let me change 10270 07:06:27,718 --> 07:06:32,760 the background color to different 10271 07:06:32,760 --> 07:06:36,080 you can see transparency I can 10272 07:06:36,080 --> 07:06:38,360 increase total labels again because it's 10273 07:06:38,360 --> 07:06:39,920 a stagged visual so you can have the 10274 07:06:39,920 --> 07:06:42,718 total label but it will look too busy if 10275 07:06:42,718 --> 07:06:45,240 I have that and then we have the error 10276 07:06:45,240 --> 07:06:47,558 bar options and where you can use 10277 07:06:47,558 --> 07:06:50,240 various stuff in this manner um I have 10278 07:06:50,240 --> 07:06:52,320 this tagged and line 10279 07:06:52,320 --> 07:06:55,600 visual as you can see that with the new 10280 07:06:55,600 --> 07:06:57,638 major driven labels and with the help 10281 07:06:57,638 --> 07:07:00,520 from the data label enhancement and the 10282 07:07:00,520 --> 07:07:03,040 enhancement which has been done for the 10283 07:07:03,040 --> 07:07:07,200 bar WID for the transparency and the 10284 07:07:07,200 --> 07:07:11,398 Sorting of the bar we got a new era in 10285 07:07:11,398 --> 07:07:13,520 the visualization of the tagged Visual 10286 07:07:13,520 --> 07:07:15,478 and the clustered column bar visual to 10287 07:07:15,478 --> 07:07:17,840 take them to the next level and as you 10288 07:07:17,840 --> 07:07:19,558 can see those of you have watched the 10289 07:07:19,558 --> 07:07:21,878 series in the last year you will see a 10290 07:07:21,878 --> 07:07:23,840 lot of difference in terms of what we 10291 07:07:23,840 --> 07:07:25,798 are creating here versus what we have 10292 07:07:25,798 --> 07:07:29,000 created last year visual level format 10293 07:07:29,000 --> 07:07:32,520 sting has been released in August 2024 10294 07:07:32,520 --> 07:07:35,200 and now we are going to discuss those 10295 07:07:35,200 --> 07:07:37,080 this part of the video I'm using a 10296 07:07:37,080 --> 07:07:39,040 little different file not the same file 10297 07:07:39,040 --> 07:07:40,920 which we are using for learn power ba 10298 07:07:40,920 --> 07:07:43,840 series I'm using the abstract thesis 10299 07:07:43,840 --> 07:07:46,600 data file but I'm using the same model 10300 07:07:46,600 --> 07:07:48,958 so you will be able to relate with what 10301 07:07:48,958 --> 07:07:51,840 I doing using the same fields which are 10302 07:07:51,840 --> 07:07:54,680 available in your learn powerbi files 10303 07:07:54,680 --> 07:07:56,040 which I have shared with you on the 10304 07:07:56,040 --> 07:07:58,520 GitHub so let me quickly jump onto the 10305 07:07:58,520 --> 07:08:02,200 August 2024 notes and in August 2024 10306 07:08:02,200 --> 07:08:03,920 notes if you scroll a little bit down 10307 07:08:03,920 --> 07:08:06,600 you get this new feature which is visual 10308 07:08:06,600 --> 07:08:09,200 level format things now you might be 10309 07:08:09,200 --> 07:08:10,558 knowing that visual level and 10310 07:08:10,558 --> 07:08:13,120 calculations have came few days back and 10311 07:08:13,120 --> 07:08:15,200 you would like to format those strings 10312 07:08:15,200 --> 07:08:16,878 and there was this challenge how do we 10313 07:08:16,878 --> 07:08:19,398 format how this option has came and 10314 07:08:19,398 --> 07:08:21,558 there are various things which has been 10315 07:08:21,558 --> 07:08:23,638 supported now so it is not only 10316 07:08:23,638 --> 07:08:25,600 supporting at the visual level but it 10317 07:08:25,600 --> 07:08:27,638 has been done in a manner that you can 10318 07:08:27,638 --> 07:08:29,680 do it at the model level visual level 10319 07:08:29,680 --> 07:08:31,638 and and the element level so let's 10320 07:08:31,638 --> 07:08:32,798 understand this feature first of all let 10321 07:08:32,798 --> 07:08:35,680 me click on that SC down for visual 10322 07:08:35,680 --> 07:08:37,558 level format strings let's understand 10323 07:08:37,558 --> 07:08:39,718 this feature visual level format thingss 10324 07:08:39,718 --> 07:08:41,440 are here providing you with the more 10325 07:08:41,440 --> 07:08:43,200 options configure matting and configure 10326 07:08:43,200 --> 07:08:45,398 the formatting originally bu for visual 10327 07:08:45,398 --> 07:08:46,878 calculation this has been actually bu 10328 07:08:46,878 --> 07:08:48,558 for the visual calculation the core 10329 07:08:48,558 --> 07:08:50,440 ability that the visual level format 10330 07:08:50,440 --> 07:08:52,798 strings provide is the ability to format 10331 07:08:52,798 --> 07:08:54,478 visual calculation basically it allows 10332 07:08:54,478 --> 07:08:56,240 you to format the visual calculation 10333 07:08:56,240 --> 07:08:57,920 which is basically when you create these 10334 07:08:57,920 --> 07:08:59,558 new visual calculation or visual level 10335 07:08:59,558 --> 07:09:02,040 calculation or me visual calculation are 10336 07:09:02,040 --> 07:09:04,440 not in the water you cannot format them 10337 07:09:04,440 --> 07:09:07,440 unless you are using them in data labels 10338 07:09:07,440 --> 07:09:09,638 or a specific part of the card and new 10339 07:09:09,638 --> 07:09:11,798 slicer manual basically what happens is 10340 07:09:11,798 --> 07:09:13,840 because we were formatting our measures 10341 07:09:13,840 --> 07:09:16,398 at the model level and then if you want 10342 07:09:16,398 --> 07:09:17,638 to format them further we were 10343 07:09:17,638 --> 07:09:19,280 formatting them in the data labels and 10344 07:09:19,280 --> 07:09:21,120 few places in the card which were nicer 10345 07:09:21,120 --> 07:09:22,520 other than that we were not able to 10346 07:09:22,520 --> 07:09:24,320 format and if you want to format your 10347 07:09:24,320 --> 07:09:26,160 visual calculation that's the option we 10348 07:09:26,160 --> 07:09:28,958 were using now we would like to go 10349 07:09:28,958 --> 07:09:30,958 beyond that and we would like to them at 10350 07:09:30,958 --> 07:09:32,840 the visual level with visual level 10351 07:09:32,840 --> 07:09:34,798 formatting string you can do that so 10352 07:09:34,798 --> 07:09:36,320 means you will be able to format the 10353 07:09:36,320 --> 07:09:38,520 visual calculations for visual level 10354 07:09:38,520 --> 07:09:40,840 format string however are useful even 10355 07:09:40,840 --> 07:09:42,120 without visual without visual 10356 07:09:42,120 --> 07:09:44,200 calculation they are also useful what 10357 07:09:44,200 --> 07:09:45,798 are the three levels now we can do it 10358 07:09:45,798 --> 07:09:48,040 model level we format this model level 10359 07:09:48,040 --> 07:09:50,200 you can set the format for columns and 10360 07:09:50,200 --> 07:09:52,440 measures in the model anywhere you can 10361 07:09:52,440 --> 07:09:53,878 use that column or measure the 10362 07:09:53,878 --> 07:09:55,680 formatting of the apply unless over 10363 07:09:55,680 --> 07:09:57,920 written by a visual calculation element 10364 07:09:57,920 --> 07:10:00,320 level form what is the visual level then 10365 07:10:00,320 --> 07:10:02,680 this is what is introducing here or 10366 07:10:02,680 --> 07:10:04,280 introduced today with with this release 10367 07:10:04,280 --> 07:10:06,080 notes you can set the format of the 10368 07:10:06,080 --> 07:10:08,520 string any column or a major or a visual 10369 07:10:08,520 --> 07:10:10,638 calculation that is on your visual even 10370 07:10:10,638 --> 07:10:12,840 they already had a format string in 10371 07:10:12,840 --> 07:10:14,958 cases the model level format string were 10372 07:10:14,958 --> 07:10:16,920 written visual level format string would 10373 07:10:16,920 --> 07:10:19,040 be used because this visual level will 10374 07:10:19,040 --> 07:10:20,840 have higher priority over the model 10375 07:10:20,840 --> 07:10:23,558 level now next come the element level 10376 07:10:23,558 --> 07:10:25,840 you can set the format for data labels 10377 07:10:25,840 --> 07:10:28,558 and specific elements of the new card 10378 07:10:28,558 --> 07:10:30,798 and new slicer visual this will be 10379 07:10:30,798 --> 07:10:33,920 pended including much more in the future 10380 07:10:33,920 --> 07:10:36,200 any format string you set here will 10381 07:10:36,200 --> 07:10:38,718 override the format string on the visual 10382 07:10:38,718 --> 07:10:41,000 add the model so now you will explain 10383 07:10:41,000 --> 07:10:43,320 you element level selected element on a 10384 07:10:43,320 --> 07:10:45,478 selected visual measures or column and 10385 07:10:45,478 --> 07:10:47,200 visual calculation both it applied 10386 07:10:47,200 --> 07:10:49,760 visual selected visual applies to measor 10387 07:10:49,760 --> 07:10:51,718 and columns and visual calculations 10388 07:10:51,718 --> 07:10:54,798 model it applies to all the pages and 10389 07:10:54,798 --> 07:10:57,680 the reports on the same model and which 10390 07:10:57,680 --> 07:10:59,558 one will impact it has been given here 10391 07:10:59,558 --> 07:11:01,600 so first is model level if you have the 10392 07:11:01,600 --> 07:11:03,440 visual level the visual level will apply 10393 07:11:03,440 --> 07:11:05,120 if you have the element level then the 10394 07:11:05,120 --> 07:11:06,920 element level settings will apply it has 10395 07:11:06,920 --> 07:11:08,440 been explained from where you can get 10396 07:11:08,440 --> 07:11:10,558 the model level so model L you can set 10397 07:11:10,558 --> 07:11:13,040 from the major tool or the column tool 10398 07:11:13,040 --> 07:11:15,320 or you have these properties under the 10399 07:11:15,320 --> 07:11:17,120 modeling from where you can apply the 10400 07:11:17,120 --> 07:11:19,360 model level setting for visual level you 10401 07:11:19,360 --> 07:11:21,600 can find it under the data format once 10402 07:11:21,600 --> 07:11:23,638 you open and select the visual when you 10403 07:11:23,638 --> 07:11:25,798 further go down you let's say you want 10404 07:11:25,798 --> 07:11:28,040 to set up the data label inside the data 10405 07:11:28,040 --> 07:11:30,398 label further you can go ahead and 10406 07:11:30,398 --> 07:11:34,040 change the formatting of your measure 10407 07:11:34,040 --> 07:11:37,280 using the format strings so this example 10408 07:11:37,280 --> 07:11:39,240 is been given now the total is shown as 10409 07:11:39,240 --> 07:11:41,520 scientific notation but only in the data 10410 07:11:41,520 --> 07:11:44,040 label not in other places such as tool 10411 07:11:44,040 --> 07:11:46,200 tip as shown below notice how the 10412 07:11:46,200 --> 07:11:48,320 element level formatting is used in the 10413 07:11:48,320 --> 07:11:51,398 data label but visual level model format 10414 07:11:51,398 --> 07:11:53,760 thing is still used for the other 10415 07:11:53,760 --> 07:11:56,478 elements in the same visual now we have 10416 07:11:56,478 --> 07:11:58,240 understood this feature detailed time 10417 07:11:58,240 --> 07:12:00,558 has come that we go to powerb desktop 10418 07:12:00,558 --> 07:12:03,360 and explore this feature out so let's 10419 07:12:03,360 --> 07:12:05,360 move to the power ba desktop and here 10420 07:12:05,360 --> 07:12:07,760 I'm going to add a new page and in this 10421 07:12:07,760 --> 07:12:11,200 new page I'm going to add a table visual 10422 07:12:11,200 --> 07:12:13,600 in this table visual let me bring in BR 10423 07:12:13,600 --> 07:12:16,240 let me also bring in and let me 10424 07:12:16,240 --> 07:12:19,240 duplicate it a bar visual because not 10425 07:12:19,240 --> 07:12:21,200 every property applies everywhere in the 10426 07:12:21,200 --> 07:12:22,878 bar visual let me go ahead and enable 10427 07:12:22,878 --> 07:12:24,478 the data labels also I'll open up the 10428 07:12:24,478 --> 07:12:26,958 property Pane and I will enable now the 10429 07:12:26,958 --> 07:12:29,878 data labels as you can see data is now 10430 07:12:29,878 --> 07:12:31,920 displayed in millions and this happens 10431 07:12:31,920 --> 07:12:34,120 because of the data label properties so 10432 07:12:34,120 --> 07:12:35,398 go to data 10433 07:12:35,398 --> 07:12:39,558 labels go down and then open values and 10434 07:12:39,558 --> 07:12:41,638 inside the values you will see the 10435 07:12:41,638 --> 07:12:43,878 display format is Auto and you can 10436 07:12:43,878 --> 07:12:46,200 change it as per your requirement so now 10437 07:12:46,200 --> 07:12:48,160 let's go ahead and custom on look at the 10438 07:12:48,160 --> 07:12:50,040 formatting of the major this click on 10439 07:12:50,040 --> 07:12:51,958 the major under the major tool you will 10440 07:12:51,958 --> 07:12:54,040 be able to see the formatting of the 10441 07:12:54,040 --> 07:12:57,040 major right now the formatting is joural 10442 07:12:57,040 --> 07:12:58,958 and all other values are set to the 10443 07:12:58,958 --> 07:13:01,320 default values so let's start by by 10444 07:13:01,320 --> 07:13:03,958 changing the format so I can click on 10445 07:13:03,958 --> 07:13:06,760 the format and start writing down my own 10446 07:13:06,760 --> 07:13:09,200 format so I would like to write down a 10447 07:13:09,200 --> 07:13:12,638 format hash comma hash HH hash and I'll 10448 07:13:12,638 --> 07:13:15,240 not give any decimal place or zeros 10449 07:13:15,240 --> 07:13:17,920 after that now if you see the other 10450 07:13:17,920 --> 07:13:19,478 things were disabled and if you look at 10451 07:13:19,478 --> 07:13:22,200 my net menue here now net has no decimal 10452 07:13:22,200 --> 07:13:24,360 place it has been formatted using the 10453 07:13:24,360 --> 07:13:26,680 million format let's look at the bar 10454 07:13:26,680 --> 07:13:28,680 Visual and in the bar visual on the tool 10455 07:13:28,680 --> 07:13:30,360 tip you will see it is following the 10456 07:13:30,360 --> 07:13:31,718 model format 10457 07:13:31,718 --> 07:13:34,360 we have to now discuss the label format 10458 07:13:34,360 --> 07:13:36,360 but before that let's experiment with 10459 07:13:36,360 --> 07:13:38,760 the properties of table visual I can go 10460 07:13:38,760 --> 07:13:40,200 to properties and under which I can 10461 07:13:40,200 --> 07:13:42,160 found data format I don't want to set up 10462 07:13:42,160 --> 07:13:43,760 for brand but I would like to set up it 10463 07:13:43,760 --> 07:13:45,718 for net which is auto as of now 10464 07:13:45,718 --> 07:13:48,000 following the model level formatting I 10465 07:13:48,000 --> 07:13:50,320 can click into the format and replace it 10466 07:13:50,320 --> 07:13:54,280 with a million format of hash comma hhhh 10467 07:13:54,280 --> 07:13:57,558 do0 so I will now get one decimal place 10468 07:13:57,558 --> 07:13:59,920 press enter to commit and now go back to 10469 07:13:59,920 --> 07:14:01,760 the table visual where we have done this 10470 07:14:01,760 --> 07:14:04,478 you can see one decimal place is coming 10471 07:14:04,478 --> 07:14:06,280 which is the visual level format 10472 07:14:06,280 --> 07:14:08,600 different from the model level now to 10473 07:14:08,600 --> 07:14:10,478 explore the additional properties what 10474 07:14:10,478 --> 07:14:12,000 we are going to do is we are going to go 10475 07:14:12,000 --> 07:14:14,160 to the bar Visual and try to set up some 10476 07:14:14,160 --> 07:14:15,638 visual level and elements level 10477 07:14:15,638 --> 07:14:18,040 formatting I go to the bar visual here 10478 07:14:18,040 --> 07:14:19,320 and in the bar visual I go to the 10479 07:14:19,320 --> 07:14:21,040 property and I have data format and I 10480 07:14:21,040 --> 07:14:22,600 want to give a data format now the 10481 07:14:22,600 --> 07:14:23,878 format which I given for the table 10482 07:14:23,878 --> 07:14:25,360 visual definitely not going to apply 10483 07:14:25,360 --> 07:14:27,160 here we will give the same format here 10484 07:14:27,160 --> 07:14:30,000 hash comma Hash Hash has do0 it means 10485 07:14:30,000 --> 07:14:32,000 one decimal cas you will observe no 10486 07:14:32,000 --> 07:14:33,638 difference in the data label but when 10487 07:14:33,638 --> 07:14:35,440 you go to the tool tip you see it is one 10488 07:14:35,440 --> 07:14:37,360 decimal place in the million format and 10489 07:14:37,360 --> 07:14:39,320 that is what we wanted so now my visual 10490 07:14:39,320 --> 07:14:41,320 is following the visual level format but 10491 07:14:41,320 --> 07:14:43,040 I'm missing a visual with a global 10492 07:14:43,040 --> 07:14:45,160 format so what I'm going to do here is 10493 07:14:45,160 --> 07:14:47,200 I'm going to add one additional visual 10494 07:14:47,200 --> 07:14:50,280 here so let me add a bar visual here and 10495 07:14:50,280 --> 07:14:53,280 inside this bar visual I will go ahead 10496 07:14:53,280 --> 07:14:56,878 and add net and brand from the item 10497 07:14:56,878 --> 07:14:59,360 table and now if you look at this visual 10498 07:14:59,360 --> 07:15:01,680 you have the global format now we would 10499 07:15:01,680 --> 07:15:03,638 like to go ahead and experiment with the 10500 07:15:03,638 --> 07:15:05,840 element level formatting so let me click 10501 07:15:05,840 --> 07:15:07,798 on the first bar visual which I've 10502 07:15:07,798 --> 07:15:11,320 created and go to the data labels in the 10503 07:15:11,320 --> 07:15:13,840 data label let's scroll down to the 10504 07:15:13,840 --> 07:15:16,600 values and inside the values we have 10505 07:15:16,600 --> 07:15:18,798 display unit you can select the display 10506 07:15:18,798 --> 07:15:21,360 unit as null and you will observe that 10507 07:15:21,360 --> 07:15:23,760 now the labels are also following visual 10508 07:15:23,760 --> 07:15:26,360 level format in display unit you can 10509 07:15:26,360 --> 07:15:29,360 also choose any other formats like 10510 07:15:29,360 --> 07:15:31,280 thousands 10511 07:15:31,280 --> 07:15:32,520 million 10512 07:15:32,520 --> 07:15:35,840 billion Etc you can prefer to choose 10513 07:15:35,840 --> 07:15:37,878 Auto format Auto is the one of the most 10514 07:15:37,878 --> 07:15:40,120 common format we use and once you are 10515 07:15:40,120 --> 07:15:42,160 using Auto format you can decide the 10516 07:15:42,160 --> 07:15:44,200 number of decimal places let's say you 10517 07:15:44,200 --> 07:15:46,840 can change it to one or two now I would 10518 07:15:46,840 --> 07:15:48,558 like to give a custom format the moment 10519 07:15:48,558 --> 07:15:50,320 I choose it it shows me the visual level 10520 07:15:50,320 --> 07:15:52,920 format let's start writing down now hash 10521 07:15:52,920 --> 07:15:56,600 comma Hash Hash Hash the million format 10522 07:15:56,600 --> 07:15:59,920 d0 and0 means you have to show two 10523 07:15:59,920 --> 07:16:03,000 decimal places in place of 0 0 if I 10524 07:16:03,000 --> 07:16:05,760 would have used Hash Hash it means the 10525 07:16:05,760 --> 07:16:07,840 digits are optional it means if there is 10526 07:16:07,840 --> 07:16:10,120 a one digit it will show one digit not 10527 07:16:10,120 --> 07:16:12,200 two digit after the decimal so let's 10528 07:16:12,200 --> 07:16:14,638 look at this line where we have 7.0 if I 10529 07:16:14,638 --> 07:16:17,000 would have used Hash Hash after the 10530 07:16:17,000 --> 07:16:19,120 decimal it would have only shown 7 not 10531 07:16:19,120 --> 07:16:22,718 70 dou 0 makes it compulsory to have two 10532 07:16:22,718 --> 07:16:25,718 decimal places we are now using three 10533 07:16:25,718 --> 07:16:27,798 different formatting for this measure 10534 07:16:27,798 --> 07:16:30,160 net so if I click on this measure net 10535 07:16:30,160 --> 07:16:32,840 you will see at the model level we don't 10536 07:16:32,840 --> 07:16:35,440 have any decimal places and if you go to 10537 07:16:35,440 --> 07:16:37,398 the tool tip of the second bar visual 10538 07:16:37,398 --> 07:16:39,558 you don't see any tool tip on the table 10539 07:16:39,558 --> 07:16:41,600 visual you see the visual level format 10540 07:16:41,600 --> 07:16:43,958 with one decimal place on the first bar 10541 07:16:43,958 --> 07:16:46,558 visual you see on the data label the two 10542 07:16:46,558 --> 07:16:49,200 decimal places means the element level 10543 07:16:49,200 --> 07:16:51,520 formatting and in the tool tip you see 10544 07:16:51,520 --> 07:16:53,638 the visual level formatting now we have 10545 07:16:53,638 --> 07:16:55,840 explored the format string feature at 10546 07:16:55,840 --> 07:16:58,398 Major level visual level and the element 10547 07:16:58,398 --> 07:17:01,120 level but the visual level format 10548 07:17:01,120 --> 07:17:02,680 feature has came for the visual 10549 07:17:02,680 --> 07:17:04,280 calculation so let's go ahead and 10550 07:17:04,280 --> 07:17:06,680 explore one visual calculation too let 10551 07:17:06,680 --> 07:17:08,520 me add a visual calculation on the table 10552 07:17:08,520 --> 07:17:10,398 visual the calculation I want to add 10553 07:17:10,398 --> 07:17:13,520 here is next next of the net I want it 10554 07:17:13,520 --> 07:17:15,600 means it's going to give me the next row 10555 07:17:15,600 --> 07:17:18,520 let me press enter and it is giving me a 10556 07:17:18,520 --> 07:17:20,360 calculation which is giving me Nest but 10557 07:17:20,360 --> 07:17:22,920 the formatting is not following any of 10558 07:17:22,920 --> 07:17:24,398 the format which we have done at the 10559 07:17:24,398 --> 07:17:26,878 model or the visual level we need to 10560 07:17:26,878 --> 07:17:28,478 change the format and to change the 10561 07:17:28,478 --> 07:17:31,080 format we'll go to the format pan format 10562 07:17:31,080 --> 07:17:32,840 pain properties and inside this we will 10563 07:17:32,840 --> 07:17:35,398 choose this calculation and now here we 10564 07:17:35,398 --> 07:17:37,958 can give a format what we want hash 10565 07:17:37,958 --> 07:17:40,240 comma Hash Hash has the million format 10566 07:17:40,240 --> 07:17:42,520 and as you can see the calculation is 10567 07:17:42,520 --> 07:17:44,798 showing without any decimal place but 10568 07:17:44,798 --> 07:17:47,440 net is following its own format which is 10569 07:17:47,440 --> 07:17:50,280 basically having one decimal place now 10570 07:17:50,280 --> 07:17:52,718 you have seen how to format a visual 10571 07:17:52,718 --> 07:17:56,200 calculation at the visual level we have 10572 07:17:56,200 --> 07:17:59,200 now learned how to format at element 10573 07:17:59,200 --> 07:18:02,200 level visual level and mod level so why 10574 07:18:02,200 --> 07:18:03,958 would you go ahead and try out visual 10575 07:18:03,958 --> 07:18:05,200 level format 10576 07:18:05,200 --> 07:18:08,240 strings let's understand what is Dax and 10577 07:18:08,240 --> 07:18:10,080 what I'm going to do is I'm going to use 10578 07:18:10,080 --> 07:18:12,398 the definitions which has been provided 10579 07:18:12,398 --> 07:18:15,558 on Microsoft Larn site so that we are 10580 07:18:15,558 --> 07:18:17,840 you know very near to what Microsoft has 10581 07:18:17,840 --> 07:18:21,280 given so Dex is data analysis expression 10582 07:18:21,280 --> 07:18:24,240 is a Formula expression language used in 10583 07:18:24,240 --> 07:18:27,160 analysis services powerbi and power 10584 07:18:27,160 --> 07:18:29,760 power in Excel Dex formula include 10585 07:18:29,760 --> 07:18:33,040 functions op ators and values to perform 10586 07:18:33,040 --> 07:18:35,760 Advanced calculation and queries on the 10587 07:18:35,760 --> 07:18:39,520 data in related tables and columns in 10588 07:18:39,520 --> 07:18:42,520 the tabular data model so in all these 10589 07:18:42,520 --> 07:18:45,360 analysis Services power VI power pivot 10590 07:18:45,360 --> 07:18:47,360 we use tabular data model so in the 10591 07:18:47,360 --> 07:18:49,240 table of data model to create the 10592 07:18:49,240 --> 07:18:52,440 formulas or the calculation we use Tex 10593 07:18:52,440 --> 07:18:54,760 and this is what we are going to use now 10594 07:18:54,760 --> 07:18:57,360 onwards a lot when we are going to learn 10595 07:18:57,360 --> 07:19:00,280 the formulas The Columns the calculated 10596 07:19:00,280 --> 07:19:05,200 column Majors tables RLS Etc so Dex is 10597 07:19:05,200 --> 07:19:08,398 used in Dex calculations Dex formulas 10598 07:19:08,398 --> 07:19:11,798 are used in Majors calculated column 10599 07:19:11,798 --> 07:19:14,440 calculated tables visual calculations 10600 07:19:14,440 --> 07:19:16,798 and Ru of security these are the places 10601 07:19:16,798 --> 07:19:19,398 where Dex calculations are used so first 10602 07:19:19,398 --> 07:19:21,840 of all what is Dex measure measures are 10603 07:19:21,840 --> 07:19:24,478 Dynamic calculation formulas where the 10604 07:19:24,478 --> 07:19:27,040 result change depending on the context 10605 07:19:27,040 --> 07:19:28,878 means if the your filter context is 10606 07:19:28,878 --> 07:19:31,160 changing then the results will change 10607 07:19:31,160 --> 07:19:34,240 majors are used in reporting that 10608 07:19:34,240 --> 07:19:38,040 support combining filtering model data 10609 07:19:38,040 --> 07:19:40,360 by using multiple attributes such as 10610 07:19:40,360 --> 07:19:43,040 power V report or Excel pivot table or 10611 07:19:43,040 --> 07:19:45,760 pivot chart measur are created by using 10612 07:19:45,760 --> 07:19:48,638 Dex formula bar in the model designers 10613 07:19:48,638 --> 07:19:50,958 and we'll go to the power VI desktop 10614 07:19:50,958 --> 07:19:52,478 this is where we are going to learn the 10615 07:19:52,478 --> 07:19:55,600 Dex measures we have the option to 10616 07:19:55,600 --> 07:19:58,680 create the measures we have it in under 10617 07:19:58,680 --> 07:20:00,840 the Home tab we will also get it in to 10618 07:20:00,840 --> 07:20:03,760 the table tools that's calculated column 10619 07:20:03,760 --> 07:20:06,360 the calculated column is a Col column 10620 07:20:06,360 --> 07:20:09,160 that you add to an existing table in the 10621 07:20:09,160 --> 07:20:12,120 model designer and then create a Tex 10622 07:20:12,120 --> 07:20:15,200 formula that defines that column's value 10623 07:20:15,200 --> 07:20:17,558 when a calculated column contains a 10624 07:20:17,558 --> 07:20:20,080 valid Dex formula the values are 10625 07:20:20,080 --> 07:20:23,040 calculated for each rows as soon as the 10626 07:20:23,040 --> 07:20:25,200 formula is entered the values are then 10627 07:20:25,200 --> 07:20:28,240 stored in the inmemory data model so 10628 07:20:28,240 --> 07:20:32,000 basically the Dex calculated columns 10629 07:20:32,000 --> 07:20:34,638 will be calculated and will be stored in 10630 07:20:34,638 --> 07:20:36,600 the model while the measures are 10631 07:20:36,600 --> 07:20:39,240 basically runtime which is going to be 10632 07:20:39,240 --> 07:20:42,600 executed when we actually use them onto 10633 07:20:42,600 --> 07:20:45,680 the visualization T calculated tables 10634 07:20:45,680 --> 07:20:49,080 calculated table is computed objects 10635 07:20:49,080 --> 07:20:52,040 based on the formula expression DED from 10636 07:20:52,040 --> 07:20:55,240 all or part of the other tables in the 10637 07:20:55,240 --> 07:20:57,558 same model instead of querying and 10638 07:20:57,558 --> 07:21:00,718 loading the values into your new table 10639 07:21:00,718 --> 07:21:03,680 column from a data source a de formula 10640 07:21:03,680 --> 07:21:06,080 defines the tables value so basically 10641 07:21:06,080 --> 07:21:07,878 you are not getting it from The Source 10642 07:21:07,878 --> 07:21:10,760 you are actually calculating it based on 10643 07:21:10,760 --> 07:21:14,360 the other data which is coming from 10644 07:21:14,360 --> 07:21:16,558 source so basically it can be based on 10645 07:21:16,558 --> 07:21:19,398 other table or time we may create tables 10646 07:21:19,398 --> 07:21:21,600 like calendar table which is actually 10647 07:21:21,600 --> 07:21:23,840 driven by completely by the formula only 10648 07:21:23,840 --> 07:21:26,120 calculated table support relationship 10649 07:21:26,120 --> 07:21:28,558 with other tables means yes do you are 10650 07:21:28,558 --> 07:21:30,798 calculating a table but still it can 10651 07:21:30,798 --> 07:21:32,478 have relationship with our tables 10652 07:21:32,478 --> 07:21:34,920 calculated tables are recalculated if 10653 07:21:34,920 --> 07:21:38,718 any of the table it pulls data from our 10654 07:21:38,718 --> 07:21:41,080 refreshed or updated so if it is taking 10655 07:21:41,080 --> 07:21:43,760 data from any table and that table's 10656 07:21:43,760 --> 07:21:45,798 data get refreshed it will also get 10657 07:21:45,798 --> 07:21:48,718 refreshed and updated visual calculation 10658 07:21:48,718 --> 07:21:50,920 the Dex visual calculation has been very 10659 07:21:50,920 --> 07:21:53,200 decently added to powerb a visual 10660 07:21:53,200 --> 07:21:55,680 calculation is a DEX calculation that 10661 07:21:55,680 --> 07:21:58,240 defined and executed directly on a 10662 07:21:58,240 --> 07:22:00,280 visual so it is only at the visual level 10663 07:22:00,280 --> 07:22:02,520 not beyond that so the scope of visual 10664 07:22:02,520 --> 07:22:04,718 calculation is visual visual 10665 07:22:04,718 --> 07:22:07,520 calculations make it easier to create 10666 07:22:07,520 --> 07:22:10,160 calculations that are previously hard to 10667 07:22:10,160 --> 07:22:12,878 create getting a simpler decks easier to 10668 07:22:12,878 --> 07:22:15,120 maintain and better performance so the 10669 07:22:15,120 --> 07:22:17,600 reason for giving this is basically you 10670 07:22:17,600 --> 07:22:19,958 want to have a simpler Dex like looking 10671 07:22:19,958 --> 07:22:23,040 into previous no R next Row first row 10672 07:22:23,040 --> 07:22:25,280 last row or even creating the running 10673 07:22:25,280 --> 07:22:27,558 sum all these are going to be really 10674 07:22:27,558 --> 07:22:30,840 easy if you use Dex visual calculations 10675 07:22:30,840 --> 07:22:33,600 Dex queries Dex queries can be created 10676 07:22:33,600 --> 07:22:36,398 and run in Dex query view of power ba 10677 07:22:36,398 --> 07:22:38,840 desktop and open source tools like Dex 10678 07:22:38,840 --> 07:22:41,680 Studio unlike the calculation formulas 10679 07:22:41,680 --> 07:22:44,360 which can be only created in a tabular 10680 07:22:44,360 --> 07:22:47,200 model Dex query can also be run against 10681 07:22:47,200 --> 07:22:49,558 analysis service multi-dimensional model 10682 07:22:49,558 --> 07:22:51,638 Dex queries are often easier to write 10683 07:22:51,638 --> 07:22:53,080 and more efficient than the 10684 07:22:53,080 --> 07:22:55,318 multi-dimensional data expression MDF 10685 07:22:55,318 --> 07:22:57,240 queries so those of you who have used 10686 07:22:57,240 --> 07:22:59,558 the multi-dimensional models you might 10687 07:22:59,558 --> 07:23:01,760 know that the m DX query is used and it 10688 07:23:01,760 --> 07:23:04,280 is real now Dex is easier again the Dex 10689 07:23:04,280 --> 07:23:07,280 query is basically we are trying to do 10690 07:23:07,280 --> 07:23:09,120 what we are doing in the sequel to write 10691 07:23:09,120 --> 07:23:10,558 down the select query here we are 10692 07:23:10,558 --> 07:23:12,440 writing down Dex queries now the Dex 10693 07:23:12,440 --> 07:23:14,440 query when you wanted to write down in 10694 07:23:14,440 --> 07:23:17,478 Dex query view or Dex Studio you need to 10695 07:23:17,478 --> 07:23:19,478 make sure that it returns a table and 10696 07:23:19,478 --> 07:23:21,638 you can also use evaluate function to 10697 07:23:21,638 --> 07:23:24,000 evaluate these queries just like select 10698 07:23:24,000 --> 07:23:26,798 does the job for you in the SQL World 10699 07:23:26,798 --> 07:23:28,718 evaluate is going to do the job for you 10700 07:23:28,718 --> 07:23:30,718 so to run the Dex queries you need to 10701 07:23:30,718 --> 07:23:32,718 use evaluate one should make sure that 10702 07:23:32,718 --> 07:23:34,440 the query should return return a table 10703 07:23:34,440 --> 07:23:36,478 so if it returns a table then it's going 10704 07:23:36,478 --> 07:23:38,798 to be displayed in the Dex query view or 10705 07:23:38,798 --> 07:23:41,280 the de view you can also use order by 10706 07:23:41,280 --> 07:23:43,398 index queries which we do not use in the 10707 07:23:43,398 --> 07:23:45,478 visual explicitely because what happens 10708 07:23:45,478 --> 07:23:47,920 in the visual we have a option to sort 10709 07:23:47,920 --> 07:23:50,478 on a particular column and we use that 10710 07:23:50,478 --> 07:23:53,360 option to sort we we do need to mention 10711 07:23:53,360 --> 07:23:55,600 that okay order by this column that has 10712 07:23:55,600 --> 07:23:58,200 been taken care by the visual features 10713 07:23:58,200 --> 07:24:00,958 data type what all data types de support 10714 07:24:00,958 --> 07:24:03,360 you can import data into a model from 10715 07:24:03,360 --> 07:24:06,080 many different data sources that might 10716 07:24:06,080 --> 07:24:08,040 support different data types when you 10717 07:24:08,040 --> 07:24:10,878 import data into a model the data is 10718 07:24:10,878 --> 07:24:13,958 converted to one of the tabular model 10719 07:24:13,958 --> 07:24:16,558 data types and these are the data types 10720 07:24:16,558 --> 07:24:18,360 it will be converted whole number 10721 07:24:18,360 --> 07:24:21,160 basically the number without a decimal 10722 07:24:21,160 --> 07:24:23,280 place so this is very similar to 10723 07:24:23,280 --> 07:24:26,478 integers decimal numbers Boolean text 10724 07:24:26,478 --> 07:24:29,600 date date and time valid dates are all 10725 07:24:29,600 --> 07:24:32,318 dates after March 1 1900 so if you have 10726 07:24:32,318 --> 07:24:34,318 a date before that then it might not 10727 07:24:34,318 --> 07:24:36,878 work currency and a blank these are the 10728 07:24:36,878 --> 07:24:39,318 various data types which you which are 10729 07:24:39,318 --> 07:24:41,478 supported on the Dex and you when you 10730 07:24:41,478 --> 07:24:43,398 are going to use that you will realize 10731 07:24:43,398 --> 07:24:45,478 that these are sufficient for our 10732 07:24:45,478 --> 07:24:49,280 calculations and you know working on the 10733 07:24:49,280 --> 07:24:52,318 so Dex variable you can create variable 10734 07:24:52,318 --> 07:24:54,600 within an expression using where so you 10735 07:24:54,600 --> 07:24:56,840 can create a variable variable is 10736 07:24:56,840 --> 07:24:58,638 technically not a function it's not a 10737 07:24:58,638 --> 07:25:01,040 function it is a keyword to store the 10738 07:25:01,040 --> 07:25:03,558 results of an expression as named 10739 07:25:03,558 --> 07:25:05,958 variable so basically you are going to 10740 07:25:05,958 --> 07:25:08,798 have an expression and that expression 10741 07:25:08,798 --> 07:25:11,120 will be saved as a variable it will be 10742 07:25:11,120 --> 07:25:13,240 given a name and that name can be used 10743 07:25:13,240 --> 07:25:15,840 further that variable can be passed as 10744 07:25:15,840 --> 07:25:18,558 an argument to another as an argument to 10745 07:25:18,558 --> 07:25:21,080 other major expression for example major 10746 07:25:21,080 --> 07:25:23,440 equal to where Max of Max State and then 10747 07:25:23,440 --> 07:25:25,280 you'll use the written statement and 10748 07:25:25,280 --> 07:25:27,280 then you're going to use it again like 10749 07:25:27,280 --> 07:25:29,398 in this case we are using calculate sum 10750 07:25:29,398 --> 07:25:32,000 of say gross am out filter all date date 10751 07:25:32,000 --> 07:25:34,040 of date equal to Max so I'm using the 10752 07:25:34,040 --> 07:25:36,080 variable and it is really important 10753 07:25:36,080 --> 07:25:38,080 whenever you are using a variable 10754 07:25:38,080 --> 07:25:39,798 whether you are using in a measure or 10755 07:25:39,798 --> 07:25:41,638 whether you are using it in a column you 10756 07:25:41,638 --> 07:25:43,440 need to use the written statement 10757 07:25:43,440 --> 07:25:45,680 written statement is only needed when 10758 07:25:45,680 --> 07:25:47,478 you are using variable if you are not 10759 07:25:47,478 --> 07:25:49,000 having a variable you could have used 10760 07:25:49,000 --> 07:25:50,920 simply let's say major equal to sum of 10761 07:25:50,920 --> 07:25:52,878 gross amount that will also work when 10762 07:25:52,878 --> 07:25:54,760 you're using Dex variable so you need to 10763 07:25:54,760 --> 07:25:56,120 make sure when you're are using Dex 10764 07:25:56,120 --> 07:25:57,718 variables you should use a written 10765 07:25:57,718 --> 07:25:59,798 statement to complete your measure or a 10766 07:25:59,798 --> 07:26:02,080 calculator column so these are the 10767 07:26:02,080 --> 07:26:05,280 various definitions I wanted you to know 10768 07:26:05,280 --> 07:26:07,440 before we move into the depth of the 10769 07:26:07,440 --> 07:26:09,638 deex now we will now go ahead and 10770 07:26:09,638 --> 07:26:11,478 discuss context there are various kind 10771 07:26:11,478 --> 07:26:14,160 of context in Dex and it is really 10772 07:26:14,160 --> 07:26:16,318 important to understand that now some 10773 07:26:16,318 --> 07:26:19,120 time when we are using these context we 10774 07:26:19,120 --> 07:26:21,638 may use only the word context or a 10775 07:26:21,638 --> 07:26:24,280 visual context or a row context we'll 10776 07:26:24,280 --> 07:26:27,200 also try to understand that so let's 10777 07:26:27,200 --> 07:26:28,718 understand the different kind of 10778 07:26:28,718 --> 07:26:31,520 contexts which are available in power ba 10779 07:26:31,520 --> 07:26:34,680 or in the tax so what is context context 10780 07:26:34,680 --> 07:26:37,200 is an important concept to understand 10781 07:26:37,200 --> 07:26:39,760 when creating the Dex formula context 10782 07:26:39,760 --> 07:26:42,680 enables you to perform Dynamic analysis 10783 07:26:42,680 --> 07:26:45,360 as the result of a formula change to 10784 07:26:45,360 --> 07:26:48,040 reflect the current row or the cell 10785 07:26:48,040 --> 07:26:51,000 selection and also any related data 10786 07:26:51,000 --> 07:26:53,440 understanding context and using context 10787 07:26:53,440 --> 07:26:55,840 efficiently are critical for building 10788 07:26:55,840 --> 07:26:58,520 High performing Dynamic analysis and for 10789 07:26:58,520 --> 07:27:00,318 troubleshooting the problems in the 10790 07:27:00,318 --> 07:27:02,718 formula so basically context is applying 10791 07:27:02,718 --> 07:27:04,680 everywhere and we need to understand 10792 07:27:04,680 --> 07:27:06,240 what are the different kind of context 10793 07:27:06,240 --> 07:27:08,160 and which context is applying back 10794 07:27:08,160 --> 07:27:10,600 formulas in the table or model can be 10795 07:27:10,600 --> 07:27:13,120 evaluated in different context depending 10796 07:27:13,120 --> 07:27:15,760 on other design elements what are those 10797 07:27:15,760 --> 07:27:17,840 Design Elements filter applied in a 10798 07:27:17,840 --> 07:27:20,240 pivot table or a report filter defined 10799 07:27:20,240 --> 07:27:22,200 within a formula relationship is 10800 07:27:22,200 --> 07:27:25,318 specified by special functions using 10801 07:27:25,318 --> 07:27:26,920 formula there are different type of 10802 07:27:26,920 --> 07:27:29,600 contexts B context query context and 10803 07:27:29,600 --> 07:27:32,558 filter cont context now let's understand 10804 07:27:32,558 --> 07:27:35,360 row context row context can be thought 10805 07:27:35,360 --> 07:27:38,398 as row context can be thought of as the 10806 07:27:38,398 --> 07:27:41,000 current row if you create a formula in 10807 07:27:41,000 --> 07:27:43,680 the calculated column the row context 10808 07:27:43,680 --> 07:27:46,360 for the formula is include the value 10809 07:27:46,360 --> 07:27:49,000 from all the columns in the current row 10810 07:27:49,000 --> 07:27:51,638 if the table is related to another table 10811 07:27:51,638 --> 07:27:54,680 the content is also included all the 10812 07:27:54,680 --> 07:27:57,240 values from other tables that are 10813 07:27:57,240 --> 07:27:59,760 related to the current row is basically 10814 07:27:59,760 --> 07:28:02,440 every row it will get executed and every 10815 07:28:02,440 --> 07:28:05,478 row has a context that is where the row 10816 07:28:05,478 --> 07:28:07,558 context comes in place for example 10817 07:28:07,558 --> 07:28:09,718 support you create a calculated column 10818 07:28:09,718 --> 07:28:12,600 quantity 1 plus quantity 2 let's add the 10819 07:28:12,600 --> 07:28:14,920 values from two columns quantity one and 10820 07:28:14,920 --> 07:28:17,120 quantity 2 from the same table this 10821 07:28:17,120 --> 07:28:19,680 formula automatically gets only the 10822 07:28:19,680 --> 07:28:21,638 value from the current Row in the 10823 07:28:21,638 --> 07:28:23,638 specified column so it's only getting 10824 07:28:23,638 --> 07:28:25,600 one row it is not getting more than that 10825 07:28:25,600 --> 07:28:27,240 so that is where the row context is 10826 07:28:27,240 --> 07:28:30,160 applied the row context also follows any 10827 07:28:30,160 --> 07:28:32,240 relationship that has been defined 10828 07:28:32,240 --> 07:28:33,840 between the tables including 10829 07:28:33,840 --> 07:28:36,200 relationship defined with the a 10830 07:28:36,200 --> 07:28:39,160 calculated column by using Dex formulas 10831 07:28:39,160 --> 07:28:41,840 to determine which Row in the related 10832 07:28:41,840 --> 07:28:43,798 tables are associated with the current 10833 07:28:43,798 --> 07:28:46,558 row related function can fetch a related 10834 07:28:46,558 --> 07:28:49,040 table based on the relation so basically 10835 07:28:49,040 --> 07:28:51,840 you you can say Quantity plus related 10836 07:28:51,840 --> 07:28:54,280 tables quantity so it is going to fetch 10837 07:28:54,280 --> 07:28:56,638 row by row that values so all these 10838 07:28:56,638 --> 07:28:59,280 places is row context so basically your 10839 07:28:59,280 --> 07:29:02,398 row itself is a filter of data it is not 10840 07:29:02,398 --> 07:29:04,760 going beyond that particular rows 10841 07:29:04,760 --> 07:29:06,718 calculation so it's not that if I say 10842 07:29:06,718 --> 07:29:08,718 Quantity 1 plus quantity 2 it going to 10843 07:29:08,718 --> 07:29:10,920 sum up all the quantities in the table 10844 07:29:10,920 --> 07:29:12,840 that's not going to happen we will take 10845 07:29:12,840 --> 07:29:14,798 example when it's going to happen but 10846 07:29:14,798 --> 07:29:16,398 that's not going to happen with the row 10847 07:29:16,398 --> 07:29:19,000 context is in place so Dex is multiple 10848 07:29:19,000 --> 07:29:21,840 row context Dex include function that 10849 07:29:21,840 --> 07:29:24,478 iterates calculation over a table these 10850 07:29:24,478 --> 07:29:27,680 functions can have multiple current rows 10851 07:29:27,680 --> 07:29:30,798 which each with its own content T in a 10852 07:29:30,798 --> 07:29:33,240 sense these function let you create the 10853 07:29:33,240 --> 07:29:35,000 formula that perform operation 10854 07:29:35,000 --> 07:29:37,478 recursively over an inner and outer loop 10855 07:29:37,478 --> 07:29:40,638 so basically you are executing on more 10856 07:29:40,638 --> 07:29:43,000 than one rules for example suppose your 10857 07:29:43,000 --> 07:29:45,200 model contains product table and sales 10858 07:29:45,200 --> 07:29:47,440 table user might want to go through 10859 07:29:47,440 --> 07:29:50,000 entire Sal table which is full of 10860 07:29:50,000 --> 07:29:52,240 transaction involving multiple products 10861 07:29:52,240 --> 07:29:54,760 and find the largest quantity order for 10862 07:29:54,760 --> 07:29:56,638 each product for any one of these 10863 07:29:56,638 --> 07:29:59,318 transac this is one example when you 10864 07:29:59,318 --> 07:30:02,000 want to calculate multiple rows of the 10865 07:30:02,000 --> 07:30:03,878 sales table against the each product 10866 07:30:03,878 --> 07:30:05,878 that's where you are using multiple row 10867 07:30:05,878 --> 07:30:07,638 contacts with the Dex you can build a 10868 07:30:07,638 --> 07:30:09,878 single formula that Returns the correct 10869 07:30:09,878 --> 07:30:12,280 value and results are automatically 10870 07:30:12,280 --> 07:30:14,878 updated at the time user adds the data 10871 07:30:14,878 --> 07:30:18,080 to a table so the Dex will take care of 10872 07:30:18,080 --> 07:30:20,240 the execution and you will get the 10873 07:30:20,240 --> 07:30:22,160 correct formula so one of the example 10874 07:30:22,160 --> 07:30:24,280 using earlier is like I want to find out 10875 07:30:24,280 --> 07:30:26,398 the first sales State when the customer 10876 07:30:26,398 --> 07:30:28,200 came to me for first time so this is 10877 07:30:28,200 --> 07:30:30,798 minx filter sales custom customer ID 10878 07:30:30,798 --> 07:30:32,718 equals to earlier customer ID so it's 10879 07:30:32,718 --> 07:30:34,680 going to look at for all the customers 10880 07:30:34,680 --> 07:30:36,878 in that table and go to find out the 10881 07:30:36,878 --> 07:30:38,878 minimum save date to summarize the 10882 07:30:38,878 --> 07:30:41,280 earlier function store the row context 10883 07:30:41,280 --> 07:30:43,478 from the operation that precedes the 10884 07:30:43,478 --> 07:30:45,280 current operation so basically it's a 10885 07:30:45,280 --> 07:30:47,280 multiple row context which is coming 10886 07:30:47,280 --> 07:30:49,878 into play in this case so let's 10887 07:30:49,878 --> 07:30:52,280 understand query context query context 10888 07:30:52,280 --> 07:30:54,920 refers to the subset of the data that is 10889 07:30:54,920 --> 07:30:57,558 implicitly retrieved from a formula for 10890 07:30:57,558 --> 07:31:00,240 example when a user places a measure or 10891 07:31:00,240 --> 07:31:02,638 the field into the report the engine 10892 07:31:02,638 --> 07:31:05,398 examines the row and the column headers 10893 07:31:05,398 --> 07:31:07,718 slicers and Report filter to determine 10894 07:31:07,718 --> 07:31:09,920 the context the necessary query then 10895 07:31:09,920 --> 07:31:12,878 runs against the model data to get the 10896 07:31:12,878 --> 07:31:15,280 correct subset of the data makes 10897 07:31:15,280 --> 07:31:18,000 calculation defined by the formula and 10898 07:31:18,000 --> 07:31:19,878 populate the values in the report so 10899 07:31:19,878 --> 07:31:21,440 basically what happens when you create a 10900 07:31:21,440 --> 07:31:23,600 visual so it has it might be getting 10901 07:31:23,600 --> 07:31:26,558 slies it might be creating filters it 10902 07:31:26,558 --> 07:31:29,280 might have the columns row columns or 10903 07:31:29,280 --> 07:31:30,360 column head 10904 07:31:30,360 --> 07:31:33,280 based on all those a query context is 10905 07:31:33,280 --> 07:31:35,080 formed and then you get the result so 10906 07:31:35,080 --> 07:31:37,558 this is what the query context is 10907 07:31:37,558 --> 07:31:39,878 because the context changes depending on 10908 07:31:39,878 --> 07:31:41,920 where you place the formula the result 10909 07:31:41,920 --> 07:31:44,558 of the formula can also change for 10910 07:31:44,558 --> 07:31:46,680 example suppose you create a formula 10911 07:31:46,680 --> 07:31:48,840 that sums the value in gross amount 10912 07:31:48,840 --> 07:31:50,798 column of the sales table let's say sum 10913 07:31:50,798 --> 07:31:53,440 of gross amount if you use this in a 10914 07:31:53,440 --> 07:31:55,760 calculated column within a sales table 10915 07:31:55,760 --> 07:31:58,478 the result of the formula will also be 10916 07:31:58,478 --> 07:32:00,558 same as the entire table because the 10917 07:32:00,558 --> 07:32:02,878 query context of the formula is always 10918 07:32:02,878 --> 07:32:05,440 the entire data set of the c table the 10919 07:32:05,440 --> 07:32:07,600 results will have gross amount for all 10920 07:32:07,600 --> 07:32:10,080 regions all products all years and so on 10921 07:32:10,080 --> 07:32:13,360 so if use the sum of gross sales amount 10922 07:32:13,360 --> 07:32:15,878 in a calculated column versus a major 10923 07:32:15,878 --> 07:32:17,718 your expectation of result should be 10924 07:32:17,718 --> 07:32:20,040 different in case of a mejor it is based 10925 07:32:20,040 --> 07:32:22,718 on the query context of what is present 10926 07:32:22,718 --> 07:32:25,120 in the visual in column headers Ru 10927 07:32:25,120 --> 07:32:27,200 headers or what is coming because of 10928 07:32:27,200 --> 07:32:29,878 filters and slices but in case of the 10929 07:32:29,878 --> 07:32:31,840 calculated column is going to take the 10930 07:32:31,840 --> 07:32:34,520 complete Sal table and go to calculate 10931 07:32:34,520 --> 07:32:36,840 however user typically don't want to see 10932 07:32:36,840 --> 07:32:39,680 the same results hundreds of time but 10933 07:32:39,680 --> 07:32:42,120 instead of instead of want to get profit 10934 07:32:42,120 --> 07:32:44,080 of a particular year a particular 10935 07:32:44,080 --> 07:32:46,200 country or a particular product or 10936 07:32:46,200 --> 07:32:48,478 combination of these to get the grand 10937 07:32:48,478 --> 07:32:50,760 total so this is what we want we 10938 07:32:50,760 --> 07:32:52,840 actually wanted to group the data this 10939 07:32:52,840 --> 07:32:54,478 is what we do in a powerb visual we 10940 07:32:54,478 --> 07:32:56,520 wanted to have the grouping of the data 10941 07:32:56,520 --> 07:32:58,798 based on particular year country Etc in 10942 07:32:58,798 --> 07:33:00,920 a report the context is changed by 10943 07:33:00,920 --> 07:33:02,638 filtering or adding or removing the 10944 07:33:02,638 --> 07:33:05,000 fields and using the slices for each 10945 07:33:05,000 --> 07:33:07,520 change the query context in the measure 10946 07:33:07,520 --> 07:33:10,160 is evaluated therefore the same formula 10947 07:33:10,160 --> 07:33:12,318 used in a measure is evaluated in 10948 07:33:12,318 --> 07:33:14,680 different query context for each cell so 10949 07:33:14,680 --> 07:33:16,558 basically your visual may have different 10950 07:33:16,558 --> 07:33:18,600 set of columns different set of filter 10951 07:33:18,600 --> 07:33:20,958 filters and slices and based on that it 10952 07:33:20,958 --> 07:33:22,878 is going to be evaluated in different 10953 07:33:22,878 --> 07:33:25,840 query context let's come to now filter 10954 07:33:25,840 --> 07:33:28,160 context filter context is a set of 10955 07:33:28,160 --> 07:33:31,080 values allowed in each column or in the 10956 07:33:31,080 --> 07:33:33,478 values retrieved from a related table 10957 07:33:33,478 --> 07:33:36,120 filter can be applied to the column in 10958 07:33:36,120 --> 07:33:38,878 the designer or presentation layer 10959 07:33:38,878 --> 07:33:41,878 reports or pivot table filters can also 10960 07:33:41,878 --> 07:33:44,080 be defined explicitly by filter 10961 07:33:44,080 --> 07:33:45,600 expression in the formula so we have 10962 07:33:45,600 --> 07:33:48,680 filters and slices we also have you know 10963 07:33:48,680 --> 07:33:51,520 filter expression in which we can use in 10964 07:33:51,520 --> 07:33:53,680 calculate or the expression function 10965 07:33:53,680 --> 07:33:56,120 that also can give us the filter context 10966 07:33:56,120 --> 07:33:58,680 filter context is added when you specify 10967 07:33:58,680 --> 07:34:01,240 filter filter con States on a set of 10968 07:34:01,240 --> 07:34:03,958 values allowed in a column or a table 10969 07:34:03,958 --> 07:34:06,240 using the arguments to the formula 10970 07:34:06,240 --> 07:34:09,000 filter context applies on the top of 10971 07:34:09,000 --> 07:34:11,280 other contexts such as row context or 10972 07:34:11,280 --> 07:34:13,760 query context so filter context is going 10973 07:34:13,760 --> 07:34:16,040 to apply on on top of the other context 10974 07:34:16,040 --> 07:34:17,878 such as row context and query context 10975 07:34:17,878 --> 07:34:20,120 that we to remember in tabular model 10976 07:34:20,120 --> 07:34:22,280 there are many ways to create the filter 10977 07:34:22,280 --> 07:34:25,160 context within the context of client 10978 07:34:25,160 --> 07:34:27,160 that can consume the model such as 10979 07:34:27,160 --> 07:34:30,120 powerb reports user can create filter on 10980 07:34:30,120 --> 07:34:32,520 the Fly by adding slicers or report 10981 07:34:32,520 --> 07:34:34,958 filters on the row or column headings 10982 07:34:34,958 --> 07:34:37,360 you can also specify filter expression 10983 07:34:37,360 --> 07:34:40,240 directly within the formula to specify 10984 07:34:40,240 --> 07:34:43,120 related values to filter tables that are 10985 07:34:43,120 --> 07:34:46,360 used as inputs or to dynamically get the 10986 07:34:46,360 --> 07:34:48,958 context of the values that are used in 10987 07:34:48,958 --> 07:34:51,920 the calculation you can completely clear 10988 07:34:51,920 --> 07:34:54,318 or selectively clear the filter of a 10989 07:34:54,318 --> 07:34:56,920 particular column this is very useful 10990 07:34:56,920 --> 07:34:58,680 while creating the formulas that 10991 07:34:58,680 --> 07:35:00,878 calculates Grant to so what would happen 10992 07:35:00,878 --> 07:35:02,680 now there is a filter context which is 10993 07:35:02,680 --> 07:35:04,520 applying and because the visual is 10994 07:35:04,520 --> 07:35:07,638 getting executed the visual rowes is 10995 07:35:07,638 --> 07:35:10,120 actually having a particular value 10996 07:35:10,120 --> 07:35:12,360 getting filtered now you don't want that 10997 07:35:12,360 --> 07:35:14,080 kind of filter happening because of the 10998 07:35:14,080 --> 07:35:16,680 visual Ro so there are functions like 10999 07:35:16,680 --> 07:35:19,680 all all selected using which you can you 11000 07:35:19,680 --> 07:35:22,440 know go beyond your context you can 11001 07:35:22,440 --> 07:35:24,798 completely clear or selectively clear 11002 07:35:24,798 --> 07:35:27,318 those particular columns filter context 11003 07:35:27,318 --> 07:35:29,958 and get a formulas which will help you 11004 07:35:29,958 --> 07:35:32,240 to get Grand totals so this is what we 11005 07:35:32,240 --> 07:35:34,318 understood about different context not 11006 07:35:34,318 --> 07:35:35,718 what you're going to do is you're going 11007 07:35:35,718 --> 07:35:38,600 to explicitly look at this row context 11008 07:35:38,600 --> 07:35:40,760 and filter context and when we go to the 11009 07:35:40,760 --> 07:35:42,878 visualization quite a few time we are 11010 07:35:42,878 --> 07:35:45,160 only going to talk about filter context 11011 07:35:45,160 --> 07:35:47,440 but by the definition you might see that 11012 07:35:47,440 --> 07:35:49,878 it is applicable on a larger context or 11013 07:35:49,878 --> 07:35:51,760 some other context but we'll try to 11014 07:35:51,760 --> 07:35:55,040 limit ourself to use few terms and I'm 11015 07:35:55,040 --> 07:35:56,920 going to explain you what are the terms 11016 07:35:56,920 --> 07:35:58,798 which we are going to use when we are 11017 07:35:58,798 --> 07:36:01,558 going to look at these context in the 11018 07:36:01,558 --> 07:36:04,478 visuals let's understand the difference 11019 07:36:04,478 --> 07:36:07,000 between the row context and the filter 11020 07:36:07,000 --> 07:36:10,520 context and also look at the powera file 11021 07:36:10,520 --> 07:36:12,600 to understand the different kind of 11022 07:36:12,600 --> 07:36:14,840 context we have understood few minutes 11023 07:36:14,840 --> 07:36:17,280 back so let me take you through uh the 11024 07:36:17,280 --> 07:36:19,120 next slide let's have a look at the 11025 07:36:19,120 --> 07:36:21,398 differences so basically the row context 11026 07:36:21,398 --> 07:36:23,200 as we have understood already is a 11027 07:36:23,200 --> 07:36:25,080 physical row of the table so basically 11028 07:36:25,080 --> 07:36:27,200 when you're doing a calculated column 11029 07:36:27,200 --> 07:36:29,600 then what essentially you're doing is 11030 07:36:29,600 --> 07:36:31,600 every row by row that calculation is 11031 07:36:31,600 --> 07:36:34,638 happening or basically row filtering is 11032 07:36:34,638 --> 07:36:36,920 applying on every row so you are only 11033 07:36:36,920 --> 07:36:38,958 limited by the data of that particular 11034 07:36:38,958 --> 07:36:41,080 row that is where we say row context is 11035 07:36:41,080 --> 07:36:42,878 applied now similarly when you use 11036 07:36:42,878 --> 07:36:45,440 iterator functions like filter sumx 11037 07:36:45,440 --> 07:36:48,360 average X add columns you can also 11038 07:36:48,360 --> 07:36:50,440 access the row context so like say if 11039 07:36:50,440 --> 07:36:52,878 you use in the sumx you use the sales 11040 07:36:52,878 --> 07:36:55,318 table then you're also creating a row 11041 07:36:55,318 --> 07:36:57,120 context because at that time you are at 11042 07:36:57,120 --> 07:36:59,760 the row of the table and you can do that 11043 07:36:59,760 --> 07:37:01,958 while creating a major also now row 11044 07:37:01,958 --> 07:37:04,160 context applies to one row at a time not 11045 07:37:04,160 --> 07:37:06,280 more than one row because we have multi- 11046 07:37:06,280 --> 07:37:08,280 row context if you remember for that a 11047 07:37:08,280 --> 07:37:10,280 filter context if you apply how can it 11048 07:37:10,280 --> 07:37:12,000 come it come can come because of the 11049 07:37:12,000 --> 07:37:13,920 slicers or the filter which are 11050 07:37:13,920 --> 07:37:15,798 available on the page it may come 11051 07:37:15,798 --> 07:37:17,478 because of the visual so visual has 11052 07:37:17,478 --> 07:37:20,318 every row and it row has a column or row 11053 07:37:20,318 --> 07:37:22,280 because of which the values are coming 11054 07:37:22,280 --> 07:37:24,478 and they are coming as a filter context 11055 07:37:24,478 --> 07:37:27,120 Dex calculations like when we use 11056 07:37:27,120 --> 07:37:29,000 calculate function we are giving filter 11057 07:37:29,000 --> 07:37:31,120 expression and those are also acting as 11058 07:37:31,120 --> 07:37:33,558 a filter context and filter context 11059 07:37:33,558 --> 07:37:35,680 usually applies to a set of rows now 11060 07:37:35,680 --> 07:37:38,600 let's jump out the power be file and try 11061 07:37:38,600 --> 07:37:41,280 to understand the row context first of 11062 07:37:41,280 --> 07:37:44,878 all if I go to my sales table in the 11063 07:37:44,878 --> 07:37:46,840 table view if you remember we have done 11064 07:37:46,840 --> 07:37:48,718 certain calculations and one of the 11065 07:37:48,718 --> 07:37:50,520 calculation which we have done here is 11066 07:37:50,520 --> 07:37:52,160 the gross amount when you look at the 11067 07:37:52,160 --> 07:37:54,000 gross amount what is this calculation 11068 07:37:54,000 --> 07:37:56,718 sales quantity multiply by price now 11069 07:37:56,718 --> 07:37:58,840 this is a calculated column there is no 11070 07:37:58,840 --> 07:38:01,558 aggregation here and this calculation is 11071 07:38:01,558 --> 07:38:04,558 going to be done row by row so here row 11072 07:38:04,558 --> 07:38:06,680 context is applying and you're only 11073 07:38:06,680 --> 07:38:08,440 getting a data of a row you're not 11074 07:38:08,440 --> 07:38:10,760 getting beyond that same way we have 11075 07:38:10,760 --> 07:38:13,558 cogs calculation which is again the row 11076 07:38:13,558 --> 07:38:15,718 by row calculation discount amount is 11077 07:38:15,718 --> 07:38:17,600 again row by row calculation but if I 11078 07:38:17,600 --> 07:38:19,958 come to sum of gross sales if you 11079 07:38:19,958 --> 07:38:22,000 remember we discussed in the query 11080 07:38:22,000 --> 07:38:24,120 context now here what is happening the 11081 07:38:24,120 --> 07:38:26,718 entire table is available when we are 11082 07:38:26,718 --> 07:38:28,440 doing this kind of operation and what 11083 07:38:28,440 --> 07:38:31,120 are the other Contex text apply now when 11084 07:38:31,120 --> 07:38:33,318 we are on a visual the other context may 11085 07:38:33,318 --> 07:38:36,040 come because of able visual or the bar 11086 07:38:36,040 --> 07:38:38,478 visual or because of the grouping they 11087 07:38:38,478 --> 07:38:40,798 are providing in the visual now here 11088 07:38:40,798 --> 07:38:42,718 there is nothing which is coming in for 11089 07:38:42,718 --> 07:38:44,440 that and that is why you are getting the 11090 07:38:44,440 --> 07:38:46,558 full total and that that is why you will 11091 07:38:46,558 --> 07:38:48,760 find that I am keep on mentioning this 11092 07:38:48,760 --> 07:38:50,520 whenever you are using aggregate 11093 07:38:50,520 --> 07:38:52,798 function in a colum it gives you full 11094 07:38:52,798 --> 07:38:55,000 table so you have access to full table 11095 07:38:55,000 --> 07:38:57,520 and to reduce that you have to use some 11096 07:38:57,520 --> 07:38:59,200 kind of a filter function or something 11097 07:38:59,200 --> 07:39:01,318 like we have seen the example of earlier 11098 07:39:01,318 --> 07:39:04,040 in multi row context so same example we 11099 07:39:04,040 --> 07:39:06,318 have here the first change date where we 11100 07:39:06,318 --> 07:39:08,160 are using this filter function and 11101 07:39:08,160 --> 07:39:11,318 earlier a multi row context so here we 11102 07:39:11,318 --> 07:39:13,600 are having this multi row context 11103 07:39:13,600 --> 07:39:15,000 basically what is happening your 11104 07:39:15,000 --> 07:39:17,958 customer ID equals to customer ID in the 11105 07:39:17,958 --> 07:39:20,878 full sales table we're finding out the 11106 07:39:20,878 --> 07:39:23,680 subset of the rows which are satisfying 11107 07:39:23,680 --> 07:39:25,600 these conditions in the sales table 11108 07:39:25,600 --> 07:39:28,160 where current rules customer ID is 11109 07:39:28,160 --> 07:39:30,798 equals to the customer ID of the sales 11110 07:39:30,798 --> 07:39:33,040 table and that subset of row you're 11111 07:39:33,040 --> 07:39:35,558 using to find out the minimum sales 11112 07:39:35,558 --> 07:39:37,798 state which is becoming your first sales 11113 07:39:37,798 --> 07:39:40,680 dates same way we have also calculated 11114 07:39:40,680 --> 07:39:43,240 the last sales date so these are you 11115 07:39:43,240 --> 07:39:45,000 know the calculation which is coming 11116 07:39:45,000 --> 07:39:48,200 from multirow Context now let's go back 11117 07:39:48,200 --> 07:39:50,360 to the 11118 07:39:50,360 --> 07:39:52,840 visualization and in the visualization 11119 07:39:52,840 --> 07:39:55,080 if you look at this visual this visual 11120 07:39:55,080 --> 07:39:57,718 is having row if you look at this row it 11121 07:39:57,718 --> 07:39:59,840 is filtering the data for that Row for 11122 07:39:59,840 --> 07:40:02,558 category one but also if you look at the 11123 07:40:02,558 --> 07:40:05,120 gross column this particular row it is 11124 07:40:05,120 --> 07:40:07,160 not giving this total like what we are 11125 07:40:07,160 --> 07:40:09,398 getting in the column because here the 11126 07:40:09,398 --> 07:40:12,240 categories filter context is applying on 11127 07:40:12,240 --> 07:40:14,920 this visual row and restricting the data 11128 07:40:14,920 --> 07:40:16,920 to category one so basically what you 11129 07:40:16,920 --> 07:40:19,760 call the data is getting grouped so data 11130 07:40:19,760 --> 07:40:22,920 is getting filtered for category one for 11131 07:40:22,920 --> 07:40:25,520 this particular visual row so here we 11132 07:40:25,520 --> 07:40:28,200 can say that you know each row is 11133 07:40:28,200 --> 07:40:30,840 getting a filter context of category so 11134 07:40:30,840 --> 07:40:32,600 when there is a category or there's a 11135 07:40:32,600 --> 07:40:35,398 brand each row will get the filter 11136 07:40:35,398 --> 07:40:38,478 context of those UNS sumarized column or 11137 07:40:38,478 --> 07:40:40,840 group by columns and because of that you 11138 07:40:40,840 --> 07:40:43,318 are getting that particular value for 11139 07:40:43,318 --> 07:40:46,000 each row so filter context is passing 11140 07:40:46,000 --> 07:40:48,160 now additional filter context can be 11141 07:40:48,160 --> 07:40:51,718 added from filters from slicers and then 11142 07:40:51,718 --> 07:40:54,718 that will further reduce your data for a 11143 07:40:54,718 --> 07:40:57,318 row so different kind of filter contexts 11144 07:40:57,318 --> 07:40:59,558 are getting applied on this one so now 11145 07:40:59,558 --> 07:41:01,440 what could happen you could go ahead and 11146 07:41:01,440 --> 07:41:04,000 add a filter or a slicer and can apply 11147 07:41:04,000 --> 07:41:06,558 to this particular Visual and that will 11148 07:41:06,558 --> 07:41:08,958 also give you the context so what 11149 07:41:08,958 --> 07:41:10,840 happens let's say I can go here and put 11150 07:41:10,840 --> 07:41:13,398 a brand let's say I mly put a filter as 11151 07:41:13,398 --> 07:41:15,398 a page and I can select brand one now 11152 07:41:15,398 --> 07:41:17,798 what you are seeing is this filter is 11153 07:41:17,798 --> 07:41:19,798 also getting passed to this Visual and 11154 07:41:19,798 --> 07:41:22,760 your result or your query context has 11155 07:41:22,760 --> 07:41:25,520 changed to get the results so now we are 11156 07:41:25,520 --> 07:41:28,398 getting data of brand one for this 11157 07:41:28,398 --> 07:41:30,558 Visual and in inside this visual every 11158 07:41:30,558 --> 07:41:32,638 rule like category one is getting data 11159 07:41:32,638 --> 07:41:34,558 for category one category four is 11160 07:41:34,558 --> 07:41:36,558 getting data for the category four so 11161 07:41:36,558 --> 07:41:39,440 the context is getting applied to each 11162 07:41:39,440 --> 07:41:42,398 and every row so now you might have got 11163 07:41:42,398 --> 07:41:44,318 a little bit of idea of different kind 11164 07:41:44,318 --> 07:41:46,760 of context and what would happen that 11165 07:41:46,760 --> 07:41:49,040 you know when we are going to go ahead 11166 07:41:49,040 --> 07:41:51,240 and look at various calculation we will 11167 07:41:51,240 --> 07:41:53,798 talk about that context and sometime we 11168 07:41:53,798 --> 07:41:56,040 might simply use the generic term 11169 07:41:56,040 --> 07:41:58,120 context but looking at whether we are 11170 07:41:58,120 --> 07:41:59,920 talking at the visual level or whether 11171 07:41:59,920 --> 07:42:02,718 we are talking in a calculation the 11172 07:42:02,718 --> 07:42:04,958 calculation could be in the major 11173 07:42:04,958 --> 07:42:08,040 formula you will be able to identify 11174 07:42:08,040 --> 07:42:10,280 that which context we are talking about 11175 07:42:10,280 --> 07:42:12,240 here which context is going to apply 11176 07:42:12,240 --> 07:42:13,958 when we use that particular kind of 11177 07:42:13,958 --> 07:42:16,360 calculation or when we are talking about 11178 07:42:16,360 --> 07:42:18,478 visual which context we are talking so 11179 07:42:18,478 --> 07:42:21,080 let's understand how we are going to use 11180 07:42:21,080 --> 07:42:23,360 various terms so whenever there is a 11181 07:42:23,360 --> 07:42:25,638 slicer or filter which is passing the 11182 07:42:25,638 --> 07:42:28,080 filter context we may simply use the 11183 07:42:28,080 --> 07:42:30,798 term okay the it is getting filtered or 11184 07:42:30,798 --> 07:42:32,760 it is getting filter context similarly 11185 07:42:32,760 --> 07:42:35,200 the visual may also pass the filter 11186 07:42:35,200 --> 07:42:37,920 context so we can say use the term 11187 07:42:37,920 --> 07:42:40,840 context filter context visual row filter 11188 07:42:40,840 --> 07:42:43,760 context or row filter context means when 11189 07:42:43,760 --> 07:42:45,798 the visual have let's say category or 11190 07:42:45,798 --> 07:42:48,878 brand and it is filtering the data for 11191 07:42:48,878 --> 07:42:50,638 that also there is a filter context 11192 07:42:50,638 --> 07:42:52,840 which is passing but we will K may use 11193 07:42:52,840 --> 07:42:54,958 to explain you better like okay this is 11194 07:42:54,958 --> 07:42:57,240 visual rows filter context is passing 11195 07:42:57,240 --> 07:43:00,160 now when we use Dex formula and we have 11196 07:43:00,160 --> 07:43:02,520 the filter because of that we may say it 11197 07:43:02,520 --> 07:43:04,718 is Formula filter context or simply the 11198 07:43:04,718 --> 07:43:06,318 context so this is how we are going to 11199 07:43:06,318 --> 07:43:09,558 use the terms uh in the upcoming videos 11200 07:43:09,558 --> 07:43:12,000 based on that it will be helpful for you 11201 07:43:12,000 --> 07:43:14,000 to identify which context we are talking 11202 07:43:14,000 --> 07:43:16,200 about so now we will understand Dex 11203 07:43:16,200 --> 07:43:18,160 query View and first of all what we are 11204 07:43:18,160 --> 07:43:19,760 going to do is we are going to go and 11205 07:43:19,760 --> 07:43:21,798 look at the release note of Dex query 11206 07:43:21,798 --> 07:43:23,600 view to understand it little bit in 11207 07:43:23,600 --> 07:43:25,638 details and we are just starting with 11208 07:43:25,638 --> 07:43:28,120 the Dex journey I might not be able to 11209 07:43:28,120 --> 07:43:29,638 give you complete 11210 07:43:29,638 --> 07:43:32,440 overview of what all Dex query view can 11211 07:43:32,440 --> 07:43:35,120 do so what we will do is first let's 11212 07:43:35,120 --> 07:43:36,798 understand the basic of what de query 11213 07:43:36,798 --> 07:43:39,080 view can do and later on we will come 11214 07:43:39,080 --> 07:43:41,080 back and explore Dex query view in 11215 07:43:41,080 --> 07:43:43,280 little bit details so let's start the 11216 07:43:43,280 --> 07:43:46,280 journey with the blog in November 2023 11217 07:43:46,280 --> 07:43:48,558 the feature of Dex query view has been 11218 07:43:48,558 --> 07:43:52,000 released an additional tab on the left 11219 07:43:52,000 --> 07:43:54,760 hand pan has been added for Dex query 11220 07:43:54,760 --> 07:43:58,240 View and this feature will allow you to 11221 07:43:58,240 --> 07:44:02,200 run Dex qu directly from Power VI 11222 07:44:02,200 --> 07:44:05,160 desktop you don't need external Studios 11223 07:44:05,160 --> 07:44:08,440 for that release notes of November 2023 11224 07:44:08,440 --> 07:44:10,440 talks about this feature but very 11225 07:44:10,440 --> 07:44:12,840 recently a detailed article has been 11226 07:44:12,840 --> 07:44:18,638 given on blog. powerbi.com or powerbi 11227 07:44:18,638 --> 07:44:20,280 microsoft.com 11228 07:44:20,280 --> 07:44:23,958 slus blog we are going to look into the 11229 07:44:23,958 --> 07:44:25,878 article as well as we are going to play 11230 07:44:25,878 --> 07:44:29,160 around with the Dex query view in powerb 11231 07:44:29,160 --> 07:44:31,680 desktops let's quickly have a look at 11232 07:44:31,680 --> 07:44:34,760 the blog as you can see as a first thing 11233 07:44:34,760 --> 07:44:36,398 the various components have been 11234 07:44:36,398 --> 07:44:39,478 explained so we have the data pane here 11235 07:44:39,478 --> 07:44:42,398 we have the quick measures option we 11236 07:44:42,398 --> 07:44:45,718 have the command bar here ribbon Dex 11237 07:44:45,718 --> 07:44:47,958 query view access via the fourth view 11238 07:44:47,958 --> 07:44:49,478 option the fourth view option which we 11239 07:44:49,478 --> 07:44:52,638 are going to check out in some time Dex 11240 07:44:52,638 --> 07:44:55,040 query 11241 07:44:55,120 --> 07:44:58,240 editor which is this portion and the 11242 07:44:58,240 --> 07:45:00,760 result grade which is the this 11243 07:45:00,760 --> 07:45:03,398 particular section and then we can have 11244 07:45:03,398 --> 07:45:06,760 query tabs we can have multiple 11245 07:45:07,558 --> 07:45:10,040 queries how Dex query view is going to 11246 07:45:10,040 --> 07:45:12,878 help us out H has been described in this 11247 07:45:12,878 --> 07:45:15,360 blog quick queries from the data Paine 11248 07:45:15,360 --> 07:45:18,360 to make it easy to create Dex queries 11249 07:45:18,360 --> 07:45:21,478 direct model author can use Dex query 11250 07:45:21,478 --> 07:45:24,920 view new measure authoring workflow we 11251 07:45:24,920 --> 07:45:26,798 will see how can we create new measures 11252 07:45:26,798 --> 07:45:29,240 directly from here CeX query of the 11253 07:45:29,240 --> 07:45:32,600 visuals create your own Dex 11254 07:45:32,600 --> 07:45:35,638 query now those of who who are from the 11255 07:45:35,638 --> 07:45:38,958 powerbi world and never used deck studio 11256 07:45:38,958 --> 07:45:41,360 uh you might not have seen the use of 11257 07:45:41,360 --> 07:45:43,760 evaluate now what happens when you want 11258 07:45:43,760 --> 07:45:44,680 to 11259 07:45:44,680 --> 07:45:49,240 evaluate a query in the Dex view or in 11260 07:45:49,240 --> 07:45:51,798 the Dex Studio you require evaluate and 11261 07:45:51,798 --> 07:45:54,120 then you write down evaluate and a query 11262 07:45:54,120 --> 07:45:55,920 a DEX query typically should return a 11263 07:45:55,920 --> 07:45:58,080 table so all every time we trying to 11264 07:45:58,080 --> 07:46:02,520 bring in uh xquery we try to return a 11265 07:46:02,520 --> 07:46:04,760 table and then you say evaluate and the 11266 07:46:04,760 --> 07:46:06,120 expression which return returns as a 11267 07:46:06,120 --> 07:46:08,520 table and that's how you get it now if 11268 07:46:08,520 --> 07:46:10,000 you want to create something new or you 11269 07:46:10,000 --> 07:46:12,280 want to Define Majors then you use the 11270 07:46:12,280 --> 07:46:14,000 Define keyword where you can Define the 11271 07:46:14,000 --> 07:46:17,638 majors now these measures are defined in 11272 07:46:17,638 --> 07:46:21,558 the context of that particular query so 11273 07:46:21,558 --> 07:46:23,558 let's read out the definition from here 11274 07:46:23,558 --> 07:46:27,558 evaluate evaluate which is required that 11275 07:46:27,558 --> 07:46:30,600 specific what data you want to see 11276 07:46:30,600 --> 07:46:33,440 Define which is optional that can 11277 07:46:33,440 --> 07:46:36,160 specify a measure or named Dex formula 11278 07:46:36,160 --> 07:46:39,680 to use in the Dex query this measure can 11279 07:46:39,680 --> 07:46:42,200 already be in the model or not if 11280 07:46:42,200 --> 07:46:45,398 already exists you can make changes that 11281 07:46:45,398 --> 07:46:48,120 only apply to the Dex query to try them 11282 07:46:48,120 --> 07:46:51,440 out you can also have the option to 11283 07:46:51,440 --> 07:46:53,798 update the model with these mejor which 11284 07:46:53,798 --> 07:46:56,638 we will get into more details later in 11285 07:46:56,638 --> 07:46:58,520 this blog so in this blog they have 11286 07:46:58,520 --> 07:47:01,200 shown you how can you save the changes 11287 07:47:01,200 --> 07:47:02,840 in the major and we are going to 11288 07:47:02,840 --> 07:47:05,160 experiment with that 11289 07:47:05,160 --> 07:47:07,558 also when we are going to take the 11290 07:47:07,558 --> 07:47:11,040 Practical examples now one example has 11291 07:47:11,040 --> 07:47:12,760 been given for a de query summarized 11292 07:47:12,760 --> 07:47:15,040 column is one thing which 11293 07:47:15,040 --> 07:47:17,558 returns table and that is how we can use 11294 07:47:17,558 --> 07:47:19,440 it if you go down more examples have 11295 07:47:19,440 --> 07:47:21,718 been given also equalent sqls have been 11296 07:47:21,718 --> 07:47:24,160 provided in this blog so that you can 11297 07:47:24,160 --> 07:47:27,318 understand what's happening out 11298 07:47:27,520 --> 07:47:29,958 here as you you can see the queries are 11299 07:47:29,958 --> 07:47:33,160 run using evaluate 11300 07:47:33,680 --> 07:47:35,760 expression select column is another 11301 07:47:35,760 --> 07:47:36,920 function which can return return you a 11302 07:47:36,920 --> 07:47:39,318 table with the selection of columns what 11303 07:47:39,318 --> 07:47:43,160 you want and we order by something which 11304 07:47:43,160 --> 07:47:46,080 we don't frequently use in powerbi 11305 07:47:46,080 --> 07:47:49,440 because we use the visual sorting and 11306 07:47:49,440 --> 07:47:51,638 visual sorting internally applies that 11307 07:47:51,638 --> 07:47:53,920 order by but here you can explicitly 11308 07:47:53,920 --> 07:47:55,398 call order by 11309 07:47:55,398 --> 07:47:58,760 function then show data preview in the 11310 07:47:58,760 --> 07:48:01,520 quick measure then it will generate a 11311 07:48:01,520 --> 07:48:05,840 query for you Dex query and you can run 11312 07:48:06,920 --> 07:48:10,440 that few more 11313 07:48:12,240 --> 07:48:16,440 examples then you have uh Define with 11314 07:48:16,440 --> 07:48:18,160 the references if you have a major and 11315 07:48:18,160 --> 07:48:19,878 you want to Define its references then 11316 07:48:19,878 --> 07:48:21,200 you have an option when you are running 11317 07:48:21,200 --> 07:48:24,280 the query you can see the def references 11318 07:48:24,280 --> 07:48:25,680 has been defined you can change the 11319 07:48:25,680 --> 07:48:29,280 definition a little bit while uh doing 11320 07:48:29,280 --> 07:48:33,318 the evaluation of that particular major 11321 07:48:33,318 --> 07:48:36,120 in the Dex view so as you can see some 11322 07:48:36,120 --> 07:48:37,440 of the majors have been changed and it 11323 07:48:37,440 --> 07:48:39,280 is asking do you want to update or 11324 07:48:39,280 --> 07:48:42,040 override those measures I may or may not 11325 07:48:42,040 --> 07:48:44,318 want that I'm just experimenting it here 11326 07:48:44,318 --> 07:48:46,080 by changing it what would happen so you 11327 07:48:46,080 --> 07:48:48,360 have a place where you can experiment 11328 07:48:48,360 --> 07:48:51,318 how your different measures or different 11329 07:48:51,318 --> 07:48:54,160 combination of the defination is going 11330 07:48:54,160 --> 07:48:57,840 to result in the data and then few more 11331 07:48:57,840 --> 07:48:59,398 things have been explained 11332 07:48:59,398 --> 07:49:02,000 here we have learned now quite a few 11333 07:49:02,000 --> 07:49:04,558 visuals and there are still few visuals 11334 07:49:04,558 --> 07:49:07,080 which are left out and we will take up 11335 07:49:07,080 --> 07:49:11,240 those visuals once we are able to learn 11336 07:49:11,240 --> 07:49:14,558 T and able to create more complex M once 11337 07:49:14,558 --> 07:49:16,718 we are done with that we will come back 11338 07:49:16,718 --> 07:49:19,360 and we will learn how to use conditional 11339 07:49:19,360 --> 07:49:22,520 formatting and how can we create some 11340 07:49:22,520 --> 07:49:24,638 other visuals and in those visuals we 11341 07:49:24,638 --> 07:49:26,440 need few calculations which are 11342 07:49:26,440 --> 07:49:29,240 dependent on some decks this time when 11343 07:49:29,240 --> 07:49:31,160 we are going to learn creation of new 11344 07:49:31,160 --> 07:49:33,318 major just like we created the majors 11345 07:49:33,318 --> 07:49:35,398 initially uh we can take help of a new 11346 07:49:35,398 --> 07:49:37,718 major which is available on the top 11347 07:49:37,718 --> 07:49:40,280 under the major tool or table tool or 11348 07:49:40,280 --> 07:49:43,080 Home tab but we are also going to take 11349 07:49:43,080 --> 07:49:45,440 help of this new feature which has came 11350 07:49:45,440 --> 07:49:48,760 in 2023 which is Dax query view view in 11351 07:49:48,760 --> 07:49:51,478 the Dex query view we will be able to 11352 07:49:51,478 --> 07:49:53,878 put the definition of an existing major 11353 07:49:53,878 --> 07:49:57,000 modify it and get a new major or we 11354 07:49:57,000 --> 07:49:59,000 simply Define a new major and and we 11355 07:49:59,000 --> 07:50:02,120 will be able to use it so Dex query view 11356 07:50:02,120 --> 07:50:04,240 is something very similar to those who 11357 07:50:04,240 --> 07:50:06,600 have learned SQL it's like in a SQL 11358 07:50:06,600 --> 07:50:09,280 editor or SQL Developer where you write 11359 07:50:09,280 --> 07:50:12,040 down the SQL statement and execute them 11360 07:50:12,040 --> 07:50:13,478 to get the query result so these are the 11361 07:50:13,478 --> 07:50:15,000 Dex queries which we are going to write 11362 07:50:15,000 --> 07:50:16,958 down here and you will get the results 11363 07:50:16,958 --> 07:50:21,478 so before we Deep dive into the majors 11364 07:50:21,478 --> 07:50:23,200 we're going to learn little bit about 11365 07:50:23,200 --> 07:50:25,718 this Tex query View and as I already 11366 07:50:25,718 --> 07:50:27,318 opened it you can see that there is 11367 07:50:27,318 --> 07:50:29,558 already in a statement top top and 100 11368 07:50:29,558 --> 07:50:31,398 customer we do have a table with that 11369 07:50:31,398 --> 07:50:33,120 name I'll explain you what this so 11370 07:50:33,120 --> 07:50:35,718 whenever we are going to do anything in 11371 07:50:35,718 --> 07:50:37,760 a visualization we are not going to use 11372 07:50:37,760 --> 07:50:39,558 this valuate function at the max I will 11373 07:50:39,558 --> 07:50:41,958 do this top and 100 now top end is a 11374 07:50:41,958 --> 07:50:44,318 function which can give top values 100 11375 07:50:44,318 --> 07:50:46,440 is the number of values and customer is 11376 07:50:46,440 --> 07:50:48,360 the expression or the table which I've 11377 07:50:48,360 --> 07:50:50,878 given so it's giving me of 100 customers 11378 07:50:50,878 --> 07:50:52,160 important thing which we have to 11379 07:50:52,160 --> 07:50:54,240 remember when we are in the Dex query 11380 07:50:54,240 --> 07:50:56,440 view is that whatever we are writing 11381 07:50:56,440 --> 07:50:58,920 down here when we are to evaluate it 11382 07:50:58,920 --> 07:51:00,440 should give us a table and there are 11383 07:51:00,440 --> 07:51:02,478 many ways we can get table we will learn 11384 07:51:02,478 --> 07:51:04,600 them as we go move forward now if we 11385 07:51:04,600 --> 07:51:07,080 look at what all options we have on the 11386 07:51:07,080 --> 07:51:09,120 top of the Dex query view we have 11387 07:51:09,120 --> 07:51:10,638 something known as format query so if 11388 07:51:10,638 --> 07:51:12,160 you write down a complex query and if 11389 07:51:12,160 --> 07:51:13,920 you want to format it let's say can we 11390 07:51:13,920 --> 07:51:15,600 format it further yes this is how it 11391 07:51:15,600 --> 07:51:17,360 will get formatted you want to comment 11392 07:51:17,360 --> 07:51:18,760 you want to write down something let's 11393 07:51:18,760 --> 07:51:22,160 say we have written I will learn Dex you 11394 07:51:22,160 --> 07:51:23,760 can go and comment it here you want to 11395 07:51:23,760 --> 07:51:25,760 uncomment you can uncomment or these 11396 07:51:25,760 --> 07:51:27,840 three lines are I want to uncomment I 11397 07:51:27,840 --> 07:51:29,600 can go ahead and uncomment in one go 11398 07:51:29,600 --> 07:51:31,398 comment then we want to find something 11399 07:51:31,398 --> 07:51:33,680 we can use find and find it here inside 11400 07:51:33,680 --> 07:51:35,318 this one you want to replace something 11401 07:51:35,318 --> 07:51:37,200 and then you have a command pet where 11402 07:51:37,200 --> 07:51:38,920 you know above the cursor below the 11403 07:51:38,920 --> 07:51:40,680 cursor you want to search something that 11404 07:51:40,680 --> 07:51:42,680 can help you I want to execute a major 11405 07:51:42,680 --> 07:51:44,840 how do I execute a major or get its 11406 07:51:44,840 --> 07:51:46,878 value in the de can remove this and you 11407 07:51:46,878 --> 07:51:48,958 can have multiple queries you have tabs 11408 07:51:48,958 --> 07:51:51,638 below to M run the multiple queries so 11409 07:51:51,638 --> 07:51:53,600 what I can do here is I can go to one of 11410 07:51:53,600 --> 07:51:56,080 the existing major and I can right click 11411 07:51:56,080 --> 07:51:58,958 and say quick queries I have evaluated 11412 07:51:58,958 --> 07:52:01,280 Define and evaluate Define with 11413 07:52:01,280 --> 07:52:03,520 reference and evaluate Define all 11414 07:52:03,520 --> 07:52:05,520 measures in this model now evaluate 11415 07:52:05,520 --> 07:52:07,120 means simply it will give me evaluate 11416 07:52:07,120 --> 07:52:09,200 expression Define and evaluate will give 11417 07:52:09,200 --> 07:52:11,718 me definition how it defined now so let 11418 07:52:11,718 --> 07:52:14,318 me add the Define and evaluate so it's 11419 07:52:14,318 --> 07:52:16,120 giving me a function summarize column 11420 07:52:16,120 --> 07:52:17,680 I'll explain you what this summarize 11421 07:52:17,680 --> 07:52:19,760 column means so let me evaluate this 11422 07:52:19,760 --> 07:52:22,040 first of all I can also evaluate this 11423 07:52:22,040 --> 07:52:24,440 without so basically what happens in Dex 11424 07:52:24,440 --> 07:52:26,638 query view that we need to evaluate and 11425 07:52:26,638 --> 07:52:28,318 then we need a table expression this is 11426 07:52:28,318 --> 07:52:30,080 how it works so summarize columns is 11427 07:52:30,080 --> 07:52:31,798 also going to give us table expression 11428 07:52:31,798 --> 07:52:34,040 what it does is you can have the name 11429 07:52:34,040 --> 07:52:35,798 and then you can have expression name 11430 07:52:35,798 --> 07:52:37,600 expression name expression you can also 11431 07:52:37,600 --> 07:52:39,280 add filters this is how summarized 11432 07:52:39,280 --> 07:52:41,600 column works now if the major is in the 11433 07:52:41,600 --> 07:52:43,840 schema or the model you can use it but 11434 07:52:43,840 --> 07:52:45,200 let's say I want to change this 11435 07:52:45,200 --> 07:52:46,840 definition of the major how does we 11436 07:52:46,840 --> 07:52:48,398 Define a major first of all let's 11437 07:52:48,398 --> 07:52:50,240 understand now this one so we first we 11438 07:52:50,240 --> 07:52:52,798 say Define mejor the table and the mejor 11439 07:52:52,798 --> 07:52:54,840 name the new major name or the major 11440 07:52:54,840 --> 07:52:56,680 name which you want and the definition 11441 07:52:56,680 --> 07:52:58,478 the expression basically so this is our 11442 07:52:58,478 --> 07:53:00,558 expression part this is the left hand 11443 07:53:00,558 --> 07:53:02,080 side measure name part this is how you 11444 07:53:02,080 --> 07:53:04,360 define it now can I have the two 11445 07:53:04,360 --> 07:53:06,240 definitions here yes I what I can do is 11446 07:53:06,240 --> 07:53:08,520 I can say multiply by two and I can keep 11447 07:53:08,520 --> 07:53:10,440 a bracket to give the preference 11448 07:53:10,440 --> 07:53:12,440 multiplication any way is going to take 11449 07:53:12,440 --> 07:53:14,478 a preference I can run this now you can 11450 07:53:14,478 --> 07:53:16,318 see that it takes the new definition the 11451 07:53:16,318 --> 07:53:18,000 local definition local definition would 11452 07:53:18,000 --> 07:53:19,920 be given a priority you can simply say 11453 07:53:19,920 --> 07:53:21,878 evaluate then you see the old definition 11454 07:53:21,878 --> 07:53:23,638 now let us say I want to Define my own 11455 07:53:23,638 --> 07:53:26,080 new major so what I can do is I can copy 11456 07:53:26,080 --> 07:53:28,760 and I'll say gross one what is my gross 11457 07:53:28,760 --> 07:53:30,958 one what was my gross actually my gross 11458 07:53:30,958 --> 07:53:33,878 was sum of sales gross amount this was 11459 07:53:33,878 --> 07:53:35,840 my gross so what I need to do is now I 11460 07:53:35,840 --> 07:53:37,680 need to add this measure and before I 11461 07:53:37,680 --> 07:53:39,760 tell you I I'll even tell you one single 11462 07:53:39,760 --> 07:53:41,760 function which is row what row function 11463 07:53:41,760 --> 07:53:44,040 can do is row function can actually take 11464 07:53:44,040 --> 07:53:46,318 a name expression name expression name 11465 07:53:46,318 --> 07:53:48,360 expression and it only gives me one row 11466 07:53:48,360 --> 07:53:50,200 summarize column is even more powerful 11467 07:53:50,200 --> 07:53:51,920 it can have a group buse also we have 11468 07:53:51,920 --> 07:53:54,080 not added the group by there so so let 11469 07:53:54,080 --> 07:53:57,000 me execute it first of all evaluate for 11470 07:53:57,000 --> 07:53:59,040 first time evaluated with net original 11471 07:53:59,040 --> 07:54:00,440 definition of net because we have not 11472 07:54:00,440 --> 07:54:02,240 used Define what I can do here is 11473 07:54:02,240 --> 07:54:04,680 basically I can add a column name static 11474 07:54:04,680 --> 07:54:07,000 column and I'll call this as grand total 11475 07:54:07,000 --> 07:54:10,040 because row is giving me only one row it 11476 07:54:10,040 --> 07:54:12,280 typically used also to create one row of 11477 07:54:12,280 --> 07:54:14,840 data row again but it gives me a table 11478 07:54:14,840 --> 07:54:17,558 name so expression name expression name 11479 07:54:17,558 --> 07:54:19,120 expression this is what the syntax is 11480 07:54:19,120 --> 07:54:20,718 name expression name expression keep on 11481 07:54:20,718 --> 07:54:22,958 going like this now third one is gross 11482 07:54:22,958 --> 07:54:24,958 we created here I'm not calling it gross 11483 07:54:24,958 --> 07:54:26,878 one I'm simply using gross and then I'll 11484 07:54:26,878 --> 07:54:29,200 use my gross one and gross one is only 11485 07:54:29,200 --> 07:54:31,040 local it's not being created till now so 11486 07:54:31,040 --> 07:54:33,920 I got it but what do You observe here 11487 07:54:33,920 --> 07:54:35,558 other than you know it's giving me the 11488 07:54:35,558 --> 07:54:38,040 data is update the model override the 11489 07:54:38,040 --> 07:54:40,840 measure update the model add new measure 11490 07:54:40,840 --> 07:54:42,920 these are the two new options which are 11491 07:54:42,920 --> 07:54:45,398 coming in it means if I want I can add 11492 07:54:45,398 --> 07:54:47,000 this measor but right now what I'm doing 11493 07:54:47,000 --> 07:54:49,040 I'm testing it so no need to do now we 11494 07:54:49,040 --> 07:54:50,840 have learned about this thing something 11495 07:54:50,840 --> 07:54:52,920 known as sum you already know this same 11496 07:54:52,920 --> 07:54:56,680 way as sum we have min max count count 11497 07:54:56,680 --> 07:54:59,080 majors are there now let's go ahead and 11498 07:54:59,080 --> 07:55:00,958 do this now I'm going to create it and 11499 07:55:00,958 --> 07:55:02,680 then we are going to use it there also 11500 07:55:02,680 --> 07:55:05,240 so let me say what is Max here and let 11501 07:55:05,240 --> 07:55:08,280 me call it as gross two then gross three 11502 07:55:08,280 --> 07:55:10,718 this is Min Min of gross amount then we 11503 07:55:10,718 --> 07:55:12,920 can have one more which is Count now I 11504 07:55:12,920 --> 07:55:15,478 don't want to count the see gross amount 11505 07:55:15,478 --> 07:55:17,478 I want to count let's say order number 11506 07:55:17,478 --> 07:55:19,520 and remember my order numbers are unique 11507 07:55:19,520 --> 07:55:21,680 so when I go to new function which is 11508 07:55:21,680 --> 07:55:23,680 distinct count which is going to count 11509 07:55:23,680 --> 07:55:26,200 the distinct values I'm not going to use 11510 07:55:26,200 --> 07:55:28,360 order number I'm going to use sales City 11511 07:55:28,360 --> 07:55:30,478 ID so what is my sum of gross amount 11512 07:55:30,478 --> 07:55:32,520 what is my Max of gross amount Min of 11513 07:55:32,520 --> 07:55:35,000 gross amount count of order numbers and 11514 07:55:35,000 --> 07:55:36,558 what are the distinct number of CI in 11515 07:55:36,558 --> 07:55:38,760 this and I need to add all of them into 11516 07:55:38,760 --> 07:55:41,760 my row also it cannot happen that I I 11517 07:55:41,760 --> 07:55:43,638 just get it and here I can use this 11518 07:55:43,638 --> 07:55:45,760 formatting now let's all this formatting 11519 07:55:45,760 --> 07:55:47,840 every row we get this and now you can I 11520 07:55:47,840 --> 07:55:49,718 can do that copy paste let me put a 11521 07:55:49,718 --> 07:55:51,520 comma also here and then start doing the 11522 07:55:51,520 --> 07:55:53,760 copy paste we need gross I'm I'm giving 11523 07:55:53,760 --> 07:55:56,200 a different name here okay gr Min is two 11524 07:55:56,200 --> 07:55:59,080 Ross three is a Max also not following 11525 07:55:59,080 --> 07:56:01,360 the order and if you remember I am not 11526 07:56:01,360 --> 07:56:04,000 given name here this is gross 4 so let's 11527 07:56:04,000 --> 07:56:06,638 call now gross 4 was there so we will 11528 07:56:06,638 --> 07:56:09,040 say count orders and this way will say 11529 07:56:09,040 --> 07:56:11,160 distinct cities distinct cities distinct 11530 07:56:11,160 --> 07:56:13,398 cities so correctly the name now let's 11531 07:56:13,398 --> 07:56:15,920 run it now you getting this now some of 11532 07:56:15,920 --> 07:56:18,160 those we can create a as a major so 11533 07:56:18,160 --> 07:56:20,398 let's say I want this update as a new 11534 07:56:20,398 --> 07:56:22,558 major and it is asking this change can 11535 07:56:22,558 --> 07:56:24,360 not be undone means once I create I 11536 07:56:24,360 --> 07:56:26,040 can't undo means I have to manually go 11537 07:56:26,040 --> 07:56:28,240 and delete it you can't use control Z 11538 07:56:28,240 --> 07:56:29,600 means is going to update the model we 11539 07:56:29,600 --> 07:56:31,440 are fine with that isn't it okay fine 11540 07:56:31,440 --> 07:56:33,360 again I say update so I used update 11541 07:56:33,360 --> 07:56:35,958 again let me create Min of gross also 11542 07:56:35,958 --> 07:56:38,120 and Max up and some we already have so 11543 07:56:38,120 --> 07:56:39,958 we don't need it actually we will learn 11544 07:56:39,958 --> 07:56:42,318 the sux function now in some time then 11545 07:56:42,318 --> 07:56:44,478 we will try to create it from here we 11546 07:56:44,478 --> 07:56:46,558 know a easier way here copy paste copy 11547 07:56:46,558 --> 07:56:48,360 paste and do it I would like now let's 11548 07:56:48,360 --> 07:56:50,718 take an example of this visual here data 11549 07:56:50,718 --> 07:56:53,318 is grouped by category so how can we get 11550 07:56:53,318 --> 07:56:56,878 similar kind of example in Dex query 11551 07:56:56,878 --> 07:56:58,920 view how can we get the group data we 11552 07:56:58,920 --> 07:57:01,920 will use summarize columns or summarize 11553 07:57:01,920 --> 07:57:04,440 now these two functions have the ability 11554 07:57:04,440 --> 07:57:06,718 to have group wise as well as aggregated 11555 07:57:06,718 --> 07:57:08,840 column together and using that you can 11556 07:57:08,840 --> 07:57:10,680 create a table which will give you 11557 07:57:10,680 --> 07:57:12,840 aggregated columns as well as Group by 11558 07:57:12,840 --> 07:57:14,558 columns so let's go ahead and try that 11559 07:57:14,558 --> 07:57:16,398 out so if you remember when we came 11560 07:57:16,398 --> 07:57:18,240 initially here we have been given a 11561 07:57:18,240 --> 07:57:20,520 function which was summarize columns now 11562 07:57:20,520 --> 07:57:21,840 look at the definition of summarize 11563 07:57:21,840 --> 07:57:23,200 column what does it says you can give 11564 07:57:23,200 --> 07:57:25,240 group bu you can give filter then name 11565 07:57:25,240 --> 07:57:26,958 expression name we already using name 11566 07:57:26,958 --> 07:57:28,840 expression name expression why don't we 11567 07:57:28,840 --> 07:57:30,318 go ahead and give a group buy how do we 11568 07:57:30,318 --> 07:57:32,520 give a group buy we need item category I 11569 07:57:32,520 --> 07:57:34,318 given a group buy then I have name 11570 07:57:34,318 --> 07:57:35,958 expression name expression and let's try 11571 07:57:35,958 --> 07:57:38,040 out evaluate this now I can't evaluate 11572 07:57:38,040 --> 07:57:40,360 it alone I need to have the Define also 11573 07:57:40,360 --> 07:57:41,920 because there are few things which is 11574 07:57:41,920 --> 07:57:43,638 not created as measur and we are getting 11575 07:57:43,638 --> 07:57:45,558 the similar kind of results here we 11576 07:57:45,558 --> 07:57:47,318 created additional measure there is 11577 07:57:47,318 --> 07:57:49,080 average gross if I want to add it and 11578 07:57:49,080 --> 07:57:50,958 without even defining I can put a comma 11579 07:57:50,958 --> 07:57:53,718 at the end and I can say average cross 11580 07:57:53,718 --> 07:57:55,958 comma and if I use that start suggesting 11581 07:57:55,958 --> 07:57:58,240 me the majors then I can use average 11582 07:57:58,240 --> 07:58:00,478 cross it suggest me as soon as I type it 11583 07:58:00,478 --> 07:58:02,440 let me run it oh my God in this manner 11584 07:58:02,440 --> 07:58:04,000 this summarize column everything which 11585 07:58:04,000 --> 07:58:05,760 you want to use here should finally the 11586 07:58:05,760 --> 07:58:07,638 valuate should return table say what 11587 07:58:07,638 --> 07:58:09,680 happens I'm asking about return table 11588 07:58:09,680 --> 07:58:11,240 return table what happens if I don't do 11589 07:58:11,240 --> 07:58:12,280 that let's say I simply write down 11590 07:58:12,280 --> 07:58:13,798 evaluate this average gross now it is 11591 07:58:13,798 --> 07:58:15,200 already available isn't it let's select 11592 07:58:15,200 --> 07:58:17,240 an execute it doesn't so it needs table 11593 07:58:17,240 --> 07:58:20,160 and start renaming it also let's say we 11594 07:58:20,160 --> 07:58:22,200 call this table one we call the first 11595 07:58:22,200 --> 07:58:24,240 one is test there's nothing there what 11596 07:58:24,240 --> 07:58:26,280 we're going to do is every time and 11597 07:58:26,280 --> 07:58:29,318 again we going to go here and create the 11598 07:58:29,318 --> 07:58:31,638 majors by just copy pasting by doing 11599 07:58:31,638 --> 07:58:33,280 little bit faster stuff and 11600 07:58:33,280 --> 07:58:34,718 understanding those things so now we 11601 07:58:34,718 --> 07:58:36,398 have understood Dex query views and we 11602 07:58:36,398 --> 07:58:38,200 also understood the basic functions 11603 07:58:38,200 --> 07:58:39,398 available with us what we are going to 11604 07:58:39,398 --> 07:58:41,600 do here is basically uh is there are too 11605 07:58:41,600 --> 07:58:43,558 many visuals in this file so at this 11606 07:58:43,558 --> 07:58:45,280 stage we're going to remove all these 11607 07:58:45,280 --> 07:58:47,440 Pages I'll remove them one by one and 11608 07:58:47,440 --> 07:58:50,120 now we'll start learning Dex with almost 11609 07:58:50,120 --> 07:58:53,680 an empty file 11610 07:59:13,478 --> 07:59:15,360 so what we have done is now we 11611 07:59:15,360 --> 07:59:17,478 completely created the mt5 by deleting 11612 07:59:17,478 --> 07:59:19,558 the page we'll save this file and we 11613 07:59:19,558 --> 07:59:22,080 will also now do a save as and in this 11614 07:59:22,080 --> 07:59:23,440 save as this time we are going to give 11615 07:59:23,440 --> 07:59:25,638 it as a n22 name also but we are going 11616 07:59:25,638 --> 07:59:27,478 to say this is the second file so that 11617 07:59:27,478 --> 07:59:28,958 you can different that's where we 11618 07:59:28,958 --> 07:59:30,958 started learning the data analytics 11619 07:59:30,958 --> 07:59:33,120 expression and interchangeably we might 11620 07:59:33,120 --> 07:59:35,360 use Query view as well as the new major 11621 07:59:35,360 --> 07:59:37,360 functionality here whenever we want to 11622 07:59:37,360 --> 07:59:39,318 use that we would like to learn about 11623 07:59:39,318 --> 07:59:40,878 these conditional statement if and 11624 07:59:40,878 --> 07:59:42,920 switch so while these can be used in 11625 07:59:42,920 --> 07:59:45,040 column and measure so initial example 11626 07:59:45,040 --> 07:59:46,600 what we are going to take is here to 11627 07:59:46,600 --> 07:59:48,318 learn these basics of these statement we 11628 07:59:48,318 --> 07:59:49,878 are going to use them in column but they 11629 07:59:49,878 --> 07:59:51,600 can be used in major when we'll do 11630 07:59:51,600 --> 07:59:53,000 conditional formatting we will come 11631 07:59:53,000 --> 07:59:54,600 across a situation where we would be 11632 07:59:54,600 --> 07:59:56,638 needing the if or the switch state so 11633 07:59:56,638 --> 07:59:58,920 let me showcase you the syntax and then 11634 07:59:58,920 --> 08:00:00,958 we can apply it anywhere so I'm here on 11635 08:00:00,958 --> 08:00:03,120 my table View and inside the table view 11636 08:00:03,120 --> 08:00:05,120 the item table is already opened I would 11637 08:00:05,120 --> 08:00:06,958 like to Showcase you that statement here 11638 08:00:06,958 --> 08:00:08,878 both the statements so if a statement 11639 08:00:08,878 --> 08:00:10,240 and what I would like to do very simple 11640 08:00:10,240 --> 08:00:11,718 thing I have five categories I want 11641 08:00:11,718 --> 08:00:13,638 category one and two in group one 11642 08:00:13,638 --> 08:00:15,760 category three and four in group two and 11643 08:00:15,760 --> 08:00:17,398 the last category in group three that's 11644 08:00:17,398 --> 08:00:18,958 what I want so let's start creating 11645 08:00:18,958 --> 08:00:20,760 group using the if statement in a new 11646 08:00:20,760 --> 08:00:22,718 column so again you clicked on a column 11647 08:00:22,718 --> 08:00:24,040 then you will have a column tool if you 11648 08:00:24,040 --> 08:00:25,398 clicked on the table you will have table 11649 08:00:25,398 --> 08:00:27,600 tool in both you have new column click 11650 08:00:27,600 --> 08:00:30,360 on the new column let me start calling 11651 08:00:30,360 --> 08:00:32,600 this column new column is group 11652 08:00:32,600 --> 08:00:36,318 one and I'll start with if statement if 11653 08:00:36,318 --> 08:00:38,280 what is my condition if category because 11654 08:00:38,280 --> 08:00:40,280 I'm creating a column I can simply use 11655 08:00:40,280 --> 08:00:41,680 the column name belongs to the table 11656 08:00:41,680 --> 08:00:43,360 without using the table name but ideal 11657 08:00:43,360 --> 08:00:45,360 situation is use table name column in 11658 08:00:45,360 --> 08:00:46,718 why I'm using in because I have more 11659 08:00:46,718 --> 08:00:48,600 than one value or I can use R statement 11660 08:00:48,600 --> 08:00:51,240 in what and in we give here in the curly 11661 08:00:51,240 --> 08:00:52,520 brace 11662 08:00:52,520 --> 08:00:56,958 category 1 comma double quotes category 11663 08:00:56,958 --> 08:00:58,718 two close so what what is the if 11664 08:00:58,718 --> 08:01:00,878 statement logical test what is the true 11665 08:01:00,878 --> 08:01:02,440 value and what is the false value now 11666 08:01:02,440 --> 08:01:03,798 because I have already created a True 11667 08:01:03,798 --> 08:01:06,160 Value I need to have another if in the 11668 08:01:06,160 --> 08:01:07,638 false value so I want to call this as 11669 08:01:07,638 --> 08:01:10,478 group one but for remaining values I 11670 08:01:10,478 --> 08:01:13,360 don't have else I again need a if what 11671 08:01:13,360 --> 08:01:15,840 if I need is I need to Loop the if so 11672 08:01:15,840 --> 08:01:18,040 here what I'm going to do is if category 11673 08:01:18,040 --> 08:01:22,040 is three and four then it is group two 11674 08:01:22,040 --> 08:01:24,000 so this is in the else of the first now 11675 08:01:24,000 --> 08:01:25,558 what is the else of the second if I'm 11676 08:01:25,558 --> 08:01:27,558 looping the if inside it so the false 11677 08:01:27,558 --> 08:01:29,520 state when it is false what is that 11678 08:01:29,520 --> 08:01:30,718 group 11679 08:01:30,718 --> 08:01:33,600 three I close this if is close but right 11680 08:01:33,600 --> 08:01:35,520 now let's focus only on this if so we 11681 08:01:35,520 --> 08:01:38,160 have a condition when that is true what 11682 08:01:38,160 --> 08:01:40,000 is the outcome when that is false what 11683 08:01:40,000 --> 08:01:42,798 is the outcome this is one now look at 11684 08:01:42,798 --> 08:01:44,920 the bigger if this is the condition when 11685 08:01:44,920 --> 08:01:46,760 it is true what is the outcome and when 11686 08:01:46,760 --> 08:01:48,878 it is false what is the outcome so true 11687 08:01:48,878 --> 08:01:50,920 false outcomes I'm closing the first St 11688 08:01:50,920 --> 08:01:53,440 enter I found there is some uh spelling 11689 08:01:53,440 --> 08:01:55,160 mistake so let me correct 11690 08:01:55,160 --> 08:01:57,920 those now this is correct Category 2 is 11691 08:01:57,920 --> 08:02:00,040 in group one Category 5 is in group 11692 08:02:00,040 --> 08:02:01,760 three Category 11693 08:02:01,760 --> 08:02:05,240 3 is in group two category 4 is in group 11694 08:02:05,240 --> 08:02:07,958 two Category 3 is in group two category 11695 08:02:07,958 --> 08:02:10,160 1 is in group one Category 2 itself is 11696 08:02:10,160 --> 08:02:12,240 in group one and below that category 5 11697 08:02:12,240 --> 08:02:14,280 is in group three everything is correct 11698 08:02:14,280 --> 08:02:18,360 now we use this group see this was only 11699 08:02:18,360 --> 08:02:20,240 two if what happens if you have so many 11700 08:02:20,240 --> 08:02:22,160 multiple ifs then it will become a real 11701 08:02:22,160 --> 08:02:24,280 big challenge isn't it to Loop such 11702 08:02:24,280 --> 08:02:26,080 things so we need something known as 11703 08:02:26,080 --> 08:02:28,478 case statement we typically know know in 11704 08:02:28,478 --> 08:02:30,760 the SQL very equivalent of that one and 11705 08:02:30,760 --> 08:02:32,080 we have something known as switch here 11706 08:02:32,080 --> 08:02:33,440 switch which is equivalent of case 11707 08:02:33,440 --> 08:02:35,160 statement now switch can be used in two 11708 08:02:35,160 --> 08:02:37,440 maners so first we will learn switch 11709 08:02:37,440 --> 08:02:39,160 where we can give a column and we can 11710 08:02:39,160 --> 08:02:40,638 handle each and every value of that 11711 08:02:40,638 --> 08:02:42,398 column so the first we will learn the 11712 08:02:42,398 --> 08:02:43,558 switch where we can give the switch 11713 08:02:43,558 --> 08:02:46,120 statement with a column or with a major 11714 08:02:46,120 --> 08:02:47,440 now here we have a column so we going to 11715 08:02:47,440 --> 08:02:49,360 give a column and handle each and every 11716 08:02:49,360 --> 08:02:51,398 value and then we will learn the another 11717 08:02:51,398 --> 08:02:52,878 version which is switch true where we 11718 08:02:52,878 --> 08:02:54,280 can give conditions like we have given 11719 08:02:54,280 --> 08:02:55,718 in if so let me start by creating 11720 08:02:55,718 --> 08:02:57,600 another new column and let me call that 11721 08:02:57,600 --> 08:02:59,958 as group two now here what is going to 11722 08:02:59,958 --> 08:03:02,040 happen is I'm will use switch now the 11723 08:03:02,040 --> 08:03:03,520 switch I can have expression expression 11724 08:03:03,520 --> 08:03:06,000 can be true then I have value result 11725 08:03:06,000 --> 08:03:08,120 value result combination but it can also 11726 08:03:08,120 --> 08:03:09,840 be a column or a measure so I'll use 11727 08:03:09,840 --> 08:03:11,638 category as a column now when because I 11728 08:03:11,638 --> 08:03:14,798 used a column or I used a variable which 11729 08:03:14,798 --> 08:03:16,680 is having value not true false I need to 11730 08:03:16,680 --> 08:03:18,280 now specify each and every value so 11731 08:03:18,280 --> 08:03:20,798 category one what is the outcome of that 11732 08:03:20,798 --> 08:03:23,718 group one now in this manner I have to 11733 08:03:23,718 --> 08:03:25,760 now repeat this combination so let me do 11734 08:03:25,760 --> 08:03:27,280 one thing let me move this comma from 11735 08:03:27,280 --> 08:03:28,878 here to here here so that I can easily 11736 08:03:28,878 --> 08:03:30,600 repeat it and let me remove it from here 11737 08:03:30,600 --> 08:03:32,798 so now what I have to do is category 1 11738 08:03:32,798 --> 08:03:35,240 group one Category 2 what should be the 11739 08:03:35,240 --> 08:03:37,878 Category 3 category 4 last one we can 11740 08:03:37,878 --> 08:03:40,240 leave for else which we can call as 11741 08:03:40,240 --> 08:03:42,520 group three now here we need to change 11742 08:03:42,520 --> 08:03:46,840 category two is one Category 3 is two 11743 08:03:46,840 --> 08:03:49,318 group two four is group two again so 11744 08:03:49,318 --> 08:03:52,280 this is switch statement with a column 11745 08:03:52,280 --> 08:03:54,318 or a categorical value or something 11746 08:03:54,318 --> 08:03:56,398 which is having a value not true and 11747 08:03:56,398 --> 08:03:58,798 false so we have one three same groups 11748 08:03:58,798 --> 08:04:00,478 should exist these values should match 11749 08:04:00,478 --> 08:04:01,840 there should not be any difference and 11750 08:04:01,840 --> 08:04:04,398 they are matching you can see so this is 11751 08:04:04,398 --> 08:04:06,280 working now this means if I have 11752 08:04:06,280 --> 08:04:07,520 thousands of value I need to write it 11753 08:04:07,520 --> 08:04:09,000 down thousands of rows but what happens 11754 08:04:09,000 --> 08:04:10,240 if I have a better matter to write it 11755 08:04:10,240 --> 08:04:12,280 down can I use something which where I 11756 08:04:12,280 --> 08:04:13,798 can give the conditions just like we 11757 08:04:13,798 --> 08:04:15,240 have given in the case of if because 11758 08:04:15,240 --> 08:04:16,478 think about numerical value where we 11759 08:04:16,478 --> 08:04:18,558 have a range greater than equal to Z and 11760 08:04:18,558 --> 08:04:21,120 less than5 or less than th000 will I 11761 08:04:21,120 --> 08:04:23,080 write down 1 2,000 values no I don't 11762 08:04:23,080 --> 08:04:25,000 want to I need something which gives me 11763 08:04:25,000 --> 08:04:26,840 the that particular so for that we have 11764 08:04:26,840 --> 08:04:28,200 a switch true version 11765 08:04:28,200 --> 08:04:29,840 and to make it a little bit easier I'm 11766 08:04:29,840 --> 08:04:32,798 going to copy this statement I'll click 11767 08:04:32,798 --> 08:04:34,558 on any column and again create a new 11768 08:04:34,558 --> 08:04:36,878 column we paste this statement I'll call 11769 08:04:36,878 --> 08:04:39,558 this group three and let me move it down 11770 08:04:39,558 --> 08:04:43,000 comment it double slash is for comment 11771 08:04:43,000 --> 08:04:44,760 we'll use these things so we start a new 11772 08:04:44,760 --> 08:04:46,478 Switch this switch is now this time with 11773 08:04:46,478 --> 08:04:49,240 true we call this as switch true now 11774 08:04:49,240 --> 08:04:51,080 what happens when you use switch true 11775 08:04:51,080 --> 08:04:52,958 your expression should return true and 11776 08:04:52,958 --> 08:04:54,878 false and then you have to use the value 11777 08:04:54,878 --> 08:04:56,680 so what is my first statement my first 11778 08:04:56,680 --> 08:04:58,958 statement is category in category 1 and 11779 08:04:58,958 --> 08:05:01,040 two then group one I don't need to use 11780 08:05:01,040 --> 08:05:03,240 if I simply need to use one statement 11781 08:05:03,240 --> 08:05:05,040 which gives me true and false if it is 11782 08:05:05,040 --> 08:05:07,160 true this is going to be my result so 11783 08:05:07,160 --> 08:05:09,000 this statement should return true and 11784 08:05:09,000 --> 08:05:10,398 when this return returns true it's going 11785 08:05:10,398 --> 08:05:11,920 to give me this result if it returns 11786 08:05:11,920 --> 08:05:13,798 false it goes to the next level so here 11787 08:05:13,798 --> 08:05:16,040 I don't need another if looping simply I 11788 08:05:16,040 --> 08:05:18,000 give the next statement and if this is 11789 08:05:18,000 --> 08:05:20,160 true this is going to take the next 11790 08:05:20,160 --> 08:05:22,638 result now after I give all these 11791 08:05:22,638 --> 08:05:25,558 condition finally I can give one 11792 08:05:25,558 --> 08:05:28,440 else and then I can close the switch 11793 08:05:28,440 --> 08:05:30,478 statement so how switch true works you 11794 08:05:30,478 --> 08:05:32,600 give a statement if it is true what is 11795 08:05:32,600 --> 08:05:35,318 my value another statement if it is true 11796 08:05:35,318 --> 08:05:37,160 what is my value and finally you given 11797 08:05:37,160 --> 08:05:40,398 else value True Values True Values 11798 08:05:40,398 --> 08:05:43,200 finally else values so if there are if 11799 08:05:43,200 --> 08:05:46,000 if if if okay please remember in such 11800 08:05:46,000 --> 08:05:47,600 situation the order is also really 11801 08:05:47,600 --> 08:05:49,040 important now what happens sometime when 11802 08:05:49,040 --> 08:05:50,718 you deal with numbers you have a choice 11803 08:05:50,718 --> 08:05:52,280 of writing down between numbers or 11804 08:05:52,280 --> 08:05:53,920 sometime you can simply say so let's say 11805 08:05:53,920 --> 08:05:55,680 I say if it is greater than 80 I can 11806 08:05:55,680 --> 08:05:57,160 give the next condition as greater than 11807 08:05:57,160 --> 08:05:59,360 60 because greater than 80 is already 11808 08:05:59,360 --> 08:06:01,080 covered in the first Cod and then I can 11809 08:06:01,080 --> 08:06:02,920 give greater than 60 in that order so 11810 08:06:02,920 --> 08:06:05,558 first is greater than 80 then 60 but if 11811 08:06:05,558 --> 08:06:08,120 I put first greater than 60 it covers 80 11812 08:06:08,120 --> 08:06:10,000 so it cannot you cannot have greater 80 11813 08:06:10,000 --> 08:06:12,160 after that so the order of these 11814 08:06:12,160 --> 08:06:14,040 conditions is also really important in 11815 08:06:14,040 --> 08:06:16,160 some cases so you to take care how which 11816 08:06:16,160 --> 08:06:17,558 order you are going to give it if I 11817 08:06:17,558 --> 08:06:19,080 would have handled a multiple condition 11818 08:06:19,080 --> 08:06:21,240 and there is some kind of um priority I 11819 08:06:21,240 --> 08:06:22,638 need to give Whenever there is a 11820 08:06:22,638 --> 08:06:24,840 priority which we need to give in switch 11821 08:06:24,840 --> 08:06:27,718 statements it always need to come before 11822 08:06:27,718 --> 08:06:29,318 remember that and based on that you will 11823 08:06:29,318 --> 08:06:30,760 be successfully able to create switch 11824 08:06:30,760 --> 08:06:33,920 statements enter another column created 11825 08:06:33,920 --> 08:06:36,240 and we got the values here same as what 11826 08:06:36,240 --> 08:06:38,840 we have got in the rest 11827 08:06:38,840 --> 08:06:41,520 tool now let's create start creating 11828 08:06:41,520 --> 08:06:43,760 some expression function and what I'm 11829 08:06:43,760 --> 08:06:45,440 going to do I'm going to go to the major 11830 08:06:45,440 --> 08:06:47,798 Table and there I'll create one of them 11831 08:06:47,798 --> 08:06:51,160 and then we will learn more and more 11832 08:06:51,160 --> 08:06:53,000 details on the expression function as we 11833 08:06:53,000 --> 08:06:55,638 go move forward we will try with some 11834 08:06:55,638 --> 08:06:58,680 basic expression functions first and 11835 08:06:58,680 --> 08:07:01,638 then we will go little bit detail into 11836 08:07:01,638 --> 08:07:04,160 this one but as we progress further into 11837 08:07:04,160 --> 08:07:06,520 the deck create more formulas you will 11838 08:07:06,520 --> 08:07:08,680 learn that we can do more powerful 11839 08:07:08,680 --> 08:07:10,318 things so let me create a table visual 11840 08:07:10,318 --> 08:07:12,878 on a new page I'll start with something 11841 08:07:12,878 --> 08:07:14,558 which we discussed initially but we have 11842 08:07:14,558 --> 08:07:16,920 not done if if you remember we have this 11843 08:07:16,920 --> 08:07:19,280 column if you remember we had this 11844 08:07:19,280 --> 08:07:21,478 column gross amount is nothing but 11845 08:07:21,478 --> 08:07:24,080 quantity multip by sales price we also 11846 08:07:24,080 --> 08:07:27,120 created a mejor on that and why this is 11847 08:07:27,120 --> 08:07:29,318 able to give a result got as usual we 11848 08:07:29,318 --> 08:07:31,878 are using sum of gross amount so result 11849 08:07:31,878 --> 08:07:34,360 inan and this is creating an implicit 11850 08:07:34,360 --> 08:07:36,478 measure gross is an explicit some of 11851 08:07:36,478 --> 08:07:39,558 gross implicit and we when we will learn 11852 08:07:39,558 --> 08:07:42,360 the calculation groups later it will not 11853 08:07:42,360 --> 08:07:44,920 allow implicit measur so we'll only need 11854 08:07:44,920 --> 08:07:46,638 to use explicit measure and that's why 11855 08:07:46,638 --> 08:07:48,240 I'm creating explicit measure so at some 11856 08:07:48,240 --> 08:07:49,920 stage you need to use calculation group 11857 08:07:49,920 --> 08:07:51,520 you always have the measures which are 11858 08:07:51,520 --> 08:07:54,318 explicitly soit measure and explicit me 11859 08:07:54,318 --> 08:07:56,280 do I need to create a column first and 11860 08:07:56,280 --> 08:07:58,440 then need to do so this is is not needed 11861 08:07:58,440 --> 08:08:00,680 that is where the expression fun and 11862 08:08:00,680 --> 08:08:02,558 expression function can be used both for 11863 08:08:02,558 --> 08:08:04,440 column and measure we learn how to use 11864 08:08:04,440 --> 08:08:07,240 that in a column also so first of all 11865 08:08:07,240 --> 08:08:09,398 I'm going to create a new major and in 11866 08:08:09,398 --> 08:08:11,160 this major I'll call it 11867 08:08:11,160 --> 08:08:15,160 as Pro level th X now when I put this 11868 08:08:15,160 --> 08:08:17,520 any expression function sum X main x max 11869 08:08:17,520 --> 08:08:20,080 X count X there is nothing for distinct 11870 08:08:20,080 --> 08:08:22,478 count as of now there's no expression 11871 08:08:22,478 --> 08:08:24,478 function for that for these is this is a 11872 08:08:24,478 --> 08:08:26,360 table expression now this table can be 11873 08:08:26,360 --> 08:08:28,478 as simple as table name it could be a 11874 08:08:28,478 --> 08:08:30,318 filter with Filter expression is going 11875 08:08:30,318 --> 08:08:32,080 to give table then there could be 11876 08:08:32,080 --> 08:08:34,200 complex table Expressions which will 11877 08:08:34,200 --> 08:08:38,398 include functions like summarize all all 11878 08:08:38,398 --> 08:08:40,440 selected all these kind of stuff would 11879 08:08:40,440 --> 08:08:42,520 be there and then we have an expression 11880 08:08:42,520 --> 08:08:44,718 the calculation or a major already 11881 08:08:44,718 --> 08:08:46,318 existing Majors could be there or we can 11882 08:08:46,318 --> 08:08:48,040 Define here now when you use Simple 11883 08:08:48,040 --> 08:08:49,840 table it's fine you can use set of 11884 08:08:49,840 --> 08:08:51,558 column and calculation inside that but 11885 08:08:51,558 --> 08:08:53,440 when you we are going to do the complex 11886 08:08:53,440 --> 08:08:55,718 measures when we have the table 11887 08:08:55,718 --> 08:08:57,920 expression itself is in complex then we 11888 08:08:57,920 --> 08:09:00,120 might have to use calculate few places 11889 08:09:00,120 --> 08:09:02,240 inside the sumx itself in the expression 11890 08:09:02,240 --> 08:09:04,558 portion that we will learn little bit 11891 08:09:04,558 --> 08:09:06,398 later so let's start with very simple 11892 08:09:06,398 --> 08:09:08,558 expression function here sales and we 11893 08:09:08,558 --> 08:09:12,000 are going to use sales in the table part 11894 08:09:12,000 --> 08:09:14,080 of the expression and in the expression 11895 08:09:14,080 --> 08:09:19,200 we will say sales price multip by sales 11896 08:09:19,200 --> 08:09:22,200 quantity it means I'm trying to create a 11897 08:09:22,200 --> 08:09:23,520 roow level calculation so what's 11898 08:09:23,520 --> 08:09:26,478 happening here this is my level and as 11899 08:09:26,478 --> 08:09:28,318 I've given the complete table the 11900 08:09:28,318 --> 08:09:30,798 table's row level is my row level so 11901 08:09:30,798 --> 08:09:33,000 this expression has to execute at the 11902 08:09:33,000 --> 08:09:35,360 each row level and and that's going to 11903 08:09:35,360 --> 08:09:37,318 be little bit costlier calculation that 11904 08:09:37,318 --> 08:09:40,120 compared to the simple gross which was 11905 08:09:40,120 --> 08:09:42,240 simply a sum and that is where we might 11906 08:09:42,240 --> 08:09:43,958 have to take a call should I create a 11907 08:09:43,958 --> 08:09:46,360 calculated column and then majure or I 11908 08:09:46,360 --> 08:09:48,000 simply create a mejor it's a really 11909 08:09:48,000 --> 08:09:49,638 small data so it doesn't matter much 11910 08:09:49,638 --> 08:09:50,958 here in this case it's going to give you 11911 08:09:50,958 --> 08:09:52,760 same kind of performance on a larger 11912 08:09:52,760 --> 08:09:54,600 data you might have to take that call 11913 08:09:54,600 --> 08:09:56,240 and if you look at the numbers all these 11914 08:09:56,240 --> 08:09:57,638 three numbers are same the than the 11915 08:09:57,638 --> 08:09:59,120 formatting we have done formatting on 11916 08:09:59,120 --> 08:10:02,840 the gross we can do on the gross row 11917 08:10:02,840 --> 08:10:05,120 also the results are same the ground 11918 08:10:05,120 --> 08:10:06,958 total is also 11919 08:10:06,958 --> 08:10:09,840 same grand total is also same now we 11920 08:10:09,840 --> 08:10:12,558 have used sux same way let's if you 11921 08:10:12,558 --> 08:10:14,958 remember we done Min of gross and Max of 11922 08:10:14,958 --> 08:10:16,080 gross we not don't want to take 11923 08:10:16,080 --> 08:10:19,718 everything so this was gross two was Max 11924 08:10:19,718 --> 08:10:22,760 if I want to achieve the same Max using 11925 08:10:22,760 --> 08:10:25,958 this one can I achieve so I copy gross 11926 08:10:25,958 --> 08:10:29,360 row Max and I can use max X here instead 11927 08:10:29,360 --> 08:10:35,240 of and Max X also having the similar 11928 08:10:35,240 --> 08:10:38,760 syntax and then we have a variant thir 11929 08:10:38,760 --> 08:10:41,760 argument Returns the largest numeric 11930 08:10:41,760 --> 08:10:46,558 value or largest string result from 11931 08:10:46,558 --> 08:10:49,440 evaluating expression from each row of 11932 08:10:49,440 --> 08:10:51,878 the table so you have this values which 11933 08:10:51,878 --> 08:10:54,878 right now I don't want to use simply use 11934 08:10:54,878 --> 08:10:57,318 this and let me add it to visualization 11935 08:10:57,318 --> 08:11:00,040 it's giving the same result same way M 11936 08:11:00,040 --> 08:11:02,440 so this is the simplest way to start 11937 08:11:02,440 --> 08:11:03,958 with the expression fun expression 11938 08:11:03,958 --> 08:11:05,958 function can be used as the col column 11939 08:11:05,958 --> 08:11:08,600 level also but we will that little later 11940 08:11:08,600 --> 08:11:10,478 so now let's create little bit different 11941 08:11:10,478 --> 08:11:13,200 version of expression function so what 11942 08:11:13,200 --> 08:11:15,200 I'm going to do here is now I'll create 11943 08:11:15,200 --> 08:11:16,080 a new 11944 08:11:16,080 --> 08:11:18,680 major and in this new 11945 08:11:18,680 --> 08:11:22,280 mejor I will use a filter I'll say 11946 08:11:22,280 --> 08:11:25,878 brand one 11947 08:11:25,878 --> 08:11:29,520 Ross and we keep on coming back to this 11948 08:11:29,520 --> 08:11:31,160 then I can use filter here filter 11949 08:11:31,160 --> 08:11:35,840 function I'm using filter now 11950 08:11:35,840 --> 08:11:40,160 the let me try to use item here I use 11951 08:11:40,160 --> 08:11:45,478 item I say item brand equals to Brand 11952 08:11:45,478 --> 08:11:49,360 one question close can I use sales here 11953 08:11:49,360 --> 08:11:50,920 I'm not able to use sales the moment I 11954 08:11:50,920 --> 08:11:52,878 use a different 11955 08:11:52,878 --> 08:11:55,798 table other than my table which is item 11956 08:11:55,798 --> 08:11:57,760 I can take anything from item here 11957 08:11:57,760 --> 08:11:59,600 I can I can count the item I can count 11958 08:11:59,600 --> 08:12:02,280 the brand I'm not able to get that so 11959 08:12:02,280 --> 08:12:04,000 what I can use here is I can use the 11960 08:12:04,000 --> 08:12:05,958 gross here major I can use a measure 11961 08:12:05,958 --> 08:12:09,080 here this portion I use a filter which 11962 08:12:09,080 --> 08:12:11,520 does not belongs to the table on which 11963 08:12:11,520 --> 08:12:14,080 I'm using the filter in the table region 11964 08:12:14,080 --> 08:12:16,958 if I in the expression if I use a filter 11965 08:12:16,958 --> 08:12:18,760 which is on a table on which final my 11966 08:12:18,760 --> 08:12:20,240 column is not there I want to do the 11967 08:12:20,240 --> 08:12:21,920 calculation then what I have to do here 11968 08:12:21,920 --> 08:12:24,718 is the major expression can be a major 11969 08:12:24,718 --> 08:12:26,520 Al and as you can see this is giving the 11970 08:12:26,520 --> 08:12:28,440 correct value but there's one more way 11971 08:12:28,440 --> 08:12:30,760 now not for the brand one let's say I 11972 08:12:30,760 --> 08:12:33,000 want to filter something as quantity or 11973 08:12:33,000 --> 08:12:34,718 something on the sales table itself if I 11974 08:12:34,718 --> 08:12:36,478 want to filter something on sales table 11975 08:12:36,478 --> 08:12:39,280 let's say 11976 08:12:41,160 --> 08:12:43,680 gross 11977 08:12:43,680 --> 08:12:45,478 sales 11978 08:12:45,478 --> 08:12:47,040 one 11979 08:12:47,040 --> 08:12:51,280 THX filter I can use 11980 08:12:51,280 --> 08:12:53,240 sales 11981 08:12:53,240 --> 08:12:58,080 item sales sales Item ID equals to one 11982 08:12:58,080 --> 08:12:59,760 close the filter and then I can use 11983 08:12:59,760 --> 08:13:01,600 sales quantity I can sum the sales 11984 08:13:01,600 --> 08:13:03,520 quantity or maybe because we are using 11985 08:13:03,520 --> 08:13:08,040 gross so we for us to know 11986 08:13:08,040 --> 08:13:11,680 price I got brand the item one is 11987 08:13:11,680 --> 08:13:13,200 falling in this category so I'm getting 11988 08:13:13,200 --> 08:13:15,638 this now not only filter I can give this 11989 08:13:15,638 --> 08:13:18,958 single value I can also make do a little 11990 08:13:18,958 --> 08:13:21,120 bit more complex stuff so the filter 11991 08:13:21,120 --> 08:13:22,440 expression could be really complex I can 11992 08:13:22,440 --> 08:13:25,760 have multiple conditions I can use in or 11993 08:13:25,760 --> 08:13:27,958 all those stuff I can do 11994 08:13:27,958 --> 08:13:29,200 we that we'll learn when we are doing 11995 08:13:29,200 --> 08:13:30,958 calculate but one thing I would like to 11996 08:13:30,958 --> 08:13:33,520 tell you before we move ahead with the 11997 08:13:33,520 --> 08:13:36,520 more complex functions is that I can 11998 08:13:36,520 --> 08:13:40,160 here I can say let's say sales 11999 08:13:40,160 --> 08:13:43,160 qy quantity sales 12000 08:13:43,160 --> 08:13:45,798 quantity greater than let me call it as 12001 08:13:45,798 --> 08:13:48,440 gross sales so now it's going to sum 12002 08:13:48,440 --> 08:13:50,398 everything which is greater than two you 12003 08:13:50,398 --> 08:13:52,000 remember we have done some kind of 12004 08:13:52,000 --> 08:13:53,840 visual level filter for that now there's 12005 08:13:53,840 --> 08:13:56,120 no need of visual filter I have actually 12006 08:13:56,120 --> 08:13:58,318 made it part of the EXP function so this 12007 08:13:58,318 --> 08:14:00,440 is very basic start of the expression 12008 08:14:00,440 --> 08:14:03,240 function do and as we progress further 12009 08:14:03,240 --> 08:14:07,200 we will learn more complex which we can 12010 08:14:07,200 --> 08:14:10,240 do so let's Now understand the 12011 08:14:10,240 --> 08:14:13,318 difference between filtering a data in 12012 08:14:13,318 --> 08:14:15,478 calculate with and without filter 12013 08:14:15,478 --> 08:14:17,920 function so let's say we want to give a 12014 08:14:17,920 --> 08:14:21,080 filter expression in the calculate 12015 08:14:21,080 --> 08:14:23,000 without using a filter function how 12016 08:14:23,000 --> 08:14:25,200 would we give let's say calculate net 12017 08:14:25,200 --> 08:14:27,398 item brand equal to Brand one we want to 12018 08:14:27,398 --> 08:14:29,440 use filter function how would we give 12019 08:14:29,440 --> 08:14:32,200 we'll give calculate net filter item 12020 08:14:32,200 --> 08:14:35,080 item brand equal to Brand one now when 12021 08:14:35,080 --> 08:14:38,440 the visual will contain brand into the 12022 08:14:38,440 --> 08:14:40,520 visualization you will see a difference 12023 08:14:40,520 --> 08:14:42,638 you might not see difference when when 12024 08:14:42,638 --> 08:14:45,958 item brand is not in the visual context 12025 08:14:45,958 --> 08:14:47,840 so you may not be able to see that 12026 08:14:47,840 --> 08:14:50,080 difference if we are having the visual 12027 08:14:50,080 --> 08:14:52,840 on category because at that time the 12028 08:14:52,840 --> 08:14:55,878 visual filter context is not filtering 12029 08:14:55,878 --> 08:14:58,318 brand it is filter ing category so you 12030 08:14:58,318 --> 08:15:00,280 might not see the difference so what's 12031 08:15:00,280 --> 08:15:02,520 the basic difference when we do this so 12032 08:15:02,520 --> 08:15:05,000 the calculate function without a filter 12033 08:15:05,000 --> 08:15:07,440 function you directly apply the filter 12034 08:15:07,440 --> 08:15:10,760 to specific column with the calculation 12035 08:15:10,760 --> 08:15:13,000 this modifies the filter context and 12036 08:15:13,000 --> 08:15:15,958 effect how the expression is evaluated 12037 08:15:15,958 --> 08:15:17,920 the calculate without a filter 12038 08:15:17,920 --> 08:15:20,318 expression applies filter directly to 12039 08:15:20,318 --> 08:15:23,360 the column altering the filter context 12040 08:15:23,360 --> 08:15:25,318 and impacting the calculation so it's 12041 08:15:25,318 --> 08:15:27,600 alter the filter context and later on 12042 08:15:27,600 --> 08:15:29,760 you will understand that it is basically 12043 08:15:29,760 --> 08:15:32,360 what it is doing it it is removing the 12044 08:15:32,360 --> 08:15:35,638 item Brands filter context in the visual 12045 08:15:35,638 --> 08:15:37,958 so is basically it is saying like all 12046 08:15:37,958 --> 08:15:40,558 item brand and then brand equal to Brand 12047 08:15:40,558 --> 08:15:44,520 one so your row of the visual which is 12048 08:15:44,520 --> 08:15:48,160 actually showing you brand 1 2 3 4 that 12049 08:15:48,160 --> 08:15:51,520 filter context of visual is not getting 12050 08:15:51,520 --> 08:15:54,120 honored and you are still getting the 12051 08:15:54,120 --> 08:15:56,478 data of brand one but it is going to 12052 08:15:56,478 --> 08:15:59,440 display played against all the brands 12053 08:15:59,440 --> 08:16:01,600 this is what is happening so I'll 12054 08:16:01,600 --> 08:16:04,238 explain you when we go to the power VI 12055 08:16:04,238 --> 08:16:07,718 that in such scenarios what this first 12056 08:16:07,718 --> 08:16:10,238 statement is equivalent of Now using 12057 08:16:10,238 --> 08:16:12,440 filter function with calculators allows 12058 08:16:12,440 --> 08:16:15,558 you to create a filtered table based on 12059 08:16:15,558 --> 08:16:17,520 specific condition so basically the data 12060 08:16:17,520 --> 08:16:20,040 is getting filtered this offers a more 12061 08:16:20,040 --> 08:16:23,000 flexible approach of defining the filter 12062 08:16:23,000 --> 08:16:26,558 context and customizing the calculation 12063 08:16:26,558 --> 08:16:29,280 in interacts with the data calculate 12064 08:16:29,280 --> 08:16:31,478 with a filter expression construct a 12065 08:16:31,478 --> 08:16:34,318 custom filter context by creating a 12066 08:16:34,318 --> 08:16:37,080 filter table based on specific criteria 12067 08:16:37,080 --> 08:16:39,520 and Returns value based on that so 12068 08:16:39,520 --> 08:16:41,878 basically your data itself is getting 12069 08:16:41,878 --> 08:16:44,200 reduced so basically what happens when 12070 08:16:44,200 --> 08:16:46,398 you use this filter function and let say 12071 08:16:46,398 --> 08:16:48,200 you use with the brand because the data 12072 08:16:48,200 --> 08:16:50,000 is already getting filtered you only 12073 08:16:50,000 --> 08:16:51,958 have the brands one data you're going to 12074 08:16:51,958 --> 08:16:54,680 see only brand once row so these are the 12075 08:16:54,680 --> 08:16:57,160 main differences and we have to 12076 08:16:57,160 --> 08:16:59,318 understand that with the example now we 12077 08:16:59,318 --> 08:17:01,798 will understand this calculate functions 12078 08:17:01,798 --> 08:17:05,600 little bit more in detail then we don't 12079 08:17:05,600 --> 08:17:07,478 use filter and simply try to filter the 12080 08:17:07,478 --> 08:17:10,318 data what happens then so we will bring 12081 08:17:10,318 --> 08:17:14,040 in our calculate page from here and in 12082 08:17:14,040 --> 08:17:17,600 this one had major bring this visual 12083 08:17:17,600 --> 08:17:21,958 copy paste now in this one I'm I only 12084 08:17:21,958 --> 08:17:24,440 right now bothered about how do we 12085 08:17:24,440 --> 08:17:27,318 calculated this brand one net that's 12086 08:17:27,318 --> 08:17:30,120 understand brand one net was so brand 12087 08:17:30,120 --> 08:17:31,360 one net was 12088 08:17:31,360 --> 08:17:35,000 calculate net we use a filter so when we 12089 08:17:35,000 --> 08:17:37,718 are simply using the filter function it 12090 08:17:37,718 --> 08:17:39,920 is filtering the brand one's data and 12091 08:17:39,920 --> 08:17:41,718 that is what you are able to see here 12092 08:17:41,718 --> 08:17:43,718 that you're only seeing the row which 12093 08:17:43,718 --> 08:17:45,920 contains the brand word data so the data 12094 08:17:45,920 --> 08:17:48,958 has been filtered to give us only data 12095 08:17:48,958 --> 08:17:52,718 for brand one in this case let's try a 12096 08:17:52,718 --> 08:17:54,318 different 12097 08:17:54,318 --> 08:17:56,958 way actually 12098 08:17:56,958 --> 08:18:00,040 we can also do we don't need a 12099 08:18:00,040 --> 08:18:03,760 filter without using the filter fun item 12100 08:18:03,760 --> 08:18:06,958 brand one it's call it 12101 08:18:06,958 --> 08:18:09,398 BR in the first case what was happening 12102 08:18:09,398 --> 08:18:12,798 when you use the filter the data was 12103 08:18:12,798 --> 08:18:15,360 like second 12104 08:18:15,360 --> 08:18:17,680 case and if I would have removed this 12105 08:18:17,680 --> 08:18:19,760 one and this one it's 12106 08:18:19,760 --> 08:18:22,920 actually only going to give me brand one 12107 08:18:22,920 --> 08:18:25,798 in this case if I bring in it's first is 12108 08:18:25,798 --> 08:18:27,840 going to bring all the brand so here 12109 08:18:27,840 --> 08:18:30,398 brand columns is filtering brand one 12110 08:18:30,398 --> 08:18:32,600 which means the filter is applied to all 12111 08:18:32,600 --> 08:18:34,760 the rows and there is no filter to the 12112 08:18:34,760 --> 08:18:37,558 table filter retains and interacts with 12113 08:18:37,558 --> 08:18:39,718 the initial filter context while filter 12114 08:18:39,718 --> 08:18:42,040 expression directly in calculate ignores 12115 08:18:42,040 --> 08:18:44,200 it it means that filter contexts on the 12116 08:18:44,200 --> 08:18:47,040 brand one overrides the other filters 12117 08:18:47,040 --> 08:18:49,360 which are inside the visual specific 12118 08:18:49,360 --> 08:18:51,878 especially visual rle as well as outside 12119 08:18:51,878 --> 08:18:54,638 the visual let me do one more variation 12120 08:18:54,638 --> 08:18:57,238 of this 12121 08:18:57,238 --> 08:18:58,398 I 12122 08:18:58,398 --> 08:19:02,520 go and put here category instead of 12123 08:19:02,520 --> 08:19:05,520 brand then there's no difference only 12124 08:19:05,520 --> 08:19:09,000 when I view it by brand when it is brand 12125 08:19:09,000 --> 08:19:10,958 uses a 12126 08:19:10,958 --> 08:19:13,638 filter without filter function it's 12127 08:19:13,638 --> 08:19:16,160 giving me the brand one value everywhere 12128 08:19:16,160 --> 08:19:17,558 this is something really useful when you 12129 08:19:17,558 --> 08:19:20,200 want want to use only brand one's value 12130 08:19:20,200 --> 08:19:21,680 or whatever you filter that value you 12131 08:19:21,680 --> 08:19:23,718 want to use across the values understand 12132 08:19:23,718 --> 08:19:25,798 this thing the filter of brand one has 12133 08:19:25,798 --> 08:19:28,680 been applied on the row every row is 12134 08:19:28,680 --> 08:19:30,440 only giving you brand one so what's 12135 08:19:30,440 --> 08:19:32,440 happening in this case is basically the 12136 08:19:32,440 --> 08:19:34,920 brand one is getting filtered and that 12137 08:19:34,920 --> 08:19:37,000 particular value is available now for 12138 08:19:37,000 --> 08:19:39,478 all the rows of the brands so whether it 12139 08:19:39,478 --> 08:19:41,840 is brand 2 brand three Brand 4 all the 12140 08:19:41,840 --> 08:19:44,000 brands are going to show you only brand 12141 08:19:44,000 --> 08:19:46,760 one's value so we have the brand one 12142 08:19:46,760 --> 08:19:49,398 value displayed against all the brands 12143 08:19:49,398 --> 08:19:52,000 because the column has been filtered for 12144 08:19:52,000 --> 08:19:55,318 the brand one now how can we achieve 12145 08:19:55,318 --> 08:19:58,920 otherwise in what it is equivalent of 12146 08:19:58,920 --> 08:20:00,718 can we understand it better to 12147 08:20:00,718 --> 08:20:03,318 understand it better let me tell 12148 08:20:03,318 --> 08:20:06,318 you equalent of which which will help 12149 08:20:06,318 --> 08:20:10,080 you to understand let's go back to this 12150 08:20:10,080 --> 08:20:12,718 one calculate 12151 08:20:12,718 --> 08:20:15,200 again what it is equivalent now we 12152 08:20:15,200 --> 08:20:18,160 already understood the all you 12153 08:20:18,160 --> 08:20:21,160 understand if I use all item brand here 12154 08:20:21,160 --> 08:20:22,360 what would 12155 08:20:22,360 --> 08:20:26,478 happen it would remove the context so 12156 08:20:26,478 --> 08:20:28,398 when when we are using this all item 12157 08:20:28,398 --> 08:20:29,920 brand what it is going to do it's going 12158 08:20:29,920 --> 08:20:32,120 to remove the filter context of item 12159 08:20:32,120 --> 08:20:34,920 brand means if you filter the data for 12160 08:20:34,920 --> 08:20:37,000 brand it will not apply neither it will 12161 08:20:37,000 --> 08:20:40,040 apply the Brand's context in the visual 12162 08:20:40,040 --> 08:20:41,920 so in the visual row if you have a brand 12163 08:20:41,920 --> 08:20:43,680 three brand four brand five that is not 12164 08:20:43,680 --> 08:20:45,478 going to be applied so this has been 12165 08:20:45,478 --> 08:20:47,160 entirely removed so what should I have 12166 08:20:47,160 --> 08:20:49,040 given if I simply say all item brand 12167 08:20:49,040 --> 08:20:50,600 grand total but now what I'm saying 12168 08:20:50,600 --> 08:20:52,558 after that is now let's put the filter 12169 08:20:52,558 --> 08:20:54,440 of item brand equal to Brand one what is 12170 08:20:54,440 --> 08:20:56,600 happening now you have all the item 12171 08:20:56,600 --> 08:20:58,080 Brands out of which you are only 12172 08:20:58,080 --> 08:21:00,318 bringing in brand one now what we going 12173 08:21:00,318 --> 08:21:04,798 to do here is we'll bring this 12174 08:21:06,718 --> 08:21:09,280 in let's bring it inside the 12175 08:21:09,280 --> 08:21:12,080 visual it's same as this one so what's 12176 08:21:12,080 --> 08:21:14,318 happening now that in the visualization 12177 08:21:14,318 --> 08:21:16,440 when you going to see the each row which 12178 08:21:16,440 --> 08:21:18,398 is talking about a brand it is not 12179 08:21:18,398 --> 08:21:20,840 filtering the brand because of all item 12180 08:21:20,840 --> 08:21:23,000 brand but it is getting the value of 12181 08:21:23,000 --> 08:21:24,680 brand one because what we have said all 12182 08:21:24,680 --> 08:21:27,120 item brand then filter the item brand 12183 08:21:27,120 --> 08:21:28,920 equal to Brand one so it is only getting 12184 08:21:28,920 --> 08:21:31,958 the value of brand one for each rows so 12185 08:21:31,958 --> 08:21:34,878 the filter context has been removed and 12186 08:21:34,878 --> 08:21:36,638 especially when it is displayed in the 12187 08:21:36,638 --> 08:21:38,238 visual so especially when the brand 12188 08:21:38,238 --> 08:21:40,680 itself is appearing in the visual the 12189 08:21:40,680 --> 08:21:42,798 visuals filter context of the row is 12190 08:21:42,798 --> 08:21:44,798 also getting removed and based on the 12191 08:21:44,798 --> 08:21:46,440 value which we have filtered here in our 12192 08:21:46,440 --> 08:21:48,280 measure based on that only we are 12193 08:21:48,280 --> 08:21:51,200 getting the value displayed so sometime 12194 08:21:51,200 --> 08:21:53,080 what would happen if you think that I'll 12195 08:21:53,080 --> 08:21:54,478 just simply say item brand equal to 12196 08:21:54,478 --> 08:21:56,638 Brand one or item brand equal to brand 12197 08:21:56,638 --> 08:21:58,760 one brand two brand three or I use the 12198 08:21:58,760 --> 08:22:00,440 or statement it's going to be same as 12199 08:22:00,440 --> 08:22:02,478 what I use in filter that's not it's not 12200 08:22:02,478 --> 08:22:05,280 same so calculate with Filter function 12201 08:22:05,280 --> 08:22:07,558 and without filter function are not same 12202 08:22:07,558 --> 08:22:09,878 remember this when you are doing your 12203 08:22:09,878 --> 08:22:12,000 calculation now we would discuss the 12204 08:22:12,000 --> 08:22:14,398 differences between all and all selected 12205 08:22:14,398 --> 08:22:17,040 let's look at the very simple syntax of 12206 08:22:17,040 --> 08:22:20,120 all and all selected so now this is net 12207 08:22:20,120 --> 08:22:23,398 all means net calculate net and all and 12208 08:22:23,398 --> 08:22:25,558 in all I can specify a column here and 12209 08:22:25,558 --> 08:22:27,280 table here this is without specifying 12210 08:22:27,280 --> 08:22:29,558 anything similarly net all using 12211 08:22:29,558 --> 08:22:31,840 calculate net all selected now what is 12212 08:22:31,840 --> 08:22:33,600 the difference in between these two so 12213 08:22:33,600 --> 08:22:34,958 basically what happens as we have 12214 08:22:34,958 --> 08:22:36,600 learned in the past we have something 12215 08:22:36,600 --> 08:22:38,000 known as filter context now filter 12216 08:22:38,000 --> 08:22:40,120 context may come because of slicers 12217 08:22:40,120 --> 08:22:42,280 filters or maybe because of the visual 12218 08:22:42,280 --> 08:22:44,638 visual row is Alo going to put a filter 12219 08:22:44,638 --> 08:22:47,520 context on the data now all is going to 12220 08:22:47,520 --> 08:22:49,360 remove everything we'll learn this with 12221 08:22:49,360 --> 08:22:51,440 an example all disregards the filter on 12222 08:22:51,440 --> 08:22:53,440 a specific column or a table to retrieve 12223 08:22:53,440 --> 08:22:55,160 unfiltered data for the calculation for 12224 08:22:55,160 --> 08:22:57,360 the every value it's going to that on 12225 08:22:57,360 --> 08:22:59,760 particular column or a table whatever we 12226 08:22:59,760 --> 08:23:01,680 have used there now all selected 12227 08:23:01,680 --> 08:23:03,520 preserve the user selection of filter so 12228 08:23:03,520 --> 08:23:05,318 user selection of filter that you have 12229 08:23:05,318 --> 08:23:07,000 done that filter context would be 12230 08:23:07,000 --> 08:23:09,440 preserved in the specified column while 12231 08:23:09,440 --> 08:23:11,280 removing the filter from the other 12232 08:23:11,280 --> 08:23:13,160 column allowing The Selective adjustment 12233 08:23:13,160 --> 08:23:14,478 so this is going to happen in the all 12234 08:23:14,478 --> 08:23:16,520 selected so what is in short we can say 12235 08:23:16,520 --> 08:23:19,000 that all ignores the filter context 12236 08:23:19,000 --> 08:23:21,040 including the filter and the the visual 12237 08:23:21,040 --> 08:23:23,120 filter row context means the visual row 12238 08:23:23,120 --> 08:23:24,878 which is going to put a filter context 12239 08:23:24,878 --> 08:23:26,600 that is also going to be removed but on 12240 08:23:26,600 --> 08:23:28,160 the other hand all selected is only 12241 08:23:28,160 --> 08:23:30,958 going to ignore the visuals filter 12242 08:23:30,958 --> 08:23:32,840 context which is basically because of 12243 08:23:32,840 --> 08:23:34,718 the row of the visual so let's 12244 08:23:34,718 --> 08:23:36,558 understand with an example let me come 12245 08:23:36,558 --> 08:23:40,478 up with brand net 12246 08:23:40,718 --> 08:23:43,080 visual make it as a table visual 12247 08:23:43,080 --> 08:23:44,398 duplicate 12248 08:23:44,398 --> 08:23:47,840 this create a little smaller visual with 12249 08:23:47,840 --> 08:23:51,080 category I'm adjusting the sizes in the 12250 08:23:51,080 --> 08:23:53,080 second visual I'm clicking on the brand 12251 08:23:53,080 --> 08:23:56,200 arrow and then I'll make it cut I need 12252 08:23:56,200 --> 08:23:57,760 like sers also and I'm going to use 12253 08:23:57,760 --> 08:24:01,840 Simple slicer here I'll use brand 12254 08:24:01,840 --> 08:24:05,200 slicer copy paste let me change this 12255 08:24:05,200 --> 08:24:07,120 with category 12256 08:24:07,120 --> 08:24:11,120 slicer copy paste and state 12257 08:24:11,120 --> 08:24:14,478 slicer I added three slices in this one 12258 08:24:14,478 --> 08:24:16,558 I'll use 12259 08:24:16,558 --> 08:24:19,318 State I have three slices let me convert 12260 08:24:19,318 --> 08:24:22,238 this one into drop 12261 08:24:22,238 --> 08:24:25,040 down instead of net I've taken margin 12262 08:24:25,040 --> 08:24:28,120 here so let me correct that 12263 08:24:28,120 --> 08:24:30,398 clearly here 12264 08:24:30,398 --> 08:24:32,798 net net is the measure we are going to 12265 08:24:32,798 --> 08:24:34,840 use predominantly in all of calculation 12266 08:24:34,840 --> 08:24:36,878 but let me sort it descending here now 12267 08:24:36,878 --> 08:24:39,398 what I want here is I want a grand do I 12268 08:24:39,398 --> 08:24:41,280 get a grand total we'll take help of 12269 08:24:41,280 --> 08:24:43,318 calculator let's create a new major for 12270 08:24:43,318 --> 08:24:45,600 the grand total click can click on any 12271 08:24:45,600 --> 08:24:48,760 of the major and get a Major 12272 08:24:48,760 --> 08:24:53,798 Tool and here we will go ahead and say 12273 08:24:53,798 --> 08:24:58,440 total net brand so we'll say calculate 12274 08:24:58,440 --> 08:25:00,360 this calculate we can use the Expression 12275 08:25:00,360 --> 08:25:02,878 also but we'll start with net now there 12276 08:25:02,878 --> 08:25:05,238 is function all which can help us what 12277 08:25:05,238 --> 08:25:07,600 does all can take all can take all can 12278 08:25:07,600 --> 08:25:09,878 take table or a column name what is 12279 08:25:09,878 --> 08:25:11,878 there in this column is let's why don't 12280 08:25:11,878 --> 08:25:14,558 we start with the column name that we 12281 08:25:14,558 --> 08:25:16,520 use item 12282 08:25:16,520 --> 08:25:19,680 brand I drag it here and here you can 12283 08:25:19,680 --> 08:25:21,638 see I'm seeing grand total let me put it 12284 08:25:21,638 --> 08:25:24,000 to other visual in other visual where 12285 08:25:24,000 --> 08:25:27,280 there is a category I am not seeing that 12286 08:25:27,280 --> 08:25:29,840 grand total on each row why it is 12287 08:25:29,840 --> 08:25:32,160 happening because here in the case of 12288 08:25:32,160 --> 08:25:35,718 brand I am saying all item brand and it 12289 08:25:35,718 --> 08:25:38,398 should remove the filter context of all 12290 08:25:38,398 --> 08:25:41,920 item brand so the filter context of item 12291 08:25:41,920 --> 08:25:45,160 brand has been removed and that is why 12292 08:25:45,160 --> 08:25:48,440 each row of the brand is giving me the 12293 08:25:48,440 --> 08:25:51,120 grand total but we have not told that to 12294 08:25:51,120 --> 08:25:53,638 remove the filter context of category 12295 08:25:53,638 --> 08:25:55,398 and that is why what You observe that 12296 08:25:55,398 --> 08:25:57,558 the filter cont context of the category 12297 08:25:57,558 --> 08:25:59,680 is not getting removed in the visual 12298 08:25:59,680 --> 08:26:03,238 rows so visual rows are still applying 12299 08:26:03,238 --> 08:26:07,080 the filter context of categories but the 12300 08:26:07,080 --> 08:26:09,680 grand total is not getting that filter 12301 08:26:09,680 --> 08:26:11,760 because in the grand total now again we 12302 08:26:11,760 --> 08:26:14,398 are able to ignore the filter context 12303 08:26:14,398 --> 08:26:17,238 now when I select brand 3 now what is 12304 08:26:17,238 --> 08:26:18,958 happening here is you are only able to 12305 08:26:18,958 --> 08:26:21,200 see brand 3's value when you see brand 12306 08:26:21,200 --> 08:26:23,238 3's value you will observe that in case 12307 08:26:23,238 --> 08:26:26,600 of the brand visual we are able to see 12308 08:26:26,600 --> 08:26:28,680 the grand total value external filter or 12309 08:26:28,680 --> 08:26:30,398 the filter which is coming is going to 12310 08:26:30,398 --> 08:26:33,360 reduce the visual to only brand three 12311 08:26:33,360 --> 08:26:37,160 but the context of the filter has been 12312 08:26:37,160 --> 08:26:40,520 removed from the visual Row the context 12313 08:26:40,520 --> 08:26:42,840 of the visual and the context of the 12314 08:26:42,840 --> 08:26:45,878 slicer filter has been removed and we 12315 08:26:45,878 --> 08:26:48,398 are getting ground total both in the row 12316 08:26:48,398 --> 08:26:50,478 where I'm getting brand three as well as 12317 08:26:50,478 --> 08:26:52,440 grand total while in case of the 12318 08:26:52,440 --> 08:26:54,920 category visual we are getting two 12319 08:26:54,920 --> 08:26:56,280 categories now we are getting two 12320 08:26:56,280 --> 08:26:57,760 categories because of the brand 3 again 12321 08:26:57,760 --> 08:26:59,798 because brand 3 contain two categories 12322 08:26:59,798 --> 08:27:01,760 but for those category the category 12323 08:27:01,760 --> 08:27:05,318 filter is still applying so because of 12324 08:27:05,318 --> 08:27:08,000 that category filter I'm getting the 12325 08:27:08,000 --> 08:27:11,160 data for those rows based on the 12326 08:27:11,160 --> 08:27:13,160 category but the grand total again I'm 12327 08:27:13,160 --> 08:27:15,600 able to ignore item brand I'm getting 12328 08:27:15,600 --> 08:27:17,878 the total one now if I add brand two and 12329 08:27:17,878 --> 08:27:20,440 brand three as you can see in the brand 12330 08:27:20,440 --> 08:27:23,920 visual I am getting both the rows I'm 12331 08:27:23,920 --> 08:27:26,280 getting the grand total which is is 12332 08:27:26,280 --> 08:27:29,398 ignoring the visual as well as the 12333 08:27:29,398 --> 08:27:31,878 slicer filter context and as you can see 12334 08:27:31,878 --> 08:27:34,520 in the category visual as expected it is 12335 08:27:34,520 --> 08:27:38,160 able to use the category filter context 12336 08:27:38,160 --> 08:27:40,478 in the visual but the grand total again 12337 08:27:40,478 --> 08:27:43,318 it is ignoring all the filter contexts 12338 08:27:43,318 --> 08:27:44,478 because in the grand total anyway 12339 08:27:44,478 --> 08:27:46,600 category is not available and I am able 12340 08:27:46,600 --> 08:27:49,200 to get grand total so we got total 12341 08:27:49,200 --> 08:27:51,638 Network what happen need both case of 12342 08:27:51,638 --> 08:27:53,920 category and item intr category and item 12343 08:27:53,920 --> 08:27:55,920 belongs to same table is it what I can 12344 08:27:55,920 --> 08:27:58,120 do here is I can go ahead and create 12345 08:27:58,120 --> 08:28:01,558 this majure again and this time instead 12346 08:28:01,558 --> 08:28:04,440 of item brand I simply use item what 12347 08:28:04,440 --> 08:28:07,160 happens I'll call it total net 12348 08:28:07,160 --> 08:28:10,120 item I'll bring in into the first visual 12349 08:28:10,120 --> 08:28:11,958 I'll bring it second visual now in this 12350 08:28:11,958 --> 08:28:14,718 case what you are observing that both 12351 08:28:14,718 --> 08:28:17,478 the visuals are showing the grand total 12352 08:28:17,478 --> 08:28:20,520 even the categories uh filter context 12353 08:28:20,520 --> 08:28:22,680 and the bran filter context from the 12354 08:28:22,680 --> 08:28:25,160 visual has been removed the reason for 12355 08:28:25,160 --> 08:28:27,520 that is basically basically that we are 12356 08:28:27,520 --> 08:28:30,360 using the item table so any which we are 12357 08:28:30,360 --> 08:28:32,440 using from the item table in the visual 12358 08:28:32,440 --> 08:28:34,558 will not be able to force a context 12359 08:28:34,558 --> 08:28:36,558 similarly the slices will not be able to 12360 08:28:36,558 --> 08:28:38,638 force a context and the visuals will not 12361 08:28:38,638 --> 08:28:40,840 be able to force the contact even if I 12362 08:28:40,840 --> 08:28:43,398 remove those brand two and brand three 12363 08:28:43,398 --> 08:28:45,120 now you will see all the values and in 12364 08:28:45,120 --> 08:28:46,520 case of all the values again we are 12365 08:28:46,520 --> 08:28:49,200 going to get the total for all the rows 12366 08:28:49,200 --> 08:28:52,200 because the the filter context of all 12367 08:28:52,200 --> 08:28:54,520 the brand and category has been removed 12368 08:28:54,520 --> 08:28:56,680 from each row and we are getting grand 12369 08:28:56,680 --> 08:28:58,558 total in the each of the visual but what 12370 08:28:58,558 --> 08:29:00,440 happens when I put the state filter 12371 08:29:00,440 --> 08:29:02,120 let's say I put the state filter on 12372 08:29:02,120 --> 08:29:04,280 Alaska now you are seeing that the 12373 08:29:04,280 --> 08:29:07,000 filter context is applied but the visual 12374 08:29:07,000 --> 08:29:09,200 Rose filter is not getting applied we 12375 08:29:09,200 --> 08:29:11,238 are getting the Alaska gr R why it is 12376 08:29:11,238 --> 08:29:13,718 because again the filter was on item for 12377 08:29:13,718 --> 08:29:15,440 the specifically for the second column 12378 08:29:15,440 --> 08:29:18,040 so it is ignoring the items uh filter 12379 08:29:18,040 --> 08:29:19,878 context but it can't ignore the states 12380 08:29:19,878 --> 08:29:21,718 filter context because we have not 12381 08:29:21,718 --> 08:29:24,558 talked about the state into our formula 12382 08:29:24,558 --> 08:29:26,200 so because we have not talked about the 12383 08:29:26,200 --> 08:29:29,360 State into our formula it cannot ignore 12384 08:29:29,360 --> 08:29:31,760 the filter context or the filter of 12385 08:29:31,760 --> 08:29:33,718 State in the visualization so 12386 08:29:33,718 --> 08:29:35,520 visualization will get filtered for the 12387 08:29:35,520 --> 08:29:39,280 state but it will remove the context of 12388 08:29:39,280 --> 08:29:42,000 brand and category because we have said 12389 08:29:42,000 --> 08:29:45,958 all item what can I do here here comes 12390 08:29:45,958 --> 08:29:47,680 my third all 12391 08:29:47,680 --> 08:29:50,360 formula and the third all formula is 12392 08:29:50,360 --> 08:29:52,160 when where we going to remove everything 12393 08:29:52,160 --> 08:29:55,080 now all can have multiple columns if you 12394 08:29:55,080 --> 08:29:57,558 want I can say sales or I don't say 12395 08:29:57,558 --> 08:29:59,920 anything one of the two things I can do 12396 08:29:59,920 --> 08:30:03,040 I'll have this two formulas in one go so 12397 08:30:03,040 --> 08:30:07,798 I'll say total net Els one major I can 12398 08:30:07,798 --> 08:30:10,160 have one more version of this one 12399 08:30:10,160 --> 08:30:12,680 without this one now because all the 12400 08:30:12,680 --> 08:30:14,398 dimensions are getting applied at the S 12401 08:30:14,398 --> 08:30:16,398 so most of the time these may end up 12402 08:30:16,398 --> 08:30:18,878 giving us the same result I'll bring in 12403 08:30:18,878 --> 08:30:21,600 net and let's not add it to the second 12404 08:30:21,600 --> 08:30:23,958 one there's no need of that now as you 12405 08:30:23,958 --> 08:30:26,558 can see when we have bought this total 12406 08:30:26,558 --> 08:30:28,638 net and total net sales where we have 12407 08:30:28,638 --> 08:30:31,200 used the sales table it is also start 12408 08:30:31,200 --> 08:30:34,040 ignoring the states context why it has 12409 08:30:34,040 --> 08:30:36,398 been started ignoring the states filter 12410 08:30:36,398 --> 08:30:38,160 context because the all has been applied 12411 08:30:38,160 --> 08:30:39,718 on the sales table so anything passing 12412 08:30:39,718 --> 08:30:42,360 to the sales table is getting ignored if 12413 08:30:42,360 --> 08:30:43,878 you apply the filters now if you apply 12414 08:30:43,878 --> 08:30:45,520 let's say brand filter your values will 12415 08:30:45,520 --> 08:30:49,120 reduce because this is going to reduce 12416 08:30:49,120 --> 08:30:51,958 the values in the filter but the rows 12417 08:30:51,958 --> 08:30:55,318 which are still remaining for that the 12418 08:30:55,318 --> 08:30:58,958 filter context the way all is removing 12419 08:30:58,958 --> 08:31:01,398 will still apply same way if you filter 12420 08:31:01,398 --> 08:31:04,280 category again you will get the data of 12421 08:31:04,280 --> 08:31:06,680 brand and category based on your 12422 08:31:06,680 --> 08:31:09,360 filter only that much categories or that 12423 08:31:09,360 --> 08:31:11,958 much brand but yes in the for the 12424 08:31:11,958 --> 08:31:14,680 individual row of the visual the filter 12425 08:31:14,680 --> 08:31:16,600 context would be removed complete filter 12426 08:31:16,600 --> 08:31:19,238 context would be removed but what does 12427 08:31:19,238 --> 08:31:21,398 it gives us it gives us the gr to this 12428 08:31:21,398 --> 08:31:24,440 is all for us let's learn about all 12429 08:31:24,440 --> 08:31:26,238 select for that what I'm going to do is 12430 08:31:26,238 --> 08:31:28,200 I'm going to duplicate it want to keep 12431 08:31:28,200 --> 08:31:30,478 everything as is removing the 12432 08:31:30,478 --> 08:31:33,520 filter and let me do one thing I'll keep 12433 08:31:33,520 --> 08:31:35,360 only this one because rest of the 12434 08:31:35,360 --> 08:31:38,000 behavior in case of all selected is 12435 08:31:38,000 --> 08:31:39,558 going to be same what's the major 12436 08:31:39,558 --> 08:31:42,160 difference between all and all let's 12437 08:31:42,160 --> 08:31:45,360 start now let me create this measure 12438 08:31:45,360 --> 08:31:46,878 with the all selected so what's the 12439 08:31:46,878 --> 08:31:48,360 difference between this all and all 12440 08:31:48,360 --> 08:31:50,680 selected so in case of all selected what 12441 08:31:50,680 --> 08:31:53,080 would happen here is basically all 12442 08:31:53,080 --> 08:31:55,280 selected is going to honor the filters 12443 08:31:55,280 --> 08:31:56,440 which we apply 12444 08:31:56,440 --> 08:31:59,478 but it is not going to honor the visuals 12445 08:31:59,478 --> 08:32:01,760 rows which are putting the visual filter 12446 08:32:01,760 --> 08:32:03,520 the visuals rows filter contexts would 12447 08:32:03,520 --> 08:32:06,680 be ignored but the filters filter cannot 12448 08:32:06,680 --> 08:32:08,680 be ignored so let's say if I put filter 12449 08:32:08,680 --> 08:32:12,120 on brand 12 you can see that the all 12450 08:32:12,120 --> 08:32:13,958 selected is showing me only the brand 12451 08:32:13,958 --> 08:32:16,238 12's value it is not showing me overall 12452 08:32:16,238 --> 08:32:19,000 value why because it is going to honor 12453 08:32:19,000 --> 08:32:21,280 the external filters or the slicer which 12454 08:32:21,280 --> 08:32:23,718 has been applied in within that boundary 12455 08:32:23,718 --> 08:32:25,638 it will show me the total so if I select 12456 08:32:25,638 --> 08:32:29,200 let's say brand 12 13 and 2 now it is 12457 08:32:29,200 --> 08:32:32,000 showing me total of these three for all 12458 08:32:32,000 --> 08:32:35,840 selected one so it is ignoring the 12459 08:32:35,840 --> 08:32:38,920 visual row filter context now let me 12460 08:32:38,920 --> 08:32:40,718 modify the other visual the same job 12461 08:32:40,718 --> 08:32:42,600 what I'm going to do is I'm to change 12462 08:32:42,600 --> 08:32:45,080 this instead of category I'll bring in 12463 08:32:45,080 --> 08:32:48,760 state here from the geography 12464 08:32:48,840 --> 08:32:51,638 Dimension let me go ahead and remove 12465 08:32:51,638 --> 08:32:54,160 these two and bring in 12466 08:32:54,160 --> 08:32:56,798 total a little bit more WID for this 12467 08:32:56,798 --> 08:32:58,280 what do you see so what you are doing 12468 08:32:58,280 --> 08:33:00,878 here is you are saying the ignore the 12469 08:33:00,878 --> 08:33:04,280 filter context of item not of state and 12470 08:33:04,280 --> 08:33:07,080 because you are not ignoring the filter 12471 08:33:07,080 --> 08:33:10,478 context of State the state values are 12472 08:33:10,478 --> 08:33:13,398 still filtering your visual rows and you 12473 08:33:13,398 --> 08:33:15,798 are getting the state level data I do do 12474 08:33:15,798 --> 08:33:17,920 this we go and ignore the context of 12475 08:33:17,920 --> 08:33:21,440 Sals table itself Sal item n it's all 12476 08:33:21,440 --> 08:33:23,238 selected I'm saying ignore all the 12477 08:33:23,238 --> 08:33:25,160 context which is coming to this this 12478 08:33:25,160 --> 08:33:26,958 I'll add this the first table I'll add 12479 08:33:26,958 --> 08:33:30,000 this table and we require a lot of 12480 08:33:30,000 --> 08:33:32,478 overlap now when I use the sales now 12481 08:33:32,478 --> 08:33:35,160 what happened the all selected applies 12482 08:33:35,160 --> 08:33:38,680 on these sales all selected now is going 12483 08:33:38,680 --> 08:33:40,638 to ignore anything which is coming to 12484 08:33:40,638 --> 08:33:42,920 the sales table and because of that now 12485 08:33:42,920 --> 08:33:45,600 you are going to get the total which is 12486 08:33:45,600 --> 08:33:48,040 of my selected values and it will be 12487 08:33:48,040 --> 08:33:50,200 displayed for each rows now in case you 12488 08:33:50,200 --> 08:33:52,238 apply a state filter it will honor that 12489 08:33:52,238 --> 08:33:54,798 also now so whatever filters you apply 12490 08:33:54,798 --> 08:33:57,200 that will be honored 12491 08:33:57,200 --> 08:33:59,520 irrespective of what dimension they are 12492 08:33:59,520 --> 08:34:01,798 coming so your grand total will depend 12493 08:34:01,798 --> 08:34:03,958 on the filter selection in case of all 12494 08:34:03,958 --> 08:34:06,520 selected and based on that particular 12495 08:34:06,520 --> 08:34:08,920 set of filters it is going to give you 12496 08:34:08,920 --> 08:34:10,520 the grand total you can have an all 12497 08:34:10,520 --> 08:34:13,520 selected without the sales table this 12498 08:34:13,520 --> 08:34:15,600 case we to give almost similar kind of 12499 08:34:15,600 --> 08:34:18,520 results because the sales table is the 12500 08:34:18,520 --> 08:34:20,280 base table where we applied or the base 12501 08:34:20,280 --> 08:34:22,520 back table where we applied so now you 12502 08:34:22,520 --> 08:34:24,280 have understood the difference between 12503 08:34:24,280 --> 08:34:27,238 all and all selected so there would be 12504 08:34:27,238 --> 08:34:29,520 times when we are going to use these 12505 08:34:29,520 --> 08:34:31,360 especially in time intelligence let's 12506 08:34:31,360 --> 08:34:33,120 say I want to create a PRI previous 12507 08:34:33,120 --> 08:34:35,160 period you might not select a previous 12508 08:34:35,160 --> 08:34:37,478 period because previous period might not 12509 08:34:37,478 --> 08:34:40,000 be in my filter criteria so let's say I 12510 08:34:40,000 --> 08:34:41,680 selected current one now when I selected 12511 08:34:41,680 --> 08:34:43,238 current month I need previous month I 12512 08:34:43,238 --> 08:34:46,120 need to ignore date tables filter 12513 08:34:46,120 --> 08:34:49,360 context completely and then bring in the 12514 08:34:49,360 --> 08:34:50,920 previous month's value so in that case 12515 08:34:50,920 --> 08:34:52,798 I'm going to use all but if the values 12516 08:34:52,798 --> 08:34:55,000 are available within my filter context 12517 08:34:55,000 --> 08:34:56,878 and I want to play around then in that 12518 08:34:56,878 --> 08:34:58,360 case what I can use I can use all 12519 08:34:58,360 --> 08:35:00,520 selected so let's say I want percentage 12520 08:35:00,520 --> 08:35:03,760 of total irrespective of my selection 12521 08:35:03,760 --> 08:35:05,840 then I'll use all or I need percentage 12522 08:35:05,840 --> 08:35:07,638 of total based on my selection I'll use 12523 08:35:07,638 --> 08:35:10,840 all selected I use I want my rank rank 12524 08:35:10,840 --> 08:35:13,958 based on the original values without 12525 08:35:13,958 --> 08:35:15,958 considering any filter I'll use all I 12526 08:35:15,958 --> 08:35:18,200 want rank based on my selection I'll use 12527 08:35:18,200 --> 08:35:19,920 all selected so these are the some 12528 08:35:19,920 --> 08:35:22,238 places where you will use all or all 12529 08:35:22,238 --> 08:35:25,000 selected depending on what exactly you 12530 08:35:25,000 --> 08:35:28,360 wanted to a a let's learn about remove 12531 08:35:28,360 --> 08:35:31,360 filters let me bring in state and city 12532 08:35:31,360 --> 08:35:34,398 here create it as a table Visual and add 12533 08:35:34,398 --> 08:35:38,318 a net Also let's have a filter MD space 12534 08:35:38,318 --> 08:35:40,878 click on filter we'll get it here 12535 08:35:40,878 --> 08:35:43,200 control C control V second dimension 12536 08:35:43,200 --> 08:35:45,080 take one from geography Dimension that 12537 08:35:45,080 --> 08:35:47,398 is State take one from item Dimension 12538 08:35:47,398 --> 08:35:49,360 that is brand we got our visual we have 12539 08:35:49,360 --> 08:35:51,600 certain values and let's make it as a 12540 08:35:51,600 --> 08:35:55,600 matrix in The Matrix visual build visual 12541 08:35:55,600 --> 08:35:59,000 we have the to now create a major net 12542 08:35:59,000 --> 08:36:04,760 all what would happen calculate net 12543 08:36:04,760 --> 08:36:08,520 all geography City 12544 08:36:08,520 --> 08:36:12,000 it we bring it here what we seeing that 12545 08:36:12,000 --> 08:36:14,318 look at this the state filter is not 12546 08:36:14,318 --> 08:36:16,760 getting ignored only the city filter is 12547 08:36:16,760 --> 08:36:20,040 getting if you apply some filter that 12548 08:36:20,040 --> 08:36:21,478 filter is 12549 08:36:21,478 --> 08:36:23,558 obeyed and if you're applying some 12550 08:36:23,558 --> 08:36:26,000 filter which is on state that is getting 12551 08:36:26,000 --> 08:36:28,360 obeyed because we said all of City not 12552 08:36:28,360 --> 08:36:29,920 of state or not of 12553 08:36:29,920 --> 08:36:33,000 geography take this and now we use 12554 08:36:33,000 --> 08:36:34,080 remove 12555 08:36:34,080 --> 08:36:36,440 fi this is something which we are also 12556 08:36:36,440 --> 08:36:39,920 trying which is also known as 12557 08:36:39,920 --> 08:36:43,398 exclude exclude level of details so we 12558 08:36:43,398 --> 08:36:45,600 are trying here is excluding the level 12559 08:36:45,600 --> 08:36:47,878 of details so the city is present but we 12560 08:36:47,878 --> 08:36:50,440 are trying to ignore that but we got the 12561 08:36:50,440 --> 08:36:52,680 remove filters now what is the syntax of 12562 08:36:52,680 --> 08:36:54,920 remove filters remove filters table or 12563 08:36:54,920 --> 08:36:56,718 column name so in this case we want to 12564 08:36:56,718 --> 08:36:58,360 use column names you can have more than 12565 08:36:58,360 --> 08:37:00,718 one column names we can have geography 12566 08:37:00,718 --> 08:37:05,000 City here to ignore this one 12567 08:37:05,000 --> 08:37:07,478 remove so same results we are getting 12568 08:37:07,478 --> 08:37:09,478 it's almost same I filter brand one the 12569 08:37:09,478 --> 08:37:11,280 results are same the brand one is going 12570 08:37:11,280 --> 08:37:14,920 to pass the remove cities here again the 12571 08:37:14,920 --> 08:37:16,718 state filter is going to pass to check 12572 08:37:16,718 --> 08:37:18,920 the cities filter what happens when we 12573 08:37:18,920 --> 08:37:21,200 apply cities it's almost behaving like 12574 08:37:21,200 --> 08:37:24,000 your all filter removing the contract 12575 08:37:24,000 --> 08:37:25,760 it's easy to remember that okay I'm 12576 08:37:25,760 --> 08:37:28,080 removing something now let's bring in 12577 08:37:28,080 --> 08:37:29,160 city as a 12578 08:37:29,160 --> 08:37:33,558 filter drag City here create it as a 12579 08:37:33,558 --> 08:37:36,760 slicer as you can see this is net number 12580 08:37:36,760 --> 08:37:39,318 is smaller and the all number and remove 12581 08:37:39,318 --> 08:37:41,478 filter number is bigger basically the 12582 08:37:41,478 --> 08:37:46,040 filter context of C 12583 08:37:59,398 --> 08:38:01,080 and we can have multiple columns as per 12584 08:38:01,080 --> 08:38:02,958 requirement so we can in the remove 12585 08:38:02,958 --> 08:38:05,000 filters we can use multiple columns if I 12586 08:38:05,000 --> 08:38:06,878 want to add State here I can add State 12587 08:38:06,878 --> 08:38:10,520 they are all from same table this is 12588 08:38:10,520 --> 08:38:13,680 what we call exclude level of detail 12589 08:38:13,680 --> 08:38:15,600 which can be achieved using remove 12590 08:38:15,600 --> 08:38:18,760 filters let's learn about all except all 12591 08:38:18,760 --> 08:38:20,920 except is something like you know means 12592 08:38:20,920 --> 08:38:23,238 ignore everything other 12593 08:38:23,238 --> 08:38:27,318 than all except so I copied a visual 12594 08:38:27,318 --> 08:38:30,200 from the other one and let me remove few 12595 08:38:30,200 --> 08:38:32,920 of things 12596 08:38:33,080 --> 08:38:36,840 here let me bring in 12597 08:38:37,040 --> 08:38:40,760 net so let's say I want to remove all 12598 08:38:40,760 --> 08:38:43,638 the filter other than it let's bring in 12599 08:38:43,638 --> 08:38:46,360 the filters 12600 08:38:50,000 --> 08:38:54,360 also I name the pages I want to create a 12601 08:38:54,360 --> 08:38:56,440 major which should IGN know everything 12602 08:38:56,440 --> 08:39:00,680 other than geography St we create a 12603 08:39:00,680 --> 08:39:03,798 major net 12604 08:39:03,798 --> 08:39:06,840 eight let say calculate calculate can 12605 08:39:06,840 --> 08:39:08,398 take various things now you might have 12606 08:39:08,398 --> 08:39:12,280 learned till now all except what does 12607 08:39:12,280 --> 08:39:15,160 all accept does it takes a table and the 12608 08:39:15,160 --> 08:39:17,238 column name table and the set of column 12609 08:39:17,238 --> 08:39:19,878 names so table name could be the table 12610 08:39:19,878 --> 08:39:21,160 for which you are going to give the 12611 08:39:21,160 --> 08:39:23,360 column and the beauty of this function 12612 08:39:23,360 --> 08:39:25,798 is it can take a fact table and related 12613 08:39:25,798 --> 08:39:27,638 Dimension the one side tables can also 12614 08:39:27,638 --> 08:39:30,718 be but we will start with geography 12615 08:39:30,718 --> 08:39:33,798 table is compulsory here and then we'll 12616 08:39:33,798 --> 08:39:37,160 see geography 8 what we are seeing you 12617 08:39:37,160 --> 08:39:40,280 only obey geography 8 no other filter 12618 08:39:40,280 --> 08:39:44,840 now we bring in here and as you can see 12619 08:39:44,840 --> 08:39:48,920 that it ignored the city filter in the 12620 08:39:48,920 --> 08:39:51,280 visualization okay very good it ignored 12621 08:39:51,280 --> 08:39:52,718 the CD 12622 08:39:52,718 --> 08:39:55,318 filter but what happens if I put a 12623 08:39:55,318 --> 08:39:56,638 filter of 12624 08:39:56,638 --> 08:39:59,398 brand filter of the brand coming from 12625 08:39:59,398 --> 08:40:02,200 other dimension is not getting ignored 12626 08:40:02,200 --> 08:40:05,000 what happens if I selectricity 12627 08:40:05,000 --> 08:40:09,440 here this filter is applied but the 12628 08:40:09,440 --> 08:40:11,760 state is getting filtered because of 12629 08:40:11,760 --> 08:40:14,200 this city the Texas is the only data 12630 08:40:14,200 --> 08:40:16,920 which I'm getting at the row level and 12631 08:40:16,920 --> 08:40:20,318 there it's ignoring the city filters but 12632 08:40:20,318 --> 08:40:22,920 overall it is Texas only and we know 12633 08:40:22,920 --> 08:40:25,000 anytime we apply a filter but in the 12634 08:40:25,000 --> 08:40:27,440 ground totally ignoring everything so 12635 08:40:27,440 --> 08:40:29,600 whenever we apply a filter or what we 12636 08:40:29,600 --> 08:40:32,080 can call external filter or slicer it is 12637 08:40:32,080 --> 08:40:34,280 going to reduce the value in the 12638 08:40:34,280 --> 08:40:37,520 visualization means your categories your 12639 08:40:37,520 --> 08:40:40,638 cities your city state category brand 12640 08:40:40,638 --> 08:40:42,638 subcategory are going to reduce on based 12641 08:40:42,638 --> 08:40:45,958 on what you have selected but now within 12642 08:40:45,958 --> 08:40:48,760 that selection further we can ignore the 12643 08:40:48,760 --> 08:40:50,840 filters even the filter which we have 12644 08:40:50,840 --> 08:40:53,280 applied externally its value can be 12645 08:40:53,280 --> 08:40:55,080 ignored while showing the value like I 12646 08:40:55,080 --> 08:40:56,958 will still be able to show grand total 12647 08:40:56,958 --> 08:40:58,878 or a total of a state or a total of a 12648 08:40:58,878 --> 08:41:01,840 city ignoring that filter but I can't go 12649 08:41:01,840 --> 08:41:04,238 beyond the set of values which is 12650 08:41:04,238 --> 08:41:06,718 defined by my slicer or filter you to 12651 08:41:06,718 --> 08:41:08,080 remember 12652 08:41:08,080 --> 08:41:11,360 that that's also fine so what does it 12653 08:41:11,360 --> 08:41:13,200 means that the filter from the other 12654 08:41:13,200 --> 08:41:16,360 dimension continue to pour in further 12655 08:41:16,360 --> 08:41:18,878 let's duplicate 12656 08:41:18,878 --> 08:41:22,558 this and here in this visual now me open 12657 08:41:22,558 --> 08:41:24,718 the build instead of C I want to bring 12658 08:41:24,718 --> 08:41:26,440 in I 12659 08:41:26,440 --> 08:41:29,638 category I want let's say use 12660 08:41:29,638 --> 08:41:33,318 category what do we see here there is no 12661 08:41:33,318 --> 08:41:36,638 total all except state it is still 12662 08:41:36,638 --> 08:41:38,120 considering the category it's not 12663 08:41:38,120 --> 08:41:40,878 removing that it's not removing category 12664 08:41:40,878 --> 08:41:43,638 so it's not the state total it State 12665 08:41:43,638 --> 08:41:46,200 total is only coming at the state level 12666 08:41:46,200 --> 08:41:49,238 in this visual but in this visual if you 12667 08:41:49,238 --> 08:41:53,160 would have the state total was coming in 12668 08:41:53,160 --> 08:41:55,318 why is it so because what we have said 12669 08:41:55,318 --> 08:41:58,280 here is that in the geography table you 12670 08:41:58,280 --> 08:42:01,798 only obey a filter now that's what it 12671 08:42:01,798 --> 08:42:04,318 was doing it worked for geography 12672 08:42:04,318 --> 08:42:06,398 Dimension state and city but it is not 12673 08:42:06,398 --> 08:42:08,760 working for the item Dimensions category 12674 08:42:08,760 --> 08:42:11,080 because our formula was only talking 12675 08:42:11,080 --> 08:42:13,000 about geography Dimension and geography 12676 08:42:13,000 --> 08:42:15,200 Dimension State there was no mention of 12677 08:42:15,200 --> 08:42:17,238 item category Dimension and and that is 12678 08:42:17,238 --> 08:42:19,238 why when the major we have used there 12679 08:42:19,238 --> 08:42:22,840 with the category is not able to ignore 12680 08:42:22,840 --> 08:42:25,520 the category filter in our visual ual 12681 08:42:25,520 --> 08:42:27,478 and is still giving the category level 12682 08:42:27,478 --> 08:42:30,120 data filtered based on the 12683 08:42:30,120 --> 08:42:33,318 categories proc is not how do I do that 12684 08:42:33,318 --> 08:42:35,760 and that is something which is famously 12685 08:42:35,760 --> 08:42:38,878 also known as fixed level of detail I 12686 08:42:38,878 --> 08:42:42,000 want fix it I only want that one how do 12687 08:42:42,000 --> 08:42:46,478 I achieve fixed level of detail in this 12688 08:42:46,478 --> 08:42:49,680 major let's go ahead and try that out 12689 08:42:49,680 --> 08:42:52,238 copy this and new 12690 08:42:52,238 --> 08:42:55,520 major and can all accept give me me a 12691 08:42:55,520 --> 08:42:59,718 fixed level of details I use sales here 12692 08:42:59,718 --> 08:43:02,440 sales and after that geography State and 12693 08:43:02,440 --> 08:43:04,440 that's what I told you also that all 12694 08:43:04,440 --> 08:43:06,638 except function you can give the central 12695 08:43:06,638 --> 08:43:08,760 fact table and then you can use one side 12696 08:43:08,760 --> 08:43:10,520 of the table in the 12697 08:43:10,520 --> 08:43:13,520 relationship you'll call it all 12698 08:43:13,520 --> 08:43:17,798 accept net all 12699 08:43:17,878 --> 08:43:20,920 accept let me bring in 12700 08:43:20,920 --> 08:43:23,600 this no 12701 08:43:23,600 --> 08:43:25,680 differences but when when I put the 12702 08:43:25,680 --> 08:43:29,638 brand filter you notice one thing that 12703 08:43:29,638 --> 08:43:32,840 my state totals are now ignoring the 12704 08:43:32,840 --> 08:43:35,600 brand filter filters are no more 12705 08:43:35,600 --> 08:43:38,878 considered look at this 12706 08:43:38,878 --> 08:43:43,398 total when I put the filter the 12707 08:43:43,398 --> 08:43:47,520 same let me go to the second 12708 08:43:47,520 --> 08:43:52,680 page let me put this here net all 12709 08:43:52,680 --> 08:43:58,280 Exel and now you see that this 12710 08:43:58,280 --> 08:44:01,958 portal is same and it ignored the 12711 08:44:01,958 --> 08:44:03,160 category 12712 08:44:03,160 --> 08:44:07,238 also it is like fixed level of details 12713 08:44:07,238 --> 08:44:10,680 so level of detail has been fixed at the 12714 08:44:10,680 --> 08:44:13,000 state level it's giving me the state 12715 08:44:13,000 --> 08:44:15,398 value and definitely state is in the 12716 08:44:15,398 --> 08:44:17,558 context that's really 12717 08:44:17,558 --> 08:44:20,520 important so in this manner all except 12718 08:44:20,520 --> 08:44:24,318 can help us ignoring filter now now you 12719 08:44:24,318 --> 08:44:26,558 can have multiple of them like in this 12720 08:44:26,558 --> 08:44:29,238 case if I simply would have wanted 12721 08:44:29,238 --> 08:44:32,718 category and it I could have done 12722 08:44:32,718 --> 08:44:37,000 that because it uses a central table 12723 08:44:37,000 --> 08:44:39,798 it's not like all or all selected where 12724 08:44:39,798 --> 08:44:43,080 you can't have from the related table 12725 08:44:43,080 --> 08:44:44,318 here you can 12726 08:44:44,318 --> 08:44:48,280 have item 12727 08:44:52,080 --> 08:44:54,638 category and you can get the result same 12728 08:44:54,638 --> 08:44:55,840 as this 12729 08:44:55,840 --> 08:44:58,398 one 12730 08:44:58,398 --> 08:45:01,080 why because it's going to obey the two 12731 08:45:01,080 --> 08:45:03,440 filters it's going to obey State and 12732 08:45:03,440 --> 08:45:05,680 category now it's obing the two filters 12733 08:45:05,680 --> 08:45:06,760 State and 12734 08:45:06,760 --> 08:45:09,120 category this is going to remain same 12735 08:45:09,120 --> 08:45:11,798 now let me filter the 12736 08:45:11,798 --> 08:45:15,280 brand now when you look at here this 12737 08:45:15,280 --> 08:45:18,920 total is different from this 12738 08:45:19,080 --> 08:45:24,120 one this is 90 these all are 90 these 12739 08:45:24,120 --> 08:45:27,000 are the my category 1 and category 4 12740 08:45:27,000 --> 08:45:29,520 total so remember 24,000 and 12741 08:45:29,520 --> 08:45:33,160 16,000 let me go back and remove the 12742 08:45:33,160 --> 08:45:35,558 filter of brand one you are having this 12743 08:45:35,558 --> 08:45:37,840 is category 1 12744 08:45:37,840 --> 08:45:42,638 24,000 category 16,000 these values 12745 08:45:42,638 --> 08:45:46,600 remain intact when I any filter now if I 12746 08:45:46,600 --> 08:45:49,160 add one more child 12747 08:45:49,160 --> 08:45:52,040 here this visual I'll go ahead and add 12748 08:45:52,040 --> 08:45:53,360 let's 12749 08:45:53,360 --> 08:45:56,280 say it 12750 08:45:56,280 --> 08:46:00,040 and explore that the next 12751 08:46:00,040 --> 08:46:04,638 level what you will see here is look at 12752 08:46:04,638 --> 08:46:08,478 this this category a total is still 12753 08:46:08,478 --> 08:46:12,000 intact because of all except category 12754 08:46:12,000 --> 08:46:13,000 state 12755 08:46:13,000 --> 08:46:15,958 level is it at the state 12756 08:46:15,958 --> 08:46:20,160 level city is getting ignore this is how 12757 08:46:20,160 --> 08:46:23,760 you use all accept so let's Now 12758 08:46:23,760 --> 08:46:25,638 understand the difference between 12759 08:46:25,638 --> 08:46:28,840 filtering a data in calculate with and 12760 08:46:28,840 --> 08:46:31,398 without filter function so let's say we 12761 08:46:31,398 --> 08:46:34,360 want to give a filter expression in the 12762 08:46:34,360 --> 08:46:36,600 calculate without using a filter 12763 08:46:36,600 --> 08:46:38,318 function how would we give let's say 12764 08:46:38,318 --> 08:46:40,760 calculate net item brand equal to Brand 12765 08:46:40,760 --> 08:46:42,718 one when we want to use filter function 12766 08:46:42,718 --> 08:46:45,238 how would we give we give calculate net 12767 08:46:45,238 --> 08:46:48,238 filter item item brand equal to Brand 12768 08:46:48,238 --> 08:46:50,878 one now when the visual will contain 12769 08:46:50,878 --> 08:46:53,760 brand into the visualization you will 12770 08:46:53,760 --> 08:46:55,638 see a difference you might not see 12771 08:46:55,638 --> 08:46:57,958 difference when when item brand is not 12772 08:46:57,958 --> 08:47:01,238 in the visual context so you may not be 12773 08:47:01,238 --> 08:47:03,160 able to see that difference if we are 12774 08:47:03,160 --> 08:47:06,200 having the visual on category because at 12775 08:47:06,200 --> 08:47:09,040 that time the visual filter context is 12776 08:47:09,040 --> 08:47:11,558 not filtering brand it is filtering 12777 08:47:11,558 --> 08:47:13,398 category so you might not see the 12778 08:47:13,398 --> 08:47:15,120 difference so what is the basic 12779 08:47:15,120 --> 08:47:16,920 difference when we do this so the 12780 08:47:16,920 --> 08:47:19,200 calculate function without a filter 12781 08:47:19,200 --> 08:47:21,638 function you directly apply the filter 12782 08:47:21,638 --> 08:47:24,600 to specific column with the calculation 12783 08:47:24,600 --> 08:47:26,920 this this modifies the filter context 12784 08:47:26,920 --> 08:47:29,440 and effect how the expression is 12785 08:47:29,440 --> 08:47:32,120 evaluated the calculate without a filter 12786 08:47:32,120 --> 08:47:34,520 expression applies filter directly to 12787 08:47:34,520 --> 08:47:37,558 the column altering the filter context 12788 08:47:37,558 --> 08:47:39,520 and impacting the calculation so it's 12789 08:47:39,520 --> 08:47:41,798 alter the filter context and later on 12790 08:47:41,798 --> 08:47:43,958 you will understand that it is basically 12791 08:47:43,958 --> 08:47:46,520 what it is doing it it is removing the 12792 08:47:46,520 --> 08:47:49,840 item brand filter context in the visual 12793 08:47:49,840 --> 08:47:52,558 so basically it is saying like all item 12794 08:47:52,558 --> 08:47:55,440 brand and then brand equal to brand so 12795 08:47:55,440 --> 08:47:59,040 your row of the visual which is actually 12796 08:47:59,040 --> 08:48:02,958 showing you brand 1 2 3 4 that filter 12797 08:48:02,958 --> 08:48:06,440 context of visual is not getting honored 12798 08:48:06,440 --> 08:48:08,718 and you are still getting the data of 12799 08:48:08,718 --> 08:48:11,878 brand one but it is going displayed 12800 08:48:11,878 --> 08:48:14,238 against all the brands this is what is 12801 08:48:14,238 --> 08:48:17,040 happening so I'll explain you when we go 12802 08:48:17,040 --> 08:48:20,398 to the power VI that in such scenarios 12803 08:48:20,398 --> 08:48:23,160 what this first statement is equivalent 12804 08:48:23,160 --> 08:48:25,558 of Now using filter function with 12805 08:48:25,558 --> 08:48:27,878 calculators allows you to create a 12806 08:48:27,878 --> 08:48:30,318 filtered table based on specific 12807 08:48:30,318 --> 08:48:31,840 condition so basically the data is 12808 08:48:31,840 --> 08:48:34,200 getting filtered this offers a more 12809 08:48:34,200 --> 08:48:37,160 flexible approach of defining the filter 12810 08:48:37,160 --> 08:48:41,120 context and 12811 08:49:13,878 --> 08:49:16,280 now we will understand this calculate 12812 08:49:16,280 --> 08:49:19,840 functions little bit more in detail then 12813 08:49:19,840 --> 08:49:22,080 we don't use filter and simply try to 12814 08:49:22,080 --> 08:49:24,878 filter the data what happens then so 12815 08:49:24,878 --> 08:49:28,238 we'll bring in our calculate page from 12816 08:49:28,238 --> 08:49:31,840 here and in this one add measure bring 12817 08:49:31,840 --> 08:49:36,318 this visual copy paste now in this one I 12818 08:49:36,318 --> 08:49:39,558 only right now bother about how do we 12819 08:49:39,558 --> 08:49:42,440 calculated this one one net let's 12820 08:49:42,440 --> 08:49:45,398 understood brand one net was brand one 12821 08:49:45,398 --> 08:49:46,478 net was 12822 08:49:46,478 --> 08:49:50,080 calculate n we use a filter so when we 12823 08:49:50,080 --> 08:49:52,798 are simply using the filter function it 12824 08:49:52,798 --> 08:49:55,200 is filtering the brand bu data and that 12825 08:49:55,200 --> 08:49:56,958 is what you are able to see here that 12826 08:49:56,958 --> 08:49:58,840 you're only seeing the row which 12827 08:49:58,840 --> 08:50:01,040 contains the brand word data so the data 12828 08:50:01,040 --> 08:50:04,080 has been filtered to give us only data 12829 08:50:04,080 --> 08:50:07,840 for brand one in this case let's try a 12830 08:50:07,840 --> 08:50:09,398 different 12831 08:50:09,398 --> 08:50:11,080 way 12832 08:50:11,080 --> 08:50:15,160 actually we can also do we don't need a 12833 08:50:15,160 --> 08:50:18,878 filter without using the filter fun item 12834 08:50:18,878 --> 08:50:22,120 brand one let's call it 12835 08:50:22,120 --> 08:50:24,200 brand in the first case what was 12836 08:50:24,200 --> 08:50:26,080 happening when you use the filter the 12837 08:50:26,080 --> 08:50:27,958 data 12838 08:50:27,958 --> 08:50:30,520 was second 12839 08:50:30,520 --> 08:50:32,840 case and if I would have removed this 12840 08:50:32,840 --> 08:50:34,798 one and this one 12841 08:50:34,798 --> 08:50:38,040 actually only going to give me brand one 12842 08:50:38,040 --> 08:50:40,920 in this case if I bring in it's first is 12843 08:50:40,920 --> 08:50:43,000 going to bring all the brands so here 12844 08:50:43,000 --> 08:50:45,558 brand columns is filtering brand one 12845 08:50:45,558 --> 08:50:47,718 which means the filter is applied to all 12846 08:50:47,718 --> 08:50:49,878 the rows and there is no filter to the 12847 08:50:49,878 --> 08:50:52,680 table filter retains and interacts with 12848 08:50:52,680 --> 08:50:54,840 the initial filter context while filter 12849 08:50:54,840 --> 08:50:57,120 expression directly in calculate ignores 12850 08:50:57,120 --> 08:50:59,318 it it means that filter context on the 12851 08:50:59,318 --> 08:51:02,120 brand one overwrites the other filters 12852 08:51:02,120 --> 08:51:04,440 which are inside the visual specific 12853 08:51:04,440 --> 08:51:06,558 especially visual rule as well as 12854 08:51:06,558 --> 08:51:09,318 outside the visual let me do one more 12855 08:51:09,318 --> 08:51:11,360 variation of 12856 08:51:11,360 --> 08:51:13,478 this I 12857 08:51:13,478 --> 08:51:17,680 go and put here category instead of 12858 08:51:17,680 --> 08:51:20,638 brand then there's no difference only 12859 08:51:20,638 --> 08:51:24,080 when I view it by brand when it is brand 12860 08:51:24,080 --> 08:51:26,080 uses the 12861 08:51:26,080 --> 08:51:28,760 filter without filter function it's 12862 08:51:28,760 --> 08:51:31,238 giving me the brand one value everywhere 12863 08:51:31,238 --> 08:51:32,680 this is something really useful when you 12864 08:51:32,680 --> 08:51:35,080 want to want to use only brand one's 12865 08:51:35,080 --> 08:51:36,718 value whatever you filtered that value 12866 08:51:36,718 --> 08:51:38,638 you want to use across the values 12867 08:51:38,638 --> 08:51:40,318 understand this thing the filter of 12868 08:51:40,318 --> 08:51:43,200 brand one has been applied on the row 12869 08:51:43,200 --> 08:51:45,120 every row is only giving you brand one 12870 08:51:45,120 --> 08:51:46,718 so what's happening in this case is 12871 08:51:46,718 --> 08:51:48,680 basically the brand one is getting 12872 08:51:48,680 --> 08:51:51,160 filtered and that particular value is 12873 08:51:51,160 --> 08:51:53,600 available now for all the rows of the 12874 08:51:53,600 --> 08:51:55,520 brands whether it is brand two brand 12875 08:51:55,520 --> 08:51:57,478 three brand four all the brands are 12876 08:51:57,478 --> 08:51:59,920 going to show you only brand one's value 12877 08:51:59,920 --> 08:52:02,958 so we have the brand one value displayed 12878 08:52:02,958 --> 08:52:05,398 against all the brands because the 12879 08:52:05,398 --> 08:52:07,600 column has been filtered for the brand 12880 08:52:07,600 --> 08:52:11,920 one now how can we achieve otherwise and 12881 08:52:11,920 --> 08:52:14,600 what it is equivalent of and we 12882 08:52:14,600 --> 08:52:16,120 understand it better to understand it 12883 08:52:16,120 --> 08:52:18,440 better let me tell 12884 08:52:18,440 --> 08:52:21,398 you equivalent of which which will help 12885 08:52:21,398 --> 08:52:24,080 you to understand let's go back to this 12886 08:52:24,080 --> 08:52:26,160 one 12887 08:52:26,160 --> 08:52:27,840 calculate 12888 08:52:27,840 --> 08:52:30,638 again what it is equalent now we already 12889 08:52:30,638 --> 08:52:33,718 understood the all you understand if I 12890 08:52:33,718 --> 08:52:37,478 use all item brand here what would 12891 08:52:37,478 --> 08:52:41,638 happen it will remove the context so 12892 08:52:41,638 --> 08:52:43,840 when we are using this all item brand 12893 08:52:43,840 --> 08:52:45,160 what it is going to do it's going to 12894 08:52:45,160 --> 08:52:47,638 remove the filter context of item brand 12895 08:52:47,638 --> 08:52:50,478 means if you filter the data for a brand 12896 08:52:50,478 --> 08:52:52,558 it will not apply neither it will apply 12897 08:52:52,558 --> 08:52:55,398 the Brand's context in the visual so in 12898 08:52:55,398 --> 08:52:57,360 the visual row if you have a brand three 12899 08:52:57,360 --> 08:52:58,958 brand four brand five that is not going 12900 08:52:58,958 --> 08:53:00,958 to be applied so this has been entirely 12901 08:53:00,958 --> 08:53:02,798 removed so what should I have given if I 12902 08:53:02,798 --> 08:53:04,798 simply say all item brand grand total 12903 08:53:04,798 --> 08:53:06,478 but now what I'm seeing after that is 12904 08:53:06,478 --> 08:53:08,558 now let's put the filter of item brand 12905 08:53:08,558 --> 08:53:10,638 equal to Brand one what is happening now 12906 08:53:10,638 --> 08:53:12,520 you have all the item Brands out of 12907 08:53:12,520 --> 08:53:14,878 which you are only bringing in brand one 12908 08:53:14,878 --> 08:53:16,680 now what you're going to do here is 12909 08:53:16,680 --> 08:53:19,958 you'll bring this 12910 08:53:21,878 --> 08:53:25,398 in let's bring it inside the vi 12911 08:53:25,398 --> 08:53:27,238 it's same as this one so what's 12912 08:53:27,238 --> 08:53:29,478 happening now that in the visualization 12913 08:53:29,478 --> 08:53:31,600 when you going to see the each row which 12914 08:53:31,600 --> 08:53:33,558 is talking about a brand it is not 12915 08:53:33,558 --> 08:53:36,000 filtering the brand because of all item 12916 08:53:36,000 --> 08:53:38,120 brand but it is getting the value of 12917 08:53:38,120 --> 08:53:40,160 brand one because but said all item 12918 08:53:40,160 --> 08:53:42,478 brand then filter the item brand equal 12919 08:53:42,478 --> 08:53:44,280 to Brand one so it is only getting the 12920 08:53:44,280 --> 08:53:47,360 value of brand one for each row so the 12921 08:53:47,360 --> 08:53:50,000 filter context has been removed and 12922 08:53:50,000 --> 08:53:51,760 especially when it is displayed in the 12923 08:53:51,760 --> 08:53:53,638 visual so especially when the brand self 12924 08:53:53,638 --> 08:53:56,280 is appearing in the visual the visual 12925 08:53:56,280 --> 08:53:58,160 filter context of the row is also 12926 08:53:58,160 --> 08:54:00,238 getting removed and based on the value 12927 08:54:00,238 --> 08:54:01,558 which we have filtered here in our 12928 08:54:01,558 --> 08:54:03,398 measure based on that only we are 12929 08:54:03,398 --> 08:54:06,318 getting the value displayed so sometime 12930 08:54:06,318 --> 08:54:08,200 what would happen if you think that I'll 12931 08:54:08,200 --> 08:54:09,600 just simply say item brand equal to 12932 08:54:09,600 --> 08:54:11,638 Brand one or item brand equal to Brand 12933 08:54:11,638 --> 08:54:13,878 one brand two brand three or I use the 12934 08:54:13,878 --> 08:54:15,558 or statement it's going to be same as 12935 08:54:15,558 --> 08:54:17,558 what I use in filter that's not it's not 12936 08:54:17,558 --> 08:54:20,398 same so calculate with Filter function 12937 08:54:20,398 --> 08:54:22,638 and without filter function are not same 12938 08:54:22,638 --> 08:54:25,000 remember this when you are the 12939 08:54:25,000 --> 08:54:27,238 calculation now let's learn earlier 12940 08:54:27,238 --> 08:54:31,120 function this function will allows us to 12941 08:54:31,120 --> 08:54:33,360 get the current row value so as you have 12942 08:54:33,360 --> 08:54:34,878 learned when we create a calculated 12943 08:54:34,878 --> 08:54:36,680 column and we do let's say sum of that 12944 08:54:36,680 --> 08:54:38,478 column it gives us the total of that 12945 08:54:38,478 --> 08:54:40,798 column but we always don't need it so 12946 08:54:40,798 --> 08:54:43,000 definitely we require filters now while 12947 08:54:43,000 --> 08:54:45,200 doing that filter we need the current 12948 08:54:45,200 --> 08:54:47,798 row value let's say I want to get the 12949 08:54:47,798 --> 08:54:50,280 customer first sales days or purchase 12950 08:54:50,280 --> 08:54:52,238 date for the same customer I wanted to 12951 08:54:52,238 --> 08:54:54,040 find out in the entire table what is my 12952 08:54:54,040 --> 08:54:56,280 first purchase dat so there earlier can 12953 08:54:56,280 --> 08:54:57,920 help us to check that out what we I'm 12954 08:54:57,920 --> 08:54:59,520 going to do is I'm going to go to table 12955 08:54:59,520 --> 08:55:01,958 View and inside table view I'll go to 12956 08:55:01,958 --> 08:55:03,958 the sales table by clicking on that now 12957 08:55:03,958 --> 08:55:05,600 I able to see my sales table now in the 12958 08:55:05,600 --> 08:55:07,558 past I have shown you when I done sux 12959 08:55:07,558 --> 08:55:09,718 sales gross amount it has given me the 12960 08:55:09,718 --> 08:55:11,638 total amount what I would like to do is 12961 08:55:11,638 --> 08:55:13,280 I would like to create a new column now 12962 08:55:13,280 --> 08:55:14,920 which I can do by clicking on column 12963 08:55:14,920 --> 08:55:16,360 tool because I already clicked on a 12964 08:55:16,360 --> 08:55:18,318 column so column tool is visible and 12965 08:55:18,318 --> 08:55:20,318 inside column tool I have a new 12966 08:55:20,318 --> 08:55:23,040 column let me make F little bit larger 12967 08:55:23,040 --> 08:55:25,600 control and middle Mouse button scroll 12968 08:55:25,600 --> 08:55:27,520 now the column which I want to create is 12969 08:55:27,520 --> 08:55:30,120 the first sales date basically what does 12970 08:55:30,120 --> 08:55:32,478 need I have a sales date in this row and 12971 08:55:32,478 --> 08:55:34,120 I have a customer ID but for that 12972 08:55:34,120 --> 08:55:35,878 particular customer ID this might not be 12973 08:55:35,878 --> 08:55:37,638 the first sales date I want to find out 12974 08:55:37,638 --> 08:55:39,318 what is my first sales date for that 12975 08:55:39,318 --> 08:55:41,160 customer ID there are couple of options 12976 08:55:41,160 --> 08:55:43,718 I can use but I would like to use Minx I 12977 08:55:43,718 --> 08:55:45,680 want to find out the minimum date filter 12978 08:55:45,680 --> 08:55:47,558 I want to filter the table how do I want 12979 08:55:47,558 --> 08:55:49,398 to filter this table sales table I want 12980 08:55:49,398 --> 08:55:51,200 to filter now complete sales table is 12981 08:55:51,200 --> 08:55:53,120 available as you know the this is a 12982 08:55:53,120 --> 08:55:54,840 column at the moment I say sales table 12983 08:55:54,840 --> 08:55:56,520 complete sales table available what I 12984 08:55:56,520 --> 08:55:58,398 want is I I want to look say sales 12985 08:55:58,398 --> 08:56:01,878 customer ID equals to what customer ID 12986 08:56:01,878 --> 08:56:04,040 so one way is I take the customer ID 12987 08:56:04,040 --> 08:56:05,840 value in a variable if I don't want to 12988 08:56:05,840 --> 08:56:08,120 do that then there I can use function 12989 08:56:08,120 --> 08:56:10,840 earlier if I use earlier I can again 12990 08:56:10,840 --> 08:56:14,318 give sales customer ID this means 12991 08:56:14,318 --> 08:56:18,558 current row customer ID the customer see 12992 08:56:18,558 --> 08:56:19,760 understand in the filter when I say 12993 08:56:19,760 --> 08:56:21,318 sales table the complete sales table is 12994 08:56:21,318 --> 08:56:23,040 available when I say sales table 12995 08:56:23,040 --> 08:56:25,680 customer ID complete tables customer ID 12996 08:56:25,680 --> 08:56:28,200 is available now I'm saying current rows 12997 08:56:28,200 --> 08:56:30,000 customer ID so I got the current rows 12998 08:56:30,000 --> 08:56:32,200 customer ID now the table only contains 12999 08:56:32,200 --> 08:56:34,718 the current Rose customer ID and from 13000 08:56:34,718 --> 08:56:37,318 that I want the sales tables sales date 13001 08:56:37,318 --> 08:56:39,160 minimum sales date so for this 13002 08:56:39,160 --> 08:56:41,200 particular customer the table is getting 13003 08:56:41,200 --> 08:56:43,318 only that portion of the table which is 13004 08:56:43,318 --> 08:56:44,798 equivalent of the current customer you 13005 08:56:44,798 --> 08:56:46,760 can see that particular partition of the 13006 08:56:46,760 --> 08:56:49,360 table I'm getting now and then I'll get 13007 08:56:49,360 --> 08:56:51,798 my minimum sales date from that 13008 08:56:51,798 --> 08:56:53,520 particular partition so let's do one 13009 08:56:53,520 --> 08:56:56,238 thing let's see is this date equal to 13010 08:56:56,238 --> 08:56:58,080 the current date because if this date is 13011 08:56:58,080 --> 08:56:59,440 equal then this might be the first 13012 08:56:59,440 --> 08:57:01,398 record we are in search where this is 13013 08:57:01,398 --> 08:57:03,280 not equal so this is not equal so we can 13014 08:57:03,280 --> 08:57:05,798 filter on this customer so the customer 13015 08:57:05,798 --> 08:57:10,238 ID 2954 we can filter on 2954 so number 13016 08:57:10,238 --> 08:57:13,520 filter equals 13017 08:57:13,520 --> 08:57:16,238 2954 and there are so many records and 13018 08:57:16,238 --> 08:57:19,000 if I now go ahead and sort a sending 13019 08:57:19,000 --> 08:57:21,520 I've done a sort ascending here or this 13020 08:57:21,520 --> 08:57:23,600 particular customer ID now let's look is 13021 08:57:23,600 --> 08:57:26,318 this date available for all these yes 13022 08:57:26,318 --> 08:57:29,440 the 1119 date is available for all the 13023 08:57:29,440 --> 08:57:32,840 rows that's the first now with earlier 13024 08:57:32,840 --> 08:57:35,000 you can have little more complex 13025 08:57:35,000 --> 08:57:37,000 calculations also it's not that you can 13026 08:57:37,000 --> 08:57:38,920 have the simpler calculation like this 13027 08:57:38,920 --> 08:57:40,718 let me clear out and take one more 13028 08:57:40,718 --> 08:57:42,398 example let's say you want to find out 13029 08:57:42,398 --> 08:57:44,318 what is my last sales date you know for 13030 08:57:44,318 --> 08:57:46,040 this customer this is my first sales 13031 08:57:46,040 --> 08:57:48,440 date but I may like to know what is my 13032 08:57:48,440 --> 08:57:51,440 last sales date isn't it what is my last 13033 08:57:51,440 --> 08:57:53,200 sales date now the last sales date 13034 08:57:53,200 --> 08:57:54,520 becomes a little bit more more tricky 13035 08:57:54,520 --> 08:57:56,238 and we need to add more conditions how 13036 08:57:56,238 --> 08:57:57,958 so let's add a new column and try to 13037 08:57:57,958 --> 08:57:59,478 understand what is my last Sal date now 13038 08:57:59,478 --> 08:58:01,558 look at this column first so in this 13039 08:58:01,558 --> 08:58:02,600 case what is happening when I'm 13040 08:58:02,600 --> 08:58:04,080 comparing customer to customer and I'm 13041 08:58:04,080 --> 08:58:05,878 taking minimum then I'll get the first 13042 08:58:05,878 --> 08:58:08,000 date next thing what I need to do I also 13043 08:58:08,000 --> 08:58:09,638 need to consider the sales date I want 13044 08:58:09,638 --> 08:58:11,520 to know that sales date which is before 13045 08:58:11,520 --> 08:58:13,600 current row sales date means sales date 13046 08:58:13,600 --> 08:58:15,958 is strictly less than the earlier sales 13047 08:58:15,958 --> 08:58:18,398 date and then I need maximum out of it 13048 08:58:18,398 --> 08:58:20,878 so customer is equal to the customer Sal 13049 08:58:20,878 --> 08:58:22,878 state is less than the sales state in 13050 08:58:22,878 --> 08:58:24,958 the current row and what ever data you 13051 08:58:24,958 --> 08:58:26,878 are getting from that data get the max 13052 08:58:26,878 --> 08:58:28,878 dat so let's copy this formula so we'll 13053 08:58:28,878 --> 08:58:31,920 get last sales or last purchase not the 13054 08:58:31,920 --> 08:58:35,558 overall last last is date and here let's 13055 08:58:35,558 --> 08:58:37,638 start writing down again so explain you 13056 08:58:37,638 --> 08:58:40,080 once more Maxx remember this thumb rule 13057 08:58:40,080 --> 08:58:42,238 when you go into the future typically 13058 08:58:42,238 --> 08:58:44,000 you will require the minimum so somebody 13059 08:58:44,000 --> 08:58:46,200 says what is my next sales date the 13060 08:58:46,200 --> 08:58:48,238 typical formula would have been Minx 13061 08:58:48,238 --> 08:58:50,558 greater than this 13062 08:58:50,558 --> 08:58:54,318 date I need Max but less than current in 13063 08:58:54,318 --> 08:58:56,398 that case it would be I need the last 13064 08:58:56,398 --> 08:58:58,360 date the last date is less than the 13065 08:58:58,360 --> 08:59:00,680 current row date but it is Max out of 13066 08:59:00,680 --> 08:59:04,360 all those so filter sales sales customer 13067 08:59:04,360 --> 08:59:07,878 ID equals to earlier customer ID means 13068 08:59:07,878 --> 08:59:11,798 current rows customer ID and sales 13069 08:59:11,798 --> 08:59:16,040 date is strictly less than earlier sales 13070 08:59:16,040 --> 08:59:19,200 Sal date now I got a partition where all 13071 08:59:19,200 --> 08:59:21,558 the dates are less than the current date 13072 08:59:21,558 --> 08:59:23,638 for the same customer now let's get the 13073 08:59:23,638 --> 08:59:26,680 max out out of those sales date so now 13074 08:59:26,680 --> 08:59:29,280 we got our formula for the current 13075 08:59:29,280 --> 08:59:31,798 customer the sales date Which is less 13076 08:59:31,798 --> 08:59:34,478 than the sales date at the max out of 13077 08:59:34,478 --> 08:59:37,558 that enter you can press enter or click 13078 08:59:37,558 --> 08:59:39,318 click on this button commit button you 13079 08:59:39,318 --> 08:59:41,238 will get this answer for few of the rows 13080 08:59:41,238 --> 08:59:42,920 you might not get it but for few rows 13081 08:59:42,920 --> 08:59:45,958 you'll get it so let's filter 2954 once 13082 08:59:45,958 --> 08:59:49,638 more equals 13083 08:59:49,638 --> 08:59:52,478 2954 now sort ascending on the date 13084 08:59:52,478 --> 08:59:55,120 already sort ascending now row was 19 so 13085 08:59:55,120 --> 08:59:57,000 we are getting 19 here and let me do one 13086 08:59:57,000 --> 08:59:59,360 thing we make it little bit smaller so 13087 08:59:59,360 --> 09:00:02,000 let me compare the dates now well so 13088 09:00:02,000 --> 09:00:07,440 1912 to 17 1912 to 17 Trail by one row 13089 09:00:07,440 --> 09:00:09,360 what we have done here basically we got 13090 09:00:09,360 --> 09:00:12,160 the data which is trailed by one row 13091 09:00:12,160 --> 09:00:14,160 here this is basically previous date or 13092 09:00:14,160 --> 09:00:15,920 the last in this manner you can use 13093 09:00:15,920 --> 09:00:18,520 earlier now there's one alternative 13094 09:00:18,520 --> 09:00:20,478 which I should also tell you that in 13095 09:00:20,478 --> 09:00:22,040 case sometime what would happen I'll 13096 09:00:22,040 --> 09:00:24,160 tell you when you want to use earlier 13097 09:00:24,160 --> 09:00:26,200 function you cannot use any calculation 13098 09:00:26,200 --> 09:00:28,718 here like I want last month or something 13099 09:00:28,718 --> 09:00:31,200 we need a EO mon function so on earlier 13100 09:00:31,200 --> 09:00:32,878 function doesn't allow you to do that in 13101 09:00:32,878 --> 09:00:34,600 such scenario I'll give you the 13102 09:00:34,600 --> 09:00:36,798 alternate of this one only by clicking 13103 09:00:36,798 --> 09:00:39,080 on again new column I'll tell you how 13104 09:00:39,080 --> 09:00:41,360 can you achieve this and in that case 13105 09:00:41,360 --> 09:00:42,798 I'm going to create a variable so 13106 09:00:42,798 --> 09:00:45,280 variable uncore cust means customer 13107 09:00:45,280 --> 09:00:47,958 equals to no need of earlier here simply 13108 09:00:47,958 --> 09:00:50,280 give customer ID and then you can give 13109 09:00:50,280 --> 09:00:53,638 underscore C and remember that whenever 13110 09:00:53,638 --> 09:00:55,840 I create a variable I used underscore so 13111 09:00:55,840 --> 09:00:58,120 that I can differentiate then you give 13112 09:00:58,120 --> 09:00:59,840 variable where where means what happens 13113 09:00:59,840 --> 09:01:02,080 in a formula or in a measure when we use 13114 09:01:02,080 --> 09:01:04,160 variable so this is the syntax let me 13115 09:01:04,160 --> 09:01:07,000 explain you so you used variable then 13116 09:01:07,000 --> 09:01:08,798 you use the variable name and then you 13117 09:01:08,798 --> 09:01:10,520 use the column in case of column it 13118 09:01:10,520 --> 09:01:12,360 should be column in case of major it 13119 09:01:12,360 --> 09:01:14,160 should be a major or it can be a filter 13120 09:01:14,160 --> 09:01:16,318 condition we will learn when we do now 13121 09:01:16,318 --> 09:01:18,280 second one is I want date so simply I 13122 09:01:18,280 --> 09:01:20,558 current rows date and then I can use 13123 09:01:20,558 --> 09:01:23,680 that as underscore sales say date now 13124 09:01:23,680 --> 09:01:25,360 when when you use variable you need to 13125 09:01:25,360 --> 09:01:27,360 write down a return statement so how my 13126 09:01:27,360 --> 09:01:31,080 formula is the name equals to variable 13127 09:01:31,080 --> 09:01:33,520 variable name and the variable formula 13128 09:01:33,520 --> 09:01:35,680 written statement and the formula after 13129 09:01:35,680 --> 09:01:37,360 the written statement again I don't need 13130 09:01:37,360 --> 09:01:40,360 earlier here I need underscore date now 13131 09:01:40,360 --> 09:01:42,600 Dex is not case sensitive so whatever 13132 09:01:42,600 --> 09:01:44,878 you small or uppercase combination you 13133 09:01:44,878 --> 09:01:46,600 can mix and match and do it and let me 13134 09:01:46,600 --> 09:01:49,360 press enter uh we have the same name we 13135 09:01:49,360 --> 09:01:51,318 it will not let me rename this as a date 13136 09:01:51,318 --> 09:01:53,398 one press enter or you can press the 13137 09:01:53,398 --> 09:01:55,238 commit button now we got the same 13138 09:01:55,238 --> 09:01:57,920 results that we had previously there is 13139 09:01:57,920 --> 09:02:00,080 no difference in this one you can use 13140 09:02:00,080 --> 09:02:01,680 function earlier so you have learned how 13141 09:02:01,680 --> 09:02:03,318 to achieve the same result with and 13142 09:02:03,318 --> 09:02:04,958 without earlier the advantage of these 13143 09:02:04,958 --> 09:02:06,638 variables is that let's say I want to 13144 09:02:06,638 --> 09:02:08,920 get the date in the last month I could 13145 09:02:08,920 --> 09:02:11,080 have used here F function EO month and 13146 09:02:11,080 --> 09:02:12,878 got the last month end date and I could 13147 09:02:12,878 --> 09:02:14,318 have compared with that with the last 13148 09:02:14,318 --> 09:02:16,680 month end date that is little bit more 13149 09:02:16,680 --> 09:02:18,280 flexibility I will get if I use 13150 09:02:18,280 --> 09:02:20,200 variables depending on the need you can 13151 09:02:20,200 --> 09:02:22,160 use earlier or you can use variable so 13152 09:02:22,160 --> 09:02:24,638 let's start learning the search function 13153 09:02:24,638 --> 09:02:26,638 so let me go to the table View and 13154 09:02:26,638 --> 09:02:28,958 inside the table view I'll open the 13155 09:02:28,958 --> 09:02:31,638 geography table so search function can 13156 09:02:31,638 --> 09:02:34,520 be used both in a column or a major so 13157 09:02:34,520 --> 09:02:37,440 first we will take the example of a new 13158 09:02:37,440 --> 09:02:39,840 column and then I'll also tell you how 13159 09:02:39,840 --> 09:02:42,120 can you use it in a major so let me 13160 09:02:42,120 --> 09:02:44,238 click on a column and I'll get a column 13161 09:02:44,238 --> 09:02:46,878 tool and inside the column tool I can 13162 09:02:46,878 --> 09:02:49,440 press new column create a new column and 13163 09:02:49,440 --> 09:02:51,840 in this column I would like to search 13164 09:02:51,840 --> 09:02:54,520 City I can use function search SE what 13165 09:02:54,520 --> 09:02:56,398 what search function does for us it 13166 09:02:56,398 --> 09:02:58,638 takes a text means the text which I want 13167 09:02:58,638 --> 09:03:01,040 you to search within the text it can be 13168 09:03:01,040 --> 09:03:03,360 another text or it can be a column in 13169 09:03:03,360 --> 09:03:05,520 which I want to search start position if 13170 09:03:05,520 --> 09:03:07,318 I don't want to start from the first 13171 09:03:07,318 --> 09:03:09,040 position I can give the from which 13172 09:03:09,040 --> 09:03:10,760 position I want to start the search and 13173 09:03:10,760 --> 09:03:13,600 not found value if I don't find a value 13174 09:03:13,600 --> 09:03:15,360 what should I return so basically it's 13175 09:03:15,360 --> 09:03:17,160 going to return return the index of the 13176 09:03:17,160 --> 09:03:19,840 first letter so let's say you search for 13177 09:03:19,840 --> 09:03:22,520 new and it find new starting from fifth 13178 09:03:22,520 --> 09:03:23,840 position so it's going to return return 13179 09:03:23,840 --> 09:03:26,200 five so what if it doesn't find you can 13180 09:03:26,200 --> 09:03:28,160 return return a not found value if you 13181 09:03:28,160 --> 09:03:30,558 don't want to return let's say zero or 13182 09:03:30,558 --> 09:03:32,520 something you can return return blank 13183 09:03:32,520 --> 09:03:34,558 but prefer to return return a value what 13184 09:03:34,558 --> 09:03:36,318 I want to search I want to search new 13185 09:03:36,318 --> 09:03:38,920 Now search is not case sensitive and 13186 09:03:38,920 --> 09:03:40,958 because search is not case sensitive 13187 09:03:40,958 --> 09:03:43,120 what I can do is I can write down new as 13188 09:03:43,120 --> 09:03:46,080 NW all cap then I can give a column name 13189 09:03:46,080 --> 09:03:47,760 I could have given a string where I 13190 09:03:47,760 --> 09:03:49,440 wanted to search this but here I'll give 13191 09:03:49,440 --> 09:03:51,238 a column name start position I want to 13192 09:03:51,238 --> 09:03:52,718 start from the starting so I can leave 13193 09:03:52,718 --> 09:03:54,440 it empty if I does doesn't find I want 13194 09:03:54,440 --> 09:03:56,718 to return zero it means I'm going to 13195 09:03:56,718 --> 09:03:59,120 return a position zero if it is not 13196 09:03:59,120 --> 09:04:00,958 found so that I can identify it is not 13197 09:04:00,958 --> 09:04:02,920 found but I can do here is I can go 13198 09:04:02,920 --> 09:04:05,360 ahead and do sort descending here and 13199 09:04:05,360 --> 09:04:07,760 sort descending means it will sort the 13200 09:04:07,760 --> 09:04:10,000 column on higher Value First there are 13201 09:04:10,000 --> 09:04:12,920 only three values which contains new so 13202 09:04:12,920 --> 09:04:14,120 these are the three values which 13203 09:04:14,120 --> 09:04:16,440 contains new and they are coming on top 13204 09:04:16,440 --> 09:04:19,120 now so this is how you use basically the 13205 09:04:19,120 --> 09:04:21,238 search function now what you have to do 13206 09:04:21,238 --> 09:04:23,280 to use it in a measure so simply what I 13207 09:04:23,280 --> 09:04:25,638 can do is I can search this and I can 13208 09:04:25,638 --> 09:04:28,120 use that as a result in my filter so let 13209 09:04:28,120 --> 09:04:30,478 me give you a quick example of a measure 13210 09:04:30,478 --> 09:04:32,520 I'll create a new page and in this new 13211 09:04:32,520 --> 09:04:35,040 page I'll bring in city and I'll force 13212 09:04:35,040 --> 09:04:37,040 this to become a table visual so once 13213 09:04:37,040 --> 09:04:39,160 you click on a visual and then you press 13214 09:04:39,160 --> 09:04:41,840 another visual type powerb automatically 13215 09:04:41,840 --> 09:04:43,798 changes it into that particular visual 13216 09:04:43,798 --> 09:04:46,200 now I need a measure so I need the count 13217 09:04:46,200 --> 09:04:48,120 of the Cities which contain new this is 13218 09:04:48,120 --> 09:04:50,318 my simple very simple requirement I need 13219 09:04:50,318 --> 09:04:53,238 count of the Cities which contains new 13220 09:04:53,238 --> 09:04:55,120 so cck click on a new major available on 13221 09:04:55,120 --> 09:04:58,718 the Home tab and major name is Count new 13222 09:04:58,718 --> 09:05:00,798 cities or cities which contain new but 13223 09:05:00,798 --> 09:05:02,680 to just to keep the measor them little 13224 09:05:02,680 --> 09:05:05,120 bit short I'm doing this calculate so 13225 09:05:05,120 --> 09:05:08,520 I'm saying I want to calculate count 13226 09:05:08,520 --> 09:05:10,280 geography cities I would like to count 13227 09:05:10,280 --> 09:05:12,920 the geography City filter the geography 13228 09:05:12,920 --> 09:05:15,718 table search what I want to search new I 13229 09:05:15,718 --> 09:05:18,638 can give in any case because it is not 13230 09:05:18,638 --> 09:05:21,080 case sensitive in what column geography 13231 09:05:21,080 --> 09:05:23,958 City column 13232 09:05:23,958 --> 09:05:25,680 and let me write down geography City 13233 09:05:25,680 --> 09:05:27,080 because I have City in the customer 13234 09:05:27,080 --> 09:05:29,318 table also so just want to confirm I 13235 09:05:29,318 --> 09:05:31,200 have used filter in the filter I used 13236 09:05:31,200 --> 09:05:32,680 geography is going to take geography 13237 09:05:32,680 --> 09:05:35,398 City but just for the clarity I'm 13238 09:05:35,398 --> 09:05:37,120 putting it here I don't want to give a 13239 09:05:37,120 --> 09:05:39,040 start position zero and I can say 13240 09:05:39,040 --> 09:05:40,798 greater than zero now there could be few 13241 09:05:40,798 --> 09:05:42,080 versions I'll tell you there's a 13242 09:05:42,080 --> 09:05:44,000 function count rows also available with 13243 09:05:44,000 --> 09:05:46,280 us so you can do it like this or I'll 13244 09:05:46,280 --> 09:05:48,120 tell you one more function which you can 13245 09:05:48,120 --> 09:05:50,000 achieve it easily let me create a new 13246 09:05:50,000 --> 09:05:53,160 major and instead of all these I can use 13247 09:05:53,160 --> 09:05:56,200 found rows and inside that I can give a 13248 09:05:56,200 --> 09:05:58,000 filter condition and I can create 13249 09:05:58,000 --> 09:06:00,160 another measure let me rename it as one 13250 09:06:00,160 --> 09:06:01,638 now you might be surprised why I'm 13251 09:06:01,638 --> 09:06:03,958 getting only three rows I'll tell you 13252 09:06:03,958 --> 09:06:06,760 the reason also what happens is any row 13253 09:06:06,760 --> 09:06:09,122 which is getting filtered by the filter 13254 09:06:09,122 --> 09:06:10,960 clause for which we are not getting a 13255 09:06:10,960 --> 09:06:14,078 result means the value for that is blank 13256 09:06:14,078 --> 09:06:16,520 and blank is not zero okay for value for 13257 09:06:16,520 --> 09:06:18,840 which is blank it will not appear in the 13258 09:06:18,840 --> 09:06:20,758 visual both the measures right now in 13259 09:06:20,758 --> 09:06:22,840 the visual is only giving value for 13260 09:06:22,840 --> 09:06:24,078 these three City 13261 09:06:24,078 --> 09:06:26,320 it is always the super set let's say if 13262 09:06:26,320 --> 09:06:28,598 I put net now and net has value for all 13263 09:06:28,598 --> 09:06:30,680 the cities so all the cities will appear 13264 09:06:30,680 --> 09:06:35,680 and we will get blank values for 13265 09:07:00,718 --> 09:07:02,680 so these are the quick example how can 13266 09:07:02,680 --> 09:07:06,278 you use a search in a major or in a new 13267 09:07:06,278 --> 09:07:08,758 column so let's now learn find we will 13268 09:07:08,758 --> 09:07:10,640 go to the table View and inside the 13269 09:07:10,640 --> 09:07:13,000 table view in the geography table we 13270 09:07:13,000 --> 09:07:15,398 will try to use it we have already used 13271 09:07:15,398 --> 09:07:17,718 search here the search and the find have 13272 09:07:17,718 --> 09:07:20,918 the same syntax the difference is the 13273 09:07:20,918 --> 09:07:24,680 find is case sensitive and also you 13274 09:07:24,680 --> 09:07:28,000 cannot use Wild Card characters in The 13275 09:07:28,000 --> 09:07:30,320 say search you can use Wild Card 13276 09:07:30,320 --> 09:07:33,558 characters but in find you cannot use it 13277 09:07:33,558 --> 09:07:38,200 again find is case 10 set so let me copy 13278 09:07:38,200 --> 09:07:41,200 this because I clicked on a column I'll 13279 09:07:41,200 --> 09:07:42,758 have the column tool available with me 13280 09:07:42,758 --> 09:07:44,320 and inside that I have new column which 13281 09:07:44,320 --> 09:07:46,840 I'm going to click and paste this and 13282 09:07:46,840 --> 09:07:49,320 I'm going to change this find and the 13283 09:07:49,320 --> 09:07:51,160 Syntax for the find is same let's 13284 09:07:51,160 --> 09:07:54,160 discuss that find and let me start the 13285 09:07:54,160 --> 09:07:56,320 parenthesis once I start the parenthesis 13286 09:07:56,320 --> 09:07:58,398 I got the synex find text the text which 13287 09:07:58,398 --> 09:08:01,200 I wanted to find within text I can give 13288 09:08:01,200 --> 09:08:04,360 a text or I can give a column name in 13289 09:08:04,360 --> 09:08:05,640 fact I can give a major when I'm 13290 09:08:05,640 --> 09:08:08,000 creating a major start position the 13291 09:08:08,000 --> 09:08:09,758 position from which I should start and 13292 09:08:09,758 --> 09:08:12,438 not found position if I do not found 13293 09:08:12,438 --> 09:08:14,320 what I wanted to return I can also 13294 09:08:14,320 --> 09:08:17,278 return a blank if need I use 13295 09:08:17,278 --> 09:08:21,122 this you can see I'm not able to find 13296 09:08:21,122 --> 09:08:24,800 any cities with new why because any W 13297 09:08:24,800 --> 09:08:29,360 new is capital new inside the city start 13298 09:08:29,360 --> 09:08:32,040 with the default position return zero if 13299 09:08:32,040 --> 09:08:34,480 not found is returning me zero because 13300 09:08:34,480 --> 09:08:37,398 any W is not available in any of them so 13301 09:08:37,398 --> 09:08:41,000 let's try n capital 13302 09:08:41,000 --> 09:08:43,640 ew now we will get the first three 13303 09:08:43,640 --> 09:08:46,918 values as 11 one because we are able to 13304 09:08:46,918 --> 09:08:51,758 find out new on the first position okay 13305 09:08:51,758 --> 09:08:54,000 so this is how we use find we will take 13306 09:08:54,000 --> 09:08:56,918 a quick example of a major also so I'll 13307 09:08:56,918 --> 09:08:59,758 go here on my report view I already 13308 09:08:59,758 --> 09:09:02,398 create page where I use search let me 13309 09:09:02,398 --> 09:09:05,360 call it search and find now and let me 13310 09:09:05,360 --> 09:09:07,200 add a quick major I'll click on the 13311 09:09:07,200 --> 09:09:10,200 major table and I'll get a table tool 13312 09:09:10,200 --> 09:09:12,078 because I clicked on the table this time 13313 09:09:12,078 --> 09:09:13,960 and inside that we have option for new 13314 09:09:13,960 --> 09:09:17,520 major I click on that and I'll quickly 13315 09:09:17,520 --> 09:09:21,840 write down a major find city find new 13316 09:09:21,840 --> 09:09:24,320 city let's say 13317 09:09:24,320 --> 09:09:26,438 and we'll use count 13318 09:09:26,438 --> 09:09:28,718 rows 13319 09:09:28,718 --> 09:09:30,640 filter 13320 09:09:30,640 --> 09:09:34,200 geography geography comma find what I 13321 09:09:34,200 --> 09:09:37,238 want to find new new should be in title 13322 09:09:37,238 --> 09:09:39,718 case where I want to find it in 13323 09:09:39,718 --> 09:09:40,918 geography 13324 09:09:40,918 --> 09:09:44,640 City starting position if not found zero 13325 09:09:44,640 --> 09:09:46,160 greater than zero it should always be 13326 09:09:46,160 --> 09:09:47,718 greater than 13327 09:09:47,718 --> 09:09:51,398 zero same result but if I make it an ew 13328 09:09:51,398 --> 09:09:54,000 capital or I change anything let not 13329 09:09:54,000 --> 09:09:57,078 even this I make n 13330 09:09:57,078 --> 09:09:59,640 small it will return all blank because 13331 09:09:59,640 --> 09:10:03,278 I've used filter and when filter doesn't 13332 09:10:03,278 --> 09:10:04,918 find that value it's going to return a 13333 09:10:04,918 --> 09:10:07,238 blank for that so these are the quick 13334 09:10:07,238 --> 09:10:09,680 examples of a new majure as well as a 13335 09:10:09,680 --> 09:10:12,680 new column now let's learn contains 13336 09:10:12,680 --> 09:10:15,640 string function contains string is 13337 09:10:15,640 --> 09:10:17,878 function which is not case sensitive 13338 09:10:17,878 --> 09:10:19,918 means whatever you want it to search 13339 09:10:19,918 --> 09:10:22,360 that's not going to be case sensitive it 13340 09:10:22,360 --> 09:10:25,078 cannot search for card anyways it's very 13341 09:10:25,078 --> 09:10:27,320 similar to the functionality what search 13342 09:10:27,320 --> 09:10:29,320 and find provides it but actually it 13343 09:10:29,320 --> 09:10:31,122 returns true and false it doesn't return 13344 09:10:31,122 --> 09:10:34,160 a position to you so let me start a new 13345 09:10:34,160 --> 09:10:36,000 column I already clicked on a column so 13346 09:10:36,000 --> 09:10:38,840 in the column tool I have new 13347 09:10:38,840 --> 09:10:41,122 column and let 13348 09:10:41,122 --> 09:10:43,918 me let me search 13349 09:10:43,918 --> 09:10:47,040 contain new I'll use 13350 09:10:47,040 --> 09:10:48,758 contains 13351 09:10:48,758 --> 09:10:51,398 string within text so first we have to 13352 09:10:51,398 --> 09:10:53,000 give which within what text I can give a 13353 09:10:53,000 --> 09:10:55,680 column or I can give a text I'll give 13354 09:10:55,680 --> 09:10:58,520 city as a column and what I want you to 13355 09:10:58,520 --> 09:11:00,000 find out I want you to find out new I'm 13356 09:11:00,000 --> 09:11:01,718 going to give it in all caps to check 13357 09:11:01,718 --> 09:11:04,078 whether it is case sensitive or not it 13358 09:11:04,078 --> 09:11:06,078 is actually not case sensitive as is 13359 09:11:06,078 --> 09:11:07,438 given in the description it's going to 13360 09:11:07,438 --> 09:11:09,598 return true and false whether it finds 13361 09:11:09,598 --> 09:11:11,238 it or 13362 09:11:11,238 --> 09:11:13,878 not it returns me 13363 09:11:13,878 --> 09:11:17,398 true for first three cities where 13364 09:11:17,398 --> 09:11:20,278 previously find and search for giving me 13365 09:11:20,278 --> 09:11:23,558 111 which is position so we can can use 13366 09:11:23,558 --> 09:11:25,278 whenever we need true false results 13367 09:11:25,278 --> 09:11:27,918 let's take an example in the report view 13368 09:11:27,918 --> 09:11:31,558 for major so I'll go ahead and copy this 13369 09:11:31,558 --> 09:11:34,918 major and try to simplify this I'll 13370 09:11:34,918 --> 09:11:36,918 create a new major I'm in Major Tool so 13371 09:11:36,918 --> 09:11:43,200 I can use new major and I'll now say 13372 09:11:44,040 --> 09:11:46,718 contains 13373 09:11:46,718 --> 09:11:49,878 new and here let's change 13374 09:11:49,878 --> 09:11:53,878 it simply let me try to write down 13375 09:11:53,878 --> 09:11:57,200 contains string first is within a string 13376 09:11:57,200 --> 09:11:58,718 so we need to 13377 09:11:58,718 --> 09:12:02,558 give geography 13378 09:12:02,918 --> 09:12:05,918 City 13379 09:12:07,398 --> 09:12:09,960 new so what we have done is basically 13380 09:12:09,960 --> 09:12:12,800 filter table geography and simply 13381 09:12:12,800 --> 09:12:15,040 checked true and false here and this is 13382 09:12:15,040 --> 09:12:16,640 what we need in the filter every 13383 09:12:16,640 --> 09:12:17,680 condition in the filter should return 13384 09:12:17,680 --> 09:12:20,398 return a true and false so this one 13385 09:12:20,398 --> 09:12:21,840 satisfi that condition so I don't need 13386 09:12:21,840 --> 09:12:24,078 to check equal to true or false that I 13387 09:12:24,078 --> 09:12:25,918 don't need it's simply written true and 13388 09:12:25,918 --> 09:12:28,640 false to me in this manner you can 13389 09:12:28,640 --> 09:12:32,238 create quick major and a new column on 13390 09:12:32,238 --> 09:12:35,320 contain string let's check out function 13391 09:12:35,320 --> 09:12:37,918 contains string exact now contain is 13392 09:12:37,918 --> 09:12:41,078 string exact is going to check for case 13393 09:12:41,078 --> 09:12:43,398 sensitivity the syntax is very similar 13394 09:12:43,398 --> 09:12:46,160 to contains string so let me copy this 13395 09:12:46,160 --> 09:12:48,000 contains string column I clicked on a 13396 09:12:48,000 --> 09:12:50,078 column and if it has a formula it will 13397 09:12:50,078 --> 09:12:53,278 start showing it in the formula bar 13398 09:12:53,278 --> 09:12:55,520 as I clicked on a new column I will also 13399 09:12:55,520 --> 09:12:57,438 get a new column option I can simply 13400 09:12:57,438 --> 09:13:00,040 click on that and cop and create a new 13401 09:13:00,040 --> 09:13:02,480 column let me paste this and let me call 13402 09:13:02,480 --> 09:13:03,598 it 13403 09:13:03,598 --> 09:13:06,238 contain exact 13404 09:13:06,238 --> 09:13:10,122 new and let me change this contain 13405 09:13:10,122 --> 09:13:12,238 string exact so I removed G so it's 13406 09:13:12,238 --> 09:13:14,438 starting suggesting me the syntax is 13407 09:13:14,438 --> 09:13:17,122 very similar within string find a string 13408 09:13:17,122 --> 09:13:19,040 returns through the string contains 13409 09:13:19,040 --> 09:13:22,438 another string contains string exact is 13410 09:13:22,438 --> 09:13:25,878 case sensitive it is Cas sensitive so 13411 09:13:25,878 --> 09:13:28,278 when I give new in capital it might not 13412 09:13:28,278 --> 09:13:29,640 return return any 13413 09:13:29,640 --> 09:13:33,640 true Everything Is false because new is 13414 09:13:33,640 --> 09:13:36,438 not present any W new in capital is not 13415 09:13:36,438 --> 09:13:39,122 present title case new is present in 13416 09:13:39,122 --> 09:13:40,960 first three so I'm changing that right 13417 09:13:40,960 --> 09:13:43,520 now in my 13418 09:13:43,520 --> 09:13:45,558 formula making it a little bit bigger 13419 09:13:45,558 --> 09:13:50,758 for you enter and now I'm going to get 13420 09:13:50,758 --> 09:13:53,840 true let me use this in the 13421 09:13:53,840 --> 09:13:57,000 report view by creating a major so I'll 13422 09:13:57,000 --> 09:14:00,040 copy this contains new major and because 13423 09:14:00,040 --> 09:14:01,800 I clicked on a major I do have major 13424 09:14:01,800 --> 09:14:03,598 tools available with me click on a new 13425 09:14:03,598 --> 09:14:07,278 major to get a new major contains 13426 09:14:07,278 --> 09:14:09,480 new contains 13427 09:14:09,480 --> 09:14:13,040 new exact and here instead of contain 13428 09:14:13,040 --> 09:14:16,160 string we'll use contain string exact 13429 09:14:16,160 --> 09:14:18,960 we'll keep it capital as of now all new 13430 09:14:18,960 --> 09:14:21,200 as all 13431 09:14:21,200 --> 09:14:24,078 caps and we'll not get any value so now 13432 09:14:24,078 --> 09:14:25,960 we will change it to title 13433 09:14:25,960 --> 09:14:29,680 Case press enter and we get the values 13434 09:14:29,680 --> 09:14:33,238 as three because there are three cities 13435 09:14:33,238 --> 09:14:36,520 only which contain any W in title case 13436 09:14:36,520 --> 09:14:39,800 in this manner we can create major and 13437 09:14:39,800 --> 09:14:43,598 column for contains thing exact now 13438 09:14:43,598 --> 09:14:45,278 let's have a look at three more Dex 13439 09:14:45,278 --> 09:14:47,800 function which is right mid and left and 13440 09:14:47,800 --> 09:14:49,278 to do that what I'm going to do is I 13441 09:14:49,278 --> 09:14:52,360 will go to this table date Auto I'll 13442 09:14:52,360 --> 09:14:54,238 going to create first a column and what 13443 09:14:54,238 --> 09:14:55,680 column I'm going to create here is 13444 09:14:55,680 --> 09:14:59,278 basically create a date which is in ddmm 13445 09:14:59,278 --> 09:15:03,238 and YY y format so I'll use format 13446 09:15:03,238 --> 09:15:05,918 function format date which is there in 13447 09:15:05,918 --> 09:15:07,558 this table 13448 09:15:07,558 --> 09:15:14,398 comma DD iy mm iy YY y y format now my 13449 09:15:14,398 --> 09:15:17,438 objective here is to extract out date 13450 09:15:17,438 --> 09:15:19,718 from this column and put it into date 13451 09:15:19,718 --> 09:15:22,000 function what I want to do is I want to 13452 09:15:22,000 --> 09:15:23,718 use the date function date function 13453 09:15:23,718 --> 09:15:26,438 require year month and date I want to 13454 09:15:26,438 --> 09:15:28,598 extract this and during the extraction 13455 09:15:28,598 --> 09:15:30,598 of this we will be able to use all three 13456 09:15:30,598 --> 09:15:33,200 functions left right and mid so let's 13457 09:15:33,200 --> 09:15:35,122 start again with a new column I already 13458 09:15:35,122 --> 09:15:37,238 clicked on a column so column tools 13459 09:15:37,238 --> 09:15:39,960 going to enable us or a new column me 13460 09:15:39,960 --> 09:15:42,598 quickly click on new column and in this 13461 09:15:42,598 --> 09:15:45,200 new column I would like to create a new 13462 09:15:45,200 --> 09:15:47,122 date again I'm creating a date just 13463 09:15:47,122 --> 09:15:48,800 giving a name new date I'll start with 13464 09:15:48,800 --> 09:15:50,160 the date function now date function 13465 09:15:50,160 --> 09:15:52,040 requires first what it require year 13466 09:15:52,040 --> 09:15:54,122 where is the year here in this date here 13467 09:15:54,122 --> 09:15:56,800 is last four characters of this and to 13468 09:15:56,800 --> 09:15:58,800 get the last four characters we use 13469 09:15:58,800 --> 09:16:00,680 right right is the function which you're 13470 09:16:00,680 --> 09:16:02,640 going to use what WR going to take is 13471 09:16:02,640 --> 09:16:04,160 going to take a text and number of 13472 09:16:04,160 --> 09:16:06,200 characters Returns the specific number 13473 09:16:06,200 --> 09:16:08,078 of characters from the end of the WR 13474 09:16:08,078 --> 09:16:09,960 returns from the end how many characters 13475 09:16:09,960 --> 09:16:13,200 I need from the end I need from the end 13476 09:16:13,200 --> 09:16:15,238 four characters the four characters 13477 09:16:15,238 --> 09:16:19,078 represent ear now Dex is pretty flexible 13478 09:16:19,078 --> 09:16:20,680 sometime when you return return text and 13479 09:16:20,680 --> 09:16:22,918 it use it as a number unless youate 13480 09:16:22,918 --> 09:16:25,480 creates an error it does do that autoc 13481 09:16:25,480 --> 09:16:27,238 conversion now month where is month 13482 09:16:27,238 --> 09:16:29,360 lying here so here in this string the 13483 09:16:29,360 --> 09:16:31,320 month is lying in the middle let's check 13484 09:16:31,320 --> 09:16:33,398 the number so this is the first position 13485 09:16:33,398 --> 09:16:35,598 second position third position third 13486 09:16:35,598 --> 09:16:37,078 position doesn't have month number 13487 09:16:37,078 --> 09:16:39,398 fourth and fifth position has the month 13488 09:16:39,398 --> 09:16:42,040 number I need four comma 5 okay or I 13489 09:16:42,040 --> 09:16:44,278 need four and two characters let's look 13490 09:16:44,278 --> 09:16:45,878 at the mid function which is going to 13491 09:16:45,878 --> 09:16:49,160 help us out so we need mid function here 13492 09:16:49,160 --> 09:16:51,122 let's look at the syntax of mid function 13493 09:16:51,122 --> 09:16:53,718 it has three arguments is requires first 13494 09:16:53,718 --> 09:16:55,800 argument is text in which we are giving 13495 09:16:55,800 --> 09:16:57,960 a column you can give a text also means 13496 09:16:57,960 --> 09:16:59,438 you could have given a hardcoded date 13497 09:16:59,438 --> 09:17:01,278 here then the start position start 13498 09:17:01,278 --> 09:17:03,718 position in our case is fourth character 13499 09:17:03,718 --> 09:17:05,360 it's not the third character it's not 13500 09:17:05,360 --> 09:17:07,480 starting with zero it's the exact fourth 13501 09:17:07,480 --> 09:17:09,918 character when you count from one 2 3 4 13502 09:17:09,918 --> 09:17:11,960 and then the number of characters how 13503 09:17:11,960 --> 09:17:13,878 many number of characters we need so we 13504 09:17:13,878 --> 09:17:16,520 need two characters so we'll use State 13505 09:17:16,520 --> 09:17:19,278 DD YY from the fourth I need two 13506 09:17:19,278 --> 09:17:21,520 character it should return a month now I 13507 09:17:21,520 --> 09:17:24,238 finally need day and day is present as 13508 09:17:24,238 --> 09:17:26,718 first two characters and first two 13509 09:17:26,718 --> 09:17:28,520 characters there is a function which can 13510 09:17:28,520 --> 09:17:30,960 help us that function is left what is 13511 09:17:30,960 --> 09:17:33,000 the syntax of left left function the 13512 09:17:33,000 --> 09:17:35,438 text we can give a column or a text and 13513 09:17:35,438 --> 09:17:37,718 number of characters we need how many 13514 09:17:37,718 --> 09:17:39,520 number of characters we need from the 13515 09:17:39,520 --> 09:17:43,640 starting of the string we 13516 09:18:00,398 --> 09:18:03,758 mmdd y y y y and there's a Tim stamp 13517 09:18:03,758 --> 09:18:05,758 also I can remove the time stamp I 13518 09:18:05,758 --> 09:18:07,360 clicked on the column I can go to the 13519 09:18:07,360 --> 09:18:10,160 format and I can choose a format I want 13520 09:18:10,160 --> 09:18:12,520 I can choose a short date so in this 13521 09:18:12,520 --> 09:18:15,480 manner you can use these three functions 13522 09:18:15,480 --> 09:18:17,918 right mid and left definitely you can 13523 09:18:17,918 --> 09:18:20,438 use them into a measure also and you 13524 09:18:20,438 --> 09:18:23,040 will be able to create the required 13525 09:18:23,040 --> 09:18:25,480 calculation using these one more thing 13526 09:18:25,480 --> 09:18:28,360 which we can do with this we can use the 13527 09:18:28,360 --> 09:18:30,918 Left Right function along with the sear 13528 09:18:30,918 --> 09:18:33,598 function to create the first name and 13529 09:18:33,598 --> 09:18:35,640 the last name now what we are going to 13530 09:18:35,640 --> 09:18:38,200 do for that is we'll go to our geography 13531 09:18:38,200 --> 09:18:40,960 table so in the geography table there 13532 09:18:40,960 --> 09:18:43,398 are only few cities which contains the 13533 09:18:43,398 --> 09:18:46,758 PO names like New Orleans new Las Vegas 13534 09:18:46,758 --> 09:18:49,960 and JY City for only few cities where we 13535 09:18:49,960 --> 09:18:51,758 have first name last what we'll do ins 13536 09:18:51,758 --> 09:18:53,840 whenever I contain one should only show 13537 09:18:53,840 --> 09:18:56,840 me first name whenever I have two it 13538 09:18:56,840 --> 09:18:58,360 should show me first name and last name 13539 09:18:58,360 --> 09:19:01,000 so last name would be empty in case I 13540 09:19:01,000 --> 09:19:04,238 have one word City so let's take out the 13541 09:19:04,238 --> 09:19:07,078 first name what's the rule for the first 13542 09:19:07,078 --> 09:19:09,840 name so the first name should come till 13543 09:19:09,840 --> 09:19:11,960 the place where we have the B as a 13544 09:19:11,960 --> 09:19:14,040 character so what we can do is we can 13545 09:19:14,040 --> 09:19:17,360 use the left function we use left and on 13546 09:19:17,360 --> 09:19:20,080 the city column and till what place 13547 09:19:20,080 --> 09:19:21,800 first few characters we should go we'll 13548 09:19:21,800 --> 09:19:24,596 say search and in the search we will say 13549 09:19:24,596 --> 09:19:27,040 the find the position uh so the position 13550 09:19:27,040 --> 09:19:29,040 of what position of space the moment we 13551 09:19:29,040 --> 09:19:31,400 get the space then within the text which 13552 09:19:31,400 --> 09:19:34,120 is City start position we are not going 13553 09:19:34,120 --> 09:19:36,120 to mention now I'm not going to mention 13554 09:19:36,120 --> 09:19:38,800 not find Value as zero because what 13555 09:19:38,800 --> 09:19:40,596 would happen if I press not found value 13556 09:19:40,596 --> 09:19:42,160 is zero let's understand this because 13557 09:19:42,160 --> 09:19:43,720 when we don't find the space it's not 13558 09:19:43,720 --> 09:19:45,120 going to give me the first name that's 13559 09:19:45,120 --> 09:19:48,200 what I don't want like in the new ark 13560 09:19:48,200 --> 09:19:50,436 I'm not getting any name but I need the 13561 09:19:50,436 --> 09:19:52,080 name because that's the first name this 13562 09:19:52,080 --> 09:19:53,436 is only name 13563 09:19:53,436 --> 09:19:55,680 what we say in such case is we use one 13564 09:19:55,680 --> 09:19:57,840 more function and we learn now a new 13565 09:19:57,840 --> 09:19:59,520 function which gives me length of the 13566 09:19:59,520 --> 09:20:01,520 text and I'm going to use the length of 13567 09:20:01,520 --> 09:20:04,640 the text so what I'm saying here is in 13568 09:20:04,640 --> 09:20:07,320 case you don't find it actually written 13569 09:20:07,320 --> 09:20:09,480 the length so what would happen you will 13570 09:20:09,480 --> 09:20:14,080 go till the last letter of that thing 13571 09:20:14,080 --> 09:20:16,436 and you are now getting that particular 13572 09:20:16,436 --> 09:20:18,840 City where we only have the first name 13573 09:20:18,840 --> 09:20:21,000 so first name is all sorted now we need 13574 09:20:21,000 --> 09:20:24,520 to work on the 13575 09:20:33,040 --> 09:20:35,080 so I want to use right what is the text 13576 09:20:35,080 --> 09:20:36,400 in the right I want to give I want to 13577 09:20:36,400 --> 09:20:39,240 give the city and I want to give the 13578 09:20:39,240 --> 09:20:41,160 number of characters so now number of 13579 09:20:41,160 --> 09:20:43,040 characters is from the end but when I 13580 09:20:43,040 --> 09:20:44,880 use the search function that's going to 13581 09:20:44,880 --> 09:20:46,320 give me the position from the starting 13582 09:20:46,320 --> 09:20:49,756 isn't it so if I say space comma space 13583 09:20:49,756 --> 09:20:52,756 within text City 13584 09:20:52,756 --> 09:20:55,480 starting position and let's say zero is 13585 09:20:55,480 --> 09:20:57,596 the not found position right now what 13586 09:20:57,596 --> 09:21:00,756 would happen the space is the starting 13587 09:21:00,756 --> 09:21:03,320 position is not going to work for me 13588 09:21:03,320 --> 09:21:05,120 because space is at the fourth position 13589 09:21:05,120 --> 09:21:06,916 is going to give me last four character 13590 09:21:06,916 --> 09:21:12,040 so what I need exactly I need length 13591 09:21:12,040 --> 09:21:15,320 minus the position of the space so what 13592 09:21:15,320 --> 09:21:18,436 happens when I do that now what happens 13593 09:21:18,436 --> 09:21:21,040 because if I'm returning a zero or the 13594 09:21:21,040 --> 09:21:24,276 city is where it has the for the cities 13595 09:21:24,276 --> 09:21:25,596 where it doesn't have the space it's 13596 09:21:25,596 --> 09:21:27,560 going to give me the last name also as 13597 09:21:27,560 --> 09:21:29,200 first name which I don't want so why 13598 09:21:29,200 --> 09:21:33,400 don't we return length there of the 13599 09:21:33,400 --> 09:21:35,436 city what we are saying is we are going 13600 09:21:35,436 --> 09:21:37,520 to return the length of the city in the 13601 09:21:37,520 --> 09:21:39,640 search when we don't find anything so it 13602 09:21:39,640 --> 09:21:42,040 will take us to the last characters so 13603 09:21:42,040 --> 09:21:44,000 length minus the last character is again 13604 09:21:44,000 --> 09:21:45,840 the length is zero so let's see what 13605 09:21:45,840 --> 09:21:48,000 happens in that so the last name goes 13606 09:21:48,000 --> 09:21:50,640 away so see it's almost the similar 13607 09:21:50,640 --> 09:21:53,240 search which we have used there now 13608 09:21:53,240 --> 09:21:55,080 definitely because we want the last 13609 09:21:55,080 --> 09:21:57,240 character so we use length so from here 13610 09:21:57,240 --> 09:21:58,800 we do and other thing what you could 13611 09:21:58,800 --> 09:22:00,480 have done you could have used mid 13612 09:22:00,480 --> 09:22:03,240 starting from the space and use the mid 13613 09:22:03,240 --> 09:22:05,320 and the length is number of characters 13614 09:22:05,320 --> 09:22:07,240 what you need but again that would have 13615 09:22:07,240 --> 09:22:08,800 number of characters again you to find 13616 09:22:08,800 --> 09:22:10,960 out using the length and the search so 13617 09:22:10,960 --> 09:22:13,040 right is the best choice in sear case so 13618 09:22:13,040 --> 09:22:15,756 this is just an implementation of you 13619 09:22:15,756 --> 09:22:19,320 know search and right and left together 13620 09:22:19,320 --> 09:22:21,880 so these kind of combinations will keep 13621 09:22:21,880 --> 09:22:24,596 on coming to you when you do your actual 13622 09:22:24,596 --> 09:22:26,276 project you can do similar kind of 13623 09:22:26,276 --> 09:22:29,200 exercise in Majors also this is combined 13624 09:22:29,200 --> 09:22:32,596 version of two thing functions let's 13625 09:22:32,596 --> 09:22:35,000 understand the function select columns 13626 09:22:35,000 --> 09:22:37,596 select columns function can be used to 13627 09:22:37,596 --> 09:22:40,320 create a calculated table with the 13628 09:22:40,320 --> 09:22:43,120 column renames and it can also be used 13629 09:22:43,120 --> 09:22:46,756 as a table expression inside a major 13630 09:22:46,756 --> 09:22:49,640 calculation I clicked on a table and 13631 09:22:49,640 --> 09:22:51,960 inside the table tool I have this new 13632 09:22:51,960 --> 09:22:54,000 table op option which I'm going to 13633 09:22:54,000 --> 09:22:57,960 click and I'll use select columns select 13634 09:22:57,960 --> 09:23:01,200 columns now the most important thing 13635 09:23:01,200 --> 09:23:03,916 which this select column does is it can 13636 09:23:03,916 --> 09:23:06,520 select a set of columns me you can t 13637 09:23:06,520 --> 09:23:08,040 filter the table vertically you can 13638 09:23:08,040 --> 09:23:09,720 reduce the number of columns which you 13639 09:23:09,720 --> 09:23:12,520 want so let's understand the syntax of 13640 09:23:12,520 --> 09:23:15,240 Select column select column takes a 13641 09:23:15,240 --> 09:23:18,200 table and then it takes the pair of name 13642 09:23:18,200 --> 09:23:20,120 expression name expression name 13643 09:23:20,120 --> 09:23:22,680 expression and it finally returns you to 13644 09:23:22,680 --> 09:23:26,200 a table so this name expression pair 13645 09:23:26,200 --> 09:23:29,160 means one is you can rename the column 13646 09:23:29,160 --> 09:23:31,200 so basically you can have a name of a 13647 09:23:31,200 --> 09:23:33,276 column and then you can give a column 13648 09:23:33,276 --> 09:23:35,276 you can give the same column multiple 13649 09:23:35,276 --> 09:23:37,596 time the name expression also means that 13650 09:23:37,596 --> 09:23:39,800 you can give formulas for a column so 13651 09:23:39,800 --> 09:23:43,040 let's say you want to say A+ B A multip 13652 09:23:43,040 --> 09:23:46,120 by B Cas which is statement or something 13653 09:23:46,120 --> 09:23:48,480 that also you can do means you will be 13654 09:23:48,480 --> 09:23:51,080 able to perform low level calculation 13655 09:23:51,080 --> 09:23:53,160 while you are writing down the 13656 09:23:53,160 --> 09:23:55,436 expression in select column and select 13657 09:23:55,436 --> 09:23:58,040 column is not going to group by or 13658 09:23:58,040 --> 09:24:00,800 filter it is just going to give you a 13659 09:24:00,800 --> 09:24:04,480 table with the set of expression renamed 13660 09:24:04,480 --> 09:24:07,520 as per your requirement now inside the 13661 09:24:07,520 --> 09:24:09,916 table expression you can use filter if 13662 09:24:09,916 --> 09:24:12,756 you want or after the select column 13663 09:24:12,756 --> 09:24:15,040 again you can use filter or summarize 13664 09:24:15,040 --> 09:24:17,520 whatever you want in this manner you can 13665 09:24:17,520 --> 09:24:20,520 use select column for various purpose so 13666 09:24:20,520 --> 09:24:23,436 let's say I want to bring in table now I 13667 09:24:23,436 --> 09:24:25,680 want to call brand with some some other 13668 09:24:25,680 --> 09:24:28,640 name let's say I want to call brand 13669 09:24:28,640 --> 09:24:31,480 name again let's say I want brand with 13670 09:24:31,480 --> 09:24:35,000 some other name brand two let's say 13671 09:24:35,000 --> 09:24:38,080 brand only I can do that then I want 13672 09:24:38,080 --> 09:24:42,680 Item ID I can give a new name item 13673 09:24:42,680 --> 09:24:45,680 identifier and I can use item id now I 13674 09:24:45,680 --> 09:24:48,400 selected three columns let's assume that 13675 09:24:48,400 --> 09:24:51,520 I only need these three columns so now I 13676 09:24:51,520 --> 09:24:53,960 got the item table my item table used to 13677 09:24:53,960 --> 09:24:56,800 have 55 rows I again got the 55 rows see 13678 09:24:56,800 --> 09:24:59,320 it's not summarizing or it's not 13679 09:24:59,320 --> 09:25:01,120 filtering here select column is not 13680 09:25:01,120 --> 09:25:03,640 filtering you can use filter inside the 13681 09:25:03,640 --> 09:25:06,000 table expression instead of item you can 13682 09:25:06,000 --> 09:25:08,400 use filter something there you can use 13683 09:25:08,400 --> 09:25:10,916 calculate table if needed but whatever 13684 09:25:10,916 --> 09:25:13,400 columns I'm getting I'm able to rename 13685 09:25:13,400 --> 09:25:15,596 that so what I would like to do now is I 13686 09:25:15,596 --> 09:25:18,520 would like to add some expression here 13687 09:25:18,520 --> 09:25:20,596 I'm making it a little bit large so that 13688 09:25:20,596 --> 09:25:23,000 you can see the table expression clearly 13689 09:25:23,000 --> 09:25:24,840 you would have remembered that some time 13690 09:25:24,840 --> 09:25:27,640 back we added some calculated column in 13691 09:25:27,640 --> 09:25:29,880 our item table so I clicked on the item 13692 09:25:29,880 --> 09:25:32,080 table and if you look at this group two 13693 09:25:32,080 --> 09:25:34,400 this is something which I wanted to add 13694 09:25:34,400 --> 09:25:36,320 there is a switch statement which is 13695 09:25:36,320 --> 09:25:38,720 categorizing the category into various 13696 09:25:38,720 --> 09:25:41,680 groups and let me go back to the select 13697 09:25:41,680 --> 09:25:44,720 column table calculated Table and there 13698 09:25:44,720 --> 09:25:46,560 what I would like to do is now I would 13699 09:25:46,560 --> 09:25:48,840 like to add another column which I would 13700 09:25:48,840 --> 09:25:51,680 like to call as group so I have given a 13701 09:25:51,680 --> 09:25:53,360 name and and now let me give the 13702 09:25:53,360 --> 09:25:55,240 expression the same expression which I 13703 09:25:55,240 --> 09:25:57,596 have given there now after giving that 13704 09:25:57,596 --> 09:25:59,596 expression let me come out and press 13705 09:25:59,596 --> 09:26:02,480 enter am I able to get that so as you 13706 09:26:02,480 --> 09:26:05,080 can see every role the calculation has 13707 09:26:05,080 --> 09:26:07,200 been done and I able to get group one 13708 09:26:07,200 --> 09:26:09,596 group two group three so you can see 13709 09:26:09,596 --> 09:26:11,560 that the category one is lying in the 13710 09:26:11,560 --> 09:26:13,160 group one but we don't have a category 13711 09:26:13,160 --> 09:26:15,360 but it is still calculated because it 13712 09:26:15,360 --> 09:26:17,756 was part of the original table so let's 13713 09:26:17,756 --> 09:26:20,400 add the category to understand that so 13714 09:26:20,400 --> 09:26:22,240 just before that now I am adding C 13715 09:26:22,240 --> 09:26:24,276 category and the category column from 13716 09:26:24,276 --> 09:26:26,800 item table while I have given a table 13717 09:26:26,800 --> 09:26:29,640 name in the table expression so I might 13718 09:26:29,640 --> 09:26:32,276 not require the table but it is always 13719 09:26:32,276 --> 09:26:34,840 better to use table and the column name 13720 09:26:34,840 --> 09:26:36,880 the fully qualified name and now you 13721 09:26:36,880 --> 09:26:38,800 will be able to see the category column 13722 09:26:38,800 --> 09:26:40,880 so you can see the category column and 13723 09:26:40,880 --> 09:26:43,240 you can see that the category 2 is part 13724 09:26:43,240 --> 09:26:45,640 of the group one Category 5 is part of 13725 09:26:45,640 --> 09:26:48,480 the group three now can I do some 13726 09:26:48,480 --> 09:26:50,436 calculation like multiplication or 13727 09:26:50,436 --> 09:26:52,680 something let's say I want to add let's 13728 09:26:52,680 --> 09:26:56,680 say item by brand I want to do very 13729 09:26:56,680 --> 09:26:58,960 simple stuff here is I want to multiply 13730 09:26:58,960 --> 09:27:01,756 the item ID by brand ID for our 13731 09:27:01,756 --> 09:27:04,560 reference purpose let's do that and let 13732 09:27:04,560 --> 09:27:07,276 me enter now again or I can press this 13733 09:27:07,276 --> 09:27:09,960 commit button and now you can see that 13734 09:27:09,960 --> 09:27:12,240 the item ID and the brand IDs are 13735 09:27:12,240 --> 09:27:14,200 getting multiplied actually the item 13736 09:27:14,200 --> 09:27:16,080 identifier is one in this row and the 13737 09:27:16,080 --> 09:27:19,276 brand ID would be 10 for the brand 10 so 13738 09:27:19,276 --> 09:27:23,000 I'm getting a value 1 * by 10 is 10 so 13739 09:27:23,000 --> 09:27:25,960 in this manner you can see that we are 13740 09:27:25,960 --> 09:27:28,916 able to rename a set of columns and we 13741 09:27:28,916 --> 09:27:31,916 are also able to write down name 13742 09:27:31,916 --> 09:27:34,520 expression name expression and enhance 13743 09:27:34,520 --> 09:27:37,520 our calculated table at the same row 13744 09:27:37,520 --> 09:27:39,880 level where the original table was and 13745 09:27:39,880 --> 09:27:42,360 able to get the data so still have the 13746 09:27:42,360 --> 09:27:44,520 55 rows but we have the additional 13747 09:27:44,520 --> 09:27:47,000 column in a new table using select 13748 09:27:47,000 --> 09:27:49,916 columns now sometime this helps there 13749 09:27:49,916 --> 09:27:52,240 are operation where you may be using in 13750 09:27:52,240 --> 09:27:54,520 the same table or maybe we need to 13751 09:27:54,520 --> 09:27:58,276 rename the column before we use it and 13752 09:27:58,276 --> 09:28:01,120 in such cases select column is pretty 13753 09:28:01,120 --> 09:28:04,000 useful especially when you do cross join 13754 09:28:04,000 --> 09:28:06,320 or you use generate function and the two 13755 09:28:06,320 --> 09:28:08,916 tables have the same column then you can 13756 09:28:08,916 --> 09:28:12,240 use select column to rename such columns 13757 09:28:12,240 --> 09:28:14,640 so in this manner you can use select 13758 09:28:14,640 --> 09:28:17,400 column to create a table which is cut 13759 09:28:17,400 --> 09:28:19,680 vertically it can be combined with 13760 09:28:19,680 --> 09:28:22,840 calculate table and filter to get a 13761 09:28:22,840 --> 09:28:26,160 horizontally filtered table or the table 13762 09:28:26,160 --> 09:28:28,360 which where the rows are also filtered 13763 09:28:28,360 --> 09:28:30,800 here columns are filtered let's learn 13764 09:28:30,800 --> 09:28:32,840 the next function which is summarize the 13765 09:28:32,840 --> 09:28:35,400 summarize function can be used to create 13766 09:28:35,400 --> 09:28:38,120 a new calculated table where we can get 13767 09:28:38,120 --> 09:28:40,480 the aggregated data it is heavily used 13768 09:28:40,480 --> 09:28:42,756 in measures to you know handle the 13769 09:28:42,756 --> 09:28:44,916 grouped data sometime to correct the 13770 09:28:44,916 --> 09:28:47,756 grand totals creating intermediate table 13771 09:28:47,756 --> 09:28:50,320 which can be further used for analysis 13772 09:28:50,320 --> 09:28:52,680 so let's learn first of all how can we 13773 09:28:52,680 --> 09:28:55,080 use summarize in a new calculated table 13774 09:28:55,080 --> 09:28:56,720 so let's understand what that function 13775 09:28:56,720 --> 09:28:59,200 is so first I'll go to table tool new 13776 09:28:59,200 --> 09:29:01,080 table I want to create an aggregated 13777 09:29:01,080 --> 09:29:03,276 what I want in my aggregated table is I 13778 09:29:03,276 --> 09:29:06,560 want the sum of items net sales item 13779 09:29:06,560 --> 09:29:09,080 wise brand wise category wise or let's 13780 09:29:09,080 --> 09:29:11,080 say City wise take two different 13781 09:29:11,080 --> 09:29:13,040 dimensions so we would like to create 13782 09:29:13,040 --> 09:29:15,560 brand wise net sales and gross Sal how 13783 09:29:15,560 --> 09:29:17,560 do we do that so summarize it we have a 13784 09:29:17,560 --> 09:29:19,200 function summarized what does summarize 13785 09:29:19,200 --> 09:29:21,160 function does first it takes an table 13786 09:29:21,160 --> 09:29:22,320 then it takes the group Group by 13787 09:29:22,320 --> 09:29:23,640 expression the group by expression 13788 09:29:23,640 --> 09:29:25,436 doesn't require a rename you cannot do a 13789 09:29:25,436 --> 09:29:27,276 rename and then name and the expression 13790 09:29:27,276 --> 09:29:29,276 means expression means the some the 13791 09:29:29,276 --> 09:29:31,040 column where we are going to use some 13792 09:29:31,040 --> 09:29:32,960 kind of aggregation for that you can use 13793 09:29:32,960 --> 09:29:35,160 an rename again in the table expression 13794 09:29:35,160 --> 09:29:37,756 you can use add columns select columns 13795 09:29:37,756 --> 09:29:39,800 calculated table filter whatever you 13796 09:29:39,800 --> 09:29:41,720 want you can do that so here what I want 13797 09:29:41,720 --> 09:29:43,756 is I want to summarize the sales data 13798 09:29:43,756 --> 09:29:45,276 what I'm going to use I'm going to use a 13799 09:29:45,276 --> 09:29:47,520 center table sales table because if I 13800 09:29:47,520 --> 09:29:49,560 use the dimension table I might not get 13801 09:29:49,560 --> 09:29:51,720 an access to the many side of the table 13802 09:29:51,720 --> 09:29:53,916 I'm trying to use a table which is fact 13803 09:29:53,916 --> 09:29:56,436 which is a central container and it is 13804 09:29:56,436 --> 09:29:58,200 related with tables like item and 13805 09:29:58,200 --> 09:29:59,480 customer and as you can see it is 13806 09:29:59,480 --> 09:30:01,560 started showing that so from geography I 13807 09:30:01,560 --> 09:30:04,040 would like to bring in state so I would 13808 09:30:04,040 --> 09:30:06,596 like to summarize my data on state item 13809 09:30:06,596 --> 09:30:08,560 brand State and brand and then I want to 13810 09:30:08,560 --> 09:30:10,916 calculate net net is already a measure 13811 09:30:10,916 --> 09:30:13,120 let me call it as and I can rename I 13812 09:30:13,120 --> 09:30:15,120 usually what I do whenever I create some 13813 09:30:15,120 --> 09:30:17,720 columns by myself I usually rename that 13814 09:30:17,720 --> 09:30:19,720 underscore to differentiate and I can 13815 09:30:19,720 --> 09:30:22,120 use a net major now I'm using net major 13816 09:30:22,120 --> 09:30:23,240 it doesn't mean that it's going to 13817 09:30:23,240 --> 09:30:24,960 filter with my slices value it's not 13818 09:30:24,960 --> 09:30:26,320 going to change it's going to be the 13819 09:30:26,320 --> 09:30:30,040 static value and if there is some 13820 09:30:39,960 --> 09:30:43,520 row and let's use the major gross then 13821 09:30:43,520 --> 09:30:46,320 can I on the Fly do a sum of quantity or 13822 09:30:46,320 --> 09:30:49,480 something so let's try underscore QT y 13823 09:30:49,480 --> 09:30:53,120 comma sum of sales quantity I want to do 13824 09:30:53,120 --> 09:30:54,960 on the Fly sum and now I want to create 13825 09:30:54,960 --> 09:30:57,320 this table so I'm getting 442 rows and 13826 09:30:57,320 --> 09:30:59,436 I'm getting these values so for New York 13827 09:30:59,436 --> 09:31:02,360 I have net quantity as 24,000 13828 09:31:02,360 --> 09:31:05,360 approximately gross 29,000 and quantity 13829 09:31:05,360 --> 09:31:07,880 as 84 it has no impact of filters and 13830 09:31:07,880 --> 09:31:09,756 slicer and this is true with all the 13831 09:31:09,756 --> 09:31:11,756 tables so let me go here in the filter 13832 09:31:11,756 --> 09:31:14,000 region here let me use something on all 13833 09:31:14,000 --> 09:31:16,756 pages isn't it so let's go to a name and 13834 09:31:16,756 --> 09:31:18,560 basic filtering customer one it's going 13835 09:31:18,560 --> 09:31:20,640 to filter on all the page customer one 13836 09:31:20,640 --> 09:31:22,800 but if I go to the table view there's no 13837 09:31:22,800 --> 09:31:24,880 change still you can see the value is 13838 09:31:24,880 --> 09:31:29,000 same 24,000 29,000 and 84 there is no 13839 09:31:29,000 --> 09:31:33,520 difference calulated column has no 13840 09:31:33,520 --> 09:31:36,916 difference when a filter or a slicer get 13841 09:31:36,916 --> 09:31:39,080 applied on the page it has no 13842 09:31:39,080 --> 09:31:42,200 relationship it is precalculated even 13843 09:31:42,200 --> 09:31:44,840 the measures if you are using in such 13844 09:31:44,840 --> 09:31:49,000 tables get calculated and evaluated at 13845 09:31:49,000 --> 09:31:52,560 the load time so they are static in 13846 09:31:52,560 --> 09:31:56,400 nature calculated table and columns are 13847 09:31:56,400 --> 09:31:59,680 static in nature so don't expect their 13848 09:31:59,680 --> 09:32:03,560 data to change using filters and slicer 13849 09:32:03,560 --> 09:32:06,240 as of now that is not possible so we 13850 09:32:06,240 --> 09:32:08,640 have used summarize here in a calculated 13851 09:32:08,640 --> 09:32:10,720 table there could be n number of things 13852 09:32:10,720 --> 09:32:12,560 you can do with using this you can have 13853 09:32:12,560 --> 09:32:14,720 some permutation combination with other 13854 09:32:14,720 --> 09:32:16,800 calculated table functions like 13855 09:32:16,800 --> 09:32:19,960 calculate table filter Etc and it could 13856 09:32:19,960 --> 09:32:22,040 be used in major and major we can can 13857 09:32:22,040 --> 09:32:24,200 drive few things so we will go ahead and 13858 09:32:24,200 --> 09:32:27,120 take a major case little bit later let 13859 09:32:27,120 --> 09:32:30,400 us learn a set function which is Union 13860 09:32:30,400 --> 09:32:32,360 and for that what I wanted to do is I 13861 09:32:32,360 --> 09:32:35,360 want you to bring in a new file from the 13862 09:32:35,360 --> 09:32:37,800 GitHub and that is the file which we are 13863 09:32:37,800 --> 09:32:40,480 going to use for few more operations set 13864 09:32:40,480 --> 09:32:43,480 operations 13865 09:32:43,800 --> 09:32:47,276 so the file name is upend and summarize 13866 09:32:47,276 --> 09:32:49,596 Group by and we are going to use in few 13867 09:32:49,596 --> 09:32:52,320 more operation as I said earlier we're 13868 09:32:52,320 --> 09:32:54,800 going to use this in few more operations 13869 09:32:54,800 --> 09:32:57,560 I'll right click on the raw copy link 13870 09:32:57,560 --> 09:32:59,640 and as we have done in the past we will 13871 09:32:59,640 --> 09:33:02,200 go ahead and use that inside our powerbi 13872 09:33:02,200 --> 09:33:04,116 get data 13873 09:33:04,116 --> 09:33:06,480 web and inside the web you going to give 13874 09:33:06,480 --> 09:33:09,640 this URL click on okay it should suggest 13875 09:33:09,640 --> 09:33:13,240 us two table data one and data 13876 09:33:13,240 --> 09:33:15,840 two data 1 and data two two Excel sheets 13877 09:33:15,840 --> 09:33:18,916 are there I'm taking both of them and 13878 09:33:18,916 --> 09:33:20,680 right now I don't want to do any kind of 13879 09:33:20,680 --> 09:33:22,880 transformation of data so I'll directly 13880 09:33:22,880 --> 09:33:25,520 load these 13881 09:33:27,360 --> 09:33:30,080 tables the tables are loaded 13882 09:33:30,080 --> 09:33:32,800 now I want to create a union of these 13883 09:33:32,800 --> 09:33:34,400 two tables whatever data they have so 13884 09:33:34,400 --> 09:33:36,596 data one has three rows item one item 13885 09:33:36,596 --> 09:33:39,596 two item three and data two has item one 13886 09:33:39,596 --> 09:33:41,560 item two and item four okay and they 13887 09:33:41,560 --> 09:33:43,240 have different quantities so because 13888 09:33:43,240 --> 09:33:44,596 they have different data I want a union 13889 09:33:44,596 --> 09:33:46,756 all usually the Dex function Union does 13890 09:33:46,756 --> 09:33:48,916 a union all so how would we do that we 13891 09:33:48,916 --> 09:33:51,000 want a new table again Union function 13892 09:33:51,000 --> 09:33:53,360 can be used to create a new calculated 13893 09:33:53,360 --> 09:33:55,436 table as well as it can be used in 13894 09:33:55,436 --> 09:33:58,320 measures as per requirement and in the 13895 09:33:58,320 --> 09:34:01,840 new table let me go ahead and 13896 09:34:01,840 --> 09:34:05,436 do rename as Union 13897 09:34:05,436 --> 09:34:08,436 table and we'll call Union table one 13898 09:34:08,436 --> 09:34:11,400 which is data 1 comma data 13899 09:34:11,400 --> 09:34:14,800 2 so we got a union where all the values 13900 09:34:14,800 --> 09:34:16,680 have been just added up so this is how 13901 09:34:16,680 --> 09:34:19,160 you can use Union function and we will 13902 09:34:19,160 --> 09:34:21,840 see more use case of this little bit 13903 09:34:21,840 --> 09:34:24,400 later let us now learn set function 13904 09:34:24,400 --> 09:34:27,200 intersect it can be used to calculate 13905 09:34:27,200 --> 09:34:29,400 calculated table and it can also be used 13906 09:34:29,400 --> 09:34:32,680 in Majors I'll go to the table view I 13907 09:34:32,680 --> 09:34:34,840 have two table data one which is having 13908 09:34:34,840 --> 09:34:37,276 item one two and three with some values 13909 09:34:37,276 --> 09:34:39,680 and table two which is again having item 13910 09:34:39,680 --> 09:34:41,756 one and two and also a new item item 13911 09:34:41,756 --> 09:34:44,680 four which is having a value eight and 13912 09:34:44,680 --> 09:34:46,560 these values are not matching items are 13913 09:34:46,560 --> 09:34:48,240 matching but the values are not I'm 13914 09:34:48,240 --> 09:34:49,960 doing intersect operation which gives me 13915 09:34:49,960 --> 09:34:51,360 common values is it going to give me 13916 09:34:51,360 --> 09:34:52,240 anything 13917 09:34:52,240 --> 09:34:54,560 let's go ahead and check it out so I'll 13918 09:34:54,560 --> 09:34:56,520 click on any of the table and go ahead 13919 09:34:56,520 --> 09:34:58,916 and do intersect operation under the 13920 09:34:58,916 --> 09:35:01,240 home table I can see new table I'll 13921 09:35:01,240 --> 09:35:03,916 click on the new table and I'm creating 13922 09:35:03,916 --> 09:35:06,200 a new table here but this can also be 13923 09:35:06,200 --> 09:35:09,840 used inside the major I'm creating a new 13924 09:35:09,840 --> 09:35:13,240 datable data 4 why not data 3 why data 4 13925 09:35:13,240 --> 09:35:15,916 I'll let you know intersect left table 13926 09:35:15,916 --> 09:35:17,640 and right table only two arguments it 13927 09:35:17,640 --> 09:35:18,800 can 13928 09:35:18,800 --> 09:35:22,400 take so let's give a table which is data 13929 09:35:22,400 --> 09:35:24,960 one and the second table right table 13930 09:35:24,960 --> 09:35:26,960 data two let's see what these two tables 13931 09:35:26,960 --> 09:35:28,400 have 13932 09:35:28,400 --> 09:35:30,960 common there's nothing common zero rows 13933 09:35:30,960 --> 09:35:32,756 are returning how do I check whether 13934 09:35:32,756 --> 09:35:34,320 it's going to work or not so let me do 13935 09:35:34,320 --> 09:35:36,480 one thing very one quick thing right 13936 09:35:36,480 --> 09:35:39,400 click on this table data one and copy 13937 09:35:39,400 --> 09:35:40,320 the 13938 09:35:40,320 --> 09:35:42,800 table then go to enter data under the 13939 09:35:42,800 --> 09:35:46,200 Home tab once it opens up paste it you 13940 09:35:46,200 --> 09:35:47,640 will get the same table it just got 13941 09:35:47,640 --> 09:35:49,680 duplicated I'm going to change the value 13942 09:35:49,680 --> 09:35:51,960 for item three and I'm going to call it 13943 09:35:51,960 --> 09:35:55,000 data 3 now you got your data 3 and press 13944 09:35:55,000 --> 09:35:58,480 enter or I can press load button now I 13945 09:35:58,480 --> 09:36:01,000 got a table data 3 which is having 13946 09:36:01,000 --> 09:36:03,240 something in common with data 1 the 13947 09:36:03,240 --> 09:36:07,360 first two rows of the data one is common 13948 09:36:07,360 --> 09:36:10,800 with the first two rows of data three 13949 09:36:10,800 --> 09:36:13,640 data 1 and data 3 has two rows common 13950 09:36:13,640 --> 09:36:16,480 now I'll go to data 4 and instead of 13951 09:36:16,480 --> 09:36:18,840 data 2 I'll use data 3 and press 13952 09:36:18,840 --> 09:36:22,436 enter and as you can see I got a table 13953 09:36:22,436 --> 09:36:25,640 item one as one item two as two these 13954 09:36:25,640 --> 09:36:29,000 are the exact common set of values 13955 09:36:29,000 --> 09:36:31,080 please remember the complete row set 13956 09:36:31,080 --> 09:36:33,720 need to match we also have functions 13957 09:36:33,720 --> 09:36:37,040 like distinct values and summarize which 13958 09:36:37,040 --> 09:36:39,880 can help us to get distinct values for a 13959 09:36:39,880 --> 09:36:42,720 single column or summarize for multiple 13960 09:36:42,720 --> 09:36:45,560 columns and that can also be used in 13961 09:36:45,560 --> 09:36:47,840 such cases to create a combination of a 13962 09:36:47,840 --> 09:36:50,720 column set before we use intersect so as 13963 09:36:50,720 --> 09:36:52,200 per your need you can can use it in a 13964 09:36:52,200 --> 09:36:54,880 table or in a measure let us learn the 13965 09:36:54,880 --> 09:36:58,000 set function minus don't have a minus 13966 09:36:58,000 --> 09:37:00,400 here we have accept and what the accept 13967 09:37:00,400 --> 09:37:02,640 does is something which is present in a 13968 09:37:02,640 --> 09:37:04,480 table and not present in the second 13969 09:37:04,480 --> 09:37:06,800 table so something which is present in a 13970 09:37:06,800 --> 09:37:09,116 not present in B I need that kind of 13971 09:37:09,116 --> 09:37:11,560 data now to do that what we are going to 13972 09:37:11,560 --> 09:37:14,160 choose here is data one which contains 13973 09:37:14,160 --> 09:37:17,240 one item one 2 and three with three item 13974 09:37:17,240 --> 09:37:19,000 three having value three data table 13975 09:37:19,000 --> 09:37:21,520 three where item three has a little bit 13976 09:37:21,520 --> 09:37:23,800 different value now let's start by 13977 09:37:23,800 --> 09:37:25,916 creating a new table as of now we can 13978 09:37:25,916 --> 09:37:29,040 see new table option under the Home tab 13979 09:37:29,040 --> 09:37:30,400 let's click on 13980 09:37:30,400 --> 09:37:33,560 that this table can be named as except 13981 09:37:33,560 --> 09:37:36,520 let's use the function except except 13982 09:37:36,520 --> 09:37:39,320 requir two tables left table and the 13983 09:37:39,320 --> 09:37:41,560 right table and it's going to give the 13984 09:37:41,560 --> 09:37:43,436 data which is present in left table 13985 09:37:43,436 --> 09:37:45,960 which is not present in the right table 13986 09:37:45,960 --> 09:37:47,520 Returns the row of the left hand side 13987 09:37:47,520 --> 09:37:49,080 which is not present in the right hand 13988 09:37:49,080 --> 09:37:50,680 side table this can be used for 13989 09:37:50,680 --> 09:37:52,720 calculated table table or measures take 13990 09:37:52,720 --> 09:37:54,436 an example later how to use this in a 13991 09:37:54,436 --> 09:37:57,480 measure so let's use the data one as a 13992 09:37:57,480 --> 09:38:00,436 left table and data three as the right 13993 09:38:00,436 --> 09:38:03,276 table we should get the item three row 13994 09:38:03,276 --> 09:38:05,480 with the value three because that is the 13995 09:38:05,480 --> 09:38:08,756 one which was there in data 1 table 13996 09:38:08,756 --> 09:38:11,080 which was not present in data 3 table 13997 09:38:11,080 --> 09:38:13,200 what happens when I change the position 13998 09:38:13,200 --> 09:38:15,160 now I should get the item three but with 13999 09:38:15,160 --> 09:38:17,400 the value six because that is the row 14000 09:38:17,400 --> 09:38:20,560 which is present in data 3 but not 14001 09:38:20,560 --> 09:38:22,560 present in data one one in this manner 14002 09:38:22,560 --> 09:38:25,080 you can use accept function this can 14003 09:38:25,080 --> 09:38:27,160 also be used to find out sometime when 14004 09:38:27,160 --> 09:38:28,916 you come across the cases when you need 14005 09:38:28,916 --> 09:38:31,200 a major something which is present in 14006 09:38:31,200 --> 09:38:33,240 particular situation and not present in 14007 09:38:33,240 --> 09:38:35,240 particular situations in such cases you 14008 09:38:35,240 --> 09:38:37,596 can use that accept function will help 14009 09:38:37,596 --> 09:38:39,916 in measures Also let's learn distinct 14010 09:38:39,916 --> 09:38:41,800 function and values function there are 14011 09:38:41,800 --> 09:38:43,400 two functions let's learn how they 14012 09:38:43,400 --> 09:38:45,080 behave what they give us so I'll go to 14013 09:38:45,080 --> 09:38:47,200 the table View and inside the table view 14014 09:38:47,200 --> 09:38:49,160 I have this item table and in this item 14015 09:38:49,160 --> 09:38:50,720 table I have branch and the branch are 14016 09:38:50,720 --> 09:38:52,596 only 13 but they're repeating in all 14017 09:38:52,596 --> 09:38:54,596 rows 55 rows similarly categories are 14018 09:38:54,596 --> 09:38:56,000 only five repeating in all I want to 14019 09:38:56,000 --> 09:38:57,880 know what are the distinct values I have 14020 09:38:57,880 --> 09:39:00,200 for the brand and item and I may want to 14021 09:39:00,200 --> 09:39:02,360 repeat that so let's go ahead and try 14022 09:39:02,360 --> 09:39:04,240 that out so I'll go ahead and create a 14023 09:39:04,240 --> 09:39:05,080 new 14024 09:39:05,080 --> 09:39:07,360 table and let me give it as a name as 14025 09:39:07,360 --> 09:39:09,320 Brands which is nothing but distinct 14026 09:39:09,320 --> 09:39:11,840 item brand it's give me distinct item 14027 09:39:11,840 --> 09:39:13,596 Brands can it give me distinct of a 14028 09:39:13,596 --> 09:39:15,680 table also yes it can give but for that 14029 09:39:15,680 --> 09:39:17,520 we need a table with repeating values 14030 09:39:17,520 --> 09:39:19,320 we'll take that example but before that 14031 09:39:19,320 --> 09:39:20,840 let's look at one more function which is 14032 09:39:20,840 --> 09:39:22,916 values again from the Home tab we'll go 14033 09:39:22,916 --> 09:39:25,880 to the new table function and create 14034 09:39:25,880 --> 09:39:28,560 categories category table and we'll use 14035 09:39:28,560 --> 09:39:31,916 values item category it can take a table 14036 09:39:31,916 --> 09:39:33,756 or a column name that's one of the two 14037 09:39:33,756 --> 09:39:35,560 things it can take when a column name is 14038 09:39:35,560 --> 09:39:37,520 given it return returns a single column 14039 09:39:37,520 --> 09:39:39,480 table with unique values when a table 14040 09:39:39,480 --> 09:39:41,640 name is given it Returns the table name 14041 09:39:41,640 --> 09:39:43,520 with the same column we have functions 14042 09:39:43,520 --> 09:39:45,840 can give us distinct values you use the 14043 09:39:45,840 --> 09:39:47,916 column example can I do with a table I 14044 09:39:47,916 --> 09:39:49,916 have two tables data one which is having 14045 09:39:49,916 --> 09:39:51,960 two rows which is common with the table 14046 09:39:51,960 --> 09:39:53,880 data three what I want to do here is I 14047 09:39:53,880 --> 09:39:56,116 want to see can I combine them Union I 14048 09:39:56,116 --> 09:39:58,200 have was able to do a union of those and 14049 09:39:58,200 --> 09:39:59,960 can I get a distinct so let's try to 14050 09:39:59,960 --> 09:40:02,680 have a union distinct table which is 14051 09:40:02,680 --> 09:40:04,800 actually the SQL Union can I have the 14052 09:40:04,800 --> 09:40:07,360 SQL Union let's go to a new table again 14053 09:40:07,360 --> 09:40:09,680 from the Home tab this time and we want 14054 09:40:09,680 --> 09:40:11,436 the union the SQL Union which is not 14055 09:40:11,436 --> 09:40:13,756 Union all usually the Dex Union is Union 14056 09:40:13,756 --> 09:40:18,720 all so we'll say Union of data one and 14057 09:40:18,720 --> 09:40:21,400 data three what is giving us it's giving 14058 09:40:21,400 --> 09:40:23,720 us the data which the duplicate rows 14059 09:40:23,720 --> 09:40:25,560 let's see can we use the function 14060 09:40:25,560 --> 09:40:28,040 distinct and the moment we give distinct 14061 09:40:28,040 --> 09:40:29,480 what does distinct function con take 14062 09:40:29,480 --> 09:40:31,880 distinct function so distinct can take 14063 09:40:31,880 --> 09:40:33,800 column name or table expression return 14064 09:40:33,800 --> 09:40:35,756 one column table that contains the 14065 09:40:35,756 --> 09:40:38,436 distinct values in a column for a column 14066 09:40:38,436 --> 09:40:40,400 argument or multiple column with 14067 09:40:40,400 --> 09:40:42,480 distinct unit combination of values for 14068 09:40:42,480 --> 09:40:44,360 a table expression argument table 14069 09:40:44,360 --> 09:40:45,560 expression argument we want to give 14070 09:40:45,560 --> 09:40:47,720 Union data 1 and data 3 let's see what 14071 09:40:47,720 --> 09:40:50,436 happens so now we have item one and item 14072 09:40:50,436 --> 09:40:52,680 two repetition on item three is having 14073 09:40:52,680 --> 09:40:54,596 one value as three and one value as six 14074 09:40:54,596 --> 09:40:56,840 and that is why both of them are coming 14075 09:40:56,840 --> 09:40:58,320 so with the distinct we are able to do 14076 09:40:58,320 --> 09:41:00,756 it can we also do it using values let's 14077 09:41:00,756 --> 09:41:02,596 do one thing let me tell you one quick 14078 09:41:02,596 --> 09:41:04,080 thing I can make it this one as a 14079 09:41:04,080 --> 09:41:07,276 comment copy so we remember both and use 14080 09:41:07,276 --> 09:41:09,840 values here now okay values function 14081 09:41:09,840 --> 09:41:12,320 except a column reference expression or 14082 09:41:12,320 --> 09:41:15,520 a table expression as argument one okay 14083 09:41:15,520 --> 09:41:17,596 it's not taking this one can it take 14084 09:41:17,596 --> 09:41:19,360 already existing table let's do one 14085 09:41:19,360 --> 09:41:22,080 thing so we have Union equal and let me 14086 09:41:22,080 --> 09:41:24,520 make it as only Union the union SQL 14087 09:41:24,520 --> 09:41:26,560 table we have still have the duplicates 14088 09:41:26,560 --> 09:41:28,680 now let's create one more new table we 14089 09:41:28,680 --> 09:41:30,400 have one physical table and now we are 14090 09:41:30,400 --> 09:41:32,240 going to use that another physical table 14091 09:41:32,240 --> 09:41:37,436 is distinct SQL as values Union equal 14092 09:41:37,436 --> 09:41:40,000 table so understand this thing when we 14093 09:41:40,000 --> 09:41:42,520 use the table expression it doesn't give 14094 09:41:42,520 --> 09:41:45,080 us the unique values so first you are 14095 09:41:45,080 --> 09:41:46,916 not able to use values with a variable 14096 09:41:46,916 --> 09:41:48,680 table and second it's not going to give 14097 09:41:48,680 --> 09:41:50,960 you distinct values for a table so for a 14098 09:41:50,960 --> 09:41:52,800 table distinct values we have to use 14099 09:41:52,800 --> 09:41:55,040 distinct but for a single column we can 14100 09:41:55,040 --> 09:41:56,640 still use values function for a table 14101 09:41:56,640 --> 09:41:57,880 it's not going to do it it has a 14102 09:41:57,880 --> 09:41:59,756 different purpose so in this manner you 14103 09:41:59,756 --> 09:42:02,000 can use values and distinct function as 14104 09:42:02,000 --> 09:42:03,436 per your requirement and you have 14105 09:42:03,436 --> 09:42:05,560 learned some of the differences we have 14106 09:42:05,560 --> 09:42:07,080 another function which can group the 14107 09:42:07,080 --> 09:42:08,800 values and that is known as Group by we 14108 09:42:08,800 --> 09:42:11,360 will learn a use case where Group by is 14109 09:42:11,360 --> 09:42:13,200 going to behave better than summarized 14110 09:42:13,200 --> 09:42:14,840 but to do this use case let me tell you 14111 09:42:14,840 --> 09:42:16,520 what use case I want so in this use case 14112 09:42:16,520 --> 09:42:18,276 what I want to do is I want to create a 14113 09:42:18,276 --> 09:42:20,800 new table using data 1 and data 2 and 14114 09:42:20,800 --> 09:42:22,840 without creating a third variable using 14115 09:42:22,840 --> 09:42:24,436 that inside a variable I want to 14116 09:42:24,436 --> 09:42:26,080 summarize the data I want to sum the 14117 09:42:26,080 --> 09:42:27,640 values so as you can see they have some 14118 09:42:27,640 --> 09:42:30,040 common rows with items is item one item 14119 09:42:30,040 --> 09:42:31,680 two are common in those so I want to 14120 09:42:31,680 --> 09:42:33,320 summarize that value I don't want that 14121 09:42:33,320 --> 09:42:35,200 to repeat Union function will repeat it 14122 09:42:35,200 --> 09:42:37,436 it's not going to aggregate that let me 14123 09:42:37,436 --> 09:42:39,596 click and create a new table and the 14124 09:42:39,596 --> 09:42:41,080 first time I'm going to attempt it with 14125 09:42:41,080 --> 09:42:43,596 suiz summarize Group by so let me create 14126 09:42:43,596 --> 09:42:45,880 a variable where underscore Tab and this 14127 09:42:45,880 --> 09:42:47,520 is a very simple table which I'm going 14128 09:42:47,520 --> 09:42:49,880 to create using Union data van first 14129 09:42:49,880 --> 09:42:51,640 argument it can take multiple tables so 14130 09:42:51,640 --> 09:42:53,520 data one and data two only two arguments 14131 09:42:53,520 --> 09:42:55,000 I want to give as you can see in the 14132 09:42:55,000 --> 09:42:56,520 syntax I can give multiple tables but 14133 09:42:56,520 --> 09:42:58,200 I'm only giving two tables here I have 14134 09:42:58,200 --> 09:43:00,596 two tables then shift enter return what 14135 09:43:00,596 --> 09:43:02,596 I want in return is summarize how many 14136 09:43:02,596 --> 09:43:04,360 columns I have two two columns isn't it 14137 09:43:04,360 --> 09:43:06,116 so what is my variable table and from 14138 09:43:06,116 --> 09:43:08,000 that table one column is Group by which 14139 09:43:08,000 --> 09:43:10,596 is item so I can use item comma I want 14140 09:43:10,596 --> 09:43:13,436 the sum so underscore sum of what sum of 14141 09:43:13,436 --> 09:43:15,276 underscore I can't use sum so I need to 14142 09:43:15,276 --> 09:43:18,480 use sumx underscore Tab and comma values 14143 09:43:18,480 --> 09:43:21,160 column and let me I got a sum column I I 14144 09:43:21,160 --> 09:43:22,880 got a group by column and let me press 14145 09:43:22,880 --> 09:43:24,916 enter what are you observing here it is 14146 09:43:24,916 --> 09:43:27,720 actually 22 it is actually the sum of 14147 09:43:27,720 --> 09:43:30,160 the complete column this table in the 14148 09:43:30,160 --> 09:43:33,116 sumx is not taking the row context it's 14149 09:43:33,116 --> 09:43:35,640 taking it as a complete column the 14150 09:43:35,640 --> 09:43:38,000 current row context is not available 14151 09:43:38,000 --> 09:43:39,916 while I'm doing the summarizes some same 14152 09:43:39,916 --> 09:43:42,276 as creating a calculated column it takes 14153 09:43:42,276 --> 09:43:44,040 the complete value of the column but 14154 09:43:44,040 --> 09:43:45,640 that's what I don't want what should I 14155 09:43:45,640 --> 09:43:48,000 do in such case so let's copy this code 14156 09:43:48,000 --> 09:43:49,756 and create one more table again under 14157 09:43:49,756 --> 09:43:51,800 the Home tab new table is appearing I'll 14158 09:43:51,800 --> 09:43:54,116 click on that and let me paste this so 14159 09:43:54,116 --> 09:43:56,276 this is Group by Group by so again the 14160 09:43:56,276 --> 09:43:58,596 table with Union but let's start with a 14161 09:43:58,596 --> 09:44:00,160 different function in the return and the 14162 09:44:00,160 --> 09:44:01,916 function which we are going to use is 14163 09:44:01,916 --> 09:44:03,640 Group by what does Group by takes it 14164 09:44:03,640 --> 09:44:05,840 takes a table expression Group by column 14165 09:44:05,840 --> 09:44:08,360 names name and expression for expression 14166 09:44:08,360 --> 09:44:10,080 so whatever number of Expressions you 14167 09:44:10,080 --> 09:44:12,480 have you need to use a name for all such 14168 09:44:12,480 --> 09:44:13,916 expression you need to rename the 14169 09:44:13,916 --> 09:44:15,520 expression where you going to have the 14170 09:44:15,520 --> 09:44:17,040 aggregate data same is true for 14171 09:44:17,040 --> 09:44:18,560 summarize also what is our table name 14172 09:44:18,560 --> 09:44:22,000 underscore tab gr by the column name is 14173 09:44:22,000 --> 09:44:24,436 item want Group by item comma I want to 14174 09:44:24,436 --> 09:44:27,720 do sum underscore sum comma sumx the 14175 09:44:27,720 --> 09:44:29,436 function I want to use and here instead 14176 09:44:29,436 --> 09:44:31,200 of table name I'll use current group 14177 09:44:31,200 --> 09:44:33,040 function and then I'll use the value 14178 09:44:33,040 --> 09:44:35,400 column and let me close this and try out 14179 09:44:35,400 --> 09:44:38,520 and now you can see the item data is 14180 09:44:38,520 --> 09:44:41,640 grouped properly because of this current 14181 09:44:41,640 --> 09:44:44,040 group functionality available with the 14182 09:44:44,040 --> 09:44:46,320 group by function which allows us to 14183 09:44:46,320 --> 09:44:49,596 group the data which is applicable for 14184 09:44:49,596 --> 09:44:51,756 the current Group by in the context so 14185 09:44:51,756 --> 09:44:53,840 in this manner you have observed there 14186 09:44:53,840 --> 09:44:55,720 is a difference between summarize 14187 09:44:55,720 --> 09:44:58,320 function and the group by function let's 14188 09:44:58,320 --> 09:45:00,360 now learn a function which is known as 14189 09:45:00,360 --> 09:45:02,840 generate series generate series function 14190 09:45:02,840 --> 09:45:05,640 can generate a table with a sequence of 14191 09:45:05,640 --> 09:45:07,800 numbers so let me click on any of the 14192 09:45:07,800 --> 09:45:10,320 table and from the table tool I'll click 14193 09:45:10,320 --> 09:45:12,160 on new 14194 09:45:12,160 --> 09:45:14,720 table I would like to generate the 14195 09:45:14,720 --> 09:45:18,080 numbers sequences from let's say 1 to 14196 09:45:18,080 --> 09:45:21,560 100 the function is generate series 14197 09:45:21,560 --> 09:45:24,320 what is start value start value is one I 14198 09:45:24,320 --> 09:45:26,640 can give I can give zero also end value 14199 09:45:26,640 --> 09:45:29,520 is 100 and increment by 14200 09:45:29,520 --> 09:45:32,640 one so in this manner I'm able to get a 14201 09:45:32,640 --> 09:45:35,680 table which is generating sequences for 14202 09:45:35,680 --> 09:45:40,436 me and it is giving me 1 to 100 now in 14203 09:45:40,436 --> 09:45:42,320 case you want to generate odd number 14204 09:45:42,320 --> 09:45:45,360 series you can just give it two here 14205 09:45:45,360 --> 09:45:47,560 because it's starting from one it will 14206 09:45:47,560 --> 09:45:51,276 generate a OD number series 14207 09:45:51,276 --> 09:45:53,116 it will have 50 values only because till 14208 09:45:53,116 --> 09:45:56,436 100 we have 50 only now if I want a even 14209 09:45:56,436 --> 09:45:58,276 number I can either start from zero or 14210 09:45:58,276 --> 09:46:01,720 two so that will create a even number 14211 09:46:01,720 --> 09:46:04,240 series now let me tell you I can create 14212 09:46:04,240 --> 09:46:06,276 a date table also along let me use 14213 09:46:06,276 --> 09:46:08,560 generate series the first argument start 14214 09:46:08,560 --> 09:46:10,680 value the second argument let me 14215 09:46:10,680 --> 09:46:13,276 generate it for 365 days and the third 14216 09:46:13,276 --> 09:46:15,596 argument as one again it's going to 14217 09:46:15,596 --> 09:46:18,880 create for 365 days I'll go and use now 14218 09:46:18,880 --> 09:46:21,160 add columns now add columns is is only 14219 09:46:21,160 --> 09:46:23,720 getting what the values column with 365 14220 09:46:23,720 --> 09:46:26,360 values comma name I'm create going to 14221 09:46:26,360 --> 09:46:28,720 create a column which is known as date 14222 09:46:28,720 --> 09:46:30,360 and what I'm going to date there is a 14223 09:46:30,360 --> 09:46:32,480 beauty about the date Dex date there's a 14224 09:46:32,480 --> 09:46:34,040 beautiful thing which we have learned 14225 09:46:34,040 --> 09:46:35,720 about Dex date that we can simply add 14226 09:46:35,720 --> 09:46:37,640 the numbers by using the plus sign and 14227 09:46:37,640 --> 09:46:39,840 it will keep on giving us the dates 14228 09:46:39,840 --> 09:46:41,400 added by that number so let me start 14229 09:46:41,400 --> 09:46:44,596 with 2018 comma 01 comma 14230 09:46:44,596 --> 09:46:49,240 01 and let me add plus now the generate 14231 09:46:49,240 --> 09:46:51,080 series is returning me the value column 14232 09:46:51,080 --> 09:46:54,480 which now I can use in this add column 14233 09:46:54,480 --> 09:46:56,720 expression after the 14234 09:46:56,720 --> 09:47:00,680 name and let me press enter and as you 14235 09:47:00,680 --> 09:47:02,960 can see we getting the dates generated 14236 09:47:02,960 --> 09:47:04,276 but there's a problem we are not getting 14237 09:47:04,276 --> 09:47:05,520 the first gener because it's going to 14238 09:47:05,520 --> 09:47:08,596 add the one also from zero to 14239 09:47:08,596 --> 09:47:11,640 364 days now we got all the dates what 14240 09:47:11,640 --> 09:47:14,320 we need in this manner you can use 14241 09:47:14,320 --> 09:47:16,960 generate series function you can use it 14242 09:47:16,960 --> 09:47:19,436 in table you can also use it in measure 14243 09:47:19,436 --> 09:47:20,960 there could be use cases where you you 14244 09:47:20,960 --> 09:47:23,520 need to generate a sequence inside a 14245 09:47:23,520 --> 09:47:25,840 measure and that is where you can use 14246 09:47:25,840 --> 09:47:28,116 the generate series function to generate 14247 09:47:28,116 --> 09:47:30,080 sequence of numbers and that can be 14248 09:47:30,080 --> 09:47:32,116 further used through some complex 14249 09:47:32,116 --> 09:47:34,480 calculations let's learn two more Dex 14250 09:47:34,480 --> 09:47:36,960 function generate and cross joint both 14251 09:47:36,960 --> 09:47:39,596 the functions can generate a table which 14252 09:47:39,596 --> 09:47:41,840 can be used in a calculated table or a 14253 09:47:41,840 --> 09:47:43,916 measure which basically do the cartisian 14254 09:47:43,916 --> 09:47:46,640 product is going to create the complete 14255 09:47:46,640 --> 09:47:48,960 combination of the values to take this 14256 09:47:48,960 --> 09:47:51,680 first example for Generate cion what I'm 14257 09:47:51,680 --> 09:47:53,320 going to do is let me show you item 14258 09:47:53,320 --> 09:47:57,436 table now item table has 13 Brands and 14259 09:47:57,436 --> 09:47:59,160 five categories so total combination is 14260 09:47:59,160 --> 09:48:02,200 65 but we are getting 55 rows here it 14261 09:48:02,200 --> 09:48:03,560 means there are some combinations which 14262 09:48:03,560 --> 09:48:05,000 are missing so first of all I want to 14263 09:48:05,000 --> 09:48:07,040 generate all those combination and the 14264 09:48:07,040 --> 09:48:09,000 second thing could be that what is the 14265 09:48:09,000 --> 09:48:10,720 combination that is missing out of these 14266 09:48:10,720 --> 09:48:12,276 are the things which we can do so let's 14267 09:48:12,276 --> 09:48:14,116 go ahead and find that out for that what 14268 09:48:14,116 --> 09:48:15,800 I'm going to do is I'm going to create a 14269 09:48:15,800 --> 09:48:17,756 new table and for that I'll go to table 14270 09:48:17,756 --> 09:48:19,240 tools and new 14271 09:48:19,240 --> 09:48:21,720 table and how do I create that distinct 14272 09:48:21,720 --> 09:48:24,116 combination of values so for that I need 14273 09:48:24,116 --> 09:48:27,800 to use the distinct function also so let 14274 09:48:27,800 --> 09:48:29,000 me use 14275 09:48:29,000 --> 09:48:31,200 generate function first of all what does 14276 09:48:31,200 --> 09:48:32,756 generate function do generate function 14277 09:48:32,756 --> 09:48:34,596 takes table one and table 14278 09:48:34,596 --> 09:48:37,720 two the second table expression will be 14279 09:48:37,720 --> 09:48:40,116 evaluated for the each row of the first 14280 09:48:40,116 --> 09:48:42,880 table returning the cross joint of the 14281 09:48:42,880 --> 09:48:45,240 first table with these results now this 14282 09:48:45,240 --> 09:48:47,116 evaluated for each row as a real big 14283 09:48:47,116 --> 09:48:48,560 important for that we have to take a 14284 09:48:48,560 --> 09:48:50,800 separate use case but we will take 14285 09:48:50,800 --> 09:48:54,960 distinct item brand as the first table 14286 09:48:54,960 --> 09:48:56,640 and I could have taken a bigger table 14287 09:48:56,640 --> 09:48:58,116 but because I want to create that 14288 09:48:58,116 --> 09:48:59,756 combination I'm taking a single column 14289 09:48:59,756 --> 09:49:01,240 table but definitely you can have a 14290 09:49:01,240 --> 09:49:02,720 table which is having more than one 14291 09:49:02,720 --> 09:49:04,720 column can also work out and then we 14292 09:49:04,720 --> 09:49:08,240 will use item 14293 09:49:08,240 --> 09:49:10,596 category we will use distinct item 14294 09:49:10,596 --> 09:49:12,720 category as second 14295 09:49:12,720 --> 09:49:14,756 table 14296 09:49:14,756 --> 09:49:18,160 so so now we have got 65 rows as you can 14297 09:49:18,160 --> 09:49:20,116 see it means these are the possible 14298 09:49:20,116 --> 09:49:22,436 combination now how do we find out what 14299 09:49:22,436 --> 09:49:25,520 is missing combination we have learned 14300 09:49:25,520 --> 09:49:28,436 one function 14301 09:49:28,960 --> 09:49:31,720 accept now except function gives us 14302 09:49:31,720 --> 09:49:33,680 something which is present in a not in B 14303 09:49:33,680 --> 09:49:35,436 so how do I get the distinct values I 14304 09:49:35,436 --> 09:49:37,800 can select all the values or I can do 14305 09:49:37,800 --> 09:49:40,080 very simple thing I can go and use the 14306 09:49:40,080 --> 09:49:41,680 summarized function what does summarize 14307 09:49:41,680 --> 09:49:43,400 function take it takes a table as an 14308 09:49:43,400 --> 09:49:46,360 argument first of all and then we can 14309 09:49:46,360 --> 09:49:48,276 give all the group by columns and then 14310 09:49:48,276 --> 09:49:50,116 the name and the expression for the 14311 09:49:50,116 --> 09:49:52,800 aggregated column but here we only need 14312 09:49:52,800 --> 09:49:55,040 the group by column that is item 14313 09:49:55,040 --> 09:49:59,080 brand and item category so these are the 14314 09:49:59,080 --> 09:50:01,080 distinct combination which is present 14315 09:50:01,080 --> 09:50:04,360 with us so now you can see there are 29 14316 09:50:04,360 --> 09:50:06,276 such combinations are missing so 14317 09:50:06,276 --> 09:50:08,840 basically it is not that 55 rows has all 14318 09:50:08,840 --> 09:50:11,640 distinct combination there are 29 such 14319 09:50:11,640 --> 09:50:14,160 combinations which were missing in this 14320 09:50:14,160 --> 09:50:16,000 case and let's sort it on particular 14321 09:50:16,000 --> 09:50:19,000 category sort ascending so for category 14322 09:50:19,000 --> 09:50:20,960 one it is saying there is no brand 12 14323 09:50:20,960 --> 09:50:23,000 and 2 so let's go to the item table and 14324 09:50:23,000 --> 09:50:25,520 validate that so we go to the item table 14325 09:50:25,520 --> 09:50:28,200 we select category 14326 09:50:28,200 --> 09:50:31,240 1 and you can see there is no brand 2 14327 09:50:31,240 --> 09:50:33,756 and 12 here it means we are getting the 14328 09:50:33,756 --> 09:50:34,840 correct 14329 09:50:34,840 --> 09:50:37,596 results we have done this using generate 14330 09:50:37,596 --> 09:50:39,720 so we see what generate does and what it 14331 09:50:39,720 --> 09:50:41,480 can do the same operation can also be 14332 09:50:41,480 --> 09:50:44,040 done using cross joint so we'll again 14333 09:50:44,040 --> 09:50:45,880 create a new table table tool is visible 14334 09:50:45,880 --> 09:50:47,560 so let's utilize the new table under 14335 09:50:47,560 --> 09:50:50,040 that and this new table would be cross 14336 09:50:50,040 --> 09:50:51,240 joint 14337 09:50:51,240 --> 09:50:54,000 again we can use this into our Majors 14338 09:50:54,000 --> 09:50:57,000 also by generating some tables so cross 14339 09:50:57,000 --> 09:50:59,360 join what cross joint required return 14340 09:50:59,360 --> 09:51:02,240 returns a table that is in cross joint 14341 09:51:02,240 --> 09:51:04,560 with the specified tables here you can 14342 09:51:04,560 --> 09:51:06,436 have multiple set of table the returns 14343 09:51:06,436 --> 09:51:08,480 the table that is in cross joint with 14344 09:51:08,480 --> 09:51:10,320 the specified tables now it is not 14345 09:51:10,320 --> 09:51:11,840 talking about the row that's very 14346 09:51:11,840 --> 09:51:14,960 important okay so we will use 14347 09:51:14,960 --> 09:51:16,800 distinct 14348 09:51:16,800 --> 09:51:22,520 item brand comma distinct 14349 09:51:22,720 --> 09:51:25,720 item 14350 09:51:25,840 --> 09:51:28,040 categories and we have got the distinct 14351 09:51:28,040 --> 09:51:29,640 65 combination 14352 09:51:29,640 --> 09:51:32,800 again again I can use that accept code 14353 09:51:32,800 --> 09:51:35,436 to find out what is the combination 14354 09:51:35,436 --> 09:51:37,240 which is missing so this is a cartisian 14355 09:51:37,240 --> 09:51:39,520 product which has happened 13 distinct 14356 09:51:39,520 --> 09:51:40,840 value five distinct value cartisian 14357 09:51:40,840 --> 09:51:43,840 product has been done by cross joint now 14358 09:51:43,840 --> 09:51:45,480 we'll complete that step and then 14359 09:51:45,480 --> 09:51:47,040 discuss what is the 14360 09:51:47,040 --> 09:51:48,640 difference 14361 09:51:48,640 --> 09:51:51,080 except and what I've done is I copied a 14362 09:51:51,080 --> 09:51:54,436 part of it let me use that again 14363 09:51:54,436 --> 09:51:56,960 summarize item item brand and category 14364 09:51:56,960 --> 09:51:59,040 is going to give me distinct combination 14365 09:51:59,040 --> 09:52:01,800 which I have done just a minute back I'm 14366 09:52:01,800 --> 09:52:03,800 bringing in that and I should get 29 14367 09:52:03,800 --> 09:52:07,360 rows same 29 rows I'm expecting here so 14368 09:52:07,360 --> 09:52:09,756 it means we are able to do cross joint 14369 09:52:09,756 --> 09:52:11,400 we are able to do summarize to get the 14370 09:52:11,400 --> 09:52:13,960 distinct value of more than one column 14371 09:52:13,960 --> 09:52:16,680 and then we are able to find out what is 14372 09:52:16,680 --> 09:52:18,840 missing in a particular combination the 14373 09:52:18,840 --> 09:52:21,080 same could have been done in a major now 14374 09:52:21,080 --> 09:52:22,916 what's the difference between two when 14375 09:52:22,916 --> 09:52:24,640 should I use cross joint and when should 14376 09:52:24,640 --> 09:52:27,560 I use generate whenever you need a 14377 09:52:27,560 --> 09:52:29,720 filtering mechanism you should prefer 14378 09:52:29,720 --> 09:52:32,160 generate and the reason for that is that 14379 09:52:32,160 --> 09:52:34,160 generate can work on the row Value Cross 14380 09:52:34,160 --> 09:52:37,720 join is not so let's take a new file and 14381 09:52:37,720 --> 09:52:40,160 I have loaded a new file for this 14382 09:52:40,160 --> 09:52:42,640 purpose so let me go ahead and bring in 14383 09:52:42,640 --> 09:52:44,960 one file so we'll use this file cross 14384 09:52:44,960 --> 09:52:46,960 joint versus generate it is employee 14385 09:52:46,960 --> 09:52:48,200 data you could have used the employee 14386 09:52:48,200 --> 09:52:50,200 file but I created a smaller version of 14387 09:52:50,200 --> 09:52:53,000 that so that we can easily use it and 14388 09:52:53,000 --> 09:52:55,560 understand that so let me click on that 14389 09:52:55,560 --> 09:52:58,520 we'll right click on the raw copy link 14390 09:52:58,520 --> 09:53:01,400 go back to the powerbi and in powerbi 14391 09:53:01,400 --> 09:53:06,360 we'll go to the Home tab get data 14392 09:53:06,360 --> 09:53:10,560 web paste the URL click on okay one 14393 09:53:10,560 --> 09:53:11,756 Excel 14394 09:53:11,756 --> 09:53:14,560 sheet with the name employee I'll press 14395 09:53:14,560 --> 09:53:16,916 the load 14396 09:53:18,680 --> 09:53:20,640 button employee table has has been 14397 09:53:20,640 --> 09:53:22,000 loaded 14398 09:53:22,000 --> 09:53:24,400 here so what I basically want is 14399 09:53:24,400 --> 09:53:27,160 basically I have a start date and end 14400 09:53:27,160 --> 09:53:29,240 date and I want to generate all the 14401 09:53:29,240 --> 09:53:31,520 dates between these so 1st to 15 14402 09:53:31,520 --> 09:53:34,560 February 1st January to 31st January 1st 14403 09:53:34,560 --> 09:53:36,960 January to 31st January 15 January to 14404 09:53:36,960 --> 09:53:39,200 31st January these are the dates I want 14405 09:53:39,200 --> 09:53:41,160 to generate all the dates between that 14406 09:53:41,160 --> 09:53:44,560 so let me try out this thing first using 14407 09:53:44,560 --> 09:53:48,560 generate Home tab new table visible 14408 09:53:48,560 --> 09:53:51,640 click on that what we need to do here is 14409 09:53:51,640 --> 09:53:53,520 basically 14410 09:53:53,520 --> 09:53:57,080 employee days dates one employee dates 14411 09:53:57,080 --> 09:54:00,360 one what we 14412 09:54:00,360 --> 09:54:02,756 generate generate function what is the 14413 09:54:02,756 --> 09:54:05,200 first table very simple employee 14414 09:54:05,200 --> 09:54:07,720 table what the second table the second 14415 09:54:07,720 --> 09:54:10,520 table is I need a calendar I need to 14416 09:54:10,520 --> 09:54:12,436 generate the dates between the start 14417 09:54:12,436 --> 09:54:15,480 date and end date can I get the start 14418 09:54:15,480 --> 09:54:17,880 date of employee table seems like I'm 14419 09:54:17,880 --> 09:54:21,116 getting end date of the employee table 14420 09:54:21,116 --> 09:54:25,160 T seems like I'm getting that and let me 14421 09:54:25,160 --> 09:54:28,640 after doing this let me 14422 09:54:28,640 --> 09:54:31,916 try let me press 14423 09:54:31,916 --> 09:54:34,520 enter and as you can see the data here 14424 09:54:34,520 --> 09:54:36,480 for the employee one we getting all the 14425 09:54:36,480 --> 09:54:38,240 dates in 14426 09:54:38,240 --> 09:54:40,756 January also we are getting dates till 14427 09:54:40,756 --> 09:54:42,040 15th of 14428 09:54:42,040 --> 09:54:45,360 February but for employee 2 the data is 14429 09:54:45,360 --> 09:54:49,680 ending on January for employee 3 it is 14430 09:54:49,680 --> 09:54:51,480 just 15 days of 14431 09:54:51,480 --> 09:54:54,360 data only those dates are getting 14432 09:54:54,360 --> 09:54:56,436 generated now how to do the same thing 14433 09:54:56,436 --> 09:54:59,756 in the cross join okay let's try again 14434 09:54:59,756 --> 09:55:01,320 click on the new table under the Home 14435 09:55:01,320 --> 09:55:03,720 tab is still 14436 09:55:03,720 --> 09:55:07,080 visible let's call this table as 14437 09:55:07,080 --> 09:55:10,040 imploy date 14438 09:55:10,040 --> 09:55:13,400 to cross 14439 09:55:13,400 --> 09:55:18,436 join employee table comma 14440 09:55:18,436 --> 09:55:21,756 calendar I try to get start date I I'm 14441 09:55:21,756 --> 09:55:24,000 not getting any suggestion so maybe I'll 14442 09:55:24,000 --> 09:55:25,596 forcefully write down so I copied that 14443 09:55:25,596 --> 09:55:28,040 code at that time it is showing me error 14444 09:55:28,040 --> 09:55:30,720 so seems like it's not going to give me 14445 09:55:30,720 --> 09:55:32,360 and yes I don't have a row context 14446 09:55:32,360 --> 09:55:33,680 available so I'm not able to use so what 14447 09:55:33,680 --> 09:55:36,800 I'm going to do here is I'll use Min 14448 09:55:36,800 --> 09:55:39,640 of employee start date and I'm taking 14449 09:55:39,640 --> 09:55:42,436 the complete table column now okay and 14450 09:55:42,436 --> 09:55:45,960 Max of employee end date what ex it is 14451 09:55:45,960 --> 09:55:48,200 doing is basically is giving me the 14452 09:55:48,200 --> 09:55:49,560 minimum of the start date and the 14453 09:55:49,560 --> 09:55:51,200 maximum of the end and 14454 09:55:51,200 --> 09:55:53,680 date and because of that let me sort it 14455 09:55:53,680 --> 09:55:54,720 on the 14456 09:55:54,720 --> 09:55:56,960 employees What's Happening Here is look 14457 09:55:56,960 --> 09:55:59,680 at the employee 14458 09:55:59,680 --> 09:56:02,116 second you will see the employee second 14459 09:56:02,116 --> 09:56:04,560 has the data in February 14460 09:56:04,560 --> 09:56:07,320 also employee 3 is having the January 14461 09:56:07,320 --> 09:56:09,320 data from 1 14462 09:56:09,320 --> 09:56:11,360 January and having the data in the 14463 09:56:11,360 --> 09:56:12,960 February 14464 09:56:12,960 --> 09:56:16,200 also which is not correct in such cases 14465 09:56:16,200 --> 09:56:18,360 what we need to do once we get this and 14466 09:56:18,360 --> 09:56:19,800 assuming you don't have common column 14467 09:56:19,800 --> 09:56:21,480 name otherwise you have to use the 14468 09:56:21,480 --> 09:56:24,040 select columns you have to use filter 14469 09:56:24,040 --> 09:56:26,200 here now the date column calendar 14470 09:56:26,200 --> 09:56:27,960 generate a date column so we have a date 14471 09:56:27,960 --> 09:56:30,320 column is greater than and equal to the 14472 09:56:30,320 --> 09:56:34,800 start date and date is less than and 14473 09:56:34,800 --> 09:56:37,756 equal to and date the dates which is 14474 09:56:37,756 --> 09:56:39,520 available in this table you're going to 14475 09:56:39,520 --> 09:56:41,840 use a filter function and the rows has 14476 09:56:41,840 --> 09:56:46,240 reduced from 130 plus 294 and in this 14477 09:56:46,240 --> 09:56:50,840 case you will see that the employ two is 14478 09:56:50,840 --> 09:56:51,640 no 14479 09:56:51,640 --> 09:56:54,880 more getting data in February same is 14480 09:56:54,880 --> 09:56:57,640 true for employe 3 very limited data so 14481 09:56:57,640 --> 09:57:00,000 youve seen that cross joint is going to 14482 09:57:00,000 --> 09:57:02,520 create a much larger data set in such 14483 09:57:02,520 --> 09:57:04,200 case and think about you have a very 14484 09:57:04,200 --> 09:57:06,960 large date range it can explore the data 14485 09:57:06,960 --> 09:57:08,640 and then we filter it which is really 14486 09:57:08,640 --> 09:57:10,840 not effective and think about that we 14487 09:57:10,840 --> 09:57:13,240 may have to do this as a major and in 14488 09:57:13,240 --> 09:57:15,160 case of major what happens is uh we 14489 09:57:15,160 --> 09:57:17,960 typically use a disjoint table and using 14490 09:57:17,960 --> 09:57:20,200 the disjoint table join also we can 14491 09:57:20,200 --> 09:57:22,880 actually for such filter we may or may 14492 09:57:22,880 --> 09:57:26,000 not always use generate and cross join 14493 09:57:26,000 --> 09:57:29,160 used there but yes as per requirement 14494 09:57:29,160 --> 09:57:31,756 and use them so what I've done that when 14495 09:57:31,756 --> 09:57:34,480 I was doing all those table operations I 14496 09:57:34,480 --> 09:57:36,960 actually saved the file as N2 and 3 and 14497 09:57:36,960 --> 09:57:39,800 I have kept that file aside now and I 14498 09:57:39,800 --> 09:57:43,560 came back to N2 and 4 for rest of our 14499 09:57:43,560 --> 09:57:45,960 operations which are typically related 14500 09:57:45,960 --> 09:57:48,756 to measures and now what we wanted to do 14501 09:57:48,756 --> 09:57:50,756 we want to learn few more me measures 14502 09:57:50,756 --> 09:57:53,916 and for that we need the help of some of 14503 09:57:53,916 --> 09:57:56,160 these table calculations and that's why 14504 09:57:56,160 --> 09:57:57,756 we learned so now what we are going to 14505 09:57:57,756 --> 09:57:59,756 learn is some of the use cases where we 14506 09:57:59,756 --> 09:58:01,916 need to use summarize and values they 14507 09:58:01,916 --> 09:58:04,480 can help us to change the level of 14508 09:58:04,480 --> 09:58:06,800 detail calculation like some of averages 14509 09:58:06,800 --> 09:58:08,400 or average of sum so basically what 14510 09:58:08,400 --> 09:58:10,000 happens you do a operation till a 14511 09:58:10,000 --> 09:58:11,520 particular level and after that you 14512 09:58:11,520 --> 09:58:13,596 change the aggregation so it was doing 14513 09:58:13,596 --> 09:58:15,360 sum and then I do the average same way 14514 09:58:15,360 --> 09:58:17,040 sometime what happens is we are using a 14515 09:58:17,040 --> 09:58:19,080 filter context of visual row and I'll 14516 09:58:19,080 --> 09:58:21,436 give you an example of what we mean by 14517 09:58:21,436 --> 09:58:24,116 use context we reuse a filter context in 14518 09:58:24,116 --> 09:58:26,640 the calculation and the grand total is 14519 09:58:26,640 --> 09:58:28,720 not going to be correct in such case on 14520 09:58:28,720 --> 09:58:31,240 also in such cases we can use summarize 14521 09:58:31,240 --> 09:58:34,320 and value sometime the way I'm telling 14522 09:58:34,320 --> 09:58:36,720 you may not work in such cases what you 14523 09:58:36,720 --> 09:58:38,800 have to do is you have to basically go 14524 09:58:38,800 --> 09:58:41,436 ahead and create a mejor first and then 14525 09:58:41,436 --> 09:58:43,560 create another mejor on top of that to 14526 09:58:43,560 --> 09:58:45,640 make it work so let's jump onto the 14527 09:58:45,640 --> 09:58:47,800 first use case where we are going to do 14528 09:58:47,800 --> 09:58:50,880 it I want to create average of so let me 14529 09:58:50,880 --> 09:58:53,400 create a matrix Visual and in this 14530 09:58:53,400 --> 09:58:55,640 Matrix visual I'm going to bring in from 14531 09:58:55,640 --> 09:58:59,800 geography table state and city I'm also 14532 09:58:59,800 --> 09:59:02,680 going to bring in a net measure as a 14533 09:59:02,680 --> 09:59:05,436 value let me expand it very simple you 14534 09:59:05,436 --> 09:59:07,800 have certain cities for which the values 14535 09:59:07,800 --> 09:59:09,916 is getting aggregated and that the same 14536 09:59:09,916 --> 09:59:12,680 sum is shown here but I don't want sum 14537 09:59:12,680 --> 09:59:14,756 at the state level I want an average how 14538 09:59:14,756 --> 09:59:16,360 I'm going to do that so let me start 14539 09:59:16,360 --> 09:59:19,080 with a new major and this new major is 14540 09:59:19,080 --> 09:59:22,480 going to be aage average of city net 14541 09:59:22,480 --> 09:59:24,840 this city I want to do some post that I 14542 09:59:24,840 --> 09:59:26,400 want to do average what I have to do 14543 09:59:26,400 --> 09:59:29,480 here is basically average X I can use 14544 09:59:29,480 --> 09:59:31,840 values or summarize let me use values as 14545 09:59:31,840 --> 09:59:35,240 of now to begin with values then let's 14546 09:59:35,240 --> 09:59:37,916 use geography City till this level you 14547 09:59:37,916 --> 09:59:39,480 have to do whatever aggregation I'm 14548 09:59:39,480 --> 09:59:42,320 going to do in the expression net and 14549 09:59:42,320 --> 09:59:45,200 then I'll complete this code and let me 14550 09:59:45,200 --> 09:59:48,116 bring in this new major as you can 14551 09:59:48,116 --> 09:59:52,756 observe here value is no more a sum it 14552 09:59:52,756 --> 09:59:55,480 is an average I would like to take one 14553 09:59:55,480 --> 09:59:58,596 more example here now we have a major 14554 09:59:58,596 --> 10:00:01,240 known as gross amount isn't it so let me 14555 10:00:01,240 --> 10:00:04,840 do one thing let me first create a major 14556 10:00:04,840 --> 10:00:07,040 with the help of values only and let me 14557 10:00:07,040 --> 10:00:09,560 call it as gross so average gross same 14558 10:00:09,560 --> 10:00:12,000 calculation what I've done for net and 14559 10:00:12,000 --> 10:00:14,680 you can see the average is happening I 14560 10:00:14,680 --> 10:00:16,520 would like to do the same calculation 14561 10:00:16,520 --> 10:00:18,240 now but with the help of a column where 14562 10:00:18,240 --> 10:00:20,276 I want to aggregate it into the 14563 10:00:20,276 --> 10:00:22,200 expression part of the average X 14564 10:00:22,200 --> 10:00:23,960 function so let me create a new major 14565 10:00:23,960 --> 10:00:25,320 again I'm going to take help from Major 14566 10:00:25,320 --> 10:00:28,000 Tool which is visible right now let me 14567 10:00:28,000 --> 10:00:30,596 paste this gross calculation and make it 14568 10:00:30,596 --> 10:00:33,240 gross fun and here instead of gross I'll 14569 10:00:33,240 --> 10:00:36,680 use sum of sales gross amount very 14570 10:00:36,680 --> 10:00:38,840 simple instead of measure I am going to 14571 10:00:38,840 --> 10:00:41,276 use the sum of gross amount expecting 14572 10:00:41,276 --> 10:00:44,160 the same result pay attention the result 14573 10:00:44,160 --> 10:00:46,960 is not same not same as this one and let 14574 10:00:46,960 --> 10:00:50,160 me bring in Gross for your reference 14575 10:00:50,160 --> 10:00:52,200 and this is the behavior of expression 14576 10:00:52,200 --> 10:00:54,960 function which I want you to note down 14577 10:00:54,960 --> 10:00:57,596 and to correct this behavior let's use 14578 10:00:57,596 --> 10:00:59,680 calculate inside this 14579 10:00:59,680 --> 10:01:02,520 calculation in the expression if you 14580 10:01:02,520 --> 10:01:04,596 need to do an aggregation if you are 14581 10:01:04,596 --> 10:01:07,276 giving a table expression table 14582 10:01:07,276 --> 10:01:09,880 expression and you are using aggregation 14583 10:01:09,880 --> 10:01:11,800 on the column then you have to use 14584 10:01:11,800 --> 10:01:14,436 calculate in the expression you cannot 14585 10:01:14,436 --> 10:01:16,880 do it without that let me do it right 14586 10:01:16,880 --> 10:01:19,916 now and now you can see the values are 14587 10:01:19,916 --> 10:01:20,880 are 14588 10:01:20,880 --> 10:01:23,240 matching that's great can we do the 14589 10:01:23,240 --> 10:01:24,880 similar kind of calculation with 14590 10:01:24,880 --> 10:01:26,756 summarize because values will allow us 14591 10:01:26,756 --> 10:01:28,800 only one summarize can allow us multiple 14592 10:01:28,800 --> 10:01:31,720 so let's say I want after two the 14593 10:01:31,720 --> 10:01:33,480 average should happen or after three 14594 10:01:33,480 --> 10:01:35,960 average should happen or the calculation 14595 10:01:35,960 --> 10:01:37,916 which are done which need a grand total 14596 10:01:37,916 --> 10:01:39,520 sub total correction might require 14597 10:01:39,520 --> 10:01:41,360 multiple columns then what should I do 14598 10:01:41,360 --> 10:01:43,200 so now let's try the same thing can we 14599 10:01:43,200 --> 10:01:45,080 do it using the summarized function we 14600 10:01:45,080 --> 10:01:47,000 have already used the value function let 14601 10:01:47,000 --> 10:01:49,400 me do one go ahead and copy one of the 14602 10:01:49,400 --> 10:01:51,360 calculat I'll copy this gross 14603 10:01:51,360 --> 10:01:53,596 calculation and I'll modify this so just 14604 10:01:53,596 --> 10:01:56,916 for my reference I'm copying it and two 14605 10:01:56,916 --> 10:01:59,520 and let's put this into the commands and 14606 10:01:59,520 --> 10:02:01,480 try to replicate the same the first one 14607 10:02:01,480 --> 10:02:05,640 we are going to do is aage X summarize 14608 10:02:05,640 --> 10:02:08,640 taes this is the center table geography 14609 10:02:08,640 --> 10:02:11,640 City till City I need the sum and then I 14610 10:02:11,640 --> 10:02:14,240 simply use the gross measure and let me 14611 10:02:14,240 --> 10:02:17,560 check the calculation out and as you can 14612 10:02:17,560 --> 10:02:20,520 see and let me move the gross 14613 10:02:20,520 --> 10:02:23,360 maybe at the start along with the net 14614 10:02:23,360 --> 10:02:25,880 now you can see this calculation is same 14615 10:02:25,880 --> 10:02:28,276 as this one so mean summarize can also 14616 10:02:28,276 --> 10:02:30,200 help us and summarize can take multiple 14617 10:02:30,200 --> 10:02:31,916 columns you give the center table the 14618 10:02:31,916 --> 10:02:33,880 reason I given the center table is that 14619 10:02:33,880 --> 10:02:35,560 if you are working across two tables 14620 10:02:35,560 --> 10:02:38,040 like item and geography then still you 14621 10:02:38,040 --> 10:02:39,800 will be able to do such calculation 14622 10:02:39,800 --> 10:02:41,960 let's say you need it after two columns 14623 10:02:41,960 --> 10:02:44,240 so there is a level of detail which you 14624 10:02:44,240 --> 10:02:46,800 have you know used it and post that you 14625 10:02:46,800 --> 10:02:48,640 have done it and it is not that if even 14626 10:02:48,640 --> 10:02:50,800 if I go let's say one step ahead and 14627 10:02:50,800 --> 10:02:52,680 let's look at this let me go up one 14628 10:02:52,680 --> 10:02:54,276 level now in this case right now there 14629 10:02:54,276 --> 10:02:57,040 is no City present in the calculation 14630 10:02:57,040 --> 10:02:59,640 the level of detail has been included to 14631 10:02:59,640 --> 10:03:01,596 take the average so if some of you 14632 10:03:01,596 --> 10:03:04,360 wanted to have a level of detail include 14633 10:03:04,360 --> 10:03:06,560 this is something how you do level of 14634 10:03:06,560 --> 10:03:08,800 detail include you have learned remove 14635 10:03:08,800 --> 10:03:10,840 filters that is exclude now this is 14636 10:03:10,840 --> 10:03:12,840 include now let's play around further 14637 10:03:12,840 --> 10:03:14,160 with this so what I'm going to do here 14638 10:03:14,160 --> 10:03:16,436 is can I do a sum of gross amount here 14639 10:03:16,436 --> 10:03:17,680 and is it going to be a little bit 14640 10:03:17,680 --> 10:03:20,080 different so we say sum of sales gross 14641 10:03:20,080 --> 10:03:22,680 so just like values do I need to use the 14642 10:03:22,680 --> 10:03:24,640 calculate function or summarize can do a 14643 10:03:24,640 --> 10:03:27,520 better job for me no I need to use 14644 10:03:27,520 --> 10:03:30,240 calculate so let me use calculate here 14645 10:03:30,240 --> 10:03:31,880 and I'm not creating multiple Majors 14646 10:03:31,880 --> 10:03:33,320 here you for your reference you can go 14647 10:03:33,320 --> 10:03:36,240 ahead and create it this is one but yes 14648 10:03:36,240 --> 10:03:37,680 I'm going to do one more version of this 14649 10:03:37,680 --> 10:03:40,840 one let me copy this and let me create a 14650 10:03:40,840 --> 10:03:43,276 new measure of another version which I 14651 10:03:43,276 --> 10:03:45,320 can create with summarizes actually 14652 10:03:45,320 --> 10:03:47,800 summarize can also include a calculation 14653 10:03:47,800 --> 10:03:50,200 inside the table so we have the Group by 14654 10:03:50,200 --> 10:03:52,240 columns and after that the expression 14655 10:03:52,240 --> 10:03:53,640 says that you can have name and 14656 10:03:53,640 --> 10:03:56,240 expression here what does that mean for 14657 10:03:56,240 --> 10:03:59,200 us you can have underscore one or I can 14658 10:03:59,200 --> 10:04:01,520 give underscore gross for your reference 14659 10:04:01,520 --> 10:04:03,640 and name and here I'm not using 14660 10:04:03,640 --> 10:04:07,756 calculate let me use sum and here uh 14661 10:04:07,756 --> 10:04:10,520 this is sum is ending this is uh 14662 10:04:10,520 --> 10:04:13,560 summarize ending comma underscore gross 14663 10:04:13,560 --> 10:04:15,400 and I knowingly give these whenever I 14664 10:04:15,400 --> 10:04:18,160 use such variables or such calculated 14665 10:04:18,160 --> 10:04:20,480 column which is inside the table 14666 10:04:20,480 --> 10:04:23,720 expression or as a variable or a where I 14667 10:04:23,720 --> 10:04:25,480 usually give them underscore so that you 14668 10:04:25,480 --> 10:04:27,040 are able to differentiate that I'm doing 14669 10:04:27,040 --> 10:04:29,040 something different and let me do this 14670 10:04:29,040 --> 10:04:31,436 is two is already available let me 14671 10:04:31,436 --> 10:04:34,560 rename it and press enter let me add it 14672 10:04:34,560 --> 10:04:37,276 to the visualization and our calculation 14673 10:04:37,276 --> 10:04:40,200 remains same what we wanted in this 14674 10:04:40,200 --> 10:04:43,360 manner you can use summarize also to get 14675 10:04:43,360 --> 10:04:45,880 these average of sum you can do same 14676 10:04:45,880 --> 10:04:48,116 thing with sum of averages or when you 14677 10:04:48,116 --> 10:04:51,040 want to use include level of details 14678 10:04:51,040 --> 10:04:52,880 this is what you can do so another 14679 10:04:52,880 --> 10:04:54,880 example which I wanted to do here is 14680 10:04:54,880 --> 10:04:57,080 basically where we use the filter 14681 10:04:57,080 --> 10:04:59,200 context of visual Road and our grand 14682 10:04:59,200 --> 10:05:00,960 totals are not correct and we wanted to 14683 10:05:00,960 --> 10:05:02,916 correct again values and summaries 14684 10:05:02,916 --> 10:05:04,720 depending on the requirement can be used 14685 10:05:04,720 --> 10:05:06,480 sometime they can be used like just like 14686 10:05:06,480 --> 10:05:08,080 what example I've given here and 14687 10:05:08,080 --> 10:05:10,276 sometime you may have to use the measure 14688 10:05:10,276 --> 10:05:12,000 inside another measure where you use 14689 10:05:12,000 --> 10:05:14,596 values and summarize so you begin let me 14690 10:05:14,596 --> 10:05:17,520 rename this as average of sum and let's 14691 10:05:17,520 --> 10:05:19,640 begin a new tab and this time what I'm 14692 10:05:19,640 --> 10:05:21,680 I'm going to do here is let me bring in 14693 10:05:21,680 --> 10:05:24,240 brand from item and let me create 14694 10:05:24,240 --> 10:05:26,276 something which uses the filter context 14695 10:05:26,276 --> 10:05:29,360 of visual row I'll bring in that create 14696 10:05:29,360 --> 10:05:31,720 a table visual so if you created a 14697 10:05:31,720 --> 10:05:33,680 visual and you want to change it just 14698 10:05:33,680 --> 10:05:35,640 click on that Visual and click on the 14699 10:05:35,640 --> 10:05:38,160 another visual type inside the insert or 14700 10:05:38,160 --> 10:05:39,960 inside the visualization Pane and you 14701 10:05:39,960 --> 10:05:41,520 will get that kind of visual now I want 14702 10:05:41,520 --> 10:05:43,756 to create a visual which use context and 14703 10:05:43,756 --> 10:05:45,560 how do you use context this is how you 14704 10:05:45,560 --> 10:05:47,560 use the context because after some time 14705 10:05:47,560 --> 10:05:49,240 we will have some time intelligence 14706 10:05:49,240 --> 10:05:50,756 measure which is also going to use that 14707 10:05:50,756 --> 10:05:54,040 so I want sum of brand one and I'm not 14708 10:05:54,040 --> 10:05:56,880 going to use filter here I will use if 14709 10:05:56,880 --> 10:06:00,720 Max of item brand now this Max of item 14710 10:06:00,720 --> 10:06:02,520 brand what's Max is going to take in a 14711 10:06:02,520 --> 10:06:05,080 row see in the row brand 8 itself is 14712 10:06:05,080 --> 10:06:07,320 available let's say there is a brand8 14713 10:06:07,320 --> 10:06:09,240 available and I'm using category so row 14714 10:06:09,240 --> 10:06:11,040 only contain brand8 and then I'm using 14715 10:06:11,040 --> 10:06:12,840 category then it can bring the within 14716 10:06:12,840 --> 10:06:14,720 brand8 whatever is maximum category is 14717 10:06:14,720 --> 10:06:16,436 going to bring in that but here brand 14718 10:06:16,436 --> 10:06:18,400 eight itself is present the max of brand 14719 10:06:18,400 --> 10:06:20,720 eight what it is actually it is brand 8 14720 10:06:20,720 --> 10:06:22,480 in the first row so in this row it is 14721 10:06:22,480 --> 10:06:25,160 going to be brand 8 the brand 13 that's 14722 10:06:25,160 --> 10:06:27,640 the only value available yeah if I use 14723 10:06:27,640 --> 10:06:28,880 category definitely there are more 14724 10:06:28,880 --> 10:06:30,640 values available then it can take a Max 14725 10:06:30,640 --> 10:06:32,800 and I'll call it as it is equal to Brand 14726 10:06:32,800 --> 10:06:34,560 one comma what value I want to return 14727 10:06:34,560 --> 10:06:35,880 net otherwise I don't want to return 14728 10:06:35,880 --> 10:06:38,360 return a value let me try this out I got 14729 10:06:38,360 --> 10:06:40,800 a major tons of major now we have you 14730 10:06:40,800 --> 10:06:42,480 see the value for the brand one is 14731 10:06:42,480 --> 10:06:44,596 correct but there's no grand total here 14732 10:06:44,596 --> 10:06:46,240 and this is what we call the 14733 10:06:46,240 --> 10:06:48,520 calculations error because of filter 14734 10:06:48,520 --> 10:06:50,720 context context have you used now this 14735 10:06:50,720 --> 10:06:52,720 is one example you may have many other 14736 10:06:52,720 --> 10:06:54,800 such calculations where context is 14737 10:06:54,800 --> 10:06:57,116 causing your grand total either not to 14738 10:06:57,116 --> 10:06:59,000 appear or to appear wrong because 14739 10:06:59,000 --> 10:07:01,560 remember the grand totals are calculated 14740 10:07:01,560 --> 10:07:03,480 again when you calculated the grand 14741 10:07:03,480 --> 10:07:05,200 total again there was no item brand 14742 10:07:05,200 --> 10:07:07,400 available and when the item brand is not 14743 10:07:07,400 --> 10:07:09,720 available you blank value how do we 14744 10:07:09,720 --> 10:07:12,800 correct that so let's try with sux 14745 10:07:12,800 --> 10:07:14,916 values item 14746 10:07:14,916 --> 10:07:17,200 brand comma if 14747 10:07:17,200 --> 10:07:20,276 calculation did not work out did not 14748 10:07:20,276 --> 10:07:22,520 work out let's use 14749 10:07:22,520 --> 10:07:25,480 calculate so the moment we added the 14750 10:07:25,480 --> 10:07:28,000 calculate the results have started 14751 10:07:28,000 --> 10:07:30,400 coming out so as you aware that when you 14752 10:07:30,400 --> 10:07:32,320 use calculate is going to appear and let 14753 10:07:32,320 --> 10:07:33,840 me remove the calculator and showcase 14754 10:07:33,840 --> 10:07:35,916 you again whenever you are doing some 14755 10:07:35,916 --> 10:07:37,960 kind of a calculation inside the 14756 10:07:37,960 --> 10:07:40,360 Aggregates make sure the calculate is 14757 10:07:40,360 --> 10:07:42,960 used and once you use the calculate you 14758 10:07:42,960 --> 10:07:44,960 will get your calculation and you know 14759 10:07:44,960 --> 10:07:46,800 the alternative is summarized and which 14760 10:07:46,800 --> 10:07:48,596 you can also use to correct such 14761 10:07:48,596 --> 10:07:50,436 calculations so we have learned how can 14762 10:07:50,436 --> 10:07:52,800 we use summarize and values to get 14763 10:07:52,800 --> 10:07:55,320 include level of details and how can we 14764 10:07:55,320 --> 10:07:57,880 use it to correct our grand totals let 14765 10:07:57,880 --> 10:08:00,680 me just copy paste for your reference 14766 10:08:00,680 --> 10:08:02,720 and add summarize here so that you have 14767 10:08:02,720 --> 10:08:05,640 an example to refer when I share these 14768 10:08:05,640 --> 10:08:08,116 files with you we'll use a 14769 10:08:08,116 --> 10:08:10,880 summarize sales comma item 14770 10:08:10,880 --> 10:08:13,640 brand and this is sum of brand one 14771 10:08:13,640 --> 10:08:15,400 though I'm calling it brand two so we 14772 10:08:15,400 --> 10:08:17,116 have both the measures available with 14773 10:08:17,116 --> 10:08:19,436 help from values and summarize we 14774 10:08:19,436 --> 10:08:21,080 continue with one more use case where we 14775 10:08:21,080 --> 10:08:24,596 can use suiz and values and the place 14776 10:08:24,596 --> 10:08:26,276 where we need is basically when we need 14777 10:08:26,276 --> 10:08:29,720 to count the distinct values B so how do 14778 10:08:29,720 --> 10:08:32,080 we get the distinct count of anything so 14779 10:08:32,080 --> 10:08:34,880 in the sales table items are basically 14780 10:08:34,880 --> 10:08:36,680 made not going to be more than so how 14781 10:08:36,680 --> 10:08:39,400 many distinct items I have in my item 14782 10:08:39,400 --> 10:08:40,840 basically what I can do here is I can 14783 10:08:40,840 --> 10:08:45,200 bring in item here and I can use a build 14784 10:08:45,200 --> 10:08:48,080 a visual Pane and change its aggregation 14785 10:08:48,080 --> 10:08:50,116 I will get a 55 is the count I'm getting 14786 10:08:50,116 --> 10:08:51,560 there's a function distinct count I can 14787 10:08:51,560 --> 10:08:54,200 use so let me try to create a major 14788 10:08:54,200 --> 10:08:56,756 first major 14789 10:08:56,756 --> 10:08:59,000 is this 14790 10:08:59,000 --> 10:09:01,840 count and we use the function distinct 14791 10:09:01,840 --> 10:09:05,756 count sales item 14792 10:09:06,960 --> 10:09:11,400 id let me bring it here this is 55 on a 14793 10:09:11,400 --> 10:09:13,160 larger data the distin count might not 14794 10:09:13,160 --> 10:09:14,800 give you the desired performance I'll 14795 10:09:14,800 --> 10:09:17,080 tell you couple of ways which could give 14796 10:09:17,080 --> 10:09:19,520 you a little bit better 14797 10:09:19,520 --> 10:09:22,680 distinct count we are going to use 14798 10:09:23,200 --> 10:09:26,160 again in this distinct count I'm not 14799 10:09:26,160 --> 10:09:27,960 going to use function distinct what I'm 14800 10:09:27,960 --> 10:09:31,596 going to use I'll use count 14801 10:09:32,080 --> 10:09:34,880 rows values now single column I can use 14802 10:09:34,880 --> 10:09:37,320 values we have learned that in the past 14803 10:09:37,320 --> 10:09:40,160 get the distinct values you can use 14804 10:09:40,160 --> 10:09:46,000 values let me bring in here get it okay 14805 10:09:46,000 --> 10:09:47,756 so you're getting the same values now 14806 10:09:47,756 --> 10:09:49,720 let's learn one more way which which you 14807 10:09:49,720 --> 10:09:51,436 can actually use on multiple column 14808 10:09:51,436 --> 10:09:53,276 somebody ask you what is the distinct 14809 10:09:53,276 --> 10:09:55,520 combination of city and item you have in 14810 10:09:55,520 --> 10:09:57,916 the how do you do that and in fact 14811 10:09:57,916 --> 10:09:59,800 somebody can ask that brand and state 14812 10:09:59,800 --> 10:10:02,360 combination how do we do that what we 14813 10:10:02,360 --> 10:10:03,520 are going to do here is we are going to 14814 10:10:03,520 --> 10:10:04,320 use 14815 10:10:04,320 --> 10:10:07,080 summarize so first let me give you this 14816 10:10:07,080 --> 10:10:10,276 one listing count of item only and then 14817 10:10:10,276 --> 10:10:13,160 we will create a little complex case so 14818 10:10:13,160 --> 10:10:15,000 here we got this now we would like to 14819 10:10:15,000 --> 10:10:17,596 know the brand and the state combination 14820 10:10:17,596 --> 10:10:20,080 now state is also not at the role level 14821 10:10:20,080 --> 10:10:22,200 and brand is also not at the role level 14822 10:10:22,200 --> 10:10:23,640 what is that distinct combination 14823 10:10:23,640 --> 10:10:26,880 present with us for that now let's go 14824 10:10:26,880 --> 10:10:28,960 ahead and try that out and this time let 14825 10:10:28,960 --> 10:10:30,916 me explain you I quickly changed in the 14826 10:10:30,916 --> 10:10:32,960 case of summarize we have done few more 14827 10:10:32,960 --> 10:10:35,080 examples already now this time what I'm 14828 10:10:35,080 --> 10:10:36,680 going to do is let me explain you the 14829 10:10:36,680 --> 10:10:39,000 complete calculation count rows let me 14830 10:10:39,000 --> 10:10:41,720 use count rows this can also be used 14831 10:10:41,720 --> 10:10:43,360 when you have a visualization with few 14832 10:10:43,360 --> 10:10:45,116 group buys and few Majors you can take 14833 10:10:45,116 --> 10:10:47,840 the complete combination of those majors 14834 10:10:47,840 --> 10:10:49,960 and group Buys in the summarize and can 14835 10:10:49,960 --> 10:10:52,800 count it so count rows summarize what 14836 10:10:52,800 --> 10:10:55,160 summarize needs table so Central table 14837 10:10:55,160 --> 10:10:57,960 I'm going to give geography state I'm 14838 10:10:57,960 --> 10:11:00,800 going to take and from item I'm going to 14839 10:11:00,800 --> 10:11:03,880 take brand remember the combination is 14840 10:11:03,880 --> 10:11:05,480 not available in the say table it is 14841 10:11:05,480 --> 10:11:07,916 available in the related table and I'm 14842 10:11:07,916 --> 10:11:10,400 bringing in the count for those distinct 14843 10:11:10,400 --> 10:11:13,160 count is not going to work the alone 14844 10:11:13,160 --> 10:11:15,400 values cannot help me out so summarize 14845 10:11:15,400 --> 10:11:18,400 can help in such cases so you can get 14846 10:11:18,400 --> 10:11:20,916 distinct count counts using summarize 14847 10:11:20,916 --> 10:11:23,596 function and count rows let us now learn 14848 10:11:23,596 --> 10:11:25,560 how can we get percentage of total we 14849 10:11:25,560 --> 10:11:28,320 start a new visual let me create a 14850 10:11:28,320 --> 10:11:30,040 matrix visual first of all and in this 14851 10:11:30,040 --> 10:11:32,000 Matrix visual I would like to bring in 14852 10:11:32,000 --> 10:11:34,080 state and city from geography table so 14853 10:11:34,080 --> 10:11:37,320 state city and my favorite major bring 14854 10:11:37,320 --> 10:11:39,756 city under the state now when you do 14855 10:11:39,756 --> 10:11:41,276 that when you go to this major and right 14856 10:11:41,276 --> 10:11:44,640 click you see an option percentage of 14857 10:11:44,640 --> 10:11:46,596 Grant total percentage of row total 14858 10:11:46,596 --> 10:11:48,116 percentage of column total let's look 14859 10:11:48,116 --> 10:11:50,360 what is percentage of GR total let's 14860 10:11:50,360 --> 10:11:52,560 look at the other option right 14861 10:11:52,560 --> 10:11:55,520 click show value as percentage of column 14862 10:11:55,520 --> 10:11:58,080 total no difference again it is 100% no 14863 10:11:58,080 --> 10:11:59,596 value is percentage of there's no row 14864 10:11:59,596 --> 10:12:01,200 total right now there is a no row so 14865 10:12:01,200 --> 10:12:02,880 100% so basically they are just giving 14866 10:12:02,880 --> 10:12:05,000 me percentage of Grant total so now let 14867 10:12:05,000 --> 10:12:08,116 me go ahead and show show values but 14868 10:12:08,116 --> 10:12:09,640 what happens sometime I might require 14869 10:12:09,640 --> 10:12:11,116 certain calculation where I actually 14870 10:12:11,116 --> 10:12:13,040 need percentage how do I do that we have 14871 10:12:13,040 --> 10:12:14,400 learned few function in the past and 14872 10:12:14,400 --> 10:12:16,960 they are going to help us out calculate 14873 10:12:16,960 --> 10:12:20,916 percent of DT net grand total of net I 14874 10:12:20,916 --> 10:12:22,480 want to use the divide function because 14875 10:12:22,480 --> 10:12:24,520 I want to divide the current calculation 14876 10:12:24,520 --> 10:12:26,320 by the total grand total I'll tell you 14877 10:12:26,320 --> 10:12:28,000 how to get the grand total so divide 14878 10:12:28,000 --> 10:12:30,240 functions make sure that divide by 0 is 14879 10:12:30,240 --> 10:12:32,680 handle okay if to divide by 0 so net 14880 10:12:32,680 --> 10:12:34,520 what is available in the current now I 14881 10:12:34,520 --> 10:12:36,000 need a grand total the grand total 14882 10:12:36,000 --> 10:12:38,916 should violate or should not have any 14883 10:12:38,916 --> 10:12:41,640 filter consideration and to do that we 14884 10:12:41,640 --> 10:12:43,560 have something first of all I'll use 14885 10:12:43,560 --> 10:12:45,840 calculate net now I can use all or all 14886 10:12:45,840 --> 10:12:47,756 selected now if you want to honor the 14887 10:12:47,756 --> 10:12:49,720 filters use all select you should don't 14888 10:12:49,720 --> 10:12:51,640 even want to the filter context use all 14889 10:12:51,640 --> 10:12:54,160 I want to use all selected let me not 14890 10:12:54,160 --> 10:12:56,596 give any table name or it independent of 14891 10:12:56,596 --> 10:12:58,240 the tables so typically it will apply on 14892 10:12:58,240 --> 10:13:01,800 your C you will say it was showing 5% 14893 10:13:01,800 --> 10:13:03,320 something because when you use 14894 10:13:03,320 --> 10:13:05,560 percentage basically right now A Rao and 14895 10:13:05,560 --> 10:13:07,560 to convert to the percentage you click 14896 10:13:07,560 --> 10:13:10,080 on this you will get the percentage and 14897 10:13:10,080 --> 10:13:12,240 now you are saying I need sub toal how 14898 10:13:12,240 --> 10:13:14,560 do I get for sub total Alaska it would 14899 10:13:14,560 --> 10:13:16,720 be like 100% because Alaska only have 14900 10:13:16,720 --> 10:13:19,116 one Arizona has more a couple of ways 14901 10:13:19,116 --> 10:13:20,720 let start with first way so the first 14902 10:13:20,720 --> 10:13:22,520 way which I'm going to use here in I'm 14903 10:13:22,520 --> 10:13:26,040 going to use divide and I'll call it St 14904 10:13:26,040 --> 10:13:28,400 sub tootal one and there are few ways so 14905 10:13:28,400 --> 10:13:30,276 first way is in the second calculator 14906 10:13:30,276 --> 10:13:32,276 which is the sub total which I want I 14907 10:13:32,276 --> 10:13:35,000 can use remove filters of city now there 14908 10:13:35,000 --> 10:13:36,596 are only two levels so I can say remove 14909 10:13:36,596 --> 10:13:39,200 filter of City geography City what 14910 10:13:39,200 --> 10:13:40,560 happens when I remove the filter of 14911 10:13:40,560 --> 10:13:42,400 geography City or when I use all 14912 10:13:42,400 --> 10:13:44,560 geography City th will be removed from 14913 10:13:44,560 --> 10:13:48,360 the context so this is exclude level of 14914 10:13:48,360 --> 10:13:50,200 details I mean excluding a level of 14915 10:13:50,200 --> 10:13:51,916 detail again I need to make it as a 14916 10:13:51,916 --> 10:13:55,000 percentage and as you can see now this 14917 10:13:55,000 --> 10:13:57,720 is 100% this is 100% only one city and 14918 10:13:57,720 --> 10:13:59,640 this combination is 100% and definitely 14919 10:13:59,640 --> 10:14:00,840 at a state level we are going to have 14920 10:14:00,840 --> 10:14:03,116 100% so this is one way so we have 14921 10:14:03,116 --> 10:14:04,916 excluded the de there is one more way 14922 10:14:04,916 --> 10:14:07,080 which we can use for that we'll go 14923 10:14:07,080 --> 10:14:10,160 little bit more changes here again the 14924 10:14:10,160 --> 10:14:12,640 half of the formula will remain same so 14925 10:14:12,640 --> 10:14:14,520 the first part the role remains same the 14926 10:14:14,520 --> 10:14:16,680 calculate remains same here what I'm 14927 10:14:16,680 --> 10:14:20,360 going to do is filter all all selected 14928 10:14:20,360 --> 10:14:21,596 geography I'm going to bring in 14929 10:14:21,596 --> 10:14:24,160 geography table and then I'll say 14930 10:14:24,160 --> 10:14:26,840 geography state I'm trying to bring in 14931 10:14:26,840 --> 10:14:28,960 the filter context of visual row 14932 10:14:28,960 --> 10:14:33,116 geography State equals to the max of 14933 10:14:33,116 --> 10:14:36,520 geography state I'm trying to bring in 14934 10:14:36,520 --> 10:14:38,880 the filter context of visual row here 14935 10:14:38,880 --> 10:14:41,436 whatever state is in the context that 14936 10:14:41,436 --> 10:14:43,240 only should be considered as a filter 14937 10:14:43,240 --> 10:14:44,960 you take the complete geography table 14938 10:14:44,960 --> 10:14:47,000 ignore everything on the geography table 14939 10:14:47,000 --> 10:14:48,640 but state is equal to Max space so 14940 10:14:48,640 --> 10:14:50,160 whatever state is there in the row that 14941 10:14:50,160 --> 10:14:52,320 is the only thing you to consider I 14942 10:14:52,320 --> 10:14:54,756 calculated another subtotal and let me 14943 10:14:54,756 --> 10:14:56,240 go ahead and make it as a percentage 14944 10:14:56,240 --> 10:14:58,360 column and you will see similar results 14945 10:14:58,360 --> 10:14:59,840 a little bit different approach but what 14946 10:14:59,840 --> 10:15:02,116 we have there done here is filtering the 14947 10:15:02,116 --> 10:15:05,116 complete geography table for the row so 14948 10:15:05,116 --> 10:15:06,560 I considered the complete geography 14949 10:15:06,560 --> 10:15:08,640 table for every row filter is applied 14950 10:15:08,640 --> 10:15:10,200 filter context of visual row been 14951 10:15:10,200 --> 10:15:11,596 ignored because of that on the context 14952 10:15:11,596 --> 10:15:12,800 has been ignored but we are saying the 14953 10:15:12,800 --> 10:15:15,080 geography state in this complete table 14954 10:15:15,080 --> 10:15:16,960 should be equal to the max of geography 14955 10:15:16,960 --> 10:15:18,400 State and what is this Max of geography 14956 10:15:18,400 --> 10:15:19,916 State the state which is available in 14957 10:15:19,916 --> 10:15:21,560 this particular Row in this row though 14958 10:15:21,560 --> 10:15:23,480 I'm seeing City but I'm Arizona is the 14959 10:15:23,480 --> 10:15:25,640 state present here in the row context so 14960 10:15:25,640 --> 10:15:28,080 geography State complete table I'm 14961 10:15:28,080 --> 10:15:30,080 filtering for the current date and 14962 10:15:30,080 --> 10:15:31,840 that's how it is getting calculated and 14963 10:15:31,840 --> 10:15:34,200 we got the percentage of sub total in 14964 10:15:34,200 --> 10:15:35,720 this manner you can calculate percentage 14965 10:15:35,720 --> 10:15:39,520 of up total let's discuss how can we 14966 10:15:39,520 --> 10:15:41,916 create a rank now rank we might need as 14967 10:15:41,916 --> 10:15:44,840 a major we might need as a column now we 14968 10:15:44,840 --> 10:15:47,160 have few functions to do rank we have 14969 10:15:47,160 --> 10:15:50,116 rank X only Rank and rank rank. EQ there 14970 10:15:50,116 --> 10:15:52,200 is function for that all now the 14971 10:15:52,200 --> 10:15:53,800 function which we are going to discuss 14972 10:15:53,800 --> 10:15:55,880 right now is rank X and we are going to 14973 10:15:55,880 --> 10:15:57,800 discuss the rank function later when we 14974 10:15:57,800 --> 10:16:00,000 will discuss the functions which are 14975 10:16:00,000 --> 10:16:02,200 very similar to SQL window fun they are 14976 10:16:02,200 --> 10:16:04,520 not same as SQL window function but in 14977 10:16:04,520 --> 10:16:06,640 few aspect they are very similar to that 14978 10:16:06,640 --> 10:16:08,480 so when we are going to discuss that's 14979 10:16:08,480 --> 10:16:09,880 where we are going to discuss the ram 14980 10:16:09,880 --> 10:16:12,000 function first of all let me go ahead to 14981 10:16:12,000 --> 10:16:14,360 my table View and in the date table I 14982 10:16:14,360 --> 10:16:16,320 would like to create a rank this rank 14983 10:16:16,320 --> 10:16:18,640 would be used later when we will do the 14984 10:16:18,640 --> 10:16:20,720 time intelligence what I want to do here 14985 10:16:20,720 --> 10:16:23,520 is I have this column Week start date I 14986 10:16:23,520 --> 10:16:26,880 want to create a rank on week start date 14987 10:16:26,880 --> 10:16:28,800 and the reason for that is typically 14988 10:16:28,800 --> 10:16:30,040 whenever you want to do time 14989 10:16:30,040 --> 10:16:32,400 intelligence if we don't have the 14990 10:16:32,400 --> 10:16:34,480 extended time intelligence function we 14991 10:16:34,480 --> 10:16:36,360 actually use the rank function start of 14992 10:16:36,360 --> 10:16:38,080 the week is one column on which I want 14993 10:16:38,080 --> 10:16:40,040 to create a rank I want to create a new 14994 10:16:40,040 --> 10:16:42,640 rank column let me click on new column 14995 10:16:42,640 --> 10:16:44,160 column tools is visible because I 14996 10:16:44,160 --> 10:16:46,480 already clicked on a column and let me 14997 10:16:46,480 --> 10:16:48,276 use this week start date column and 14998 10:16:48,276 --> 10:16:50,756 create a rank so I'll use I'll give the 14999 10:16:50,756 --> 10:16:53,200 name as Peak rank make it a little bit 15000 10:16:53,200 --> 10:16:55,276 bigger so that you can see it Rank and 15001 10:16:55,276 --> 10:16:57,840 you can see rank. EQ rank X and rank 15002 10:16:57,840 --> 10:16:59,276 three functions are there I'm going to 15003 10:16:59,276 --> 10:17:01,880 use rank X now the rank X function have 15004 10:17:01,880 --> 10:17:03,756 few arguments which are required the 15005 10:17:03,756 --> 10:17:05,560 first argument is table in case of 15006 10:17:05,560 --> 10:17:07,320 column it's going to be a table or you 15007 10:17:07,320 --> 10:17:09,400 can use filter function to return return 15008 10:17:09,400 --> 10:17:11,320 a table which can restrict it when we 15009 10:17:11,320 --> 10:17:13,520 create like rank subcategory rank if you 15010 10:17:13,520 --> 10:17:14,916 want to create you can have use the 15011 10:17:14,916 --> 10:17:16,680 filter function expression this is going 15012 10:17:16,680 --> 10:17:18,240 to be our column third we are going to 15013 10:17:18,240 --> 10:17:20,720 leave fourth is order by default it is 15014 10:17:20,720 --> 10:17:22,680 descending rank x is by default 15015 10:17:22,680 --> 10:17:25,400 descending and ties is Skip and dens by 15016 10:17:25,400 --> 10:17:27,040 default is Skip I'll explain you the 15017 10:17:27,040 --> 10:17:29,276 meaning of skip and dense in a moment so 15018 10:17:29,276 --> 10:17:31,080 we're going to use dense and Skip here 15019 10:17:31,080 --> 10:17:32,800 one by one and I'll explain the meaning 15020 10:17:32,800 --> 10:17:34,800 so let me showcase you so I'll start 15021 10:17:34,800 --> 10:17:37,520 with rankx table name is date table and 15022 10:17:37,520 --> 10:17:39,080 I'm creating it as in a column not 15023 10:17:39,080 --> 10:17:41,116 adding to the script we can add it to 15024 10:17:41,116 --> 10:17:43,800 the script later and then the column I'm 15025 10:17:43,800 --> 10:17:46,080 going to use is Week start date and I'll 15026 10:17:46,080 --> 10:17:47,800 leave it as only two arguments I'm 15027 10:17:47,800 --> 10:17:49,840 supplying right and let me do one thing 15028 10:17:49,840 --> 10:17:52,436 let me sort the dates on ascending order 15029 10:17:52,436 --> 10:17:54,480 we understand the meaning of ascending 15030 10:17:54,480 --> 10:17:56,240 and let me close date we have a pretty 15031 10:17:56,240 --> 10:17:58,360 big date skpt let me close that now 15032 10:17:58,360 --> 10:18:00,116 let's look at it so what's happening 15033 10:18:00,116 --> 10:18:02,160 here definitely we are why we are 15034 10:18:02,160 --> 10:18:03,840 getting the highest rank first of all 15035 10:18:03,840 --> 10:18:05,320 because it's a descending Rank by 15036 10:18:05,320 --> 10:18:07,200 default we actually wanted as sending 15037 10:18:07,200 --> 10:18:09,000 rank so whenever we create a rank for 15038 10:18:09,000 --> 10:18:10,840 the date column we actually need as 15039 10:18:10,840 --> 10:18:13,080 sending rank second I opened all the 15040 10:18:13,080 --> 10:18:15,116 distinct values and you can see the rank 15041 10:18:15,116 --> 10:18:17,080 has jumped this is because it is a skip 15042 10:18:17,080 --> 10:18:19,080 rank what happens in case of skip rank 15043 10:18:19,080 --> 10:18:21,116 let's understand this let me sort it 15044 10:18:21,116 --> 10:18:24,116 ascending here so for 7 days I have this 15045 10:18:24,116 --> 10:18:26,596 rank so the next rank is not two it's 15046 10:18:26,596 --> 10:18:29,756 eight so it's a skip the ranks which are 15047 10:18:29,756 --> 10:18:32,880 actually they repeating if it is one one 15048 10:18:32,880 --> 10:18:35,200 then next is three it's a skip if it is 15049 10:18:35,200 --> 10:18:37,520 one one and next is two then it is 10 so 15050 10:18:37,520 --> 10:18:39,240 two things I need to change here is 15051 10:18:39,240 --> 10:18:41,480 first I need the rank as ascending rank 15052 10:18:41,480 --> 10:18:43,116 so I need to give an argument by default 15053 10:18:43,116 --> 10:18:45,116 it is descending and ties We Know by 15054 10:18:45,116 --> 10:18:47,000 default it is Skip so I need to create a 15055 10:18:47,000 --> 10:18:49,916 dance Rank and let me press now you can 15056 10:18:49,916 --> 10:18:52,520 see on my calendar the minimum date is 15057 10:18:52,520 --> 10:18:55,080 having rank one and in spite of rank 15058 10:18:55,080 --> 10:18:57,960 repeating twice I don't have the rank as 15059 10:18:57,960 --> 10:19:00,520 three I still have it as two so dance 15060 10:19:00,520 --> 10:19:02,880 rank is a continuous rank the rank 15061 10:19:02,880 --> 10:19:06,720 numbers will be one to three in spite of 15062 10:19:06,720 --> 10:19:08,960 repetition that is what we call dance 15063 10:19:08,960 --> 10:19:11,360 rank so we have created a dance rank 15064 10:19:11,360 --> 10:19:13,520 here and we have created ascending so 15065 10:19:13,520 --> 10:19:15,680 rank X function is something we have 15066 10:19:15,680 --> 10:19:18,116 used to create a new column now let's go 15067 10:19:18,116 --> 10:19:20,400 ahead and create a rank magic so I'll 15068 10:19:20,400 --> 10:19:22,520 add a new page for that so let me create 15069 10:19:22,520 --> 10:19:24,840 a visual brand the table visual I'm 15070 10:19:24,840 --> 10:19:27,240 bringing in brand and net converting it 15071 10:19:27,240 --> 10:19:29,240 to table I want to create rank already 15072 10:19:29,240 --> 10:19:30,840 it is sort in descending I want to 15073 10:19:30,840 --> 10:19:32,880 create a rank on the same order what I 15074 10:19:32,880 --> 10:19:35,160 can do here is basically new major I'll 15075 10:19:35,160 --> 10:19:38,596 click on new major and I'll call it rank 15076 10:19:38,596 --> 10:19:42,116 net I'm going to use rank X all selected 15077 10:19:42,116 --> 10:19:43,480 now what is the difference between all 15078 10:19:43,480 --> 10:19:45,640 and all selected I'll showcase you in in 15079 10:19:45,640 --> 10:19:49,240 a short file all selected item bran and 15080 10:19:49,240 --> 10:19:51,916 net now I can give the other argument so 15081 10:19:51,916 --> 10:19:53,800 I can have in the table I need to have 15082 10:19:53,800 --> 10:19:56,040 all selected all all except something I 15083 10:19:56,040 --> 10:19:57,916 need here expression here need to be 15084 10:19:57,916 --> 10:20:00,640 major values we are going to leave order 15085 10:20:00,640 --> 10:20:02,520 I'm going to use descending because 15086 10:20:02,520 --> 10:20:04,756 mostly we all to create descending Rank 15087 10:20:04,756 --> 10:20:07,160 and ties I'm going to use Den here so I 15088 10:20:07,160 --> 10:20:09,520 can leave any argument after this one 15089 10:20:09,520 --> 10:20:11,916 descending by default it is descending 15090 10:20:11,916 --> 10:20:14,160 so I can could have skipped that and den 15091 10:20:14,160 --> 10:20:16,480 so it's giving you r 1 2 3 4 5 what's 15092 10:20:16,480 --> 10:20:18,040 the difference between all and all 15093 10:20:18,040 --> 10:20:19,916 selected for that let me do one thing 15094 10:20:19,916 --> 10:20:22,640 let me also bring in a slicer on brand 15095 10:20:22,640 --> 10:20:25,960 and let me build it as a multi- select 15096 10:20:25,960 --> 10:20:28,400 and show so I'll do select all as you 15097 10:20:28,400 --> 10:20:30,400 can see that the moment I am removing 15098 10:20:30,400 --> 10:20:32,756 something the rank is getting adjusted 15099 10:20:32,756 --> 10:20:34,880 if you see now the rank is still one 2 3 15100 10:20:34,880 --> 10:20:37,360 4 5 6 7 8 9 10 this is because all 15101 10:20:37,360 --> 10:20:39,960 selected it is considering only the data 15102 10:20:39,960 --> 10:20:42,160 on which the rank is getting created but 15103 10:20:42,160 --> 10:20:44,000 if you don't want that you say no no 15104 10:20:44,000 --> 10:20:46,080 even though I remove the data from my 15105 10:20:46,080 --> 10:20:49,200 context I still want my rank to honor 15106 10:20:49,200 --> 10:20:51,916 the initial data then I can use all now 15107 10:20:51,916 --> 10:20:54,640 you can see that the rank is having 15108 10:20:54,640 --> 10:20:57,080 jumps so we have number six this is 15109 10:20:57,080 --> 10:20:59,000 missing because we have unselected that 15110 10:20:59,000 --> 10:21:00,640 we have number nine which is missing 15111 10:21:00,640 --> 10:21:02,200 okay we have number three which is also 15112 10:21:02,200 --> 10:21:04,320 missing so this is how all work now 15113 10:21:04,320 --> 10:21:06,040 let's come to a really interesting 15114 10:21:06,040 --> 10:21:08,436 feature of the rank and let me explain 15115 10:21:08,436 --> 10:21:10,360 you for that first of all I'm going to 15116 10:21:10,360 --> 10:21:12,756 bring from the brand table the brand ID 15117 10:21:12,756 --> 10:21:13,720 into the 15118 10:21:13,720 --> 10:21:15,800 visualization and let me enable the 15119 10:21:15,800 --> 10:21:18,040 build a visual for that I right on the 15120 10:21:18,040 --> 10:21:19,436 right hand side there was an option I 15121 10:21:19,436 --> 10:21:21,160 enabled that and I'm going to bring the 15122 10:21:21,160 --> 10:21:25,240 brand ID why did all the rank became 15123 10:21:28,000 --> 10:21:31,160 one for reason for that is and to 15124 10:21:31,160 --> 10:21:32,560 understand that reason let's change it 15125 10:21:32,560 --> 10:21:34,320 little bit let me remove brand ID and 15126 10:21:34,320 --> 10:21:36,840 let me bring in actually category and 15127 10:21:36,840 --> 10:21:38,160 then you will be able to understand 15128 10:21:38,160 --> 10:21:40,276 better let me sort first on category 15129 10:21:40,276 --> 10:21:43,400 shift and sort on rank now you can see 15130 10:21:43,400 --> 10:21:46,276 inside the category all the ranks are 15131 10:21:46,276 --> 10:21:48,880 for the brand so the category is is 15132 10:21:48,880 --> 10:21:51,800 acting as a partition and inside that we 15133 10:21:51,800 --> 10:21:54,276 are getting the rank so the rank get 15134 10:21:54,276 --> 10:21:57,880 redistributed or partition on the column 15135 10:21:57,880 --> 10:22:01,436 which is not present in the rank measure 15136 10:22:01,436 --> 10:22:03,276 when I created my measure whatever 15137 10:22:03,276 --> 10:22:05,360 columns are not present if they are used 15138 10:22:05,360 --> 10:22:07,916 in the visualization the rank will 15139 10:22:07,916 --> 10:22:09,840 redistribute inside that you know 15140 10:22:09,840 --> 10:22:12,000 partition itself into that and because 15141 10:22:12,000 --> 10:22:14,436 of the same reason because brand ID and 15142 10:22:14,436 --> 10:22:16,800 brand are at the same level now category 15143 10:22:16,800 --> 10:22:18,680 has different different brand but where 15144 10:22:18,680 --> 10:22:21,640 bring in now again the brand ID each 15145 10:22:21,640 --> 10:22:24,276 brand ID has only having one brand and 15146 10:22:24,276 --> 10:22:25,960 that is why the rank is coming as one 15147 10:22:25,960 --> 10:22:28,200 one one one then how do we handle such 15148 10:22:28,200 --> 10:22:30,400 scenario one of the easiest ways and 15149 10:22:30,400 --> 10:22:32,520 because they're belonging from one table 15150 10:22:32,520 --> 10:22:35,480 you can simply bring in brand ID also 15151 10:22:35,480 --> 10:22:37,840 inside this one now in this case I 15152 10:22:37,840 --> 10:22:40,116 cannot use item table typically I take 15153 10:22:40,116 --> 10:22:42,480 an example of City ID and City there I 15154 10:22:42,480 --> 10:22:44,116 am able to use the geography table 15155 10:22:44,116 --> 10:22:46,040 because they are at the lowest level 15156 10:22:46,040 --> 10:22:48,040 brand is not at the lowest level so I 15157 10:22:48,040 --> 10:22:50,840 have to specifically call Brand ID item 15158 10:22:50,840 --> 10:22:53,116 brand now you can see the rank is again 15159 10:22:53,116 --> 10:22:55,200 correct both are participa but what 15160 10:22:55,200 --> 10:22:58,040 happens when you read rank on multiple 15161 10:22:58,040 --> 10:23:00,276 columns which are not part of the same 15162 10:23:00,276 --> 10:23:02,276 table so let me bring in brand again 15163 10:23:02,276 --> 10:23:04,240 into a new table and let me also bring 15164 10:23:04,240 --> 10:23:06,640 in state I'm bringing the state column 15165 10:23:06,640 --> 10:23:08,960 so let me do one thing let me first 15166 10:23:08,960 --> 10:23:11,160 bring in state here I'm doing a little 15167 10:23:11,160 --> 10:23:13,840 bit change and then brand and net now 15168 10:23:13,840 --> 10:23:15,880 what happens when I put that rank column 15169 10:23:15,880 --> 10:23:19,800 let me again make it as a table visual 15170 10:23:19,800 --> 10:23:21,240 again you can see the brand getting 15171 10:23:21,240 --> 10:23:23,320 distributed the brand ID is not present 15172 10:23:23,320 --> 10:23:24,436 brand is present it's getting 15173 10:23:24,436 --> 10:23:27,276 redistributed inside I can sort on the 15174 10:23:27,276 --> 10:23:29,720 state and then I can shift and sort on 15175 10:23:29,720 --> 10:23:31,436 the net and you will see the rank 15176 10:23:31,436 --> 10:23:33,560 getting adjusted but I need a continuous 15177 10:23:33,560 --> 10:23:35,520 rank so anytime I create a state rank it 15178 10:23:35,520 --> 10:23:37,560 will get distributed into brand rank if 15179 10:23:37,560 --> 10:23:39,080 I create a brand rank it will get 15180 10:23:39,080 --> 10:23:41,480 redistributed or partition on state I 15181 10:23:41,480 --> 10:23:43,276 need a combined rank they are from two 15182 10:23:43,276 --> 10:23:45,040 different tables so then how do I do 15183 10:23:45,040 --> 10:23:47,000 that so let's again create a major and 15184 10:23:47,000 --> 10:23:51,400 in this major which is rank net St and 15185 10:23:51,400 --> 10:23:54,320 brand eight and brand I'll use rank X 15186 10:23:54,320 --> 10:23:56,040 all selected now you know the difference 15187 10:23:56,040 --> 10:23:57,916 between those I can't use all selected 15188 10:23:57,916 --> 10:24:00,040 the reason are all because the moment I 15189 10:24:00,040 --> 10:24:03,840 do that I use geography State comma item 15190 10:24:03,840 --> 10:24:05,800 brand and you need to be careful because 15191 10:24:05,800 --> 10:24:07,640 I have state available in geography and 15192 10:24:07,640 --> 10:24:09,800 customer if I don't use the correct one 15193 10:24:09,800 --> 10:24:11,840 uh it's going to not work again 15194 10:24:11,840 --> 10:24:13,720 redistribution will happen inside that 15195 10:24:13,720 --> 10:24:16,000 and I'll try this out and this this is 15196 10:24:16,000 --> 10:24:17,880 giving an error because you can't use 15197 10:24:17,880 --> 10:24:20,040 this different TBL so to overcome that 15198 10:24:20,040 --> 10:24:21,596 what I'm going to use is I'll use 15199 10:24:21,596 --> 10:24:23,916 summarize function summarize all 15200 10:24:23,916 --> 10:24:27,276 selected on sales table sales so the 15201 10:24:27,276 --> 10:24:28,840 table which I'm giving in the summarize 15202 10:24:28,840 --> 10:24:30,720 is sales and as I'm giving a central 15203 10:24:30,720 --> 10:24:32,680 table then I can take the dimensions 15204 10:24:32,680 --> 10:24:35,360 table geography and item into that 15205 10:24:35,360 --> 10:24:37,240 summarize so here it is summarize and 15206 10:24:37,240 --> 10:24:39,320 all selected is compulsory here and then 15207 10:24:39,320 --> 10:24:41,276 net and then I can use the other two 15208 10:24:41,276 --> 10:24:43,916 parameter this sending and dense now let 15209 10:24:43,916 --> 10:24:46,116 me add this to the visualization now 15210 10:24:46,116 --> 10:24:48,560 here you will see the rank is again 15211 10:24:48,560 --> 10:24:50,400 distributed why because we have taken 15212 10:24:50,400 --> 10:24:52,160 customer that's what I was telling 15213 10:24:52,160 --> 10:24:53,840 because I'm taking the geography State 15214 10:24:53,840 --> 10:24:55,916 and I'm use this then it will create a 15215 10:24:55,916 --> 10:24:57,960 problem so let me go ahead and change 15216 10:24:57,960 --> 10:25:00,116 this State field from customer to 15217 10:25:00,116 --> 10:25:02,840 geography and now you can see the rank 15218 10:25:02,840 --> 10:25:05,560 is continuous okay in this manner you 15219 10:25:05,560 --> 10:25:07,960 will get a continuous rank across 15220 10:25:07,960 --> 10:25:10,200 multiple table column in sometime we 15221 10:25:10,200 --> 10:25:11,960 will discuss rank function rank function 15222 10:25:11,960 --> 10:25:14,276 is also better equipped than rank X 15223 10:25:14,276 --> 10:25:16,840 function for handling the ties now there 15224 10:25:16,840 --> 10:25:19,116 is a ways to handle ties in rank X but 15225 10:25:19,116 --> 10:25:21,200 that's really challenging so we will 15226 10:25:21,200 --> 10:25:24,040 keep that for rank function let's 15227 10:25:24,040 --> 10:25:25,916 discuss top end function now when we 15228 10:25:25,916 --> 10:25:27,480 want to get the top end there are a 15229 10:25:27,480 --> 10:25:29,080 couple of options we have one is 15230 10:25:29,080 --> 10:25:30,680 definitely we have a top end function 15231 10:25:30,680 --> 10:25:32,240 which won't give us and the second 15232 10:25:32,240 --> 10:25:34,800 option is basically at the visual level 15233 10:25:34,800 --> 10:25:38,800 itself let me bring in brand and net 15234 10:25:38,800 --> 10:25:41,200 into a visualization now as converting 15235 10:25:41,200 --> 10:25:43,720 to table visual assume you want top five 15236 10:25:43,720 --> 10:25:45,756 Brands by net what you will do simply go 15237 10:25:45,756 --> 10:25:47,720 to the brand into the visual level 15238 10:25:47,720 --> 10:25:49,276 filter and this happens in the visual 15239 10:25:49,276 --> 10:25:51,800 level filter you can go here and use top 15240 10:25:51,800 --> 10:25:54,436 and I need top five base is what I have 15241 10:25:54,436 --> 10:25:56,200 net in the visual but I can get in based 15242 10:25:56,200 --> 10:25:58,040 on margin percentage anything which I 15243 10:25:58,040 --> 10:25:59,840 want but right now I definitely want 15244 10:25:59,840 --> 10:26:02,116 base on the net so you drag the value 15245 10:26:02,116 --> 10:26:04,160 here and you use apply please drag a 15246 10:26:04,160 --> 10:26:06,080 measure and you get the top five values 15247 10:26:06,080 --> 10:26:08,000 very easy so whenever we need it we can 15248 10:26:08,000 --> 10:26:10,720 use that but we do have a function which 15249 10:26:10,720 --> 10:26:12,756 is known as top end and let me explain 15250 10:26:12,756 --> 10:26:14,640 you that function step by step I'm going 15251 10:26:14,640 --> 10:26:17,276 to use the new major for that so let me 15252 10:26:17,276 --> 10:26:19,276 click on the new major in the table tool 15253 10:26:19,276 --> 10:26:21,200 and the major I'm going to create is top 15254 10:26:21,200 --> 10:26:23,680 10 net and the function is top n Now 15255 10:26:23,680 --> 10:26:26,436 what is my n value n value is 10 so I 15256 10:26:26,436 --> 10:26:28,880 need n value I need table expression and 15257 10:26:28,880 --> 10:26:30,720 here table expression will be all or all 15258 10:26:30,720 --> 10:26:33,400 selected order by expression order 15259 10:26:33,400 --> 10:26:35,000 ascending or descending and this kind of 15260 10:26:35,000 --> 10:26:36,840 information is so let's start with I 15261 10:26:36,840 --> 10:26:39,680 need top here we already have so big so 15262 10:26:39,680 --> 10:26:41,916 13 values but I need only 10 values out 15263 10:26:41,916 --> 10:26:45,756 of that all selected item brand comma 15264 10:26:45,756 --> 10:26:47,756 order by expression order on net and 15265 10:26:47,756 --> 10:26:49,480 what I want descending and right now 15266 10:26:49,480 --> 10:26:51,320 I'll keep it only this one what happens 15267 10:26:51,320 --> 10:26:53,640 here is basically the top end function 15268 10:26:53,640 --> 10:26:55,840 actually returns a table the moment I 15269 10:26:55,840 --> 10:26:58,360 put it here it start giving me error H 15270 10:26:58,360 --> 10:27:00,520 you get an error calculation error 15271 10:27:00,520 --> 10:27:02,960 measure custom table of multiple value 15272 10:27:02,960 --> 10:27:05,520 it's basically table so what I can do is 15273 10:27:05,520 --> 10:27:07,480 I can use this as a filter in the 15274 10:27:07,480 --> 10:27:10,276 calculate so I'll use calculate net 15275 10:27:10,276 --> 10:27:12,596 first argument and then we will have 15276 10:27:12,596 --> 10:27:15,276 this top nend and press enter this seems 15277 10:27:15,276 --> 10:27:17,640 to be some challenge isn't it the value 15278 10:27:17,640 --> 10:27:20,680 top n and Branch seems like very similar 15279 10:27:20,680 --> 10:27:22,680 to the grand total isn't it it doesn't 15280 10:27:22,680 --> 10:27:25,240 seems to be filtering top end values 15281 10:27:25,240 --> 10:27:27,596 either okay let me do one thing in this 15282 10:27:27,596 --> 10:27:29,520 visual let me remove that's the first 15283 10:27:29,520 --> 10:27:31,840 reason after I remove the F filter now 15284 10:27:31,840 --> 10:27:33,720 again there is some challenge here this 15285 10:27:33,720 --> 10:27:35,640 value is not same as grand total I can 15286 10:27:35,640 --> 10:27:37,276 understand there a top maybe some of the 15287 10:27:37,276 --> 10:27:39,360 top 10 values and different now because 15288 10:27:39,360 --> 10:27:41,400 previously the top five filter was there 15289 10:27:41,400 --> 10:27:43,960 this is a sum of top 10 not the top 10 15290 10:27:43,960 --> 10:27:45,960 and nor it is filtering it for that what 15291 10:27:45,960 --> 10:27:48,320 I'm going to do I can keep values inside 15292 10:27:48,320 --> 10:27:50,400 this one or key filters so let me show 15293 10:27:50,400 --> 10:27:52,596 you both of them one by one let me use 15294 10:27:52,596 --> 10:27:56,320 values item brand first way reduce it to 15295 10:27:56,320 --> 10:27:58,360 top 10 and if I remove the net it will 15296 10:27:58,360 --> 10:28:00,240 actually keep it top 10 only and that's 15297 10:28:00,240 --> 10:28:01,880 the total for that if you don't want to 15298 10:28:01,880 --> 10:28:04,360 use values you have an option which is 15299 10:28:04,360 --> 10:28:07,480 if filters can take this filter argument 15300 10:28:07,480 --> 10:28:09,680 and basically keep the filter and apply 15301 10:28:09,680 --> 10:28:11,960 the values automatically in this case 15302 10:28:11,960 --> 10:28:13,560 and this will to give me the same result 15303 10:28:13,560 --> 10:28:15,240 so in a scenario when you have the 15304 10:28:15,240 --> 10:28:16,880 filter and you want to have the values 15305 10:28:16,880 --> 10:28:18,756 impact also you can use keep filters 15306 10:28:18,756 --> 10:28:20,756 keep filters can work for you I got now 15307 10:28:20,756 --> 10:28:23,360 top 10 net by using a major I can use 15308 10:28:23,360 --> 10:28:25,480 top end and I can get whatever top I 15309 10:28:25,480 --> 10:28:27,880 want but what happens in case I need 15310 10:28:27,880 --> 10:28:30,080 this as a dynamic is that if I choose 15311 10:28:30,080 --> 10:28:32,276 one give me one if I choose two give me 15312 10:28:32,276 --> 10:28:34,276 two if I choose three give me three how 15313 10:28:34,276 --> 10:28:38,200 can I create Dynamic top n for that what 15314 10:28:38,200 --> 10:28:40,200 we have to do is we have to take help 15315 10:28:40,200 --> 10:28:42,080 from the modeling Tab and in modeling 15316 10:28:42,080 --> 10:28:44,320 tab we have new parameter now we have 15317 10:28:44,320 --> 10:28:46,520 two kind of new parameters one of them 15318 10:28:46,520 --> 10:28:48,756 is a numeric range and another one is 15319 10:28:48,756 --> 10:28:50,756 field parameter now field parameter is 15320 10:28:50,756 --> 10:28:52,560 we're going to discuss after some time 15321 10:28:52,560 --> 10:28:54,320 numeric parameter was previously also 15322 10:28:54,320 --> 10:28:56,240 known as what if parameter so numeric 15323 10:28:56,240 --> 10:28:57,640 range I'm going to create it's going to 15324 10:28:57,640 --> 10:28:59,880 create a new table for me using the 15325 10:28:59,880 --> 10:29:01,720 generate series it's going to give me 15326 10:29:01,720 --> 10:29:03,800 the number so I can create a series of 15327 10:29:03,800 --> 10:29:06,276 numeric or field I can give it a name so 15328 10:29:06,276 --> 10:29:08,320 name is top and number I want it to give 15329 10:29:08,320 --> 10:29:12,200 minimum 0 Max 20 increment by one 15330 10:29:12,200 --> 10:29:15,200 default is five I keep this as checked I 15331 10:29:15,200 --> 10:29:17,360 want to add a slicer I don't want it to 15332 10:29:17,360 --> 10:29:19,596 leave for later and the advantage of 15333 10:29:19,596 --> 10:29:21,800 this one is basically is give me a 15334 10:29:21,800 --> 10:29:24,200 slicer where I can enter one single 15335 10:29:24,200 --> 10:29:26,200 select box so let me go ahead and create 15336 10:29:26,200 --> 10:29:28,116 that now what is going to do is actually 15337 10:29:28,116 --> 10:29:29,680 it's going to create a table for me 15338 10:29:29,680 --> 10:29:32,000 using the generate Series has created a 15339 10:29:32,000 --> 10:29:34,400 table using generate series and it gives 15340 10:29:34,400 --> 10:29:36,560 me this parameters basically coming from 15341 10:29:36,560 --> 10:29:38,160 them this is the column which is coming 15342 10:29:38,160 --> 10:29:40,360 from that it also create by default a 15343 10:29:40,360 --> 10:29:43,116 major for you which you can use in your 15344 10:29:43,116 --> 10:29:45,160 calculations and this table is a 15345 10:29:45,160 --> 10:29:47,240 disconnected table so whatever values we 15346 10:29:47,240 --> 10:29:49,520 are have going to have we need to use 15347 10:29:49,520 --> 10:29:51,360 that in our measure then only they going 15348 10:29:51,360 --> 10:29:53,116 to have you can use that various places 15349 10:29:53,116 --> 10:29:54,720 but what I'm going to do is without 15350 10:29:54,720 --> 10:29:56,640 disturbing this slicer right now I'm 15351 10:29:56,640 --> 10:29:59,040 going to place this value inside our 15352 10:29:59,040 --> 10:30:01,756 measure in the top and in place of this 15353 10:30:01,756 --> 10:30:04,680 10 now I'll use that top and major which 15354 10:30:04,680 --> 10:30:06,640 is already been created for me the 15355 10:30:06,640 --> 10:30:08,960 moment I do it you will see I only have 15356 10:30:08,960 --> 10:30:10,520 the five values because the default 15357 10:30:10,520 --> 10:30:12,680 value was five how did it get it so 15358 10:30:12,680 --> 10:30:14,640 there is something known as whenever you 15359 10:30:14,640 --> 10:30:16,916 wanted to get a value which is selected 15360 10:30:16,916 --> 10:30:19,360 you use the functions selected value and 15361 10:30:19,360 --> 10:30:20,840 the selected value is going to give you 15362 10:30:20,840 --> 10:30:22,680 the selected value it doesn't get you 15363 10:30:22,680 --> 10:30:24,480 can default it so selected value 15364 10:30:24,480 --> 10:30:26,200 function have being used here which is 15365 10:30:26,200 --> 10:30:28,320 returning us this value and definitely 15366 10:30:28,320 --> 10:30:30,160 whenever we need we can use this 15367 10:30:30,160 --> 10:30:32,116 function Al selected value functions 15368 10:30:32,116 --> 10:30:34,200 give us the selected value in the slicer 15369 10:30:34,200 --> 10:30:35,916 but it only gives one value if you have 15370 10:30:35,916 --> 10:30:38,080 more than one value then we need a 15371 10:30:38,080 --> 10:30:40,240 different operation usually we use 15372 10:30:40,240 --> 10:30:42,116 values or something we can handle in 15373 10:30:42,116 --> 10:30:43,800 multiple ways basically whatever is 15374 10:30:43,800 --> 10:30:45,680 selected is only available whatever is 15375 10:30:45,680 --> 10:30:47,916 not selected if you need you need to PR 15376 10:30:47,916 --> 10:30:50,200 fix to get that data so now I will go 15377 10:30:50,200 --> 10:30:52,400 ahead and change it to top let's say one 15378 10:30:52,400 --> 10:30:54,240 I only got the top one value what I can 15379 10:30:54,240 --> 10:30:56,520 do is basically I can remove net from my 15380 10:30:56,520 --> 10:30:59,116 visualization I click here I'll bring in 15381 10:30:59,116 --> 10:31:02,080 the build a visual and you take out net 15382 10:31:02,080 --> 10:31:04,200 from here now I only got one value three 15383 10:31:04,200 --> 10:31:08,080 top three top five top 10 in this manner 15384 10:31:08,080 --> 10:31:10,880 my visual will now respond to the top 15385 10:31:10,880 --> 10:31:13,520 end values Now understand one thing that 15386 10:31:13,520 --> 10:31:14,840 there is one more thing which you should 15387 10:31:14,840 --> 10:31:16,840 do now what happens like when we use the 15388 10:31:16,840 --> 10:31:19,276 top end here it's do you filter and if 15389 10:31:19,276 --> 10:31:20,880 you there are multiple measures all 15390 10:31:20,880 --> 10:31:22,480 those measure will get filtered based on 15391 10:31:22,480 --> 10:31:24,160 the top end of one particular C now 15392 10:31:24,160 --> 10:31:27,800 let's say you need top end of gross but 15393 10:31:27,800 --> 10:31:29,960 based on net or top end of margin 15394 10:31:29,960 --> 10:31:32,276 percentage still based on net in that 15395 10:31:32,276 --> 10:31:33,880 case you're not going to change the 15396 10:31:33,880 --> 10:31:35,560 second part of it and the reason I'm 15397 10:31:35,560 --> 10:31:37,320 telling you sometime what happens is I 15398 10:31:37,320 --> 10:31:39,800 have the top I have the top 10 items of 15399 10:31:39,800 --> 10:31:42,640 this year I want value of the prior ear 15400 10:31:42,640 --> 10:31:44,596 based on that so there's a prior measor 15401 10:31:44,596 --> 10:31:47,116 I have and I need the value for that so 15402 10:31:47,116 --> 10:31:49,080 see my top top n is still calculating 15403 10:31:49,080 --> 10:31:51,720 based on that but based on that top end 15404 10:31:51,720 --> 10:31:54,116 I am bringing in margin percentage now 15405 10:31:54,116 --> 10:31:56,960 margin percentage may or may not be the 15406 10:31:56,960 --> 10:31:59,720 top 10 in this case let me rename this 15407 10:31:59,720 --> 10:32:02,756 major margin percentage and bring this 15408 10:32:02,756 --> 10:32:03,840 into my 15409 10:32:03,840 --> 10:32:06,116 visualization and I would also like to 15410 10:32:06,116 --> 10:32:09,596 bring in margin percent and I change the 15411 10:32:09,596 --> 10:32:12,436 formatting percentage for margin top 10 15412 10:32:12,436 --> 10:32:14,560 margin percentage now I would like to 15413 10:32:14,560 --> 10:32:17,040 sort this visual on margin percentage 15414 10:32:17,040 --> 10:32:19,720 this is not not the top 10 margin 15415 10:32:19,720 --> 10:32:22,960 percentage the top 10 based on net 15416 10:32:22,960 --> 10:32:25,360 whatever I'm going to use here is what 15417 10:32:25,360 --> 10:32:28,360 going to decide my top it is not the 15418 10:32:28,360 --> 10:32:29,960 major which is going to decide so in 15419 10:32:29,960 --> 10:32:32,240 this manner I can get a major which is 15420 10:32:32,240 --> 10:32:34,880 basically top and off some other major 15421 10:32:34,880 --> 10:32:37,480 so this is topend function and dynamic 15422 10:32:37,480 --> 10:32:40,080 top end for you so let's look at is 15423 10:32:40,080 --> 10:32:42,160 filtered and has one value understand 15424 10:32:42,160 --> 10:32:44,200 that let's create a new page and in this 15425 10:32:44,200 --> 10:32:47,240 new page I would like to bring in brand 15426 10:32:47,240 --> 10:32:49,276 and category and in both the visuals we 15427 10:32:49,276 --> 10:32:51,480 will add few new majors and those Majors 15428 10:32:51,480 --> 10:32:52,880 I'm going to create I'm not adding any 15429 10:32:52,880 --> 10:32:54,436 other major because we want to 15430 10:32:54,436 --> 10:32:56,000 understand those two new major how to 15431 10:32:56,000 --> 10:32:57,596 understand that measure we also need a 15432 10:32:57,596 --> 10:32:59,200 slicer and that slicer I'm going to 15433 10:32:59,200 --> 10:33:01,436 create on brand I dragged the brand and 15434 10:33:01,436 --> 10:33:03,756 I clicked on slicer which is coming from 15435 10:33:03,756 --> 10:33:05,360 build my visual at this moment I can 15436 10:33:05,360 --> 10:33:07,720 also take it from the insert of the Home 15437 10:33:07,720 --> 10:33:10,080 tab do a little bit more adjustment here 15438 10:33:10,080 --> 10:33:12,720 now let's first discuss is filtered so 15439 10:33:12,720 --> 10:33:14,240 I'll create a new mejor using is 15440 10:33:14,240 --> 10:33:15,840 filtered is filter me basically is it 15441 10:33:15,840 --> 10:33:17,800 filtered or not in what condition is 15442 10:33:17,800 --> 10:33:21,756 filtered work is filtered so is filtered 15443 10:33:21,756 --> 10:33:24,480 item brand is item brand is filtered you 15444 10:33:24,480 --> 10:33:26,596 simply wanted to check this condition is 15445 10:33:26,596 --> 10:33:28,680 item brand filtered we got this measure 15446 10:33:28,680 --> 10:33:30,840 is filtered let me bring it here it's 15447 10:33:30,840 --> 10:33:33,560 giving true true true on all the rows 15448 10:33:33,560 --> 10:33:35,200 and it's going to give false false false 15449 10:33:35,200 --> 10:33:36,800 on all the rows of category so here it 15450 10:33:36,800 --> 10:33:39,040 is giving all true right now there is no 15451 10:33:39,040 --> 10:33:41,040 value coming from slicer it is still 15452 10:33:41,040 --> 10:33:43,680 coming from for True when the brand is 15453 10:33:43,680 --> 10:33:45,960 in the context is giving false when 15454 10:33:45,960 --> 10:33:47,720 brand is not in the context so basic 15455 10:33:47,720 --> 10:33:51,756 basically the filter is filtered is true 15456 10:33:51,756 --> 10:33:54,320 when the brand is in the context or the 15457 10:33:54,320 --> 10:33:55,680 brand is in the filter it is in the 15458 10:33:55,680 --> 10:33:57,276 context that it is true but look the 15459 10:33:57,276 --> 10:34:00,116 total is false it means it is not coming 15460 10:34:00,116 --> 10:34:01,880 from Filter total will be dependent on 15461 10:34:01,880 --> 10:34:03,960 filter so let me filter one brand the 15462 10:34:03,960 --> 10:34:05,680 moment I filter a brand this is coming 15463 10:34:05,680 --> 10:34:08,116 true this is coming because of context 15464 10:34:08,116 --> 10:34:09,560 and this is because of filter all the 15465 10:34:09,560 --> 10:34:11,436 values are coming here is coming true 15466 10:34:11,436 --> 10:34:13,360 because of the filter context but 15467 10:34:13,360 --> 10:34:15,276 sometime what would happen is if I don't 15468 10:34:15,276 --> 10:34:16,680 have filter I don't want this filter I 15469 10:34:16,680 --> 10:34:18,000 want to take a decision whether the 15470 10:34:18,000 --> 10:34:19,880 brand has been filtered or not I want to 15471 10:34:19,880 --> 10:34:21,480 display a value based on whether it is 15472 10:34:21,480 --> 10:34:23,240 filtered or not and that filter is not 15473 10:34:23,240 --> 10:34:25,080 the row filtering that filtering is the 15474 10:34:25,080 --> 10:34:26,320 filtering which is happening on the 15475 10:34:26,320 --> 10:34:29,080 filter so how do I ensure that I'm only 15476 10:34:29,080 --> 10:34:31,560 considering is filtered is filter from 15477 10:34:31,560 --> 10:34:33,480 the filter contexts of visual row is 15478 10:34:33,480 --> 10:34:36,160 filter is filter from the filter not 15479 10:34:36,160 --> 10:34:38,116 filter context of visual Row for that 15480 10:34:38,116 --> 10:34:39,916 I'm going to tell you one solution what 15481 10:34:39,916 --> 10:34:41,240 you have to do is you have to create a 15482 10:34:41,240 --> 10:34:43,360 new measure and we going to call it it's 15483 10:34:43,360 --> 10:34:46,080 filtered one and you can use calculate 15484 10:34:46,080 --> 10:34:47,880 all selected don't use all about 15485 10:34:47,880 --> 10:34:50,436 selected values and let's bring in this 15486 10:34:50,436 --> 10:34:53,240 mejor is filtered one now you can see is 15487 10:34:53,240 --> 10:34:55,680 filtered is false for row and it is not 15488 10:34:55,680 --> 10:34:57,400 obing the context let's bring in another 15489 10:34:57,400 --> 10:34:59,276 visual expected is false now let's 15490 10:34:59,276 --> 10:35:01,276 filter any value it is filtering and now 15491 10:35:01,276 --> 10:35:03,436 it is giving true and that is expected 15492 10:35:03,436 --> 10:35:05,320 if even if I select multiple values it's 15493 10:35:05,320 --> 10:35:07,916 going to be true so is filtered is able 15494 10:35:07,916 --> 10:35:10,520 to tell us yes it is only coming true 15495 10:35:10,520 --> 10:35:12,080 when something is getting filtered so 15496 10:35:12,080 --> 10:35:13,680 the second function which we wanted to 15497 10:35:13,680 --> 10:35:15,596 discuss is has one value right now what 15498 10:35:15,596 --> 10:35:17,040 happened if you remember when I clicked 15499 10:35:17,040 --> 10:35:18,916 more than one I'm getting through still 15500 10:35:18,916 --> 10:35:20,720 but I don't want I only want let's say 15501 10:35:20,720 --> 10:35:22,116 currency we only want to select one 15502 10:35:22,116 --> 10:35:24,320 currency if one currency is selected or 15503 10:35:24,320 --> 10:35:26,200 one country is selected then I will show 15504 10:35:26,200 --> 10:35:28,756 the data in that particular currency so 15505 10:35:28,756 --> 10:35:31,200 if let's say we are showing data of USA 15506 10:35:31,200 --> 10:35:33,400 India together I have to show in one of 15507 10:35:33,400 --> 10:35:35,000 the currency Global Currency so one of 15508 10:35:35,000 --> 10:35:36,480 the currency I'll call Global Currency 15509 10:35:36,480 --> 10:35:38,680 and when both India and USA are selected 15510 10:35:38,680 --> 10:35:40,116 I'll show it in the Global Currency but 15511 10:35:40,116 --> 10:35:41,840 when India is selected I'll want to show 15512 10:35:41,840 --> 10:35:43,560 the local currency which is rupee when 15513 10:35:43,560 --> 10:35:45,320 only USA is selected I want to show in 15514 10:35:45,320 --> 10:35:47,160 USD let's say Global Currency we have 15515 10:35:47,160 --> 10:35:49,000 decided Euro so when both are selected 15516 10:35:49,000 --> 10:35:50,480 we are going to show them in Euro so in 15517 10:35:50,480 --> 10:35:53,320 that case I also wanted to know that one 15518 10:35:53,320 --> 10:35:55,680 value is selected so I want to know has 15519 10:35:55,680 --> 10:35:58,040 one value so let me create a new major 15520 10:35:58,040 --> 10:36:01,436 and check has one value so has one value 15521 10:36:01,436 --> 10:36:05,360 first of all has one value item brand 15522 10:36:05,360 --> 10:36:07,436 does item brand has one value first of 15523 10:36:07,436 --> 10:36:10,160 all we wanted to check so it's running 15524 10:36:10,160 --> 10:36:12,436 true so it means context is playing a 15525 10:36:12,436 --> 10:36:15,200 role and the filter is also playing a 15526 10:36:15,200 --> 10:36:16,756 role so the filter context because of 15527 10:36:16,756 --> 10:36:18,640 that is coming false here it's true here 15528 10:36:18,640 --> 10:36:21,000 now let me filter a brand and because of 15529 10:36:21,000 --> 10:36:22,520 the interaction it's going to filter all 15530 10:36:22,520 --> 10:36:24,480 the values are still true the grand 15531 10:36:24,480 --> 10:36:26,400 total is false and most of these 15532 10:36:26,400 --> 10:36:29,116 categories have more than one brand let 15533 10:36:29,116 --> 10:36:30,960 me select one brand here everything here 15534 10:36:30,960 --> 10:36:33,116 is true because one brand is 15535 10:36:33,116 --> 10:36:36,160 selected let me select one more brand 15536 10:36:36,160 --> 10:36:39,320 now look at the data here this is still 15537 10:36:39,320 --> 10:36:42,080 coming true because the row only has one 15538 10:36:42,080 --> 10:36:44,480 brand this is false now here category 15539 10:36:44,480 --> 10:36:46,000 one has two brand so it's coming fine 15540 10:36:46,000 --> 10:36:47,320 both brand belongs to this this is 15541 10:36:47,320 --> 10:36:48,596 coming coming true because only one of 15542 10:36:48,596 --> 10:36:50,720 the brand appears this is coming false 15543 10:36:50,720 --> 10:36:51,880 because more than one brand are 15544 10:36:51,880 --> 10:36:53,480 applicable here this is coming true 15545 10:36:53,480 --> 10:36:55,116 because only one brand is applicable 15546 10:36:55,116 --> 10:36:57,436 here what's happening depending on this 15547 10:36:57,436 --> 10:36:59,436 number of values availability this is 15548 10:36:59,436 --> 10:37:01,680 also behaving so one value or more than 15549 10:37:01,680 --> 10:37:03,960 one value so now we will bring in the 15550 10:37:03,960 --> 10:37:05,916 measure just like we have done in the 15551 10:37:05,916 --> 10:37:08,400 case of is filtered using the has one 15552 10:37:08,400 --> 10:37:10,880 value all selected so okay fine we'll 15553 10:37:10,880 --> 10:37:13,276 take a decision based on has one value 15554 10:37:13,276 --> 10:37:16,720 one and we'll use calculate comma all 15555 10:37:16,720 --> 10:37:19,400 selected we'll say we only want the 15556 10:37:19,400 --> 10:37:21,520 filter to be honored we don't want R to 15557 10:37:21,520 --> 10:37:23,276 be honored and let's bring in this new 15558 10:37:23,276 --> 10:37:24,800 measure 15559 10:37:24,800 --> 10:37:26,916 also now what's happening here because 15560 10:37:26,916 --> 10:37:28,560 two values are selected it's giving 15561 10:37:28,560 --> 10:37:30,520 false 15562 10:37:30,520 --> 10:37:33,480 everywhere so now as one value is 15563 10:37:33,480 --> 10:37:35,800 behaving based on the total selection so 15564 10:37:35,800 --> 10:37:38,480 total is one then it is true nothing 15565 10:37:38,480 --> 10:37:40,880 false and more than one also false 15566 10:37:40,880 --> 10:37:43,080 everywhere it is false so in this manner 15567 10:37:43,080 --> 10:37:45,276 you will be able to take decisions based 15568 10:37:45,276 --> 10:37:47,916 on is filtered and has one value what to 15569 10:37:47,916 --> 10:37:50,200 use what not to use but remember one 15570 10:37:50,200 --> 10:37:52,756 thing that use has one value and is 15571 10:37:52,756 --> 10:37:55,040 filtered only if it is most necessary 15572 10:37:55,040 --> 10:37:56,880 I've seen sometime people unnecessary 15573 10:37:56,880 --> 10:37:58,880 check is filtered and has one value we 15574 10:37:58,880 --> 10:38:00,520 don't have to add a condition when it is 15575 10:38:00,520 --> 10:38:02,640 not needed it is going to unnecessary 15576 10:38:02,640 --> 10:38:05,040 add a calculation to it so like in the 15577 10:38:05,040 --> 10:38:06,960 row we know the things are in context we 15578 10:38:06,960 --> 10:38:09,040 don't need to check is has one value I 15579 10:38:09,040 --> 10:38:10,960 know the row is going to have a value so 15580 10:38:10,960 --> 10:38:12,320 you don't need to check we only need to 15581 10:38:12,320 --> 10:38:13,800 check when we want to change our 15582 10:38:13,800 --> 10:38:15,436 calculation in case of grand total let's 15583 10:38:15,436 --> 10:38:17,720 say the grand total we can use is filter 15584 10:38:17,720 --> 10:38:19,840 sometime we can also use is in scope 15585 10:38:19,840 --> 10:38:21,880 which we learn sometime later so is 15586 10:38:21,880 --> 10:38:24,040 filtered has on value find out is it 15587 10:38:24,040 --> 10:38:26,520 selected is it in the context in powerbi 15588 10:38:26,520 --> 10:38:28,680 you will find us always talking about a 15589 10:38:28,680 --> 10:38:31,040 date table and a calendar table why date 15590 10:38:31,040 --> 10:38:33,436 table or a calendar table a table with A 15591 10:38:33,436 --> 10:38:35,880 continuous dates is so important it is 15592 10:38:35,880 --> 10:38:37,680 because all the powerbi time 15593 10:38:37,680 --> 10:38:39,520 intelligence functions require 15594 10:38:39,520 --> 10:38:41,640 continuous dates these functions include 15595 10:38:41,640 --> 10:38:44,800 date add dates MTD dates qtd total MTD 15596 10:38:44,800 --> 10:38:47,436 total YTD and many other functions which 15597 10:38:47,436 --> 10:38:50,080 require continuous States and a calendar 15598 10:38:50,080 --> 10:38:52,436 table or a day table can ensure 15599 10:38:52,436 --> 10:38:54,400 continuous States we have also need to 15600 10:38:54,400 --> 10:38:56,596 make sure that we mark them as a date 15601 10:38:56,596 --> 10:38:59,200 table that will ensure that we have 15602 10:38:59,200 --> 10:39:02,000 continuous dates to generate a calendar 15603 10:39:02,000 --> 10:39:04,000 we are primarily going to use calendar 15604 10:39:04,000 --> 10:39:06,240 Auto or calendar function as we move 15605 10:39:06,240 --> 10:39:08,520 forward we will discuss the differences 15606 10:39:08,520 --> 10:39:10,200 between the two to start creating the 15607 10:39:10,200 --> 10:39:12,040 calendar let's first start with calendar 15608 10:39:12,040 --> 10:39:14,480 Auto calendar Auto is a very versatile 15609 10:39:14,480 --> 10:39:17,720 function it can automatically generate a 15610 10:39:17,720 --> 10:39:20,520 calendar based on the dates available in 15611 10:39:20,520 --> 10:39:23,756 your powerbi schema it also provides you 15612 10:39:23,756 --> 10:39:27,360 a parameter using which you can set your 15613 10:39:27,360 --> 10:39:29,916 financial calendar so let's understand 15614 10:39:29,916 --> 10:39:32,720 calendar Auto in more details and to do 15615 10:39:32,720 --> 10:39:35,080 that I'm going to use the table View and 15616 10:39:35,080 --> 10:39:36,560 I'll click on the table View and go 15617 10:39:36,560 --> 10:39:38,680 inside the table View and here what I'm 15618 10:39:38,680 --> 10:39:40,240 going to do is I'll click on any of the 15619 10:39:40,240 --> 10:39:42,116 tabl so that I have the table tool 15620 10:39:42,116 --> 10:39:44,436 visible to me and inside the table tool 15621 10:39:44,436 --> 10:39:46,560 I have option for new table calendar 15622 10:39:46,560 --> 10:39:48,276 Auto is a DEX function which can give us 15623 10:39:48,276 --> 10:39:50,276 a table now what I'm going to do is I'm 15624 10:39:50,276 --> 10:39:51,800 going to click on the new table I'm 15625 10:39:51,800 --> 10:39:53,880 going to give this name to this table is 15626 10:39:53,880 --> 10:39:55,240 date 15627 10:39:55,240 --> 10:39:58,040 Auto and I'll use calendar Auto for 15628 10:39:58,040 --> 10:39:59,400 calendar Auto will take this one 15629 10:39:59,400 --> 10:40:01,116 argument this calendar is going to 15630 10:40:01,116 --> 10:40:03,160 return us so calendar Auto is going to 15631 10:40:03,160 --> 10:40:06,000 return as a table table of continuous 15632 10:40:06,000 --> 10:40:07,840 States so it was automatically taken the 15633 10:40:07,840 --> 10:40:09,480 start date automatically taken the end 15634 10:40:09,480 --> 10:40:11,720 date based on the your financial year or 15635 10:40:11,720 --> 10:40:13,040 your calendar year and it's going to 15636 10:40:13,040 --> 10:40:15,276 return the continuous dates and 15637 10:40:15,276 --> 10:40:16,880 continuous dates are really important 15638 10:40:16,880 --> 10:40:17,840 for 15639 10:40:17,840 --> 10:40:19,560 for doing time intelligence because most 15640 10:40:19,560 --> 10:40:21,200 of the time intelligence functions in 15641 10:40:21,200 --> 10:40:23,320 powerbi requires continuous States and 15642 10:40:23,320 --> 10:40:25,276 we will learn when we add the columns 15643 10:40:25,276 --> 10:40:27,040 also like some of the function like 15644 10:40:27,040 --> 10:40:29,116 start of year end of year which we will 15645 10:40:29,116 --> 10:40:30,800 be used to create start date and end 15646 10:40:30,800 --> 10:40:32,520 date would also require continuous date 15647 10:40:32,520 --> 10:40:35,560 calendar aut of function you only needs 15648 10:40:35,560 --> 10:40:37,080 one argument which is basically the 15649 10:40:37,080 --> 10:40:40,276 physical month and date in case you want 15650 10:40:40,276 --> 10:40:42,436 to give a physical month and date in my 15651 10:40:42,436 --> 10:40:43,756 case I don't want to give because I want 15652 10:40:43,756 --> 10:40:45,916 to create a standard calendar month so 15653 10:40:45,916 --> 10:40:48,596 it's going to do that so and what also 15654 10:40:48,596 --> 10:40:50,960 calendar Auto does it based on all the 15655 10:40:50,960 --> 10:40:52,480 dates available in the model is going to 15656 10:40:52,480 --> 10:40:54,560 find out the minimum date and take the 15657 10:40:54,560 --> 10:40:56,200 start of the year now if you want 15658 10:40:56,200 --> 10:40:58,080 Financial year let's say Financial year 15659 10:40:58,080 --> 10:40:59,960 end is third month then it will start 15660 10:40:59,960 --> 10:41:02,160 the calendar from April it is 12 month 15661 10:41:02,160 --> 10:41:04,116 it will start January from January so 15662 10:41:04,116 --> 10:41:06,080 based on that minimum date less than or 15663 10:41:06,080 --> 10:41:07,680 equal to that date is going to find out 15664 10:41:07,680 --> 10:41:09,200 the year start date similarly go to the 15665 10:41:09,200 --> 10:41:11,640 max date and maximum across all the 15666 10:41:11,640 --> 10:41:14,000 dates and goe find out using that date 15667 10:41:14,000 --> 10:41:16,680 we'll find out either a date which is 15668 10:41:16,680 --> 10:41:19,000 greater than or equal to that particular 15669 10:41:19,000 --> 10:41:21,756 end date is the year end date now if 15670 10:41:21,756 --> 10:41:22,916 it's is a physical year let's say you 15671 10:41:22,916 --> 10:41:25,200 shoot March then 31st March is going to 15672 10:41:25,200 --> 10:41:27,680 find out and first aprile is the start 15673 10:41:27,680 --> 10:41:29,320 date based on which is going to be 15674 10:41:29,320 --> 10:41:31,400 calculated now here we don't want to so 15675 10:41:31,400 --> 10:41:32,680 we can simply say 15676 10:41:32,680 --> 10:41:35,116 calendar so calendar Auto will give you 15677 10:41:35,116 --> 10:41:37,040 all the dates and you can create a 15678 10:41:37,040 --> 10:41:38,596 calendar using calendar AO now this is 15679 10:41:38,596 --> 10:41:40,116 the first way let me sort a sending and 15680 10:41:40,116 --> 10:41:42,116 show you what date I'm getting here this 15681 10:41:42,116 --> 10:41:44,640 is the first date as you know my data is 15682 10:41:44,640 --> 10:41:47,480 it from the October 2018 and I'm getting 15683 10:41:47,480 --> 10:41:48,960 a calendar which is from 1st January 15684 10:41:48,960 --> 10:41:52,040 2018 my data lasts till 2020 so if I do 15685 10:41:52,040 --> 10:41:54,000 sort descending you will see that it is 15686 10:41:54,000 --> 10:41:56,200 going till 31st December 2020 let me do 15687 10:41:56,200 --> 10:41:57,720 one thing because my data is starting in 15688 10:41:57,720 --> 10:42:00,276 October let's say and ending in October 15689 10:42:00,276 --> 10:42:02,040 again let's say if I want to start my 15690 10:42:02,040 --> 10:42:05,436 calendar with October Financial year 15691 10:42:05,436 --> 10:42:08,160 what what is my financial year and month 15692 10:42:08,160 --> 10:42:09,520 which is nine so what happens when I 15693 10:42:09,520 --> 10:42:11,320 start with nine you press enter 15694 10:42:11,320 --> 10:42:13,040 definitely because my data has started 15695 10:42:13,040 --> 10:42:15,756 after the October 2018 it's still 15696 10:42:15,756 --> 10:42:18,480 starting from 10th 2018 but 15697 10:42:18,480 --> 10:42:20,240 interestingly where does it is ending 15698 10:42:20,240 --> 10:42:22,720 it's ending in 2021 because remember I 15699 10:42:22,720 --> 10:42:25,000 do have data in October 15700 10:42:25,000 --> 10:42:28,080 2020 so when I have data in October 2020 15701 10:42:28,080 --> 10:42:29,880 so that complete Financial year has to 15702 10:42:29,880 --> 10:42:31,276 be taken so and that's why it has 15703 10:42:31,276 --> 10:42:33,436 claimed till the end of this now post 15704 10:42:33,436 --> 10:42:35,320 that if you want to create additional 15705 10:42:35,320 --> 10:42:37,116 column you can create here or you can 15706 10:42:37,116 --> 10:42:39,436 use a function which is known as add 15707 10:42:39,436 --> 10:42:41,916 columns now we will create a date table 15708 10:42:41,916 --> 10:42:43,640 or a calendar table using the calendar 15709 10:42:43,640 --> 10:42:46,560 function now for that I will go to table 15710 10:42:46,560 --> 10:42:47,800 View 15711 10:42:47,800 --> 10:42:49,480 uh previously we created using calendar 15712 10:42:49,480 --> 10:42:51,880 Auto unlike calendar Auto where you only 15713 10:42:51,880 --> 10:42:53,756 need um the month and and it 15714 10:42:53,756 --> 10:42:56,080 automatically identify date the calendar 15715 10:42:56,080 --> 10:42:58,720 function cannot do it you have to supply 15716 10:42:58,720 --> 10:43:01,560 the dates let me click on any of the 15717 10:43:01,560 --> 10:43:03,640 table and I'll get a table tool and 15718 10:43:03,640 --> 10:43:06,360 inside the table tool let me click on 15719 10:43:06,360 --> 10:43:09,320 the new 15720 10:43:09,400 --> 10:43:12,436 table I click on the new table I'll give 15721 10:43:12,436 --> 10:43:14,756 this table name as a date 15722 10:43:14,756 --> 10:43:17,240 table and then I can write down the 15723 10:43:17,240 --> 10:43:18,480 function which is calendar now the 15724 10:43:18,480 --> 10:43:20,200 calendar function requires two argument 15725 10:43:20,200 --> 10:43:22,400 the first argument is a date and the 15726 10:43:22,400 --> 10:43:24,000 second argument is also date start date 15727 10:43:24,000 --> 10:43:25,680 to end date now it means we can start 15728 10:43:25,680 --> 10:43:27,520 with any date we can end with any date 15729 10:43:27,520 --> 10:43:29,276 it will not force us to go to the start 15730 10:43:29,276 --> 10:43:30,756 of the year it will not force us to go 15731 10:43:30,756 --> 10:43:32,960 to the end of the year but usually when 15732 10:43:32,960 --> 10:43:34,800 we start when we create we'll take care 15733 10:43:34,800 --> 10:43:36,680 of these things now sometime what 15734 10:43:36,680 --> 10:43:38,840 happens is we can find out with the set 15735 10:43:38,840 --> 10:43:40,360 of dates let's say there are few dates 15736 10:43:40,360 --> 10:43:42,520 only which are available then with that 15737 10:43:42,520 --> 10:43:45,436 set of dates we can also start so I'll 15738 10:43:45,436 --> 10:43:46,756 give you example of that so calendar 15739 10:43:46,756 --> 10:43:48,480 function takes these two argument but 15740 10:43:48,480 --> 10:43:50,400 what does calendar function gives so 15741 10:43:50,400 --> 10:43:52,160 calendar functions return returns as a 15742 10:43:52,160 --> 10:43:54,720 table and that table is a sequence of 15743 10:43:54,720 --> 10:43:57,360 dates and these dates are continuous 15744 10:43:57,360 --> 10:44:00,000 dates the remember that we require 15745 10:44:00,000 --> 10:44:01,840 continuous dates for most of the time 15746 10:44:01,840 --> 10:44:03,596 intelligence function and that is why 15747 10:44:03,596 --> 10:44:05,560 having a date and calendar table is also 15748 10:44:05,560 --> 10:44:07,880 really important which provides us all 15749 10:44:07,880 --> 10:44:10,040 the possible date between the set of 15750 10:44:10,040 --> 10:44:13,116 dates or the continuous set of date 15751 10:44:13,116 --> 10:44:16,320 which is comprising of all the dates 15752 10:44:16,320 --> 10:44:17,960 from the minimum minimum date and the 15753 10:44:17,960 --> 10:44:20,240 maximum date which is needed for our 15754 10:44:20,240 --> 10:44:23,480 data it is really necessary to have 15755 10:44:23,480 --> 10:44:25,560 include all the dates and have the 15756 10:44:25,560 --> 10:44:28,160 continuous States now in the calendar 15757 10:44:28,160 --> 10:44:30,116 table we don't include the time so in 15758 10:44:30,116 --> 10:44:32,560 case you require time also sometime we 15759 10:44:32,560 --> 10:44:34,720 create a separate 15760 10:44:34,720 --> 10:44:38,320 timetable so calendar function taking 15761 10:44:38,320 --> 10:44:41,640 two arguments and returning a table of 15762 10:44:41,640 --> 10:44:45,560 continuous states which we would be 15763 10:44:45,560 --> 10:44:48,480 needing to create create our date table 15764 10:44:48,480 --> 10:44:50,520 having the continuous dates so let's 15765 10:44:50,520 --> 10:44:54,320 start with the first date now to give a 15766 10:44:54,320 --> 10:44:55,916 date I can use a date function now date 15767 10:44:55,916 --> 10:44:57,720 function requires three argument first 15768 10:44:57,720 --> 10:45:01,276 is year second is month and third is day 15769 10:45:01,276 --> 10:45:02,640 three arguments which is required so I 15770 10:45:02,640 --> 10:45:04,640 want to start from 2018 my data is 15771 10:45:04,640 --> 10:45:06,320 starting from October but I'll start 15772 10:45:06,320 --> 10:45:10,436 from 01 first month 15773 10:45:10,436 --> 10:45:13,520 01 then this is my start date again I 15774 10:45:13,520 --> 10:45:15,596 need another date for the end date so 15775 10:45:15,596 --> 10:45:18,040 end date I can give again year month so 15776 10:45:18,040 --> 10:45:20,040 my data is still 2020 October so I'll 15777 10:45:20,040 --> 10:45:23,596 use 2020 12 and 15778 10:45:23,596 --> 10:45:28,400 1 so I did not edit one parenthesis at 15779 10:45:28,400 --> 10:45:30,596 the end but Dex do take care if you are 15780 10:45:30,596 --> 10:45:33,360 missing at the end it do end I can click 15781 10:45:33,360 --> 10:45:36,596 on the submit or press enter now you can 15782 10:45:36,596 --> 10:45:38,400 see I got a calendar I can use sort as 15783 10:45:38,400 --> 10:45:40,436 sending to see what all dates I have and 15784 10:45:40,436 --> 10:45:42,680 sort dat sending to see what end date I 15785 10:45:42,680 --> 10:45:44,960 have start date and end date we are able 15786 10:45:44,960 --> 10:45:48,596 to know now this the first very simple 15787 10:45:48,596 --> 10:45:50,916 way when you can create sometime what 15788 10:45:50,916 --> 10:45:52,880 happens you say no no I want to add end 15789 10:45:52,880 --> 10:45:54,800 it where you want to end it let's say I 15790 10:45:54,800 --> 10:45:57,400 want to add it today my calendar should 15791 10:45:57,400 --> 10:45:59,400 go till today so we can use the function 15792 10:45:59,400 --> 10:46:01,756 today so every time we refresh the today 15793 10:46:01,756 --> 10:46:04,596 will change and it can end on today's 15794 10:46:04,596 --> 10:46:06,800 date when I'm recording this is 1st 15795 10:46:06,800 --> 10:46:09,436 January 2024 so it will end on 1st 15796 10:46:09,436 --> 10:46:11,360 January 2024 it can end on any other 15797 10:46:11,360 --> 10:46:13,436 date sometime you might want to end it 15798 10:46:13,436 --> 10:46:18,040 on last date you can use this this one 15799 10:46:18,040 --> 10:46:19,756 or last month's end date let's say this 15800 10:46:19,756 --> 10:46:21,560 is this is something different then I 15801 10:46:21,560 --> 10:46:24,240 want to add last month end date for that 15802 10:46:24,240 --> 10:46:26,240 to get the end date of a month we have a 15803 10:46:26,240 --> 10:46:27,960 very good function which is known as EO 15804 10:46:27,960 --> 10:46:30,040 month EO month function doesn't require 15805 10:46:30,040 --> 10:46:32,436 continuous date remember uh other 15806 10:46:32,436 --> 10:46:33,680 function there is a end of month 15807 10:46:33,680 --> 10:46:35,116 function which require continuous date 15808 10:46:35,116 --> 10:46:36,756 but EO month function doesn't require it 15809 10:46:36,756 --> 10:46:38,800 just require which months and date you 15810 10:46:38,800 --> 10:46:41,116 need so today is the today's date and I 15811 10:46:41,116 --> 10:46:42,880 need today is month end then I can use 15812 10:46:42,880 --> 10:46:44,800 zero let me show you 15813 10:46:44,800 --> 10:46:47,520 that so this is the current month ended 15814 10:46:47,520 --> 10:46:49,720 but minus one gives me last month ended 15815 10:46:49,720 --> 10:46:52,200 plus one gives me next month's ended so 15816 10:46:52,200 --> 10:46:55,640 I can use these kind of stuff I may also 15817 10:46:55,640 --> 10:46:57,640 like that you know like to start from 15818 10:46:57,640 --> 10:47:00,000 the start month of the minimum 15819 10:47:00,000 --> 10:47:02,596 date and assume right now for Simplicity 15820 10:47:02,596 --> 10:47:06,160 I have only two dates which is the sales 15821 10:47:06,160 --> 10:47:07,960 date in the sales table so I have one 15822 10:47:07,960 --> 10:47:10,040 sales date where I can find out the 15823 10:47:10,040 --> 10:47:11,916 minimum 15824 10:47:11,916 --> 10:47:15,596 sales date I have delivery date maybe 15825 10:47:15,596 --> 10:47:16,840 ideally speaking delivery date can 15826 10:47:16,840 --> 10:47:18,080 cannot be less than the sales date but 15827 10:47:18,080 --> 10:47:19,720 assume it could be then how do I take 15828 10:47:19,720 --> 10:47:21,276 minimum of two so for that what you can 15829 10:47:21,276 --> 10:47:25,400 do is minimum of minimum sales date and 15830 10:47:25,400 --> 10:47:26,880 comma 15831 10:47:26,880 --> 10:47:30,436 minimum delivery 15832 10:47:32,680 --> 10:47:37,040 date okay so double minimum so minimum 15833 10:47:37,040 --> 10:47:39,480 of sales first minimum of delivery and 15834 10:47:39,480 --> 10:47:41,400 for both we can take minimum so minimum 15835 10:47:41,400 --> 10:47:43,200 function this is another behavior of 15836 10:47:43,200 --> 10:47:44,720 minimum function where it can take two 15837 10:47:44,720 --> 10:47:47,276 arguments so typical Behavior was 15838 10:47:47,276 --> 10:47:49,080 minimum function will take only one 15839 10:47:49,080 --> 10:47:51,160 argument one column but here it can take 15840 10:47:51,160 --> 10:47:53,276 Min of Min okay this will start from the 15841 10:47:53,276 --> 10:47:55,360 minimum date probably from the middle of 15842 10:47:55,360 --> 10:47:58,200 some month let's go ahead and check it 15843 10:47:58,200 --> 10:48:00,800 out from here now what I can do this is 15844 10:48:00,800 --> 10:48:02,960 two heavy formula so let me go go 15845 10:48:02,960 --> 10:48:05,320 outside this one and see if I can create 15846 10:48:05,320 --> 10:48:09,200 a variable go here I'll create a 15847 10:48:09,200 --> 10:48:12,240 variable Vore minimum so this will give 15848 10:48:12,240 --> 10:48:14,560 me minimum date which is 13th October 15849 10:48:14,560 --> 10:48:17,880 and I can create another variable or 15850 10:48:17,880 --> 10:48:20,320 I can come here and write down EO 15851 10:48:20,320 --> 10:48:22,436 month now you will say for the start of 15852 10:48:22,436 --> 10:48:23,640 month why you're using EO month I'll 15853 10:48:23,640 --> 10:48:25,640 tell you EO there's no function like s 15854 10:48:25,640 --> 10:48:28,040 so month or St month EO month is a 15855 10:48:28,040 --> 10:48:30,200 function which which I have with me so 15856 10:48:30,200 --> 10:48:33,276 if I give minimum and minus one is means 15857 10:48:33,276 --> 10:48:35,840 it is going to give me last month's end 15858 10:48:35,840 --> 10:48:37,840 date but the beautiful thing with the 15859 10:48:37,840 --> 10:48:40,756 Dex date is if you do plus one simply 15860 10:48:40,756 --> 10:48:43,080 you do the plus one it adds the days so 15861 10:48:43,080 --> 10:48:45,116 plus any number is number of days you 15862 10:48:45,116 --> 10:48:47,360 want to add so I got last months 10 a 15863 10:48:47,360 --> 10:48:48,880 and I do plus one which is going to 15864 10:48:48,880 --> 10:48:51,000 start from the current month you will 15865 10:48:51,000 --> 10:48:53,756 see start from the 1st October 2018 in 15866 10:48:53,756 --> 10:48:55,200 this manner so these are the various 15867 10:48:55,200 --> 10:48:57,680 combinations basically which you can use 15868 10:48:57,680 --> 10:48:59,916 to get this now I'll tell you one very 15869 10:48:59,916 --> 10:49:02,720 quick combination now this is going to 15870 10:49:02,720 --> 10:49:05,520 give you start of the year so minus one 15871 10:49:05,520 --> 10:49:09,276 St month of the 15872 10:49:09,276 --> 10:49:11,800 date so you 15873 10:49:11,800 --> 10:49:15,040 subtract the month in the negative 15874 10:49:15,040 --> 10:49:17,520 number so multiply your month for the 15875 10:49:17,520 --> 10:49:20,240 date by minus one and do plus one you 15876 10:49:20,240 --> 10:49:22,080 will always restart of the 15877 10:49:22,080 --> 10:49:24,080 calendar basically what happens in the 15878 10:49:24,080 --> 10:49:26,960 10th month if you do minus 10 so Min - 15879 10:49:26,960 --> 10:49:29,840 one is 9 and Min - 10 would be last year 15880 10:49:29,840 --> 10:49:31,360 December and then you had plus one means 15881 10:49:31,360 --> 10:49:34,160 you this year January in this manner 15882 10:49:34,160 --> 10:49:36,960 depending on the requirements we can 15883 10:49:36,960 --> 10:49:40,240 create different different dates okay 15884 10:49:40,240 --> 10:49:43,240 now we need to go ahead and add new 15885 10:49:43,240 --> 10:49:47,276 columns to this calendar or date table 15886 10:49:47,276 --> 10:49:49,520 and then we also need to join it with 15887 10:49:49,520 --> 10:49:51,960 our T table so what I'm going to do 15888 10:49:51,960 --> 10:49:53,360 first is we are going to add the 15889 10:49:53,360 --> 10:49:55,720 calendar months date and then we are 15890 10:49:55,720 --> 10:49:57,680 going to add some Financial months so 15891 10:49:57,680 --> 10:49:59,276 first we are going to add calendar 15892 10:49:59,276 --> 10:50:01,680 months like uh start of year end of year 15893 10:50:01,680 --> 10:50:03,756 start of month end of month start of 15894 10:50:03,756 --> 10:50:06,520 quarter end of quarter all those and 15895 10:50:06,520 --> 10:50:08,720 then we will go and do the same thing 15896 10:50:08,720 --> 10:50:11,320 for financial Financial we limit ourself 15897 10:50:11,320 --> 10:50:14,720 to financial year and financial quarter 15898 10:50:14,720 --> 10:50:16,916 ET we would like to announce our 15899 10:50:16,916 --> 10:50:20,800 calendar table or the date table and the 15900 10:50:20,800 --> 10:50:23,320 first set of columns which we want to 15901 10:50:23,320 --> 10:50:26,160 add is basically the month name the 15902 10:50:26,160 --> 10:50:29,040 quarter number the year these are the 15903 10:50:29,040 --> 10:50:30,560 columns which want 15904 10:50:30,560 --> 10:50:33,680 to now to start with that I would like 15905 10:50:33,680 --> 10:50:36,240 to add the columns so one of the ways to 15906 10:50:36,240 --> 10:50:37,680 add a column is that what we have 15907 10:50:37,680 --> 10:50:40,436 learned so far is click on the table or 15908 10:50:40,436 --> 10:50:41,320 the 15909 10:50:41,320 --> 10:50:45,680 column and then you use this new column 15910 10:50:45,680 --> 10:50:48,040 from the column tools of the table tools 15911 10:50:48,040 --> 10:50:50,640 but that's not extendable because deck 15912 10:50:50,640 --> 10:50:53,040 scripts are not the script which you can 15913 10:50:53,040 --> 10:50:55,040 you know find out and take if you create 15914 10:50:55,040 --> 10:50:57,720 columns if I need to take this table to 15915 10:50:57,720 --> 10:51:00,160 the another file I actually need to 15916 10:51:00,160 --> 10:51:02,560 create those columns again or to 15917 10:51:02,560 --> 10:51:04,400 overcome this we can use something known 15918 10:51:04,400 --> 10:51:07,480 as add columns function now first of all 15919 10:51:07,480 --> 10:51:09,200 all we need to understand what this add 15920 10:51:09,200 --> 10:51:12,400 column function is ADD column functions 15921 10:51:12,400 --> 10:51:14,640 allows you to add the column to existing 15922 10:51:14,640 --> 10:51:16,840 table which takes the first argument as 15923 10:51:16,840 --> 10:51:19,880 a table then you can give name and the 15924 10:51:19,880 --> 10:51:22,040 expression expression is the expression 15925 10:51:22,040 --> 10:51:24,080 which you want to generate your column 15926 10:51:24,080 --> 10:51:25,840 it could be a calculation it could be a 15927 10:51:25,840 --> 10:51:28,000 static value whatever you want it could 15928 10:51:28,000 --> 10:51:31,276 table and the name and the expression 15929 10:51:31,276 --> 10:51:32,756 another thing which you should remember 15930 10:51:32,756 --> 10:51:35,720 this expression if it is using some 15931 10:51:35,720 --> 10:51:38,360 column it is limited by the table which 15932 10:51:38,360 --> 10:51:41,240 you have provided in this case in the 15933 10:51:41,240 --> 10:51:42,916 add columns I'm going to provide the 15934 10:51:42,916 --> 10:51:45,320 calendar and calendar is returning me 15935 10:51:45,320 --> 10:51:47,160 only one column date 15936 10:51:47,160 --> 10:51:50,360 it means all my calculations would be 15937 10:51:50,360 --> 10:51:53,320 dependent on date any column which I'm 15938 10:51:53,320 --> 10:51:55,040 adding new column which I'm adding to 15939 10:51:55,040 --> 10:51:58,080 this table let's say I say column let's 15940 10:51:58,080 --> 10:52:00,320 say month year I added a month year 15941 10:52:00,320 --> 10:52:03,116 column that column cannot participate in 15942 10:52:03,116 --> 10:52:05,320 the next column calculation only the 15943 10:52:05,320 --> 10:52:07,680 tables column it means I created column 15944 10:52:07,680 --> 10:52:10,040 one and now in the column two column one 15945 10:52:10,040 --> 10:52:12,320 can participate that cannot happen when 15946 10:52:12,320 --> 10:52:15,680 we are writing down add column script so 15947 10:52:15,680 --> 10:52:17,720 let's begin this Journey so add columns 15948 10:52:17,720 --> 10:52:19,480 the first argument of add column is a 15949 10:52:19,480 --> 10:52:22,400 table and then we are giving a table and 15950 10:52:22,400 --> 10:52:24,756 then we going to add new columns and 15951 10:52:24,756 --> 10:52:27,596 this is also finally going to return as 15952 10:52:27,596 --> 10:52:30,800 a table add columns return as a enhanced 15953 10:52:30,800 --> 10:52:33,276 table which will contain more 15954 10:52:33,276 --> 10:52:36,436 columns so and to get additional rows 15955 10:52:36,436 --> 10:52:38,400 I'll press shift 15956 10:52:38,400 --> 10:52:42,040 enter or Alt Enter now I may have to 15957 10:52:42,040 --> 10:52:44,596 make it little bit smaller here so that 15958 10:52:44,596 --> 10:52:46,520 I can show you more columns or we will 15959 10:52:46,520 --> 10:52:49,320 use scrolling so one pixel 15960 10:52:49,320 --> 10:52:51,800 smaller now First Column which I would 15961 10:52:51,800 --> 10:52:54,596 like to add here is ear which ear I 15962 10:52:54,596 --> 10:52:57,160 belongs to very simple I have a year 15963 10:52:57,160 --> 10:52:58,916 function which can give me year of the 15964 10:52:58,916 --> 10:53:02,116 date and basically because I'm talking 15965 10:53:02,116 --> 10:53:04,640 about calendar here so it's easy for me 15966 10:53:04,640 --> 10:53:06,800 only column which I have here is date I 15967 10:53:06,800 --> 10:53:09,360 cannot give a table name here I need to 15968 10:53:09,360 --> 10:53:14,200 use date so I got my year then I want a 15969 10:53:14,200 --> 10:53:15,880 next column so then I need to give a 15970 10:53:15,880 --> 10:53:18,680 comma at the the end of this or what we 15971 10:53:18,680 --> 10:53:20,880 can do is here is sometime this is 15972 10:53:20,880 --> 10:53:22,360 little bit better let me remove this 15973 10:53:22,360 --> 10:53:25,200 colum comma also we give the comma at 15974 10:53:25,200 --> 10:53:27,240 the start of the line easy to comment 15975 10:53:27,240 --> 10:53:28,000 such 15976 10:53:28,000 --> 10:53:30,640 lines month number how do I get the 15977 10:53:30,640 --> 10:53:32,160 month 15978 10:53:32,160 --> 10:53:34,880 number so we have a 15979 10:53:34,880 --> 10:53:39,640 function month which will give us we 15980 10:53:39,640 --> 10:53:42,200 take only one argument date so I got 15981 10:53:42,200 --> 10:53:46,400 year I got month quarter I need quarter 15982 10:53:46,400 --> 10:53:48,276 quarter number basically this you 15983 10:53:48,276 --> 10:53:49,596 instead of month you can call it as a 15984 10:53:49,596 --> 10:53:50,916 month 15985 10:53:50,916 --> 10:53:53,680 number maybe we want to use month is Mon 15986 10:53:53,680 --> 10:53:55,080 and quarter 15987 10:53:55,080 --> 10:53:57,560 number so how do I get quarter number we 15988 10:53:57,560 --> 10:53:59,880 have function quarter and we'll give a 15989 10:53:59,880 --> 10:54:02,720 date only one argument it is requires 15990 10:54:02,720 --> 10:54:05,320 only one argument date it gives us 15991 10:54:05,320 --> 10:54:06,400 quarter 15992 10:54:06,400 --> 10:54:10,040 number and before we go forward let's 15993 10:54:10,040 --> 10:54:13,040 close this add columns by giving a 15994 10:54:13,040 --> 10:54:17,160 parenthesis at the end so 15995 10:54:18,520 --> 10:54:20,040 able 15996 10:54:20,040 --> 10:54:21,916 name 15997 10:54:21,916 --> 10:54:26,640 expression name expression 15998 10:54:26,640 --> 10:54:31,800 name expression finally close 15999 10:54:31,800 --> 10:54:33,756 parenthesis this is going to give us a 16000 10:54:33,756 --> 10:54:35,800 new table with the inas 16001 10:54:35,800 --> 10:54:38,560 number we got year number month number 16002 10:54:38,560 --> 10:54:42,400 quarter number here we simply calling it 16003 10:54:42,400 --> 10:54:46,640 C I need let's say month name and month 16004 10:54:46,640 --> 10:54:51,596 here we create that so I pr press my 16005 10:54:51,596 --> 10:54:54,080 cursor shift enter shift enter shift 16006 10:54:54,080 --> 10:54:56,436 enter now only challenge with this is 16007 10:54:56,436 --> 10:54:58,560 that this will keep on moving down so we 16008 10:54:58,560 --> 10:55:01,276 will have lesser things to see but we'll 16009 10:55:01,276 --> 10:55:04,596 do so First Column double quotes I want 16010 10:55:04,596 --> 10:55:07,596 to give the name name is 16011 10:55:07,596 --> 10:55:11,360 month and here I want it in the one like 16012 10:55:11,360 --> 10:55:14,320 Jan Fab March for that first time I'm 16013 10:55:14,320 --> 10:55:15,916 using a function which is known as 16014 10:55:15,916 --> 10:55:17,000 format 16015 10:55:17,000 --> 10:55:20,756 a format functions take can take three 16016 10:55:20,756 --> 10:55:23,680 argument value the value could be number 16017 10:55:23,680 --> 10:55:25,960 value could be date format which we can 16018 10:55:25,960 --> 10:55:27,916 give in Double C the format There are 16019 10:55:27,916 --> 10:55:30,320 rules for giving this format what means 16020 10:55:30,320 --> 10:55:33,116 what in case of number in case of date 16021 10:55:33,116 --> 10:55:34,560 that you can find out on the 16022 10:55:34,560 --> 10:55:37,560 documentation local name sometime we use 16023 10:55:37,560 --> 10:55:38,960 like uh is 16024 10:55:38,960 --> 10:55:42,436 it us or it is Great Britain English or 16025 10:55:42,436 --> 10:55:44,840 something like that that can also decide 16026 10:55:44,840 --> 10:55:46,560 what format you want especially useful 16027 10:55:46,560 --> 10:55:50,560 in case of date now we go to format and 16028 10:55:50,560 --> 10:55:52,756 first argument is the value and here my 16029 10:55:52,756 --> 10:55:54,916 first argument is 16030 10:55:54,916 --> 10:55:59,080 date now you can go ahead and now this 16031 10:55:59,080 --> 10:56:00,680 give the format and the format which I 16032 10:56:00,680 --> 10:56:04,116 want to give is M mm 3 m means month 16033 10:56:04,116 --> 10:56:07,320 name like Jan Fab March and 4 m means 16034 10:56:07,320 --> 10:56:10,360 complete January February March close 16035 10:56:10,360 --> 10:56:13,360 press enter and you get here January 16036 10:56:13,360 --> 10:56:17,800 February March you can see below 16037 10:56:20,436 --> 10:56:23,640 now if I give 4 M we will give January 16038 10:56:23,640 --> 10:56:25,960 February 16039 10:56:25,960 --> 10:56:28,756 March now this is a text column and 16040 10:56:28,756 --> 10:56:30,560 power ba we have a problem the text 16041 10:56:30,560 --> 10:56:34,480 column cannot sort by its name by I can 16042 10:56:34,480 --> 10:56:36,160 simply call it some month column will 16043 10:56:36,160 --> 10:56:38,720 sort automatically we will discuss the 16044 10:56:38,720 --> 10:56:40,276 solution for that problem little bit 16045 10:56:40,276 --> 10:56:43,400 later but before I solve that problem I 16046 10:56:43,400 --> 10:56:46,960 want to come to the next one double I'll 16047 10:56:46,960 --> 10:56:48,596 give double quotes double 16048 10:56:48,596 --> 10:56:53,680 quotes and here I'll give month 16049 10:56:54,080 --> 10:56:57,720 here now month year I want the column 16050 10:56:57,720 --> 10:56:59,360 month 16051 10:56:59,360 --> 10:57:01,800 year what is the calculation I again 16052 10:57:01,800 --> 10:57:03,480 want to use format 16053 10:57:03,480 --> 10:57:07,160 function and 16054 10:57:07,200 --> 10:57:09,400 date I would like to give here the 16055 10:57:09,400 --> 10:57:17,400 format as M mm hyph y y y y 4 y 16056 10:57:17,400 --> 10:57:20,800 month Jan Fab March April May three 16057 10:57:20,800 --> 10:57:24,436 digit and 4 y means year four year and I 16058 10:57:24,436 --> 10:57:27,276 press enter Because my last parentheses 16059 10:57:27,276 --> 10:57:29,880 already there now it gives me January 16060 10:57:29,880 --> 10:57:33,436 February March I got my month month year 16061 10:57:33,436 --> 10:57:39,000 also now this is my calendar and the 16062 10:57:39,000 --> 10:57:40,680 next column which I need basically is 16063 10:57:40,680 --> 10:57:44,960 the quarter 2 TR quarter we already have 16064 10:57:44,960 --> 10:57:46,640 a quarter number so I'm simply calling 16065 10:57:46,640 --> 10:57:48,840 it as quarter and this time what I'm 16066 10:57:48,840 --> 10:57:51,276 going to do is the format which I need 16067 10:57:51,276 --> 10:57:53,520 so here what I'm going to do format 16068 10:57:53,520 --> 10:57:58,756 function and the first argument is date 16069 10:57:58,756 --> 10:58:01,200 in the second argument I would actually 16070 10:58:01,200 --> 10:58:06,400 like my names to be y y y I want Q to be 16071 10:58:06,400 --> 10:58:08,960 written but if I give Q it will give me 16072 10:58:08,960 --> 10:58:10,640 quarter number I'll tell you if I simply 16073 10:58:10,640 --> 10:58:12,240 give Q 16074 10:58:12,240 --> 10:58:15,840 here it give me quarter number so how do 16075 10:58:15,840 --> 10:58:20,000 I get a q so I can use back SL Q means 16076 10:58:20,000 --> 10:58:22,520 ignore if I want hyphen in between let 16077 10:58:22,520 --> 10:58:26,240 me use hyphen and see hyph is not a 16078 10:58:26,240 --> 10:58:28,480 letter which format is going to identify 16079 10:58:28,480 --> 10:58:31,080 so it's leave as it is to identify Q so 16080 10:58:31,080 --> 10:58:34,276 I use back SL Q to ignore the Q and 16081 10:58:34,276 --> 10:58:37,640 treat it as a normal letter q and next 16082 10:58:37,640 --> 10:58:40,436 second Q I leave it as is so for every Q 16083 10:58:40,436 --> 10:58:42,840 you let's say you want to write quarter 16084 10:58:42,840 --> 10:58:44,880 then let's say T and R doesn't have a 16085 10:58:44,880 --> 10:58:47,040 meaning then you can give and if the T 16086 10:58:47,040 --> 10:58:48,520 and R has a meaning then you have to 16087 10:58:48,520 --> 10:58:51,800 give with every letter like 16088 10:58:52,040 --> 10:58:54,800 this but q and R doesn't have meaning so 16089 10:58:54,800 --> 10:58:56,040 I can leave it as 16090 10:58:56,040 --> 10:58:59,400 is now the format why have knowingly 16091 10:58:59,400 --> 10:59:01,000 taken this format this format is a 16092 10:59:01,000 --> 10:59:02,840 sortable 16093 10:59:02,840 --> 10:59:05,640 format the previous mon format is not 16094 10:59:05,640 --> 10:59:06,916 sortable what do you mean by sortable 16095 10:59:06,916 --> 10:59:09,160 format if I give y y y y and then give 16096 10:59:09,160 --> 10:59:11,160 quarter number every time I put it 16097 10:59:11,160 --> 10:59:13,960 automatically get sorted even if it is a 16098 10:59:13,960 --> 10:59:17,200 text now let's go to the visual level 16099 10:59:17,200 --> 10:59:19,880 and understand that so let me add a new 16100 10:59:19,880 --> 10:59:22,000 page and in this 16101 10:59:22,000 --> 10:59:26,116 page let me now create a table using 16102 10:59:26,116 --> 10:59:28,680 month here simply drag month here and it 16103 10:59:28,680 --> 10:59:32,276 will create a table let me drag quarter 16104 10:59:32,276 --> 10:59:35,400 here and as you can see the quarter here 16105 10:59:35,400 --> 10:59:37,596 which is only called quarter it seems 16106 10:59:37,596 --> 10:59:42,320 like an sorted position q1 Q2 Q Q4 q1 Q2 16107 10:59:42,320 --> 10:59:45,116 but monthier is not how do I sort month 16108 10:59:45,116 --> 10:59:49,320 here mon is not in a sortable format in 16109 10:59:49,320 --> 10:59:53,276 power ba we don't have a way to tell 16110 10:59:53,276 --> 10:59:54,916 system that this is month here and sort 16111 10:59:54,916 --> 10:59:57,680 it like date no we need something known 16112 10:59:57,680 --> 10:59:59,520 as sort column so I'm going to create a 16113 10:59:59,520 --> 11:00:03,400 new column here which I'll call as month 16114 11:00:03,400 --> 11:00:05,400 year 16115 11:00:05,400 --> 11:00:08,200 sort how can we get sort the one way is 16116 11:00:08,200 --> 11:00:11,520 I create y y y mm using the format which 16117 11:00:11,520 --> 11:00:15,160 is a sortable format so y y y 4 Y and mm 16118 11:00:15,160 --> 11:00:17,116 is always a sort table format for month 16119 11:00:17,116 --> 11:00:20,080 year or I'll tell you one more way which 16120 11:00:20,080 --> 11:00:23,276 I want it numerical so I say Year I'll 16121 11:00:23,276 --> 11:00:27,560 use I'll use function year year 16122 11:00:27,560 --> 11:00:31,276 date multiply it by 100 16123 11:00:31,276 --> 11:00:33,880 plus month 16124 11:00:33,880 --> 11:00:37,596 of date what does that will do 16125 11:00:37,596 --> 11:00:40,960 if this itself is a sortable whenever 16126 11:00:40,960 --> 11:00:44,400 you put it will got SED but how will 16127 11:00:44,400 --> 11:00:47,560 this month here sort will sort month 16128 11:00:47,560 --> 11:00:49,680 year so for that what you have to do is 16129 11:00:49,680 --> 11:00:51,916 me make it a little bit smaller click on 16130 11:00:51,916 --> 11:00:56,560 month year column either here in the 16131 11:00:56,560 --> 11:00:59,720 table view or here in the data 16132 11:00:59,720 --> 11:01:02,276 view click on that column you will get 16133 11:01:02,276 --> 11:01:03,916 the column tools and the column tools 16134 11:01:03,916 --> 11:01:05,320 should show your column which you want 16135 11:01:05,320 --> 11:01:09,916 to sort go to sort by column in the 16136 11:01:09,916 --> 11:01:13,040 middle click down and choose the column 16137 11:01:13,040 --> 11:01:16,080 on which you want to sort this column 16138 11:01:16,080 --> 11:01:18,116 you are going to choose the column which 16139 11:01:18,116 --> 11:01:20,080 you are going to choose is going to sort 16140 11:01:20,080 --> 11:01:22,916 your column now so monthe sort follow 16141 11:01:22,916 --> 11:01:25,080 the Sorting of monthier sort so monthier 16142 11:01:25,080 --> 11:01:28,200 sort is a column which can sort my 16143 11:01:28,200 --> 11:01:30,596 column 16144 11:01:30,596 --> 11:01:33,880 correctly it is done now if I go back to 16145 11:01:33,880 --> 11:01:34,680 the 16146 11:01:34,680 --> 11:01:37,240 visualization you will see that the 16147 11:01:37,240 --> 11:01:40,480 columns are sorted 16148 11:01:40,720 --> 11:01:43,436 correctly now we would like also like to 16149 11:01:43,436 --> 11:01:46,720 have one more column which is year week 16150 11:01:46,720 --> 11:01:49,520 and week of the year and then again 16151 11:01:49,520 --> 11:01:53,040 we'll add year week or we can only call 16152 11:01:53,040 --> 11:01:57,160 it week number but I would like here to 16153 11:01:57,160 --> 11:01:59,640 be ear week for that what I'm going to 16154 11:01:59,640 --> 11:02:01,680 use is ear 16155 11:02:01,680 --> 11:02:03,596 function on the 16156 11:02:03,596 --> 11:02:07,320 date again multiplied by 16157 11:02:07,320 --> 11:02:11,640 100 plus there is a function week number 16158 11:02:11,640 --> 11:02:15,240 date requir second argument also in the 16159 11:02:15,240 --> 11:02:17,480 week number the second argument can be 16160 11:02:17,480 --> 11:02:20,116 one means starting from Sunday it can be 16161 11:02:20,116 --> 11:02:22,756 two means starting from Monday again we 16162 11:02:22,756 --> 11:02:26,200 have argument from 11 to 17 from Monday 16163 11:02:26,200 --> 11:02:29,200 Tuesday Wednesday and so on 17 means 16164 11:02:29,200 --> 11:02:33,360 starting from Sunday and 21 is for ISO 16165 11:02:33,360 --> 11:02:36,320 so these are some of the arguments which 16166 11:02:36,320 --> 11:02:37,840 you can give the similar kind of 16167 11:02:37,840 --> 11:02:41,880 arguments also available for week day 16168 11:02:41,880 --> 11:02:44,040 and some of them might not be in 16169 11:02:44,040 --> 11:02:46,000 documented format means you will not be 16170 11:02:46,000 --> 11:02:47,640 able to see that these arguments are 16171 11:02:47,640 --> 11:02:50,160 available but you will be able to use 16172 11:02:50,160 --> 11:02:52,756 and when we will do Week start date and 16173 11:02:52,756 --> 11:02:55,520 week end date we will let you know right 16174 11:02:55,520 --> 11:02:58,360 now I'll keep it two so that I'll have a 16175 11:02:58,360 --> 11:03:00,276 Monday Week 16176 11:03:00,276 --> 11:03:04,400 start let me add week days here how do I 16177 11:03:04,400 --> 11:03:07,200 add weekday here and then we will 16178 11:03:07,200 --> 11:03:09,116 discuss whether our week number is 16179 11:03:09,116 --> 11:03:11,640 correct or not so how do we add weekday 16180 11:03:11,640 --> 11:03:14,320 there's a function known as week day but 16181 11:03:14,320 --> 11:03:16,276 it's going to give me numeric 16182 11:03:16,276 --> 11:03:18,560 here I don't need 1 2 3 4 5 I actually 16183 11:03:18,560 --> 11:03:21,240 need the names again week day have an 16184 11:03:21,240 --> 11:03:26,200 argument like uh 1 and two so I'll use 16185 11:03:26,200 --> 11:03:28,800 format on the 16186 11:03:28,800 --> 11:03:32,160 date and if you give date three times it 16187 11:03:32,160 --> 11:03:35,596 is m o and Monday Tuesday in the short 16188 11:03:35,596 --> 11:03:38,080 form four it is going to give complete 16189 11:03:38,080 --> 11:03:41,200 so I'm going to use 3 days now DDD in 16190 11:03:41,200 --> 11:03:44,160 the format function to get weekday name 16191 11:03:44,160 --> 11:03:47,360 and the reason why I r that let me let 16192 11:03:47,360 --> 11:03:50,520 you know that the first week this 16193 11:03:50,520 --> 11:03:52,756 calendar itself start on a Monday so 16194 11:03:52,756 --> 11:03:55,000 starting on a Monday and if the first 16195 11:03:55,000 --> 11:04:00,756 week goes till Sunday it means this is 16196 11:04:00,916 --> 11:04:05,116 Monday Sunday week and this is week 16197 11:04:05,116 --> 11:04:06,436 number 16198 11:04:06,436 --> 11:04:09,800 one then we have week number two again 16199 11:04:09,800 --> 11:04:14,756 from Monday to Sunday so week number is 16200 11:04:14,756 --> 11:04:18,436 using Monday to Sunday week and weekday 16201 11:04:18,436 --> 11:04:21,596 is verifying that well very first level 16202 11:04:21,596 --> 11:04:24,560 of our calendar is ready let us start 16203 11:04:24,560 --> 11:04:27,040 adding the new column like start of 16204 11:04:27,040 --> 11:04:29,800 month end of month start of quarter end 16205 11:04:29,800 --> 11:04:32,160 of quarter start of year end of year now 16206 11:04:32,160 --> 11:04:34,116 all these will depend on whether your 16207 11:04:34,116 --> 11:04:35,880 year is a financial year or calendar 16208 11:04:35,880 --> 11:04:37,960 year first We'll add for calendar year 16209 11:04:37,960 --> 11:04:40,116 and then we'll try to create our own 16210 11:04:40,116 --> 11:04:42,116 Logic for the financial year we have few 16211 11:04:42,116 --> 11:04:44,320 functions which can do this for us but 16212 11:04:44,320 --> 11:04:46,276 they have a limitation how to understand 16213 11:04:46,276 --> 11:04:47,800 that limitation what I'm going to do is 16214 11:04:47,800 --> 11:04:49,240 I'm going to change this calendar 16215 11:04:49,240 --> 11:04:51,000 statement a little bit so let me command 16216 11:04:51,000 --> 11:04:53,400 this particular line and put it again 16217 11:04:53,400 --> 11:04:56,000 now in I will not use EO month here and 16218 11:04:56,000 --> 11:04:58,040 I'll tell you why I'm doing so I'll use 16219 11:04:58,040 --> 11:05:01,680 minimum and then I'll it till today so 16220 11:05:01,680 --> 11:05:03,840 let me commit this change and you will 16221 11:05:03,840 --> 11:05:05,480 see my calendar is now starting on 16222 11:05:05,480 --> 11:05:07,240 October 13th let me check where it is 16223 11:05:07,240 --> 11:05:09,436 ending it should end on ending on 1st 16224 11:05:09,436 --> 11:05:12,116 January 2024 now let's try to use the 16225 11:05:12,116 --> 11:05:14,080 start of the month function now start of 16226 11:05:14,080 --> 11:05:16,596 the month function will not work in the 16227 11:05:16,596 --> 11:05:19,116 add columns start of month basically I 16228 11:05:19,116 --> 11:05:20,916 need a date on which this month has 16229 11:05:20,916 --> 11:05:23,200 started and I'll give date it is not 16230 11:05:23,200 --> 11:05:25,640 taking it so parameters is not correct 16231 11:05:25,640 --> 11:05:27,756 type so it basically need table name 16232 11:05:27,756 --> 11:05:29,596 column name we say okay fine it's not 16233 11:05:29,596 --> 11:05:31,640 working here that let me go ahead and 16234 11:05:31,640 --> 11:05:33,640 directly add it as of now the quickest 16235 11:05:33,640 --> 11:05:35,640 way is to directly go and write down a 16236 11:05:35,640 --> 11:05:38,160 new column and the new column will be 16237 11:05:38,160 --> 11:05:41,000 month start start of month function so 16238 11:05:41,000 --> 11:05:42,640 we as you can see we have start of month 16239 11:05:42,640 --> 11:05:44,596 start of quarter start of year start of 16240 11:05:44,596 --> 11:05:46,680 month I'm using it require only one 16241 11:05:46,680 --> 11:05:48,640 column The Continuous dates and I'll 16242 11:05:48,640 --> 11:05:50,916 give the eight date table and let me 16243 11:05:50,916 --> 11:05:53,400 press enter now ignore the first one if 16244 11:05:53,400 --> 11:05:55,276 I go to the November month it is showing 16245 11:05:55,276 --> 11:05:57,360 me the correct start date if I go down 16246 11:05:57,360 --> 11:05:59,800 any date after the October month it is 16247 11:05:59,800 --> 11:06:01,560 showing me correct dates if I go here 16248 11:06:01,560 --> 11:06:03,436 also you will see that it is showing me 16249 11:06:03,436 --> 11:06:05,840 the correct start dates of every month 16250 11:06:05,840 --> 11:06:07,880 except the first month why is it that 16251 11:06:07,880 --> 11:06:10,680 behavior so the reason behind this one 16252 11:06:10,680 --> 11:06:13,840 is that card of month require continuous 16253 11:06:13,840 --> 11:06:16,720 stes and it cannot go beyond the 16254 11:06:16,720 --> 11:06:18,040 boundaries of the date which is 16255 11:06:18,040 --> 11:06:19,480 contained in the column which has been 16256 11:06:19,480 --> 11:06:21,320 supplied so what happens if the month 16257 11:06:21,320 --> 11:06:23,756 start date is not available it will take 16258 11:06:23,756 --> 11:06:25,756 the minimum date available in that table 16259 11:06:25,756 --> 11:06:27,400 so because of that the start of the 16260 11:06:27,400 --> 11:06:29,560 month is happening at the 13th of 16261 11:06:29,560 --> 11:06:31,200 October same way when I take start of 16262 11:06:31,200 --> 11:06:33,240 quarter now start of quarter again has 16263 11:06:33,240 --> 11:06:35,596 the same problem for the first quarter 16264 11:06:35,596 --> 11:06:37,800 instead of from first October which is 16265 11:06:37,800 --> 11:06:39,680 the quarter start it will start from 16266 11:06:39,680 --> 11:06:41,840 October 13 again because it doesn't find 16267 11:06:41,840 --> 11:06:43,756 the 1 October minimum date whatever it 16268 11:06:43,756 --> 11:06:46,000 find before that it's taking that if I 16269 11:06:46,000 --> 11:06:48,240 use start of year you will see the same 16270 11:06:48,240 --> 11:06:50,720 issue again no 1 January it's October 16271 11:06:50,720 --> 11:06:53,160 13th which is the minimum date available 16272 11:06:53,160 --> 11:06:55,720 continuous 16273 11:07:07,640 --> 11:07:10,840 state from month start to month end and 16274 11:07:10,840 --> 11:07:14,080 let me use the function end of end of 16275 11:07:14,080 --> 11:07:16,080 month what happens now very happy first 16276 11:07:16,080 --> 11:07:17,916 month is coming correct but let's go to 16277 11:07:17,916 --> 11:07:19,916 the last value January doesn't end on 16278 11:07:19,916 --> 11:07:22,040 first isn't it doesn't end on first it 16279 11:07:22,040 --> 11:07:24,040 ends on 31st January not able to find 16280 11:07:24,040 --> 11:07:25,800 because there's no date which is 16281 11:07:25,800 --> 11:07:27,320 available after that so it's going to 16282 11:07:27,320 --> 11:07:30,000 end there okay what happens to the end 16283 11:07:30,000 --> 11:07:31,040 of 16284 11:07:31,040 --> 11:07:33,320 quarter you will see the same issue with 16285 11:07:33,320 --> 11:07:35,480 the end of quarter the last date what I 16286 11:07:35,480 --> 11:07:38,240 can do is s descending it will come on 16287 11:07:38,240 --> 11:07:40,080 the top as you can see the month is 16288 11:07:40,080 --> 11:07:42,480 ending on the last year same way for the 16289 11:07:42,480 --> 11:07:45,160 year if you try again the year will also 16290 11:07:45,160 --> 11:07:47,640 end on the 1st January so it cannot go 16291 11:07:47,640 --> 11:07:50,400 beyond the date it has to stop there and 16292 11:07:50,400 --> 11:07:52,756 because of this reason we are unable to 16293 11:07:52,756 --> 11:07:55,400 use start of month end of month if we 16294 11:07:55,400 --> 11:07:57,756 are not using a standard calendar 16295 11:07:57,756 --> 11:08:00,400 specifically if the calendars are not 16296 11:08:00,400 --> 11:08:02,560 starting and ending on the standard 16297 11:08:02,560 --> 11:08:04,520 month start date and month end date then 16298 11:08:04,520 --> 11:08:06,320 we cannot use it if your calendar is 16299 11:08:06,320 --> 11:08:08,680 starting on standard month start date 16300 11:08:08,680 --> 11:08:10,880 and ending on standard month ended you 16301 11:08:10,880 --> 11:08:13,800 can use these functions without any 16302 11:08:13,800 --> 11:08:15,640 doubt but I need to tell you the 16303 11:08:15,640 --> 11:08:17,276 Alternatives what I'm going to do is I'm 16304 11:08:17,276 --> 11:08:18,960 going to delete these things and I'll 16305 11:08:18,960 --> 11:08:21,520 tell you how to create it without using 16306 11:08:21,520 --> 11:08:23,400 these functions now you learned these 16307 11:08:23,400 --> 11:08:25,080 functions only one argument these 16308 11:08:25,080 --> 11:08:26,800 function required other than the end of 16309 11:08:26,800 --> 11:08:29,320 year and end of quarter end of year and 16310 11:08:29,320 --> 11:08:31,200 end of quarter start of year year 16311 11:08:31,200 --> 11:08:32,720 function and end of year function can 16312 11:08:32,720 --> 11:08:35,080 take another argument which is basically 16313 11:08:35,080 --> 11:08:37,320 year anded which can also be supplied to 16314 11:08:37,320 --> 11:08:39,520 get the financial again the limitation 16315 11:08:39,520 --> 11:08:41,000 is if you want to create the financial 16316 11:08:41,000 --> 11:08:42,640 year the calendar should start from the 16317 11:08:42,640 --> 11:08:44,840 financial month start date and should 16318 11:08:44,840 --> 11:08:46,680 end on the Financial month end date 16319 11:08:46,680 --> 11:08:48,200 otherwise the end dates would not be 16320 11:08:48,200 --> 11:08:50,040 correct so what is the alternate so I'll 16321 11:08:50,040 --> 11:08:53,240 tell you here so let me create start of 16322 11:08:53,240 --> 11:08:55,080 month and new column in the add column 16323 11:08:55,080 --> 11:08:57,160 I'll continue to add the column in this 16324 11:08:57,160 --> 11:09:00,040 add column and the what is the date I 16325 11:09:00,040 --> 11:09:01,800 want want start of the month and we'll 16326 11:09:01,800 --> 11:09:03,916 use function e month now e month gives 16327 11:09:03,916 --> 11:09:06,040 end of month and for the row in the date 16328 11:09:06,040 --> 11:09:07,480 if I give zero it will give current 16329 11:09:07,480 --> 11:09:09,560 abundant date so what we do is we go to 16330 11:09:09,560 --> 11:09:11,436 last month end date which is minus one 16331 11:09:11,436 --> 11:09:13,480 means last month end date plus one so 16332 11:09:13,480 --> 11:09:15,720 two argument it takes EO month first 16333 11:09:15,720 --> 11:09:18,040 argument is date second argument is 16334 11:09:18,040 --> 11:09:19,840 which month and date so minus one means 16335 11:09:19,840 --> 11:09:21,680 last month and date and then I'm doing 16336 11:09:21,680 --> 11:09:24,436 plus one in Dex you can simply add 16337 11:09:24,436 --> 11:09:27,360 numbers to a date to travel number of 16338 11:09:27,360 --> 11:09:29,640 days you want then we press enter and 16339 11:09:29,640 --> 11:09:31,640 now we got the start of the month and as 16340 11:09:31,640 --> 11:09:34,360 you can see this is correct but let's go 16341 11:09:34,360 --> 11:09:36,320 start ascending and you can see though 16342 11:09:36,320 --> 11:09:38,400 the calendar has not started on the 16343 11:09:38,400 --> 11:09:39,840 first date there still getting the 16344 11:09:39,840 --> 11:09:41,640 correct start of the month now end of 16345 11:09:41,640 --> 11:09:43,840 the month is simple we know that this 16346 11:09:43,840 --> 11:09:45,320 there is a function which actually 16347 11:09:45,320 --> 11:09:46,800 actually is for there for end of the 16348 11:09:46,800 --> 11:09:49,640 month let me write down that one end of 16349 11:09:49,640 --> 11:09:52,116 month EO month which months and date I 16350 11:09:52,116 --> 11:09:54,160 need I need the current month end dat it 16351 11:09:54,160 --> 11:09:56,320 is very simple for us just give a zero 16352 11:09:56,320 --> 11:09:58,480 enter and we got the end dat now we have 16353 11:09:58,480 --> 11:10:00,520 to check it for the largest statee we 16354 11:10:00,520 --> 11:10:02,840 have S this ending and if as you can see 16355 11:10:02,840 --> 11:10:05,040 here it gives us the correct month and 16356 11:10:05,040 --> 11:10:06,800 date though the month and date is not 16357 11:10:06,800 --> 11:10:09,520 present in the calendar or the date 16358 11:10:09,520 --> 11:10:11,800 table or the dates which are available 16359 11:10:11,800 --> 11:10:14,040 in the table which is we are using here 16360 11:10:14,040 --> 11:10:16,080 the date column itself doesn't contain 16361 11:10:16,080 --> 11:10:17,960 the dates which we require before I'll 16362 11:10:17,960 --> 11:10:19,200 go to the quarter because quarter 16363 11:10:19,200 --> 11:10:21,276 require a little bit of logic I'll show 16364 11:10:21,276 --> 11:10:23,720 you how easily we can achieve the start 16365 11:10:23,720 --> 11:10:25,640 of year and end of year now start of 16366 11:10:25,640 --> 11:10:27,480 year I'm showing you the calendar later 16367 11:10:27,480 --> 11:10:29,116 on we'll come and develop the logic 16368 11:10:29,116 --> 11:10:31,480 shift enter shift enter start of year 16369 11:10:31,480 --> 11:10:33,320 how do we start the year now we will use 16370 11:10:33,320 --> 11:10:35,436 the same function this one only Now 16371 11:10:35,436 --> 11:10:37,160 understand when I subtracted one month 16372 11:10:37,160 --> 11:10:38,880 from October when where did you went 16373 11:10:38,880 --> 11:10:41,116 September If I subtract two then August 16374 11:10:41,116 --> 11:10:43,840 what happens so if I subtract one you 16375 11:10:43,840 --> 11:10:45,916 are 1 month less so if I subract nine 16376 11:10:45,916 --> 11:10:47,360 where would you reach you would reach 16377 11:10:47,360 --> 11:10:49,200 January but if I subtract 10 where would 16378 11:10:49,200 --> 11:10:51,240 you reach you will reach December so if 16379 11:10:51,240 --> 11:10:53,640 I subtract 10 then you will reach end of 16380 11:10:53,640 --> 11:10:55,400 the month December and then plus month 16381 11:10:55,400 --> 11:10:57,400 will give you January so how do I know 16382 11:10:57,400 --> 11:10:59,800 the month of the date so I can use month 16383 11:10:59,800 --> 11:11:01,960 function and there I can give date as an 16384 11:11:01,960 --> 11:11:04,040 argument so what I'm saying here is 16385 11:11:04,040 --> 11:11:06,276 basically from the date you have to go 16386 11:11:06,276 --> 11:11:08,480 minus one star number of months which 16387 11:11:08,480 --> 11:11:10,520 you had so you will reach 10 months 16388 11:11:10,520 --> 11:11:12,800 behind in this case for October minus 16389 11:11:12,800 --> 11:11:14,756 one is September minus 2 is August and 16390 11:11:14,756 --> 11:11:16,916 same way you will reach - 10 means last 16391 11:11:16,916 --> 11:11:18,840 December and plus one means you will 16392 11:11:18,840 --> 11:11:20,800 reach the start of the year and as you 16393 11:11:20,800 --> 11:11:22,840 can see we are getting the correct start 16394 11:11:22,840 --> 11:11:24,840 of the Year date here and let's sort 16395 11:11:24,840 --> 11:11:26,680 ascending and check it out we are also 16396 11:11:26,680 --> 11:11:28,596 getting it so start date is correct now 16397 11:11:28,596 --> 11:11:30,436 end date how do I reach end it now how 16398 11:11:30,436 --> 11:11:32,960 do I identify how many months I need to 16399 11:11:32,960 --> 11:11:34,640 add because months are changing January 16400 11:11:34,640 --> 11:11:37,320 is different February is no to reach 12 16401 11:11:37,320 --> 11:11:39,000 we need to reach 12 month isn't it what 16402 11:11:39,000 --> 11:11:40,800 would happen when we give zero October 16403 11:11:40,800 --> 11:11:42,596 when we give two what will be happen 16404 11:11:42,596 --> 11:11:44,560 November when we'll give two it would be 16405 11:11:44,560 --> 11:11:46,640 December December is 12 what is the 16406 11:11:46,640 --> 11:11:49,360 current month 10 12 - 10 is 2 we need to 16407 11:11:49,360 --> 11:11:52,080 reach 2 months if we are in September if 16408 11:11:52,080 --> 11:11:54,480 you give zero September 1 October 2 16409 11:11:54,480 --> 11:11:58,276 November 3 December 12 - 9 is 3 it means 16410 11:11:58,276 --> 11:12:00,880 if we subtract the month from the 12 we 16411 11:12:00,880 --> 11:12:03,200 will exactly get how many number of 16412 11:12:03,200 --> 11:12:05,160 month we should go ahead so what we are 16413 11:12:05,160 --> 11:12:06,960 going to do here is we copy paste this 16414 11:12:06,960 --> 11:12:09,000 one we don't need to add the plus one 16415 11:12:09,000 --> 11:12:11,640 now simply go ahead and say end of year 16416 11:12:11,640 --> 11:12:14,880 EO month 12 minus the number of months 16417 11:12:14,880 --> 11:12:16,916 which is is already passed me that 16418 11:12:16,916 --> 11:12:18,560 include the current one and we should 16419 11:12:18,560 --> 11:12:21,436 get end of year date so start of year we 16420 11:12:21,436 --> 11:12:23,916 got using the month number end of year 16421 11:12:23,916 --> 11:12:25,320 we are also getting using the month 16422 11:12:25,320 --> 11:12:27,480 number enter and let's look at the date 16423 11:12:27,480 --> 11:12:30,360 perfect end of year date 2018 thought 16424 11:12:30,360 --> 11:12:32,116 descending check what we are getting for 16425 11:12:32,116 --> 11:12:35,560 the 1 of January 2024 31st of December 16426 11:12:35,560 --> 11:12:38,276 2024 we are able to get it now we comes 16427 11:12:38,276 --> 11:12:41,200 to the logic of quarter quarter is not 16428 11:12:41,200 --> 11:12:43,080 very simple because what happens is we 16429 11:12:43,080 --> 11:12:44,560 have these quarter which are ending 16430 11:12:44,560 --> 11:12:46,360 every 3 months we are right now 16431 11:12:46,360 --> 11:12:48,480 preparing for the calendar it's easy for 16432 11:12:48,480 --> 11:12:51,116 us because they are we can use division 16433 11:12:51,116 --> 11:12:54,000 by three as a criteria actually even if 16434 11:12:54,000 --> 11:12:56,560 the month start from a common date and 16435 11:12:56,560 --> 11:12:58,596 the quarters then there are couple of 16436 11:12:58,596 --> 11:13:02,276 ways one way is 16437 11:13:19,880 --> 11:13:22,240 for January what we can do month is one 16438 11:13:22,240 --> 11:13:25,080 so I subtract - 1 month from E month 16439 11:13:25,080 --> 11:13:27,200 I'll read December and then I can add 16440 11:13:27,200 --> 11:13:30,276 plus one to get the 1 January similarly 16441 11:13:30,276 --> 11:13:33,276 for February u monthus 2 31st December 16442 11:13:33,276 --> 11:13:35,756 Plus 1 day we'll reach January for March 16443 11:13:35,756 --> 11:13:40,116 minus 3 and plus one day we will reach 1 16444 11:13:40,116 --> 11:13:42,756 January but for April the formula little 16445 11:13:42,756 --> 11:13:44,520 bit need to change because now I need to 16446 11:13:44,520 --> 11:13:47,480 only say Min - one then -2 then minus 3 16447 11:13:47,480 --> 11:13:49,360 they say okay fine what we can do is we 16448 11:13:49,360 --> 11:13:51,840 can find out their remainder by dividing 16449 11:13:51,840 --> 11:13:53,480 by three but the challenge with the 16450 11:13:53,480 --> 11:13:55,080 remainder is when we take it from 16451 11:13:55,080 --> 11:13:57,720 January it is fine one means one 16452 11:13:57,720 --> 11:13:59,240 remainder is one for February remainder 16453 11:13:59,240 --> 11:14:01,640 is two for March remainder is not three 16454 11:14:01,640 --> 11:14:04,000 the remainder is zero so we say fine we 16455 11:14:04,000 --> 11:14:07,680 can adjust it so we use start of qtr and 16456 11:14:07,680 --> 11:14:09,640 you might have to actually think about 16457 11:14:09,640 --> 11:14:12,000 this logic little bit I have done quite 16458 11:14:12,000 --> 11:14:14,520 a few video and few people uh do get 16459 11:14:14,520 --> 11:14:16,720 this mathem ma matical equation how I'm 16460 11:14:16,720 --> 11:14:18,640 changing it so just pay attention you 16461 11:14:18,640 --> 11:14:20,640 might have to rebuild your own Logic on 16462 11:14:20,640 --> 11:14:24,596 that first is very simple if mod mod is 16463 11:14:24,596 --> 11:14:26,640 a function which gives me remainder so 16464 11:14:26,640 --> 11:14:28,880 it takes a number Division and gives the 16465 11:14:28,880 --> 11:14:30,596 remainder so we are learning a 16466 11:14:30,596 --> 11:14:32,596 mathematical function mod here mod 16467 11:14:32,596 --> 11:14:34,916 functions give us the remainder what is 16468 11:14:34,916 --> 11:14:36,640 the number we need for which we we need 16469 11:14:36,640 --> 11:14:39,756 the month number so month of date and I 16470 11:14:39,756 --> 11:14:41,640 could have used this inside a variable 16471 11:14:41,640 --> 11:14:44,360 so let me do one thing where underscore 16472 11:14:44,360 --> 11:14:47,200 r equals and I'll tell you when you 16473 11:14:47,200 --> 11:14:50,116 inside the add function when you use 16474 11:14:50,116 --> 11:14:52,240 variable how to use that now if the mod 16475 11:14:52,240 --> 11:14:55,840 of the month from 3 equals to 0er then 16476 11:14:55,840 --> 11:14:58,116 three if it is becoming zero it means if 16477 11:14:58,116 --> 11:15:00,840 it is third month the mod is coming zero 16478 11:15:00,840 --> 11:15:02,640 it means it is three otherwise it should 16479 11:15:02,640 --> 11:15:04,480 be same as mod or it could be same as 16480 11:15:04,480 --> 11:15:05,916 the it should be same as mod because for 16481 11:15:05,916 --> 11:15:08,520 four you can't say no no it is a month 16482 11:15:08,520 --> 11:15:10,560 number no in case of four I need one and 16483 11:15:10,560 --> 11:15:12,080 if you want to avoid this calculation 16484 11:15:12,080 --> 11:15:14,000 twice you could have created a variable 16485 11:15:14,000 --> 11:15:16,360 on this first and then used it so now I 16486 11:15:16,360 --> 11:15:18,520 got my calculation this is this is what 16487 11:15:18,520 --> 11:15:21,080 is going to give me 1 2 and 0 1 2 and 0 16488 11:15:21,080 --> 11:15:23,480 1 2 and 0 and then what it will convert 16489 11:15:23,480 --> 11:15:25,560 it the if statement will convert it into 16490 11:15:25,560 --> 11:15:29,320 12 1231 123 shift enter tab tab just and 16491 11:15:29,320 --> 11:15:31,400 I'm pressing tab so that you know you're 16492 11:15:31,400 --> 11:15:33,116 able to understand the code the code is 16493 11:15:33,116 --> 11:15:35,480 aligned better now I'll so when you use 16494 11:15:35,480 --> 11:15:36,916 variable you need to write down written 16495 11:15:36,916 --> 11:15:38,596 statement and in this case also you can 16496 11:15:38,596 --> 11:15:40,360 do this but and I'm going to write down 16497 11:15:40,360 --> 11:15:42,200 in the same line so now it is very 16498 11:15:42,200 --> 11:15:44,960 simple for us EO month of the date Min 16499 11:15:44,960 --> 11:15:47,840 -1 star this remainder what we got 16500 11:15:47,840 --> 11:15:50,720 underscore remainder and then add the + 16501 11:15:50,720 --> 11:15:52,960 one add the plus one to date now let's 16502 11:15:52,960 --> 11:15:54,916 look are we getting the correct one this 16503 11:15:54,916 --> 11:15:57,116 is start of quarter for descending let's 16504 11:15:57,116 --> 11:15:59,276 s it ascending let's sort it ascending 16505 11:15:59,276 --> 11:16:01,960 October after that we got January and 16506 11:16:01,960 --> 11:16:03,720 this is what we are getting on the 1 16507 11:16:03,720 --> 11:16:05,560 January seems correct let's look at 16508 11:16:05,560 --> 11:16:07,480 April and then we can go and simply 16509 11:16:07,480 --> 11:16:09,200 check the start dates this is quarter 16510 11:16:09,200 --> 11:16:11,080 number so don't go by this look at here 16511 11:16:11,080 --> 11:16:13,400 1 January so this is 1 April that's fine 16512 11:16:13,400 --> 11:16:15,040 and we can look at all the quarter start 16513 11:16:15,040 --> 11:16:16,480 dates all quarter start date seems 16514 11:16:16,480 --> 11:16:19,520 correct quarter end dat now if I so what 16515 11:16:19,520 --> 11:16:21,200 happens for January I need to go 2 16516 11:16:21,200 --> 11:16:23,400 months ahead February I need to go 1 16517 11:16:23,400 --> 11:16:25,436 month ahead and March I don't need to go 16518 11:16:25,436 --> 11:16:27,800 so there 16519 11:16:43,200 --> 11:16:45,960 are so what we will in this Cas is we 16520 11:16:45,960 --> 11:16:47,520 will say let's write down the formula 16521 11:16:47,520 --> 11:16:51,360 for this one I erased it EO month date 3 16522 11:16:51,360 --> 11:16:53,720 minus the remainder and we will reach 16523 11:16:53,720 --> 11:16:55,480 the end of month so we don't need 16524 11:16:55,480 --> 11:16:58,240 anything for that let's Commit This and 16525 11:16:58,240 --> 11:17:00,320 let me go down you can see this is 16526 11:17:00,320 --> 11:17:03,480 ending on 31st December end of quarter 16527 11:17:03,480 --> 11:17:06,040 let's scroll a little bit down and then 16528 11:17:06,040 --> 11:17:08,080 this one you can see a change of date 16529 11:17:08,080 --> 11:17:10,480 here on this line in the January let's 16530 11:17:10,480 --> 11:17:12,400 look at all the quarter end dates seems 16531 11:17:12,400 --> 11:17:14,640 correct and not dependent on the dates 16532 11:17:14,640 --> 11:17:15,560 which which are available on the 16533 11:17:15,560 --> 11:17:18,160 calendar so now we are able to get the 16534 11:17:18,160 --> 11:17:20,480 month start date year start date quarter 16535 11:17:20,480 --> 11:17:22,480 start date month end date year end date 16536 11:17:22,480 --> 11:17:24,680 quarter end next most important thing is 16537 11:17:24,680 --> 11:17:26,956 Week start date week end date so now we 16538 11:17:26,956 --> 11:17:29,720 would like to add the column start of 16539 11:17:29,720 --> 11:17:32,040 week and end of week I'm going to do is 16540 11:17:32,040 --> 11:17:34,116 while we can add in this table but this 16541 11:17:34,116 --> 11:17:35,956 table has too many columns one of the 16542 11:17:35,956 --> 11:17:38,276 ways that I remove some of the columns 16543 11:17:38,276 --> 11:17:40,080 or I add at the start but what I'm going 16544 11:17:40,080 --> 11:17:41,800 to do is I'm going to add those column 16545 11:17:41,800 --> 11:17:43,956 in date Auto where we only have couple 16546 11:17:43,956 --> 11:17:46,080 of columns and and now because it's a 16547 11:17:46,080 --> 11:17:48,240 script we can come back and add the 16548 11:17:48,240 --> 11:17:50,680 columns into the date table we're going 16549 11:17:50,680 --> 11:17:53,276 to do at the end so start of week end of 16550 11:17:53,276 --> 11:17:55,276 week no standard function we have to 16551 11:17:55,276 --> 11:17:57,560 create it now the logic the way we have 16552 11:17:57,560 --> 11:18:00,040 to drive it let's say Monday is your 16553 11:18:00,040 --> 11:18:02,000 start of week so Monday means you to go 16554 11:18:02,000 --> 11:18:03,956 zero behind Tuesday means you to go one 16555 11:18:03,956 --> 11:18:05,800 day behind Wednesday means you to go 2 16556 11:18:05,800 --> 11:18:07,800 days behind Thursday means 3 days behind 16557 11:18:07,800 --> 11:18:09,560 Min subtract simple number subtraction 16558 11:18:09,560 --> 11:18:11,240 will there is a function weekday 16559 11:18:11,240 --> 11:18:12,916 function also which can give us for 16560 11:18:12,916 --> 11:18:15,400 Monday 1 Tuesday 2 so every week which 16561 11:18:15,400 --> 11:18:16,880 you want to start first of all you need 16562 11:18:16,880 --> 11:18:18,800 to have a week day for that kind kind of 16563 11:18:18,800 --> 11:18:20,480 start so if I want a Monday start or if 16564 11:18:20,480 --> 11:18:22,000 I want a Sunday start what I'm going to 16565 11:18:22,000 --> 11:18:24,436 do is there is are arguments which can 16566 11:18:24,436 --> 11:18:25,956 help you and these are other than one 16567 11:18:25,956 --> 11:18:28,596 and two and let's try those out today so 16568 11:18:28,596 --> 11:18:31,116 to start with let me first of all start 16569 11:18:31,116 --> 11:18:33,276 by add column and I would like to add 16570 11:18:33,276 --> 11:18:36,160 here a weekday okay so and not weekday 16571 11:18:36,160 --> 11:18:38,200 number I would like to add a weekday 16572 11:18:38,200 --> 11:18:40,756 name here weekday name how do we add 16573 11:18:40,756 --> 11:18:42,596 weekday name we have learned just few 16574 11:18:42,596 --> 11:18:44,720 minutes before is that we can use for 16575 11:18:44,720 --> 11:18:47,680 format function for that format date 16576 11:18:47,680 --> 11:18:50,116 again calendar Auto also gives us a date 16577 11:18:50,116 --> 11:18:52,916 let's use DD d d four times give us the 16578 11:18:52,916 --> 11:18:55,360 complete one Alt Enter Alt Enter so we 16579 11:18:55,360 --> 11:18:57,560 got Monday Tuesday and S ascending is 16580 11:18:57,560 --> 11:18:59,560 the date so this start so any Monday 16581 11:18:59,560 --> 11:19:01,560 week cover the first week as a full one 16582 11:19:01,560 --> 11:19:03,756 now let's play around with one argument 16583 11:19:03,756 --> 11:19:05,720 here where I want to have a new column 16584 11:19:05,720 --> 11:19:07,840 which is nothing but week day as a 16585 11:19:07,840 --> 11:19:10,916 number and week day is a number week day 16586 11:19:10,916 --> 11:19:12,840 date first argument column return return 16587 11:19:12,840 --> 11:19:16,640 type 1 2 3 try 11 though it's showing an 16588 11:19:16,640 --> 11:19:19,000 error but as you can see here it is 16589 11:19:19,000 --> 11:19:23,436 giving 1 2 3 4 5 6 7 1 2 3 4 5 6 7 so 16590 11:19:23,436 --> 11:19:25,720 Monday is day one let's try the argument 16591 11:19:25,720 --> 11:19:29,240 12 so in case of 12 Tuesday is 1 and 16592 11:19:29,240 --> 11:19:31,400 then 16593 11:19:42,320 --> 11:19:44,880 mon other than that we have 1 and two 16594 11:19:44,880 --> 11:19:47,240 also as an argument one means Sunday and 16595 11:19:47,240 --> 11:19:49,480 two means Monday and one means Sunday 16596 11:19:49,480 --> 11:19:51,360 start so I'll tell you the formula and 16597 11:19:51,360 --> 11:19:53,320 you can use those argument as you 16598 11:19:53,320 --> 11:19:55,596 require so let's say I need I actually 16599 11:19:55,596 --> 11:19:58,640 need the Monday so I can use 2 or 11 so 16600 11:19:58,640 --> 11:20:00,680 date it's a very simple formula date 16601 11:20:00,680 --> 11:20:02,956 minus weekday we'll reach a day before 16602 11:20:02,956 --> 11:20:04,640 not reach Monday we'll reach Sunday 16603 11:20:04,640 --> 11:20:06,276 because on Monday I'll subract one day 16604 11:20:06,276 --> 11:20:07,756 I'll reach Sunday in Tuesday I'll 16605 11:20:07,756 --> 11:20:09,756 subract two days I'll reach a Sunday so 16606 11:20:09,756 --> 11:20:11,720 we'll say okay after that just add plus 16607 11:20:11,720 --> 11:20:14,400 one so this is nothing but Week start 16608 11:20:14,400 --> 11:20:17,000 dat what we got here is Monday as Week 16609 11:20:17,000 --> 11:20:19,040 start date then again the next Monday is 16610 11:20:19,040 --> 11:20:20,560 again the week start date and you can 16611 11:20:20,560 --> 11:20:22,240 check what is the date on the Monday now 16612 11:20:22,240 --> 11:20:23,956 if you need Tuesday is the week start 16613 11:20:23,956 --> 11:20:25,956 dat what you need to do no change in the 16614 11:20:25,956 --> 11:20:28,240 formula only Chang in this parameter 16615 11:20:28,240 --> 11:20:30,680 just do that commit come out Week start 16616 11:20:30,680 --> 11:20:33,276 date becomes the Tuesday start date same 16617 11:20:33,276 --> 11:20:35,916 way you can work for Wednesday this is 16618 11:20:35,916 --> 11:20:38,116 Tuesday this is next Tuesday this is the 16619 11:20:38,116 --> 11:20:40,240 entire week so get it we'll keep it 16620 11:20:40,240 --> 11:20:43,000 Monday you can keep it 2 or 11: what is 16621 11:20:43,000 --> 11:20:45,680 week and date week and date is six day 16622 11:20:45,680 --> 11:20:47,680 ahead of the Week start date I want to 16623 11:20:47,680 --> 11:20:49,880 add six more so I can simply go ahead 16624 11:20:49,880 --> 11:20:52,200 and add plus seven here and sometime 16625 11:20:52,200 --> 11:20:55,320 what we is 7 + 7 minus week day both are 16626 11:20:55,320 --> 11:20:57,400 going to give you same result so either 16627 11:20:57,400 --> 11:21:00,320 you do plus 7 here or you do plus 7 here 16628 11:21:00,320 --> 11:21:02,680 both in same and we cannot have to 16629 11:21:02,680 --> 11:21:04,320 column name with the week start date you 16630 11:21:04,320 --> 11:21:06,720 need to week end date press enter and 16631 11:21:06,720 --> 11:21:09,000 you get the end date now the start date 16632 11:21:09,000 --> 11:21:10,596 and that's your end date you're ending 16633 11:21:10,596 --> 11:21:13,116 on 7th which is a Sunday then you ending 16634 11:21:13,116 --> 11:21:15,756 another on Sunday this is this so now 16635 11:21:15,756 --> 11:21:18,916 any calculation you know 11 12 13 14 15 16636 11:21:18,916 --> 11:21:21,640 16 17 are what we are looking at so now 16637 11:21:21,640 --> 11:21:23,436 you understood the calculation I can 16638 11:21:23,436 --> 11:21:25,640 copy this and this is why I prefer this 16639 11:21:25,640 --> 11:21:27,800 manner I can go to the date table just 16640 11:21:27,800 --> 11:21:29,916 shift enter or Alt Enter back space 16641 11:21:29,916 --> 11:21:32,000 backspace back space in this case and 16642 11:21:32,000 --> 11:21:34,560 then I simply press enter here at the 16643 11:21:34,560 --> 11:21:36,596 end and I have Week start date and week 16644 11:21:36,596 --> 11:21:39,400 dat end date also available here and as 16645 11:21:39,400 --> 11:21:41,480 this is not starting from 1 January so 16646 11:21:41,480 --> 11:21:43,520 that's why you have the weeks which are 16647 11:21:43,520 --> 11:21:45,596 starting from The Middle of the month as 16648 11:21:45,596 --> 11:21:47,560 this is starting from 13th of October 16649 11:21:47,560 --> 11:21:50,240 based on that our weeks are coming 16650 11:21:50,240 --> 11:21:53,400 here now I want to create Financial year 16651 11:21:53,400 --> 11:21:55,560 start and financial year end now because 16652 11:21:55,560 --> 11:21:57,200 my months are standard months so the 16653 11:21:57,200 --> 11:21:58,916 calculation for the month start date and 16654 11:21:58,916 --> 11:22:00,800 month end date is not going to change 16655 11:22:00,800 --> 11:22:03,116 but the year month calculation will 16656 11:22:03,116 --> 11:22:04,916 change because let's say if my year 16657 11:22:04,916 --> 11:22:06,800 starts on April the April is the first 16658 11:22:06,800 --> 11:22:08,840 month and let's consider that case only 16659 11:22:08,840 --> 11:22:11,680 when April is the first month so again 16660 11:22:11,680 --> 11:22:13,800 my date table has a lot of columns as we 16661 11:22:13,800 --> 11:22:15,400 have done in the p we are going to 16662 11:22:15,400 --> 11:22:17,276 create these here and then we'll take 16663 11:22:17,276 --> 11:22:20,116 them to the other scpt now let we start 16664 11:22:20,116 --> 11:22:22,200 with the start of start of FY let's call 16665 11:22:22,200 --> 11:22:24,640 it Financial year started start of fi 16666 11:22:24,640 --> 11:22:27,720 where do here start the year starts in 1 16667 11:22:27,720 --> 11:22:30,240 of April years end on 31st March any 16668 11:22:30,240 --> 11:22:32,596 month like January February March they 16669 11:22:32,596 --> 11:22:34,480 have their year started in the last year 16670 11:22:34,480 --> 11:22:36,956 month which are after April which is 4 16671 11:22:36,956 --> 11:22:39,400 to 12 the month the year started in the 16672 11:22:39,400 --> 11:22:41,276 same year so this is the logic which we 16673 11:22:41,276 --> 11:22:43,756 are going to use and for that we are 16674 11:22:43,756 --> 11:22:46,116 going to use an statement so what I'm 16675 11:22:46,116 --> 11:22:47,680 going to do is I'm going to create a 16676 11:22:47,680 --> 11:22:50,360 date tape date using the date function 16677 11:22:50,360 --> 11:22:52,480 but and remember four and one are 16678 11:22:52,480 --> 11:22:54,400 constant right now the only thing we are 16679 11:22:54,400 --> 11:22:56,200 doing is keeping a little bit of hard 16680 11:22:56,200 --> 11:22:58,956 coding we say month number is four and 16681 11:22:58,956 --> 11:23:00,756 day is one that is constant here is 16682 11:23:00,756 --> 11:23:03,000 something which we need to change if the 16683 11:23:03,000 --> 11:23:07,680 month of the date is in the row now is 16684 11:23:07,680 --> 11:23:11,520 less than four then the year of the date 16685 11:23:11,520 --> 11:23:13,800 is not starting this year it's starting 16686 11:23:13,800 --> 11:23:15,276 in the last year so whatever year you 16687 11:23:15,276 --> 11:23:18,840 have it's minus one otherwise you can 16688 11:23:18,840 --> 11:23:21,000 continue with the year you had because 16689 11:23:21,000 --> 11:23:22,840 your ear is going to start in this year 16690 11:23:22,840 --> 11:23:25,116 only what we are saying is the in the 16691 11:23:25,116 --> 11:23:28,360 year part of this one is basically that 16692 11:23:28,360 --> 11:23:30,756 if the month of the date is less than 16693 11:23:30,756 --> 11:23:33,276 four the true condition then year is in 16694 11:23:33,276 --> 11:23:35,520 the last year the Year start and if it 16695 11:23:35,520 --> 11:23:38,080 is greater than or equal to then year is 16696 11:23:38,080 --> 11:23:40,360 starting this year and after that we can 16697 11:23:40,360 --> 11:23:43,240 simply hardcode 4A 1 what we got first 16698 11:23:43,240 --> 11:23:45,756 uppl as our start date now this is 16699 11:23:45,756 --> 11:23:48,360 starting in October so it will have that 16700 11:23:48,360 --> 11:23:50,520 now we have to travel till 31st March 16701 11:23:50,520 --> 11:23:53,436 and 1st April to see is there a change 16702 11:23:53,436 --> 11:23:55,720 happening so these are the two rows we 16703 11:23:55,720 --> 11:23:59,276 are looking forward and look at the 16704 11:23:59,840 --> 11:24:02,956 years so the years are changing in the 16705 11:24:02,956 --> 11:24:05,756 month of April now end date again we 16706 11:24:05,756 --> 11:24:08,160 will keep very simple Logic for the end 16707 11:24:08,160 --> 11:24:10,276 date but here what is happening if it is 16708 11:24:10,276 --> 11:24:12,360 before April it's ending in the same 16709 11:24:12,360 --> 11:24:15,360 year after April it isend ending next 16710 11:24:15,360 --> 11:24:18,116 year the Year doesn't end on this year 16711 11:24:18,116 --> 11:24:21,520 shift enter past this end of FY and if 16712 11:24:21,520 --> 11:24:24,000 it is less than then it's ending this 16713 11:24:24,000 --> 11:24:26,040 year if it is more then it's going to 16714 11:24:26,040 --> 11:24:28,680 end next year plus one either it ends 16715 11:24:28,680 --> 11:24:31,840 this year or it ends next 16716 11:24:31,840 --> 11:24:34,680 year where does it end it doesn't end on 16717 11:24:34,680 --> 11:24:37,840 April it ends on 331st we have to do the 16718 11:24:37,840 --> 11:24:40,276 adjustment and then enter or commit and 16719 11:24:40,276 --> 11:24:43,276 we got the date of 31st March as the end 16720 11:24:43,276 --> 11:24:45,640 of year and if you you can scroll down 16721 11:24:45,640 --> 11:24:49,080 again to the same place 16722 11:24:49,080 --> 11:24:52,040 March look at these rows March 16723 11:24:52,040 --> 11:24:54,916 April end of year is 16724 11:24:54,916 --> 11:24:57,520 changing so we got our financial year 16725 11:24:57,520 --> 11:24:59,916 now to get the month number and the 16726 11:24:59,916 --> 11:25:01,680 quarter number the formulas which I 16727 11:25:01,680 --> 11:25:03,916 wanted to use need start of the year 16728 11:25:03,916 --> 11:25:06,080 start of F5 now the challenge with us 16729 11:25:06,080 --> 11:25:08,596 here is basically that this table which 16730 11:25:08,596 --> 11:25:10,596 the current Table of the add columns 16731 11:25:10,596 --> 11:25:12,116 doesn't have that because they are 16732 11:25:12,116 --> 11:25:13,840 calculated in this table itself we 16733 11:25:13,840 --> 11:25:15,480 cannot use use them so now what to do 16734 11:25:15,480 --> 11:25:16,956 what I'm going to do is I'm going to put 16735 11:25:16,956 --> 11:25:18,916 this entire table into a variable that 16736 11:25:18,916 --> 11:25:22,560 we call that where underscore tab equals 16737 11:25:22,560 --> 11:25:23,680 and then what I'm going to do is I'm 16738 11:25:23,680 --> 11:25:25,360 going to go down it's a variable so I 16739 11:25:25,360 --> 11:25:26,916 need to return something I'll return 16740 11:25:26,916 --> 11:25:29,756 this table return underscore tab let's 16741 11:25:29,756 --> 11:25:32,276 do a little bit of alignment change you 16742 11:25:32,276 --> 11:25:34,596 better understand that enter nothing is 16743 11:25:34,596 --> 11:25:36,640 changed this the same table now what 16744 11:25:36,640 --> 11:25:39,116 happens is this new tab which is coming 16745 11:25:39,116 --> 11:25:40,880 down which is in the return have all the 16746 11:25:40,880 --> 11:25:43,000 columns what we need and now we can use 16747 11:25:43,000 --> 11:25:45,956 start of fi and end of f the reference 16748 11:25:45,956 --> 11:25:47,800 point now it is available in that table 16749 11:25:47,800 --> 11:25:50,680 so if I now add add column on this tab 16750 11:25:50,680 --> 11:25:53,640 here at this place if I add add column 16751 11:25:53,640 --> 11:25:56,116 it will have these two columns start of 16752 11:25:56,116 --> 11:25:59,200 FY and end of FY and using that we are 16753 11:25:59,200 --> 11:26:01,116 going to drive out our now our month 16754 11:26:01,116 --> 11:26:03,116 number Financial month number and 16755 11:26:03,116 --> 11:26:04,916 quarter start date and quarter end date 16756 11:26:04,916 --> 11:26:07,276 one of the most important thing in any 16757 11:26:07,276 --> 11:26:09,276 data analytics or business intelligence 16758 11:26:09,276 --> 11:26:11,000 analytics project is time intelligence 16759 11:26:11,000 --> 11:26:13,160 time intelligence is critical to compare 16760 11:26:13,160 --> 11:26:15,116 data Against Time you want to compare 16761 11:26:15,116 --> 11:26:17,000 this month versus last month this month 16762 11:26:17,000 --> 11:26:18,840 till date versus last month till date 16763 11:26:18,840 --> 11:26:20,916 this month versus last year same month 16764 11:26:20,916 --> 11:26:22,480 this year versus last year quarter 16765 11:26:22,480 --> 11:26:25,756 versus quarter QQ y y week on week these 16766 11:26:25,756 --> 11:26:27,480 are the kind of comparison you wanted to 16767 11:26:27,480 --> 11:26:29,320 these comparisons are really important 16768 11:26:29,320 --> 11:26:32,116 to understand are we doing good or bad 16769 11:26:32,116 --> 11:26:34,360 powera provide you huge list of time 16770 11:26:34,360 --> 11:26:36,200 intelligence functions and sometime you 16771 11:26:36,200 --> 11:26:37,756 have more than one option to achieve one 16772 11:26:37,756 --> 11:26:39,480 thing now there are ways and means you 16773 11:26:39,480 --> 11:26:40,720 can write down your own time 16774 11:26:40,720 --> 11:26:42,276 intelligence function using the other 16775 11:26:42,276 --> 11:26:45,040 functions or you can get the value let's 16776 11:26:45,040 --> 11:26:47,520 say MTD using the standard MTD functions 16777 11:26:47,520 --> 11:26:49,720 and then you can also get that using 16778 11:26:49,720 --> 11:26:51,520 let's say date between or maybe using 16779 11:26:51,520 --> 11:26:53,240 the filter function now for everything 16780 11:26:53,240 --> 11:26:54,840 there is a fit for purpose it is really 16781 11:26:54,840 --> 11:26:56,436 important to understand all these time 16782 11:26:56,436 --> 11:26:58,240 intelligence functions in powerb to make 16783 11:26:58,240 --> 11:26:59,880 sure the time intelligence works for us 16784 11:26:59,880 --> 11:27:01,596 the first step is to make sure the six 16785 11:27:01,596 --> 11:27:03,040 step which I'm going to tell you you 16786 11:27:03,040 --> 11:27:05,000 ensure that these six steps are done in 16787 11:27:05,000 --> 11:27:07,276 your powerbi setup or your schema is 16788 11:27:07,276 --> 11:27:09,360 following those six step or six rules 16789 11:27:09,360 --> 11:27:11,160 poose that we are going to check in our 16790 11:27:11,160 --> 11:27:13,480 own file that yes we are right now 16791 11:27:13,480 --> 11:27:15,400 following these six step while we are 16792 11:27:15,400 --> 11:27:16,880 going to do this time intelligence 16793 11:27:16,880 --> 11:27:19,560 journey in powerbi there are six rules 16794 11:27:19,560 --> 11:27:21,720 one must follow to make sure the time 16795 11:27:21,720 --> 11:27:23,956 intelligence work in powerbi if you 16796 11:27:23,956 --> 11:27:25,680 don't follow these rules the time 16797 11:27:25,680 --> 11:27:27,720 intelligence May Fail or may not give 16798 11:27:27,720 --> 11:27:30,160 the desired results so these six points 16799 11:27:30,160 --> 11:27:32,520 or rules are use date table you have to 16800 11:27:32,520 --> 11:27:34,640 always create a date table and use it 16801 11:27:34,640 --> 11:27:36,560 and you have to join the date of your 16802 11:27:36,560 --> 11:27:38,596 fact with the date of the date table the 16803 11:27:38,596 --> 11:27:41,000 date table is marked as a date table now 16804 11:27:41,000 --> 11:27:42,840 once you mark date table as a date table 16805 11:27:42,840 --> 11:27:45,160 or calendar table as a date table it is 16806 11:27:45,160 --> 11:27:46,840 going to ensure that you have continuous 16807 11:27:46,840 --> 11:27:48,880 dat continuous States is really 16808 11:27:48,880 --> 11:27:51,080 important for all powerbi time 16809 11:27:51,080 --> 11:27:53,116 intelligence functions use columns from 16810 11:27:53,116 --> 11:27:55,276 the date table when we will use the 16811 11:27:55,276 --> 11:27:57,480 visualization in powerbi you must 16812 11:27:57,480 --> 11:27:59,840 remember that you have to use the 16813 11:27:59,840 --> 11:28:01,880 columns from the date table like date 16814 11:28:01,880 --> 11:28:04,640 month year Etc into visualization into 16815 11:28:04,640 --> 11:28:07,800 slicer into filter and into measure all 16816 11:28:07,800 --> 11:28:10,000 these places the column should come from 16817 11:28:10,000 --> 11:28:11,680 the date table to make sure the time 16818 11:28:11,680 --> 11:28:14,320 intelligence work properly the date does 16819 11:28:14,320 --> 11:28:16,320 not have a time stamp now your fact 16820 11:28:16,320 --> 11:28:18,480 table date might have a time stamp and 16821 11:28:18,480 --> 11:28:20,956 sometime because you have just taken the 16822 11:28:20,956 --> 11:28:23,276 data type as date you might not be able 16823 11:28:23,276 --> 11:28:25,596 to see it so the best practice is to 16824 11:28:25,596 --> 11:28:27,916 change the data type as date time and 16825 11:28:27,916 --> 11:28:30,840 then choose a format where you can see 16826 11:28:30,840 --> 11:28:33,436 the time and then see you don't have any 16827 11:28:33,436 --> 11:28:36,240 time other than 00 hours or 12:00 a.m. 16828 11:28:36,240 --> 11:28:39,520 you must not have any time other than 00 16829 11:28:39,520 --> 11:28:41,956 hours or 12 a.m if that's how your date 16830 11:28:41,956 --> 11:28:44,480 is looking then you can use that if 16831 11:28:44,480 --> 11:28:46,640 there is any other time other than 00 16832 11:28:46,640 --> 11:28:48,956 hours or 12:00 a.m. like 2: a.m. 2: p.m. 16833 11:28:48,956 --> 11:28:51,840 1:00 a.m. 1 p.m. Etc then you should 16834 11:28:51,840 --> 11:28:54,080 create a date column that you can do in 16835 11:28:54,080 --> 11:28:55,956 power query you can change the data type 16836 11:28:55,956 --> 11:28:57,480 as date and if you change it in power 16837 11:28:57,480 --> 11:28:59,160 query it will lose the Tim stamp and if 16838 11:28:59,160 --> 11:29:00,840 you want to do it in Dex you can create 16839 11:29:00,840 --> 11:29:02,680 a new column using date value once you 16840 11:29:02,680 --> 11:29:04,400 have ensured that your date doesn't have 16841 11:29:04,400 --> 11:29:06,400 a Tim stamp you can join it with the 16842 11:29:06,400 --> 11:29:08,596 date of the date table and because we 16843 11:29:08,596 --> 11:29:10,520 are going to create date table using 16844 11:29:10,520 --> 11:29:12,560 calendar and calendar Auto function that 16845 11:29:12,560 --> 11:29:14,520 is going to ensure that your date table 16846 11:29:14,520 --> 11:29:16,400 will not have a time stamp in the date 16847 11:29:16,400 --> 11:29:18,720 column you have also need to make sure 16848 11:29:18,720 --> 11:29:20,680 that your date table has all the dates 16849 11:29:20,680 --> 11:29:22,080 because if your date table doesn't have 16850 11:29:22,080 --> 11:29:23,680 all the dates your time intelligence may 16851 11:29:23,680 --> 11:29:26,080 not work correctly if you are using a 16852 11:29:26,080 --> 11:29:28,116 date from the date table and you are 16853 11:29:28,116 --> 11:29:30,000 putting any measure from the fact and it 16854 11:29:30,000 --> 11:29:32,200 is started showing blank in the date 16855 11:29:32,200 --> 11:29:34,000 column then it means you don't have all 16856 11:29:34,000 --> 11:29:35,880 the dates when you're using calendar 16857 11:29:35,880 --> 11:29:38,080 Auto function it can make sure that you 16858 11:29:38,080 --> 11:29:39,840 have full coverage of date coming from 16859 11:29:39,840 --> 11:29:41,360 various other tables but when you're 16860 11:29:41,360 --> 11:29:43,040 using calendar function you have to make 16861 11:29:43,040 --> 11:29:44,840 sure that you do the full coverage this 16862 11:29:44,840 --> 11:29:46,520 is another important point you should 16863 11:29:46,520 --> 11:29:49,240 remember avoid bidirectional join if you 16864 11:29:49,240 --> 11:29:51,436 have a bidirectional join your fact 16865 11:29:51,436 --> 11:29:53,520 table will filter the date table what do 16866 11:29:53,520 --> 11:29:55,680 it essentially means is if there is a 16867 11:29:55,680 --> 11:29:57,520 date missing in the fact table because 16868 11:29:57,520 --> 11:29:59,276 it is missing in the fact table or 16869 11:29:59,276 --> 11:30:01,240 because you have applied some filter and 16870 11:30:01,240 --> 11:30:03,640 now the dates are less it may actually 16871 11:30:03,640 --> 11:30:05,756 reduce the date in the date table which 16872 11:30:05,756 --> 11:30:07,276 you are using in a Time intelligence 16873 11:30:07,276 --> 11:30:10,240 function and once there are not and once 16874 11:30:10,240 --> 11:30:12,720 the and once continuous dates are not 16875 11:30:12,720 --> 11:30:14,400 available your time intelligence May 16876 11:30:14,400 --> 11:30:16,596 error out or may not work properly if 16877 11:30:16,596 --> 11:30:18,080 you take 16878 11:30:18,080 --> 11:30:20,640 care so these are the six rules and if 16879 11:30:20,640 --> 11:30:22,680 you take care of these six rules your 16880 11:30:22,680 --> 11:30:24,720 time intelligence should work 16881 11:30:24,720 --> 11:30:26,640 properly we want to start time 16882 11:30:26,640 --> 11:30:28,680 intelligence now let's make sure all the 16883 11:30:28,680 --> 11:30:30,680 six rules has been followed or not let 16884 11:30:30,680 --> 11:30:32,240 start that with the model view do we 16885 11:30:32,240 --> 11:30:33,756 have a date table yes we have a date 16886 11:30:33,756 --> 11:30:35,756 table is date table marked as a date 16887 11:30:35,756 --> 11:30:37,480 table to ensure that we have continuous 16888 11:30:37,480 --> 11:30:40,276 dates right click Mark date table Mark 16889 11:30:40,276 --> 11:30:43,320 as date table select a date column the 16890 11:30:43,320 --> 11:30:44,480 date column should should be the one 16891 11:30:44,480 --> 11:30:46,840 which is a primary key or which is the 16892 11:30:46,840 --> 11:30:48,880 main date column it may be coming from 16893 11:30:48,880 --> 11:30:50,480 your sources it's not necessary you need 16894 11:30:50,480 --> 11:30:52,680 to create it in powerbi you can create 16895 11:30:52,680 --> 11:30:54,240 it at the source you can create it in 16896 11:30:54,240 --> 11:30:56,040 power query you can create it in Dex 16897 11:30:56,040 --> 11:30:57,680 make sure the dates are continuous so 16898 11:30:57,680 --> 11:30:59,956 the validation is successful press okay 16899 11:30:59,956 --> 11:31:02,160 and the moment you do the first thing 16900 11:31:02,160 --> 11:31:04,520 which will change here is it will now be 16901 11:31:04,520 --> 11:31:07,040 a key it will no more be a date and 16902 11:31:07,040 --> 11:31:08,840 there will be no more autod date 16903 11:31:08,840 --> 11:31:10,720 hierarchy Auto date time intelligence is 16904 11:31:10,720 --> 11:31:12,800 gone is it joined with our table no it 16905 11:31:12,800 --> 11:31:15,000 is not joined look at again this date 16906 11:31:15,000 --> 11:31:16,880 sales date and if I scroll down here 16907 11:31:16,880 --> 11:31:19,116 sales date will have a hierarchy so we 16908 11:31:19,116 --> 11:31:21,116 have a sales date with which I want to 16909 11:31:21,116 --> 11:31:23,520 join let me drag the date of the date 16910 11:31:23,520 --> 11:31:25,756 table on the sales date and the 16911 11:31:25,756 --> 11:31:27,800 relationship is created now I need to 16912 11:31:27,800 --> 11:31:29,916 make sure the two things which I should 16913 11:31:29,916 --> 11:31:32,200 have checked before one is the date the 16914 11:31:32,200 --> 11:31:34,040 say date doesn't have a time stamp I 16915 11:31:34,040 --> 11:31:36,000 need to make sure that and second is the 16916 11:31:36,000 --> 11:31:38,276 date table covering all the dates now 16917 11:31:38,276 --> 11:31:40,520 I'll go to the table View and inside the 16918 11:31:40,520 --> 11:31:43,160 table view let me go to the sales table 16919 11:31:43,160 --> 11:31:45,596 and here I have my sales date how do I 16920 11:31:45,596 --> 11:31:47,840 ensure that there is no time stamp so 16921 11:31:47,840 --> 11:31:49,956 usually what I do for that is I change 16922 11:31:49,956 --> 11:31:52,240 the data type to date time and I take a 16923 11:31:52,240 --> 11:31:54,560 format where I can see a time stamp all 16924 11:31:54,560 --> 11:31:56,916 the dates should have a time stamp of 16925 11:31:56,916 --> 11:31:59,400 12:00 a.m. all the date in my case have 16926 11:31:59,400 --> 11:32:01,916 a time stamp of 12:00 a.m. any date 16927 11:32:01,916 --> 11:32:04,200 having time stamp other than 12:00 a.m. 16928 11:32:04,200 --> 11:32:07,160 it means the join will not be successful 16929 11:32:07,160 --> 11:32:09,240 that is there I can change it format 16930 11:32:09,240 --> 11:32:11,240 back to date and I can keep it in the 16931 11:32:11,240 --> 11:32:14,520 short format so column TOS help Us in 16932 11:32:14,520 --> 11:32:17,080 that now let's go ahead and check do we 16933 11:32:17,080 --> 11:32:19,160 have the complete set of dates now we 16934 11:32:19,160 --> 11:32:21,480 may have multiple tables so the one of 16935 11:32:21,480 --> 11:32:23,200 the ways is that you take the Min and 16936 11:32:23,200 --> 11:32:26,000 Max of the dates and check it out one of 16937 11:32:26,000 --> 11:32:28,040 the easiest way to do that is create a 16938 11:32:28,040 --> 11:32:31,520 page bring date or some from the date 16939 11:32:31,520 --> 11:32:33,756 table a bring a measure or some 16940 11:32:33,756 --> 11:32:37,080 aggregated column from your facts one or 16941 11:32:37,080 --> 11:32:39,080 more fact the moment I bring in let's 16942 11:32:39,080 --> 11:32:41,040 create a table visual you should not see 16943 11:32:41,040 --> 11:32:43,480 any null date sending s dat I'm not 16944 11:32:43,480 --> 11:32:45,360 seeing Al date it means all the dates 16945 11:32:45,360 --> 11:32:47,400 are joined and I'll tell you one example 16946 11:32:47,400 --> 11:32:49,436 where if the dates are not complete what 16947 11:32:49,436 --> 11:32:51,116 would happen so let's go to our date 16948 11:32:51,116 --> 11:32:54,240 table and we are using the Min date here 16949 11:32:54,240 --> 11:32:59,160 let me use a date which is 2019 01 01 16950 11:32:59,160 --> 11:33:01,756 now I have data from October 2018 but if 16951 11:33:01,756 --> 11:33:04,360 I make it 2019 what would happen I'll 16952 11:33:04,360 --> 11:33:06,480 start getting a blank so this blank 16953 11:33:06,480 --> 11:33:09,080 means the dates are missing or there is 16954 11:33:09,080 --> 11:33:11,480 a time stamp join problem there's a date 16955 11:33:11,480 --> 11:33:13,560 time if you see this check out those two 16956 11:33:13,560 --> 11:33:15,916 things now let me complete my date table 16957 11:33:15,916 --> 11:33:18,436 I can make it from the starting of 2018 16958 11:33:18,436 --> 11:33:20,276 the moment I cover all the dates you 16959 11:33:20,276 --> 11:33:24,596 will see I do not have blank date when 16960 11:33:24,596 --> 11:33:26,480 there is no empty date or blank date it 16961 11:33:26,480 --> 11:33:28,756 means we are fully covered you may have 16962 11:33:28,756 --> 11:33:30,640 more than one fact add all of them and 16963 11:33:30,640 --> 11:33:32,800 check it out so time intelligence setup 16964 11:33:32,800 --> 11:33:34,720 is correct one more thing which we need 16965 11:33:34,720 --> 11:33:36,640 to ensure is going to come when we 16966 11:33:36,640 --> 11:33:39,040 create a Time intelligence major when we 16967 11:33:39,040 --> 11:33:41,040 create a Time intelligence major and we 16968 11:33:41,040 --> 11:33:43,080 want to use it we need to ensure the 16969 11:33:43,080 --> 11:33:45,680 major should use the columns from the 16970 11:33:45,680 --> 11:33:48,160 date table or the period the visual 16971 11:33:48,160 --> 11:33:49,640 right now you can see the visual is 16972 11:33:49,640 --> 11:33:52,200 using date from the date table and the 16973 11:33:52,200 --> 11:33:54,560 slices and filter should also be on the 16974 11:33:54,560 --> 11:33:56,480 date tape that's the way when it's going 16975 11:33:56,480 --> 11:33:58,680 to work best which we are going to check 16976 11:33:58,680 --> 11:34:00,840 after our first time intelligence before 16977 11:34:00,840 --> 11:34:03,040 I do that once again I'll click on the 16978 11:34:03,040 --> 11:34:05,436 date go to the column format change its 16979 11:34:05,436 --> 11:34:07,680 format to date and we'll also change it 16980 11:34:07,680 --> 11:34:09,436 to short format so that whenever I'm 16981 11:34:09,436 --> 11:34:11,240 creating visualization I get little bit 16982 11:34:11,240 --> 11:34:13,756 of space when I'm doing some work so 16983 11:34:13,756 --> 11:34:16,756 let's start with time intelligence now 16984 11:34:16,756 --> 11:34:18,436 as part of our journey we are going to 16985 11:34:18,436 --> 11:34:21,480 learn MTD MTD means month till date 16986 11:34:21,480 --> 11:34:23,520 means from the start of the month till 16987 11:34:23,520 --> 11:34:25,480 the date which we have selected or the 16988 11:34:25,480 --> 11:34:27,680 till the date which is available in the 16989 11:34:27,680 --> 11:34:30,480 context qtd quarter till date from the 16990 11:34:30,480 --> 11:34:32,596 start of the quarter till the date we 16991 11:34:32,596 --> 11:34:35,160 have selected or in the context and the 16992 11:34:35,160 --> 11:34:36,880 quarter start date would be decided on 16993 11:34:36,880 --> 11:34:38,040 based on the date which you have 16994 11:34:38,040 --> 11:34:40,040 selected also the quarter start date 16995 11:34:40,040 --> 11:34:41,916 will be dependent on your financial year 16996 11:34:41,916 --> 11:34:44,000 start date if your financial year is not 16997 11:34:44,000 --> 11:34:45,840 starting from the standard quarter 16998 11:34:45,840 --> 11:34:48,956 months like Jan April July and October 16999 11:34:48,956 --> 11:34:50,840 you might have a different quarter start 17000 11:34:50,840 --> 11:34:52,840 date than what you have for the standard 17001 11:34:52,840 --> 11:34:55,720 quarter similarly year till date YTD YTD 17002 11:34:55,720 --> 11:34:57,800 means year till date year till date 17003 11:34:57,800 --> 11:34:59,680 typically we call it when we are using 17004 11:34:59,680 --> 11:35:02,360 from standard calendar start date so 17005 11:35:02,360 --> 11:35:05,080 standard calendar year start date till 17006 11:35:05,080 --> 11:35:06,840 date from the start of the calendar year 17007 11:35:06,840 --> 11:35:09,160 till date is yd but in case of a 17008 11:35:09,160 --> 11:35:11,240 financial year the Year may start on 17009 11:35:11,240 --> 11:35:13,240 let's say 1st April then it is from the 17010 11:35:13,240 --> 11:35:15,436 finan year start date till date so let's 17011 11:35:15,436 --> 11:35:17,560 try to understand these till date when 17012 11:35:17,560 --> 11:35:20,040 we say MTD qtd YTD what does this means 17013 11:35:20,040 --> 11:35:21,680 month till date quarter till date year 17014 11:35:21,680 --> 11:35:24,160 till date assume my date is 15th of 17015 11:35:24,160 --> 11:35:27,080 September 2024 so for 15th of September 17016 11:35:27,080 --> 11:35:30,240 2024 what is going to be my MTD my MTD 17017 11:35:30,240 --> 11:35:31,596 is going to be from the start of the 17018 11:35:31,596 --> 11:35:33,436 month which is from 1st of September 17019 11:35:33,436 --> 11:35:37,840 2024 to 15th of September 2024 my qtd is 17020 11:35:37,840 --> 11:35:39,320 going to be from the start of the 17021 11:35:39,320 --> 11:35:42,000 quarter which is 1st of July 2024 to 17022 11:35:42,000 --> 11:35:45,436 15th of September 202 4 my YTD would be 17023 11:35:45,436 --> 11:35:47,840 from the start of the year in this case 17024 11:35:47,840 --> 11:35:49,560 the calendar year which is from 1st 17025 11:35:49,560 --> 11:35:53,520 January 2024 to 15th of September 2024 17026 11:35:53,520 --> 11:35:55,160 what happens when my year start from the 17027 11:35:55,160 --> 11:35:57,320 1st April now again 1st April is going 17028 11:35:57,320 --> 11:35:59,276 to have all the standard quarters so 17029 11:35:59,276 --> 11:36:00,800 it's not going to change anything for 17030 11:36:00,800 --> 11:36:02,596 quarter same way it is standard month 17031 11:36:02,596 --> 11:36:03,800 start so it's not going to change 17032 11:36:03,800 --> 11:36:06,080 anything for the month also so MTD would 17033 11:36:06,080 --> 11:36:09,240 be from 1st of September 2024 to 15th of 17034 11:36:09,240 --> 11:36:12,160 September 2024 QD would be from 1st of 17035 11:36:12,160 --> 11:36:16,720 July 2024 to 15th of September 2024 YTD 17036 11:36:16,720 --> 11:36:20,916 would be from 1st of April 2024 to 15th 17037 11:36:20,916 --> 11:36:23,840 of September 2024 this is because our 17038 11:36:23,840 --> 11:36:25,520 financial year is starting from the 1 17039 11:36:25,520 --> 11:36:27,200 April it is not starting from the 17040 11:36:27,200 --> 11:36:29,240 calendar year so that is why the start 17041 11:36:29,240 --> 11:36:31,596 date of YTD has changed and sometime we 17042 11:36:31,596 --> 11:36:34,320 call this as fytd Financial year till 17043 11:36:34,320 --> 11:36:36,680 date let us start with our first time 17044 11:36:36,680 --> 11:36:38,436 intelligence measure and the first time 17045 11:36:38,436 --> 11:36:40,840 intelligence major is MTD month till 17046 11:36:40,840 --> 11:36:43,116 date means from start of the month till 17047 11:36:43,116 --> 11:36:45,360 the date which is being selected or 17048 11:36:45,360 --> 11:36:47,276 present in the context the date could 17049 11:36:47,276 --> 11:36:49,276 have been selected in the slicer or 17050 11:36:49,276 --> 11:36:51,080 available in the row context based on 17051 11:36:51,080 --> 11:36:53,000 that date it should give us the data for 17052 11:36:53,000 --> 11:36:55,916 that for MTD there are many ways you can 17053 11:36:55,916 --> 11:36:57,956 achieve it but first of all we will 17054 11:36:57,956 --> 11:37:00,756 learn dates MTD and total MTD functions 17055 11:37:00,756 --> 11:37:03,680 Tes MTD function need to be used in a 17056 11:37:03,680 --> 11:37:06,480 calculate function total MTD function 17057 11:37:06,480 --> 11:37:08,320 might not require a calculate because it 17058 11:37:08,320 --> 11:37:10,640 can take a measure as well as the date 17059 11:37:10,640 --> 11:37:13,240 to give you the total MTD there are two 17060 11:37:13,240 --> 11:37:14,840 fun functions and later on when we 17061 11:37:14,840 --> 11:37:16,720 progress when we go to quarter till date 17062 11:37:16,720 --> 11:37:18,596 and year till date we will only start 17063 11:37:18,596 --> 11:37:20,880 using one of them so the function is 17064 11:37:20,880 --> 11:37:23,480 total MTD and dates MTD I'll start with 17065 11:37:23,480 --> 11:37:24,916 total MTD which is basically a 17066 11:37:24,916 --> 11:37:26,436 self-sufficient function it doesn't 17067 11:37:26,436 --> 11:37:28,360 require calculate let me click on the 17068 11:37:28,360 --> 11:37:30,880 measure table and I can see the table 17069 11:37:30,880 --> 11:37:32,840 tool as of now and inside the table tool 17070 11:37:32,840 --> 11:37:34,276 I have a new major option which I'm 17071 11:37:34,276 --> 11:37:35,800 going to use in this case let me click 17072 11:37:35,800 --> 11:37:38,116 on new major and here I'm going to 17073 11:37:38,116 --> 11:37:40,040 create my first time intelligence major 17074 11:37:40,040 --> 11:37:42,956 that is MTD net and I'm going to use 17075 11:37:42,956 --> 11:37:45,840 total MTD total MTD requires an 17076 11:37:45,840 --> 11:37:47,956 expression date and filter it can have a 17077 11:37:47,956 --> 11:37:49,840 filter and if you need more than one 17078 11:37:49,840 --> 11:37:51,800 filter then you can again use calculate 17079 11:37:51,800 --> 11:37:54,160 on top of total MTD otherwise total MTD 17080 11:37:54,160 --> 11:37:55,560 doesn't require calcul what is the 17081 11:37:55,560 --> 11:37:58,720 expression so expression date filter 17082 11:37:58,720 --> 11:38:00,040 what is the expression expression is 17083 11:38:00,040 --> 11:38:02,320 Major dates is the sequential date where 17084 11:38:02,320 --> 11:38:03,756 we are going to give the date column 17085 11:38:03,756 --> 11:38:05,560 from the date table and filter as of now 17086 11:38:05,560 --> 11:38:07,680 I'll not give I'll give my major net for 17087 11:38:07,680 --> 11:38:10,040 which I want the MTD then I'll give date 17088 11:38:10,040 --> 11:38:12,480 from the date table and no requirement 17089 11:38:12,480 --> 11:38:14,240 of filter as of now so I'll continue 17090 11:38:14,240 --> 11:38:16,240 with this I created my first time 17091 11:38:16,240 --> 11:38:18,596 intelligence major MTD net and let me 17092 11:38:18,596 --> 11:38:20,480 bring in here now it is from the start 17093 11:38:20,480 --> 11:38:22,520 of the month now on the month of October 17094 11:38:22,520 --> 11:38:24,240 2018 we don't have the data which is 17095 11:38:24,240 --> 11:38:26,276 starting from the first date is 13th 17096 11:38:26,276 --> 11:38:28,640 October 2018 and that's the date from 17097 11:38:28,640 --> 11:38:30,200 where the aggregation of the data would 17098 11:38:30,200 --> 11:38:32,080 start and till the last date of the 17099 11:38:32,080 --> 11:38:34,000 month you will see the data is keep on 17100 11:38:34,000 --> 11:38:36,160 adding as you can see these two dates 17101 11:38:36,160 --> 11:38:38,040 are getting added on the next so we got 17102 11:38:38,040 --> 11:38:41,000 36 on 3 days now it is 73 3 days getting 17103 11:38:41,000 --> 11:38:43,480 added and it keep on increasing till 30 17104 11:38:43,480 --> 11:38:45,880 1 which is the last date of this month 17105 11:38:45,880 --> 11:38:48,720 and on the 1 November the first date of 17106 11:38:48,720 --> 11:38:50,840 November you see there is a reset and 17107 11:38:50,840 --> 11:38:53,160 this is what we call MTD start point you 17108 11:38:53,160 --> 11:38:54,916 start MTD from the start date of the 17109 11:38:54,916 --> 11:38:57,320 month so the value of the that day and 17110 11:38:57,320 --> 11:38:59,596 MTD would be equal but on the next day 17111 11:38:59,596 --> 11:39:01,040 it will start increasing so on the 17112 11:39:01,040 --> 11:39:02,680 second you have sum of first two days on 17113 11:39:02,680 --> 11:39:04,400 third you have first 3 days fourth you 17114 11:39:04,400 --> 11:39:06,400 have sum of first 4 days and keep on 17115 11:39:06,400 --> 11:39:08,400 going till the month and date and you 17116 11:39:08,400 --> 11:39:10,480 will see another reset happening on the 17117 11:39:10,480 --> 11:39:12,956 1st of December till 31st is going to 17118 11:39:12,956 --> 11:39:15,200 end on first there would be a reset now 17119 11:39:15,200 --> 11:39:17,720 MTD Works based on the date in the 17120 11:39:17,720 --> 11:39:20,276 context now date here in the context is 17121 11:39:20,276 --> 11:39:22,116 basically the date in the row there is 17122 11:39:22,116 --> 11:39:23,800 nothing coming from Filter context let 17123 11:39:23,800 --> 11:39:26,436 me bring in month here in another visual 17124 11:39:26,436 --> 11:39:28,520 I'll drag it into empty space sorting is 17125 11:39:28,520 --> 11:39:31,240 correct and let me drag in MTD major 17126 11:39:31,240 --> 11:39:33,240 there in this case when we use month 17127 11:39:33,240 --> 11:39:35,640 here the MTD major is going to give us 17128 11:39:35,640 --> 11:39:38,240 the last dates value and it will act 17129 11:39:38,240 --> 11:39:40,480 like a monthly value if you're using at 17130 11:39:40,480 --> 11:39:43,360 the month level the MTD will act like a 17131 11:39:43,360 --> 11:39:44,880 monthly value at the month level From 17132 11:39:44,880 --> 11:39:46,276 First to Last that's the monthly value 17133 11:39:46,276 --> 11:39:47,596 it's a current month the month in the 17134 11:39:47,596 --> 11:39:48,840 context we have not talked about the 17135 11:39:48,840 --> 11:39:51,756 filter as now how does it behave with 17136 11:39:51,756 --> 11:39:53,840 respect to filters what happens when we 17137 11:39:53,840 --> 11:39:56,080 apply a filter so now the case when the 17138 11:39:56,080 --> 11:39:57,800 date is available in the row context and 17139 11:39:57,800 --> 11:39:59,040 even if you apply filter let's say I 17140 11:39:59,040 --> 11:40:00,520 apply the November filter now we know 17141 11:40:00,520 --> 11:40:01,880 the other visual can also act as a 17142 11:40:01,880 --> 11:40:04,000 filter when we apply you can see only 17143 11:40:04,000 --> 11:40:05,596 November month data we can't get more 17144 11:40:05,596 --> 11:40:07,160 than November month data unless we 17145 11:40:07,160 --> 11:40:09,436 follow the tricks and the data will 17146 11:40:09,436 --> 11:40:11,080 start aggregating for that you may have 17147 11:40:11,080 --> 11:40:12,800 a date filter specific very specific 17148 11:40:12,800 --> 11:40:14,596 date filter on that date filter how much 17149 11:40:14,596 --> 11:40:16,520 data will I get on that day's data or 17150 11:40:16,520 --> 11:40:18,640 the MTD data so let me bring in a slicer 17151 11:40:18,640 --> 11:40:20,240 for the date I'll bring the date in 17152 11:40:20,240 --> 11:40:23,160 between convert it into a slicer and let 17153 11:40:23,160 --> 11:40:25,596 me go ahead and change this slicer 17154 11:40:25,596 --> 11:40:27,200 setting using the format which is 17155 11:40:27,200 --> 11:40:29,276 available on the right hand side and 17156 11:40:29,276 --> 11:40:32,840 slicer I would like a drop down and when 17157 11:40:32,840 --> 11:40:35,040 I drop down I would drop down actually 17158 11:40:35,040 --> 11:40:36,680 go a little bit down I would like to 17159 11:40:36,680 --> 11:40:38,360 select something in November so let me 17160 11:40:38,360 --> 11:40:40,756 select fourth November so as you can see 17161 11:40:40,756 --> 11:40:42,800 the MTD value is for the 4th November 17162 11:40:42,800 --> 11:40:44,680 till from first to Fourth even if the 17163 11:40:44,680 --> 11:40:47,160 date is not selected you can remove the 17164 11:40:47,160 --> 11:40:49,040 fourth number context okay but the date 17165 11:40:49,040 --> 11:40:50,956 from first second and third no is not 17166 11:40:50,956 --> 11:40:52,680 selected but still it is going to get 17167 11:40:52,680 --> 11:40:54,680 that and give you the MTD value if the 17168 11:40:54,680 --> 11:40:56,360 value are available in your data the 17169 11:40:56,360 --> 11:40:57,640 fourth number is going to give me that 17170 11:40:57,640 --> 11:40:59,596 value now we understand that if you 17171 11:40:59,596 --> 11:41:01,800 select a month the dates in the context 17172 11:41:01,800 --> 11:41:03,720 is going to control that we selected 17173 11:41:03,720 --> 11:41:05,596 more than if we select a single date 17174 11:41:05,596 --> 11:41:07,320 that date is going to play what happens 17175 11:41:07,320 --> 11:41:09,400 and both filter and slicer context are 17176 11:41:09,400 --> 11:41:10,880 missing so let's make sure there is no 17177 11:41:10,880 --> 11:41:12,480 filter context and there's no slicer 17178 11:41:12,480 --> 11:41:14,040 context right now now there is nothing 17179 11:41:14,040 --> 11:41:16,080 selected on the slicer nothing select on 17180 11:41:16,080 --> 11:41:18,116 the visualization and we remove the 17181 11:41:18,116 --> 11:41:20,680 filter and the slicer context and now we 17182 11:41:20,680 --> 11:41:23,720 will bring in MTD into a card visual why 17183 11:41:23,720 --> 11:41:25,756 we are seeing a blank what is the date 17184 11:41:25,756 --> 11:41:27,640 is getting for us what happens these 17185 11:41:27,640 --> 11:41:29,756 total MTD and even the dates MTD 17186 11:41:29,756 --> 11:41:31,680 function going to follow soon it takes 17187 11:41:31,680 --> 11:41:34,160 the last date available in the context 17188 11:41:34,160 --> 11:41:36,080 of what the date which is supplied here 17189 11:41:36,080 --> 11:41:37,756 and what is the last date available in 17190 11:41:37,756 --> 11:41:39,596 the date column please remember it's 17191 11:41:39,596 --> 11:41:41,756 only for TD functions for the previous 17192 11:41:41,756 --> 11:41:43,436 they take the first date if you go to 17193 11:41:43,436 --> 11:41:46,116 our date table the last date is today I 17194 11:41:46,116 --> 11:41:48,040 don't have any data for today and for 17195 11:41:48,040 --> 11:41:49,916 even for today's month my data ends in 17196 11:41:49,916 --> 11:41:52,200 2020 we are in 2024 I don't have any 17197 11:41:52,200 --> 11:41:53,840 data for the current month what date 17198 11:41:53,840 --> 11:41:55,840 range exactly it is taking for that I'm 17199 11:41:55,840 --> 11:41:57,520 going to give you an example and let's 17200 11:41:57,520 --> 11:42:00,520 try to use dates MTD let me do a little 17201 11:42:00,520 --> 11:42:03,720 bit of visual adjustments 17202 11:42:04,680 --> 11:42:07,240 here so I'm going to create my second 17203 11:42:07,240 --> 11:42:09,000 major time intelligence major it's again 17204 11:42:09,000 --> 11:42:11,040 going to be the MTD major so this time 17205 11:42:11,040 --> 11:42:12,800 I've clicked on a major so Major Tool is 17206 11:42:12,800 --> 11:42:14,880 visible and from the major tool I'm 17207 11:42:14,880 --> 11:42:17,240 going to create a new major and the 17208 11:42:17,240 --> 11:42:21,160 major is MTD net1 and this time I need 17209 11:42:21,160 --> 11:42:23,840 to use calculate calculate net I'm going 17210 11:42:23,840 --> 11:42:25,756 to use a function dates 17211 11:42:25,756 --> 11:42:29,436 MTD dates MTD actually required only one 17212 11:42:29,436 --> 11:42:31,680 argument which is dates this is also 17213 11:42:31,680 --> 11:42:33,080 true with the next function which we are 17214 11:42:33,080 --> 11:42:35,360 going to use is dates qtd definitely 17215 11:42:35,360 --> 11:42:37,680 dates YTD we can have two arguments it 17216 11:42:37,680 --> 11:42:40,160 do cover the year and date which we'll 17217 11:42:40,160 --> 11:42:43,160 see later only one date and the date 17218 11:42:43,160 --> 11:42:44,436 date which you provide it's going to 17219 11:42:44,436 --> 11:42:46,840 pick up the last date from that and 17220 11:42:46,840 --> 11:42:49,560 based on that the last date so what it 17221 11:42:49,560 --> 11:42:50,840 is going to do is it's going to pick up 17222 11:42:50,840 --> 11:42:52,320 the last date from the context now the 17223 11:42:52,320 --> 11:42:54,080 context could be the filter context or 17224 11:42:54,080 --> 11:42:56,160 could be the row context or if there is 17225 11:42:56,160 --> 11:42:58,040 no context available it's going to go 17226 11:42:58,040 --> 11:43:00,560 till the last date of the calendar dates 17227 11:43:00,560 --> 11:43:02,400 which you are supplying here and going 17228 11:43:02,400 --> 11:43:04,756 to take that out dates MTD actually 17229 11:43:04,756 --> 11:43:07,200 return return me a table of dates or a 17230 11:43:07,200 --> 11:43:09,596 sequence of dates based on the date in 17231 11:43:09,596 --> 11:43:11,640 the context is going to return me from 17232 11:43:11,640 --> 11:43:13,116 the start of the month till that date is 17233 11:43:13,116 --> 11:43:14,520 sequence of date it's going to come up 17234 11:43:14,520 --> 11:43:16,360 set of dates month up to current date 17235 11:43:16,360 --> 11:43:18,116 date of date and never most of the 17236 11:43:18,116 --> 11:43:20,000 people understand it in the context of 17237 11:43:20,000 --> 11:43:22,320 today today you cannot pass first of all 17238 11:43:22,320 --> 11:43:23,840 it needs sequence of date you can't pass 17239 11:43:23,840 --> 11:43:26,480 today to a date 7 and date where what is 17240 11:43:26,480 --> 11:43:28,400 there is defined by the context so we 17241 11:43:28,400 --> 11:43:30,200 given date of date what is filter 17242 11:43:30,200 --> 11:43:32,080 context or what is row context otherwise 17243 11:43:32,080 --> 11:43:34,276 what is the last date in case of MTD it 17244 11:43:34,276 --> 11:43:35,916 could be first date in case of previous 17245 11:43:35,916 --> 11:43:38,080 functions so and this function will also 17246 11:43:38,080 --> 11:43:40,040 help us in understanding what we are 17247 11:43:40,040 --> 11:43:41,880 getting so again the same results so 17248 11:43:41,880 --> 11:43:44,800 dates MTD and total MTD their uses is a 17249 11:43:44,800 --> 11:43:45,840 little bit different but they're going 17250 11:43:45,840 --> 11:43:47,400 to give us the same result again we are 17251 11:43:47,400 --> 11:43:49,400 getting the month till date data using 17252 11:43:49,400 --> 11:43:51,116 this one and the same behavior at the 17253 11:43:51,116 --> 11:43:52,800 month level there's no difference so it 17254 11:43:52,800 --> 11:43:54,200 gives you sequence of date from the 17255 11:43:54,200 --> 11:43:55,880 first date of the month till that 17256 11:43:55,880 --> 11:43:57,880 particular date the set of date and to 17257 11:43:57,880 --> 11:43:59,360 understand that what we are getting and 17258 11:43:59,360 --> 11:44:00,880 what we are getting why we are getting 17259 11:44:00,880 --> 11:44:02,480 this blank and let me bring in the other 17260 11:44:02,480 --> 11:44:04,956 one also as a card visual let's create a 17261 11:44:04,956 --> 11:44:06,596 table and see what dates we are getting 17262 11:44:06,596 --> 11:44:08,480 so let's click on any of the table and 17263 11:44:08,480 --> 11:44:10,560 create a new table and in that table we 17264 11:44:10,560 --> 11:44:13,320 will see what dates we have using dates 17265 11:44:13,320 --> 11:44:16,680 MTD date of date now because cable is 17266 11:44:16,680 --> 11:44:18,756 static in nature it is pre-calculated 17267 11:44:18,756 --> 11:44:20,840 the only thing it can do is go ahead and 17268 11:44:20,840 --> 11:44:22,596 get the last date because it's not going 17269 11:44:22,596 --> 11:44:24,400 to follow any filter context any row 17270 11:44:24,400 --> 11:44:26,200 context is going to get the last date in 17271 11:44:26,200 --> 11:44:27,560 the calendar based on that is going to 17272 11:44:27,560 --> 11:44:29,480 calculate that and let's go to the table 17273 11:44:29,480 --> 11:44:31,240 view now and check what does this table 17274 11:44:31,240 --> 11:44:33,080 contains for us and as you can see the 17275 11:44:33,080 --> 11:44:35,400 dates table contains the date of the 17276 11:44:35,400 --> 11:44:37,276 current month from the start date and 17277 11:44:37,276 --> 11:44:38,640 this is because the calendar is editing 17278 11:44:38,640 --> 11:44:41,080 at today now let me change my calendar 17279 11:44:41,080 --> 11:44:43,080 don't think that it gives from today let 17280 11:44:43,080 --> 11:44:45,116 me change my calendar I'm changing my 17281 11:44:45,116 --> 11:44:47,200 calendar and now it is no more going to 17282 11:44:47,200 --> 11:44:50,800 end on today let me end my calendar on 17283 11:44:50,800 --> 11:44:54,320 date 202 1231 again have data till 17284 11:44:54,320 --> 11:44:56,480 October I'm ending it the 12th month and 17285 11:44:56,480 --> 11:44:58,520 now let me go to the dates table again 17286 11:44:58,520 --> 11:45:02,200 you see the data is from December 2020 17287 11:45:02,200 --> 11:45:04,240 and all the dates 31 dates are available 17288 11:45:04,240 --> 11:45:06,560 the reason for that it taken that last 17289 11:45:06,560 --> 11:45:09,640 date available in the calendar and 17290 11:45:09,640 --> 11:45:11,680 calculated it so these are the date 17291 11:45:11,680 --> 11:45:14,116 applicable and because of that you get 17292 11:45:14,116 --> 11:45:15,916 these blank values now you understand 17293 11:45:15,916 --> 11:45:17,520 now you know how to play around with how 17294 11:45:17,520 --> 11:45:19,240 to control that so this is what we have 17295 11:45:19,240 --> 11:45:21,240 to continue so now we have learned MTD 17296 11:45:21,240 --> 11:45:24,116 let me rename this qtd total qtd are the 17297 11:45:24,116 --> 11:45:26,720 functions to achieve quarter till date 17298 11:45:26,720 --> 11:45:28,680 you have understood by now that the 17299 11:45:28,680 --> 11:45:31,276 total qtd function is one which might 17300 11:45:31,276 --> 11:45:33,400 not require calculate while dates qtd is 17301 11:45:33,400 --> 11:45:35,640 going to require calculate to do the 17302 11:45:35,640 --> 11:45:37,680 calculation let's start with qtd 17303 11:45:37,680 --> 11:45:40,720 functions again total qtd dates qtd two 17304 11:45:40,720 --> 11:45:42,560 options are available I'll go to quickly 17305 11:45:42,560 --> 11:45:44,800 create that so let me add a visual here 17306 11:45:44,800 --> 11:45:47,080 date and this time I'm going to add date 17307 11:45:47,080 --> 11:45:48,880 because we know it Behavior how it's 17308 11:45:48,880 --> 11:45:50,436 going to behave after this one so we'll 17309 11:45:50,436 --> 11:45:52,480 quickly create the two majors and the 17310 11:45:52,480 --> 11:45:55,000 two major which I'm going to create here 17311 11:45:55,000 --> 11:45:59,360 is qtd Majors so qtd net first of all 17312 11:45:59,360 --> 11:46:00,720 with total 17313 11:46:00,720 --> 11:46:03,916 qtd again three arguments expression 17314 11:46:03,916 --> 11:46:06,080 dates and filter we are going to pass 17315 11:46:06,080 --> 11:46:08,880 only two as of now expression is net 17316 11:46:08,880 --> 11:46:13,756 dates is date of dates that's all 17317 11:46:13,756 --> 11:46:17,596 let me also add one more major based on 17318 11:46:17,596 --> 11:46:22,360 the UTD net 2 and here I'm going to use 17319 11:46:22,360 --> 11:46:25,720 dates QD is going to give me the set of 17320 11:46:25,720 --> 11:46:29,080 dates date of date two majors going to 17321 11:46:29,080 --> 11:46:30,840 return me the same results just 17322 11:46:30,840 --> 11:46:33,116 implementation difference what does it 17323 11:46:33,116 --> 11:46:34,880 this do start from the first date of the 17324 11:46:34,880 --> 11:46:36,640 quarter the first date is not available 17325 11:46:36,640 --> 11:46:38,276 first available date of the quarter and 17326 11:46:38,276 --> 11:46:39,956 go till the last date of the quarter the 17327 11:46:39,956 --> 11:46:41,800 last date of this quarter is 31st 17328 11:46:41,800 --> 11:46:43,276 December and it's continuously 17329 11:46:43,276 --> 11:46:45,040 increasing in this direction values you 17330 11:46:45,040 --> 11:46:47,720 can see the daily values are increasing 17331 11:46:47,720 --> 11:46:49,560 where they will reset they will reset on 17332 11:46:49,560 --> 11:46:51,240 the first date of the quarter so you can 17333 11:46:51,240 --> 11:46:52,880 see the November has started till the 17334 11:46:52,880 --> 11:46:55,680 values are increasing let's go on 31st 17335 11:46:55,680 --> 11:46:57,800 December and we have 31st December and 17336 11:46:57,800 --> 11:46:59,596 1st January together now you can see 17337 11:46:59,596 --> 11:47:01,800 it's increasing till this date and post 17338 11:47:01,800 --> 11:47:03,320 that it is changing now to understand 17339 11:47:03,320 --> 11:47:05,040 this increase let's also bring in net 17340 11:47:05,040 --> 11:47:07,000 into the visualization and as you can 17341 11:47:07,000 --> 11:47:09,560 see on the first date of the quarter the 17342 11:47:09,560 --> 11:47:12,240 values is same as that day's value and 17343 11:47:12,240 --> 11:47:13,400 this is going to be true prove with 17344 11:47:13,400 --> 11:47:15,560 every start of the quarter not start of 17345 11:47:15,560 --> 11:47:17,480 the month now if I go to February there 17346 11:47:17,480 --> 11:47:20,116 is no more a reset at the month's start 17347 11:47:20,116 --> 11:47:22,480 the value is not same as the value on 17348 11:47:22,480 --> 11:47:24,040 that day for the second month because 17349 11:47:24,040 --> 11:47:25,956 it's a quarter till quarter and date it 17350 11:47:25,956 --> 11:47:28,000 will keep on increasing so we got now 17351 11:47:28,000 --> 11:47:30,880 qtd for YTD we are going to use States 17352 11:47:30,880 --> 11:47:33,596 YTD and total YTD total 17353 11:47:33,596 --> 11:47:36,240 YTD might not require the calculate 17354 11:47:36,240 --> 11:47:39,116 because it to have a capability to take 17355 11:47:39,116 --> 11:47:42,000 a measure and provides you total YTD 17356 11:47:42,000 --> 11:47:44,116 along with the date column 17357 11:47:44,116 --> 11:47:47,000 provided for financial year in both 17358 11:47:47,000 --> 11:47:49,240 States YTD and total YTD we can provide 17359 11:47:49,240 --> 11:47:51,116 a financial year end date and they can 17360 11:47:51,116 --> 11:47:53,916 calculate the financial year till date 17361 11:47:53,916 --> 11:47:56,520 values now let's bring in YTD we are 17362 11:47:56,520 --> 11:47:58,360 going to bring it into the same visual 17363 11:47:58,360 --> 11:48:00,640 for that again two majors and you will 17364 11:48:00,640 --> 11:48:02,840 notice one difference this time when we 17365 11:48:02,840 --> 11:48:05,596 calculate YTD so YTD net let me start 17366 11:48:05,596 --> 11:48:08,756 with total YTD total ydd again we 17367 11:48:08,756 --> 11:48:10,956 require expression dates filter but 17368 11:48:10,956 --> 11:48:13,000 there is a year and date year and date 17369 11:48:13,000 --> 11:48:14,800 means if your financial year is not 17370 11:48:14,800 --> 11:48:17,436 ending on 1231 you can give any date on 17371 11:48:17,436 --> 11:48:19,160 which it is ending and based on that is 17372 11:48:19,160 --> 11:48:21,000 going to start the year end date is only 17373 11:48:21,000 --> 11:48:23,400 for the reference where it year ends can 17374 11:48:23,400 --> 11:48:25,160 get the year starting point based on 17375 11:48:25,160 --> 11:48:27,880 that and can calculate your YTD based on 17376 11:48:27,880 --> 11:48:30,080 that so here again for the first 17377 11:48:30,080 --> 11:48:32,800 starting I can avoid the year and 17378 11:48:32,800 --> 11:48:34,720 argument and I'm going to do that and 17379 11:48:34,720 --> 11:48:37,240 let me calculate total YTD and that's 17380 11:48:37,240 --> 11:48:40,596 going to give me YTD let me bring in the 17381 11:48:40,596 --> 11:48:43,520 YTD using dates YTD so net 17382 11:48:43,520 --> 11:48:46,880 YTD net 1 equal to calculate net dates 17383 11:48:46,880 --> 11:48:49,640 YTD and dates YTD required dates and 17384 11:48:49,640 --> 11:48:51,436 year and date it's required two 17385 11:48:51,436 --> 11:48:54,756 argument so date of date and second 17386 11:48:54,756 --> 11:48:56,640 argument I'm leaving let me add it to 17387 11:48:56,640 --> 11:48:58,040 the visual if the visual is selected I 17388 11:48:58,040 --> 11:49:00,000 can simply click on that I got the YTD 17389 11:49:00,000 --> 11:49:01,756 value now where would the reset happen 17390 11:49:01,756 --> 11:49:04,000 see because we are starting in a last 17391 11:49:04,000 --> 11:49:06,200 quarter so we will see the reset on the 17392 11:49:06,200 --> 11:49:08,000 first January itself here the quarter 17393 11:49:08,000 --> 11:49:09,320 value and the year value same doesn't 17394 11:49:09,320 --> 11:49:10,916 mean that it's going to be always the 17395 11:49:10,916 --> 11:49:12,360 case and there is only a reset happening 17396 11:49:12,360 --> 11:49:14,000 at this start of the year now in the 17397 11:49:14,000 --> 11:49:15,240 entire year you will see the 17398 11:49:15,240 --> 11:49:17,240 continuously values are increasing till 17399 11:49:17,240 --> 11:49:19,756 the time we reach the end of 2019 and 17400 11:49:19,756 --> 11:49:21,880 you can see here the max value reached 17401 11:49:21,880 --> 11:49:23,400 here and there is a reset which is 17402 11:49:23,400 --> 11:49:26,040 happening on 1st January 20 so whyd get 17403 11:49:26,040 --> 11:49:28,200 reset on that day now because it was 17404 11:49:28,200 --> 11:49:30,400 asking end date it does mean that we can 17405 11:49:30,400 --> 11:49:32,436 change where it should reset so let's 17406 11:49:32,436 --> 11:49:34,360 say you want a financial year ending on 17407 11:49:34,360 --> 11:49:36,916 331st we can do that so let's create a 17408 11:49:36,916 --> 11:49:40,640 YTD for FY and we can call it FY YTD net 17409 11:49:40,640 --> 11:49:42,116 and I'm only going to use one function 17410 11:49:42,116 --> 11:49:43,916 for that as of now both the functions 17411 11:49:43,916 --> 11:49:46,160 can do the same job for us and here in 17412 11:49:46,160 --> 11:49:47,880 the dates YTD we are going to use the 17413 11:49:47,880 --> 11:49:50,200 second argument now is year and date and 17414 11:49:50,200 --> 11:49:51,800 this is not available with other TDS 17415 11:49:51,800 --> 11:49:54,520 month and quarter only available with 17416 11:49:54,520 --> 11:49:56,640 YTD function and let me add this now 17417 11:49:56,640 --> 11:49:58,360 let's look the value looks same but we 17418 11:49:58,360 --> 11:50:00,400 have to pay attention on 1st January 17419 11:50:00,400 --> 11:50:02,916 because on the 1st January this YTD is 17420 11:50:02,916 --> 11:50:05,160 not going to reset so this this is 17421 11:50:05,160 --> 11:50:07,080 resetting this is resetting this is not 17422 11:50:07,080 --> 11:50:09,756 resetting because it will reset on 1st 17423 11:50:09,756 --> 11:50:12,640 April when we cross the year on 31st 17424 11:50:12,640 --> 11:50:15,436 first March so when we cross year it is 17425 11:50:15,436 --> 11:50:17,640 getting a reset and the value is same as 17426 11:50:17,640 --> 11:50:19,956 the start of the the quarter in this 17427 11:50:19,956 --> 11:50:22,520 manner we can create Financial year till 17428 11:50:22,520 --> 11:50:24,680 date from the start of the Year till the 17429 11:50:24,680 --> 11:50:27,116 that particular date now let's learn how 17430 11:50:27,116 --> 11:50:28,880 can we get the previous month value 17431 11:50:28,880 --> 11:50:30,520 previous month till date and previous 17432 11:50:30,520 --> 11:50:31,916 month why I'm talking about two things 17433 11:50:31,916 --> 11:50:33,240 I'll tell you in a short file let me 17434 11:50:33,240 --> 11:50:35,200 duplicate this page after I duplicate 17435 11:50:35,200 --> 11:50:37,200 I'll remove one one major from here I 17436 11:50:37,200 --> 11:50:39,360 don't need two TDS one TD is sufficient 17437 11:50:39,360 --> 11:50:42,800 for me now I would like to bring in the 17438 11:50:42,800 --> 11:50:44,720 last year month till date so definitely 17439 11:50:44,720 --> 11:50:46,840 I need MTD function for that but other 17440 11:50:46,840 --> 11:50:49,040 than MTD I need to make sure that I go 17441 11:50:49,040 --> 11:50:51,360 one month back and to go one month back 17442 11:50:51,360 --> 11:50:53,436 I'm going to use a function which is 17443 11:50:53,436 --> 11:50:56,480 known as date add function the date add 17444 11:50:56,480 --> 11:50:58,080 function is going to help again date add 17445 11:50:58,080 --> 11:51:00,080 function require continuous set of dates 17446 11:51:00,080 --> 11:51:02,436 so let me go ahead and create a measure 17447 11:51:02,436 --> 11:51:04,520 and tell you how do I let me add a new 17448 11:51:04,520 --> 11:51:07,160 measure from the table tool and this 17449 11:51:07,160 --> 11:51:10,000 measure I want is lmtd last month till 17450 11:51:10,000 --> 11:51:15,080 date so I want lmtd net calculate net 17451 11:51:15,080 --> 11:51:17,200 that's the same thing I'm doing now here 17452 11:51:17,200 --> 11:51:18,560 comes the 17453 11:51:18,560 --> 11:51:22,480 difference dates MTD that's same but 17454 11:51:22,480 --> 11:51:25,080 inside the dates MDD I want the entire 17455 11:51:25,080 --> 11:51:27,160 dates to move a month back I'm going to 17456 11:51:27,160 --> 11:51:30,160 use a function date add and please 17457 11:51:30,160 --> 11:51:32,000 remember the understanding of date head 17458 11:51:32,000 --> 11:51:34,000 that date head also require continuous 17459 11:51:34,000 --> 11:51:37,116 for dates please watch date as dated 17460 11:51:37,116 --> 11:51:39,680 video on my channel for that so dates 17461 11:51:39,680 --> 11:51:41,560 require the first arguments is dates 17462 11:51:41,560 --> 11:51:43,520 date of date this the second argument is 17463 11:51:43,520 --> 11:51:45,560 interval how many intervals I want to go 17464 11:51:45,560 --> 11:51:48,320 to last month so minus one plus one for 17465 11:51:48,320 --> 11:51:50,800 next month interval day month quarter 17466 11:51:50,800 --> 11:51:53,720 year I need month here what I've done 17467 11:51:53,720 --> 11:51:55,560 here is basically the continuous 17468 11:51:55,560 --> 11:51:57,520 argument which date argument which I 17469 11:51:57,520 --> 11:52:00,200 passed to my MTD has been moved a month 17470 11:52:00,200 --> 11:52:02,360 behind it is still the continuous date 17471 11:52:02,360 --> 11:52:04,240 but a month behind let me press and 17472 11:52:04,240 --> 11:52:07,000 enter here my major is created let me 17473 11:52:07,000 --> 11:52:09,240 bring it inside the visualization one 17474 11:52:09,240 --> 11:52:11,756 here and one on the month here so I 17475 11:52:11,756 --> 11:52:14,436 bought the MTD in the table which I have 17476 11:52:14,436 --> 11:52:16,800 dates and you can see exactly after the 17477 11:52:16,800 --> 11:52:19,560 1 month the MTD has started and it 17478 11:52:19,560 --> 11:52:21,880 increasing in the similar fashion now go 17479 11:52:21,880 --> 11:52:24,000 down and pay attention on 30th what 17480 11:52:24,000 --> 11:52:26,200 value we are getting on 30th I'm getting 17481 11:52:26,200 --> 11:52:28,480 the value not of the last day of the 17482 11:52:28,480 --> 11:52:33,240 30th October 7 547 K 547 is on 30th 17483 11:52:33,240 --> 11:52:36,320 October not 31st when I'm using date by 17484 11:52:36,320 --> 11:52:38,720 date it take the 30th value but look at 17485 11:52:38,720 --> 11:52:40,160 here what is happening at the month 17486 11:52:40,160 --> 11:52:42,800 level at the month level it takes the 17487 11:52:42,800 --> 11:52:46,160 complete value so MTD used with a 17488 11:52:46,160 --> 11:52:49,080 trailing date using date ad is going to 17489 11:52:49,080 --> 11:52:50,880 give me the last month value when I use 17490 11:52:50,880 --> 11:52:53,276 the full month value and corresponding 17491 11:52:53,276 --> 11:52:56,596 days MTD month till date of the last 17492 11:52:56,596 --> 11:52:58,680 month on that date whatever date I have 17493 11:52:58,680 --> 11:53:00,756 on that days of the last month what was 17494 11:53:00,756 --> 11:53:03,160 my value it's going to give me that so 17495 11:53:03,160 --> 11:53:05,720 this is MTD for me now I will tell you 17496 11:53:05,720 --> 11:53:08,240 one more function that function is going 17497 11:53:08,240 --> 11:53:09,840 to give us previous meth and the 17498 11:53:09,840 --> 11:53:11,880 function which I'm going to use is name 17499 11:53:11,880 --> 11:53:13,436 itself is previous month so let me 17500 11:53:13,436 --> 11:53:15,400 create a new majure meure tool is open 17501 11:53:15,400 --> 11:53:19,040 as of now I'll click on new 17502 11:53:19,880 --> 11:53:22,040 measure 17503 11:53:22,040 --> 11:53:24,956 calculate net and the function I'm going 17504 11:53:24,956 --> 11:53:27,320 to use is previous month previous month 17505 11:53:27,320 --> 11:53:29,596 required only one argument that is date 17506 11:53:29,596 --> 11:53:31,956 again when we use year it will require 17507 11:53:31,956 --> 11:53:33,756 more than one argument you can decide 17508 11:53:33,756 --> 11:53:36,160 the year and date date of date I'm 17509 11:53:36,160 --> 11:53:38,880 supplying and I'm completing this let me 17510 11:53:38,880 --> 11:53:40,800 bring in this observe the difference 17511 11:53:40,800 --> 11:53:42,916 which we are going to get here and you 17512 11:53:42,916 --> 11:53:44,596 might have realized the moment I dragged 17513 11:53:44,596 --> 11:53:46,560 it in the visual which contains only 17514 11:53:46,560 --> 11:53:50,080 date is actually not the single day 17515 11:53:50,080 --> 11:53:52,640 value it's the complete last month even 17516 11:53:52,640 --> 11:53:55,436 for each date the next month while on 17517 11:53:55,436 --> 11:53:58,360 the month level I'm fine with having a 17518 11:53:58,360 --> 11:54:01,800 value which is month and date value it 17519 11:54:01,800 --> 11:54:04,040 is not suitable for MTD and definitely 17520 11:54:04,040 --> 11:54:06,080 this is not a function for MTD this is a 17521 11:54:06,080 --> 11:54:08,160 function for previous month it gives you 17522 11:54:08,160 --> 11:54:10,596 complete previous month so now you 17523 11:54:10,596 --> 11:54:12,840 understand how the MTD trade triling can 17524 11:54:12,840 --> 11:54:14,640 be done and how can we use previous 17525 11:54:14,640 --> 11:54:16,640 month I would like to bring in something 17526 11:54:16,640 --> 11:54:19,640 here now let me bring in lmtd here and 17527 11:54:19,640 --> 11:54:22,200 as expected it is blank let me add thee 17528 11:54:22,200 --> 11:54:23,240 also 17529 11:54:23,240 --> 11:54:25,880 here both are blank you that's expected 17530 11:54:25,880 --> 11:54:28,720 isn't it should be blank let me go to 17531 11:54:28,720 --> 11:54:31,116 the last available month is October and 17532 11:54:31,116 --> 11:54:32,756 if I click on October what should happen 17533 11:54:32,756 --> 11:54:34,680 should give me the September value isn't 17534 11:54:34,680 --> 11:54:37,840 it yes it is giving me value this is my 17535 11:54:37,840 --> 11:54:39,956 value of the SE number that's fine now 17536 11:54:39,956 --> 11:54:42,436 let me do one thing let me play play 17537 11:54:42,436 --> 11:54:44,480 around with my date calend I go to my 17538 11:54:44,480 --> 11:54:47,276 data in my date calendar I will go ahead 17539 11:54:47,276 --> 11:54:49,640 now I don't want to pass a filter or a 17540 11:54:49,640 --> 11:54:52,160 filter context just want to go ahead and 17541 11:54:52,160 --> 11:54:54,480 change this date to Uber and as you know 17542 11:54:54,480 --> 11:54:56,640 I have data enough now there is no 17543 11:54:56,640 --> 11:54:58,840 filter there is no filter context and 17544 11:54:58,840 --> 11:55:01,320 the date is ending at the last month 17545 11:55:01,320 --> 11:55:03,596 where I have the data see I have the 17546 11:55:03,596 --> 11:55:05,276 data for October that was the last 17547 11:55:05,276 --> 11:55:06,956 available data and this is my previous 17548 11:55:06,956 --> 11:55:08,640 month data and I'm getting a previous 17549 11:55:08,640 --> 11:55:10,436 month also in my visual make it a little 17550 11:55:10,436 --> 11:55:12,360 bit bigger overlapping as you can see 17551 11:55:12,360 --> 11:55:13,800 see here I'm still getting the previous 17552 11:55:13,800 --> 11:55:16,040 month values both with the lmtd and B 17553 11:55:16,040 --> 11:55:18,360 previous but look at the the card is not 17554 11:55:18,360 --> 11:55:19,680 getting a filter because I have not 17555 11:55:19,680 --> 11:55:22,040 clicked on any of the values nor I have 17556 11:55:22,040 --> 11:55:24,240 used my slicer so there's no filter 17557 11:55:24,240 --> 11:55:26,560 context there is no row filter context 17558 11:55:26,560 --> 11:55:28,320 there's filter context here available 17559 11:55:28,320 --> 11:55:30,116 with this visual which is containing 17560 11:55:30,116 --> 11:55:32,400 month here so there is no filter context 17561 11:55:32,400 --> 11:55:34,480 for the card visual there is no filter 17562 11:55:34,480 --> 11:55:36,720 why it is giving blank why not September 17563 11:55:36,720 --> 11:55:39,160 because lmtd is giving me September MTD 17564 11:55:39,160 --> 11:55:41,240 is giving me value why previous month is 17565 11:55:41,240 --> 11:55:43,080 not giving the reason for that that 17566 11:55:43,080 --> 11:55:44,640 previous month and all the previous 17567 11:55:44,640 --> 11:55:45,880 function which we are going to use 17568 11:55:45,880 --> 11:55:47,116 whether it is previous quarter and 17569 11:55:47,116 --> 11:55:49,596 previous year they use first date into 17570 11:55:49,596 --> 11:55:52,880 context they don't use last context and 17571 11:55:52,880 --> 11:55:55,400 to understand that let me give you one 17572 11:55:55,400 --> 11:55:57,640 example here that it is using the first 17573 11:55:57,640 --> 11:56:00,480 date I'm going to bring in month year as 17574 11:56:00,480 --> 11:56:03,276 a slicer here and in this month year 17575 11:56:03,276 --> 11:56:07,116 slicer I'm going to go down and select 2 17576 11:56:07,116 --> 11:56:10,880 months January febrary January 2019 17577 11:56:10,880 --> 11:56:13,756 febrary 2019 the ones which I selected 17578 11:56:13,756 --> 11:56:16,116 what are you expecting January to get 17579 11:56:16,116 --> 11:56:17,840 the December value seems like it is 17580 11:56:17,840 --> 11:56:19,480 getting and February to get the like it 17581 11:56:19,480 --> 11:56:21,800 is getting what what value what value is 17582 11:56:21,800 --> 11:56:24,800 this lmtd is giving me January and 17583 11:56:24,800 --> 11:56:28,116 previous month is giving me 17584 11:56:30,000 --> 11:56:32,956 de this is because in the context there 17585 11:56:32,956 --> 11:56:36,756 are 2 months right now and the lmtd is 17586 11:56:36,756 --> 11:56:39,160 picking up from the maximum available 17587 11:56:39,160 --> 11:56:41,480 because of MTD and previous month is 17588 11:56:41,480 --> 11:56:43,436 picking up the first date available 17589 11:56:43,436 --> 11:56:45,276 because there is no filter context only 17590 11:56:45,276 --> 11:56:46,840 filter is available and filter is giving 17591 11:56:46,840 --> 11:56:49,560 2 months you need to be really careful 17592 11:56:49,560 --> 11:56:52,720 if you are designing a previous month or 17593 11:56:52,720 --> 11:56:54,916 the last month and you're using these 17594 11:56:54,916 --> 11:56:57,320 function and you select a range which is 17595 11:56:57,320 --> 11:57:01,160 crossing a month you're not using any 17596 11:57:01,160 --> 11:57:04,116 context then the behavior of these 17597 11:57:04,116 --> 11:57:06,916 functions can change so keeping in that 17598 11:57:06,916 --> 11:57:09,840 mind you should create these majors and 17599 11:57:09,840 --> 11:57:12,240 use them appropriately 17600 11:57:12,240 --> 11:57:14,240 the next thing which we want to learn in 17601 11:57:14,240 --> 11:57:17,276 the time intelligence is week or week 17602 11:57:17,276 --> 11:57:19,640 for week or week the challenge with us 17603 11:57:19,640 --> 11:57:22,276 is basically that there is no standard 17604 11:57:22,276 --> 11:57:24,756 function for that we need couple of 17605 11:57:24,756 --> 11:57:27,916 things in our date table so let me go to 17606 11:57:27,916 --> 11:57:30,680 the table View and in the date table let 17607 11:57:30,680 --> 11:57:32,880 me tell you what we need so in the date 17608 11:57:32,880 --> 11:57:35,756 table we will need a date rank which we 17609 11:57:35,756 --> 11:57:38,276 have created as a column here and the 17610 11:57:38,276 --> 11:57:40,880 date rank should be the ascending Rank 17611 11:57:40,880 --> 11:57:43,640 and it should be dance means after one 17612 11:57:43,640 --> 11:57:46,000 we should get two I have created that on 17613 11:57:46,000 --> 11:57:48,160 week start date you can also create that 17614 11:57:48,160 --> 11:57:51,596 on year week YY y ww second thing which 17615 11:57:51,596 --> 11:57:54,200 we need is the we need a week day as a 17616 11:57:54,200 --> 11:57:57,116 number and the week day when we use the 17617 11:57:57,116 --> 11:57:59,276 weekday as a number that should follow 17618 11:57:59,276 --> 11:58:01,680 the same week which start date is 17619 11:58:01,680 --> 11:58:04,560 falling so we don't have a week day as a 17620 11:58:04,560 --> 11:58:07,276 number so let me add weekday as a number 17621 11:58:07,276 --> 11:58:10,080 here I'm going to enter here let me call 17622 11:58:10,080 --> 11:58:13,240 it week day number and weekday number 17623 11:58:13,240 --> 11:58:15,276 should follow the same weekday which 17624 11:58:15,276 --> 11:58:17,320 start date is following so what start 17625 11:58:17,320 --> 11:58:19,756 date is following I'll let you know Week 17626 11:58:19,756 --> 11:58:22,320 start date is following this one so same 17627 11:58:22,320 --> 11:58:25,240 I will follow for weekday usually for 17628 11:58:25,240 --> 11:58:27,596 the Monday start what do you want so two 17629 11:58:27,596 --> 11:58:30,360 is for Monday 11 is also for Monday so 17630 11:58:30,360 --> 11:58:33,956 Monday weekday number one for Monday and 17631 11:58:33,956 --> 11:58:37,240 I'm starting let me sort this for 17632 11:58:37,240 --> 11:58:41,040 sending 1st January 2018 was a Monday so 17633 11:58:41,040 --> 11:58:43,436 that's correct and and we have a week 17634 11:58:43,436 --> 11:58:46,840 rank of one for that 1st January 2018 is 17635 11:58:46,840 --> 11:58:48,956 a Monday and it should be first week 17636 11:58:48,956 --> 11:58:51,756 also both the informations are correct 17637 11:58:51,756 --> 11:58:54,320 so now using this we will do our time 17638 11:58:54,320 --> 11:58:57,040 intelligence so let me add a new page 17639 11:58:57,040 --> 11:58:59,480 and what I can do is directly I can 17640 11:58:59,480 --> 11:59:02,000 start with first we will do week over 17641 11:59:02,000 --> 11:59:05,000 week and then later we'll do wtd week 17642 11:59:05,000 --> 11:59:07,520 till date so for that from the date 17643 11:59:07,520 --> 11:59:10,520 table let me bring in week start date 17644 11:59:10,520 --> 11:59:12,720 and using that only I'm going to bring 17645 11:59:12,720 --> 11:59:15,160 in my week or week so what is going to 17646 11:59:15,160 --> 11:59:17,360 be my formula so here I'm going to take 17647 11:59:17,360 --> 11:59:20,000 the help from the row context so this 17648 11:59:20,000 --> 11:59:23,040 week is the major which I'm creating 17649 11:59:23,040 --> 11:59:26,640 calculate net then I'll start my filter 17650 11:59:26,640 --> 11:59:29,436 now in the filter I'll use all now for 17651 11:59:29,436 --> 11:59:31,480 this week I can use all selected 17652 11:59:31,480 --> 11:59:33,400 assumption is that this week would 17653 11:59:33,400 --> 11:59:35,756 always be present but it's Finly 17654 11:59:35,756 --> 11:59:38,000 possible that I select a date and I need 17655 11:59:38,000 --> 11:59:40,116 the complete week then that's why I need 17656 11:59:40,116 --> 11:59:42,956 all so in all I can give table or column 17657 11:59:42,956 --> 11:59:45,116 name I'm going to give table name here 17658 11:59:45,116 --> 11:59:47,436 because I want to ignore all the filters 17659 11:59:47,436 --> 11:59:50,080 whether it's a day month year quarter 17660 11:59:50,080 --> 11:59:53,560 and then I want to use date of date 17661 11:59:53,560 --> 11:59:58,916 tables week rank equals to Max of week 17662 11:59:58,916 --> 12:00:01,916 rank now what does that means is when we 17663 12:00:01,916 --> 12:00:05,160 use the max of weak rank in the context 17664 12:00:05,160 --> 12:00:08,116 whatever week is available or a date is 17665 12:00:08,116 --> 12:00:10,360 available for that is going to find out 17666 12:00:10,360 --> 12:00:12,276 let's say even month is available aable 17667 12:00:12,276 --> 12:00:14,560 then it would be the last week of that 17668 12:00:14,560 --> 12:00:16,596 month here is available last week and if 17669 12:00:16,596 --> 12:00:18,640 the there's no context available last 17670 12:00:18,640 --> 12:00:20,360 week available in the date table it 17671 12:00:20,360 --> 12:00:22,680 would be picked up so this is how this 17672 12:00:22,680 --> 12:00:24,720 is going to behave and it's going to 17673 12:00:24,720 --> 12:00:27,160 give me this week measure and let me 17674 12:00:27,160 --> 12:00:30,596 bring it inside the visual and convert 17675 12:00:30,596 --> 12:00:33,200 it into date table and you can see that 17676 12:00:33,200 --> 12:00:35,200 the values have started from the very 17677 12:00:35,200 --> 12:00:38,400 first week the first week started on 13 17678 12:00:38,400 --> 12:00:41,000 so the week of 8th contain the 13 only 17679 12:00:41,000 --> 12:00:42,916 two days of data and then we have the 17680 12:00:42,916 --> 12:00:45,520 week of 15th and the week of 22 for 17681 12:00:45,520 --> 12:00:47,116 which we have the data and I can 17682 12:00:47,116 --> 12:00:49,680 showcase you it with along with the date 17683 12:00:49,680 --> 12:00:51,916 also so let me bring in another visual 17684 12:00:51,916 --> 12:00:55,276 with date and this 17685 12:00:55,276 --> 12:00:57,596 week value will repeat for a week 17686 12:00:57,596 --> 12:00:59,276 because we are doing this kind of 17687 12:00:59,276 --> 12:01:01,560 calculation now last week calculation is 17688 12:01:01,560 --> 12:01:04,596 very simple we have to use this week's 17689 12:01:04,596 --> 12:01:07,880 calculation but when so calculate net 17690 12:01:07,880 --> 12:01:10,400 filter all the date means ignore all the 17691 12:01:10,400 --> 12:01:12,480 filters on the date we rank should be 17692 12:01:12,480 --> 12:01:15,080 equal to the max of weak rank but minus 17693 12:01:15,080 --> 12:01:17,480 one it should be minus one and because 17694 12:01:17,480 --> 12:01:19,956 the entire date context is available 17695 12:01:19,956 --> 12:01:21,880 entire date table is available we'll be 17696 12:01:21,880 --> 12:01:24,916 able to have the last week also last 17697 12:01:24,916 --> 12:01:27,276 week the only difference is this minus 17698 12:01:27,276 --> 12:01:30,080 one let me bring last week also here and 17699 12:01:30,080 --> 12:01:32,596 as you can see the last week values are 17700 12:01:32,596 --> 12:01:35,080 now av la so we have learned this week 17701 12:01:35,080 --> 12:01:37,756 and last week how do we get week till 17702 12:01:37,756 --> 12:01:39,956 date for week till date remember you 17703 12:01:39,956 --> 12:01:42,360 have to use week number don't use date 17704 12:01:42,360 --> 12:01:44,520 you will use the same formula as this 17705 12:01:44,520 --> 12:01:46,756 week with the difference copy the same 17706 12:01:46,756 --> 12:01:48,596 formula of this week create a new 17707 12:01:48,596 --> 12:01:51,000 measure Major Tool is open new measure 17708 12:01:51,000 --> 12:01:53,000 is available there and now we are going 17709 12:01:53,000 --> 12:01:56,640 to create what we call as wtd be till 17710 12:01:56,640 --> 12:01:59,116 date again no standard power ba function 17711 12:01:59,116 --> 12:02:01,040 is available so we'll filter the date 17712 12:02:01,040 --> 12:02:03,956 table all the dates week rank equals to 17713 12:02:03,956 --> 12:02:06,400 the max of weak rank means whatever is 17714 12:02:06,400 --> 12:02:10,360 available in the context and weekday 17715 12:02:10,360 --> 12:02:15,436 number equal equals to Max of weekday 17716 12:02:15,436 --> 12:02:17,916 number so whatever is the weekday number 17717 12:02:17,916 --> 12:02:20,000 it should be equal to that number that 17718 12:02:20,000 --> 12:02:21,360 is what we are going to have in the 17719 12:02:21,360 --> 12:02:23,916 filter Clause week is equal to week and 17720 12:02:23,916 --> 12:02:25,956 weekday number is also equal to the 17721 12:02:25,956 --> 12:02:27,756 weekday number but that's going to give 17722 12:02:27,756 --> 12:02:30,640 me the week day I need to use less than 17723 12:02:30,640 --> 12:02:33,480 equal to so now it is start accumulating 17724 12:02:33,480 --> 12:02:36,320 so all the week days we have to consider 17725 12:02:36,320 --> 12:02:39,520 and let me add this this will give me 17726 12:02:39,520 --> 12:02:42,680 wtd and you see that the two days are 17727 12:02:42,680 --> 12:02:44,240 adding and this was the value for the 17728 12:02:44,240 --> 12:02:46,080 first week then there is a reset which 17729 12:02:46,080 --> 12:02:48,720 is happening let me bring in net and 17730 12:02:48,720 --> 12:02:50,756 when I bring in net you will understand 17731 12:02:50,756 --> 12:02:52,756 that these two days are adding here and 17732 12:02:52,756 --> 12:02:55,040 this was the same value which we got for 17733 12:02:55,040 --> 12:02:58,160 current week also then for the next week 17734 12:02:58,160 --> 12:03:01,200 these values are adding till this place 17735 12:03:01,200 --> 12:03:02,756 and this was the value which we were 17736 12:03:02,756 --> 12:03:05,160 getting these values are C for the week 17737 12:03:05,160 --> 12:03:08,160 is getting added so we got wtd now what 17738 12:03:08,160 --> 12:03:10,720 we need to do for last week till date 17739 12:03:10,720 --> 12:03:12,680 very simple this is the same last week 17740 12:03:12,680 --> 12:03:15,200 formula you need so I can copy the wtd 17741 12:03:15,200 --> 12:03:18,000 formula actually that's much easier I 17742 12:03:18,000 --> 12:03:20,360 copy this wtd formula create a new 17743 12:03:20,360 --> 12:03:22,640 measure measure tool is available new 17744 12:03:22,640 --> 12:03:25,160 measure is available there paste this 17745 12:03:25,160 --> 12:03:28,520 formula call it as last week till date 17746 12:03:28,520 --> 12:03:31,276 and the only difference is only where 17747 12:03:31,276 --> 12:03:33,400 the weak rank is there you just say weak 17748 12:03:33,400 --> 12:03:36,360 rank minus one and press enter you got 17749 12:03:36,360 --> 12:03:39,000 last week till date and what would 17750 12:03:39,000 --> 12:03:41,080 happen here is when you add this to the 17751 12:03:41,080 --> 12:03:43,840 visualization you will see after a week 17752 12:03:43,840 --> 12:03:47,080 we got on 13th so on 20th you will get a 17753 12:03:47,080 --> 12:03:50,840 value on 21st the next accumulated value 17754 12:03:50,840 --> 12:03:54,116 will come and whenever there is a reset 17755 12:03:54,116 --> 12:03:55,840 there would be a reset Whenever there is 17756 12:03:55,840 --> 12:03:57,916 increase there would be in now next day 17757 12:03:57,916 --> 12:04:00,720 is again Monday so you will see the same 17758 12:04:00,720 --> 12:04:03,200 value as the week start which is coming 17759 12:04:03,200 --> 12:04:05,520 and so on it will keep on adding post 17760 12:04:05,520 --> 12:04:08,800 that so now in spite of not having a 17761 12:04:08,800 --> 12:04:11,840 function we able to get week till date 17762 12:04:11,840 --> 12:04:14,720 and this week versus last week any 17763 12:04:14,720 --> 12:04:17,880 custom month whether it is half year 17764 12:04:17,880 --> 12:04:21,000 whether the month is 28 days whether the 17765 12:04:21,000 --> 12:04:24,276 month is starting from 15th of a month 17766 12:04:24,276 --> 12:04:26,956 as long as you are able to create a weak 17767 12:04:26,956 --> 12:04:31,360 Rank and day of period or day of month 17768 12:04:31,360 --> 12:04:35,800 the same mechanism will apply for period 17769 12:04:35,800 --> 12:04:38,880 versus last period month versus last 17770 12:04:38,880 --> 12:04:43,116 month and MTD versus last month MTD or 17771 12:04:43,116 --> 12:04:46,080 ptd versus last ptd so till now we have 17772 12:04:46,080 --> 12:04:48,596 learned you know we have MTD how get to 17773 12:04:48,596 --> 12:04:50,360 get last month till date you have 17774 12:04:50,360 --> 12:04:52,116 complete month data how to get the last 17775 12:04:52,116 --> 12:04:54,400 month complete month data similarly we 17776 12:04:54,400 --> 12:04:56,480 have done for quarter year and then we 17777 12:04:56,480 --> 12:04:58,560 created some custom formulas for week we 17778 12:04:58,560 --> 12:05:00,116 have not discussed very simple thing 17779 12:05:00,116 --> 12:05:02,596 what happens when I want last days data 17780 12:05:02,596 --> 12:05:05,276 what was my data 7 days before what my 17781 12:05:05,276 --> 12:05:07,916 what was my data a year before or a week 17782 12:05:07,916 --> 12:05:10,320 year before week year means 364 days 17783 12:05:10,320 --> 12:05:13,276 today's Monday what was my my data same 17784 12:05:13,276 --> 12:05:16,040 Monday last year how can I achieve this 17785 12:05:16,040 --> 12:05:17,916 so for that what we are going to use we 17786 12:05:17,916 --> 12:05:20,160 going to use the date add function and 17787 12:05:20,160 --> 12:05:21,560 we are going to create certain trailing 17788 12:05:21,560 --> 12:05:23,596 formula the name trailing is coming 17789 12:05:23,596 --> 12:05:25,916 because they are behind by certain days 17790 12:05:25,916 --> 12:05:27,956 or days behind formula as you can see so 17791 12:05:27,956 --> 12:05:30,040 I already a new page and in this new 17792 12:05:30,040 --> 12:05:33,360 page I'll add date from the date table 17793 12:05:33,360 --> 12:05:35,200 and this time I don't want aggregation 17794 12:05:35,200 --> 12:05:37,000 above the date level means I don't want 17795 12:05:37,000 --> 12:05:39,720 to aggregate for TDS till date I just 17796 12:05:39,720 --> 12:05:42,480 want this is my net what is my net for 17797 12:05:42,480 --> 12:05:45,916 last day before 7 days before a year 17798 12:05:45,916 --> 12:05:47,800 even it could be before a month so let's 17799 12:05:47,800 --> 12:05:50,080 quickly create some Majors so on the 17800 12:05:50,080 --> 12:05:52,596 Home tab new major is visible as of now 17801 12:05:52,596 --> 12:05:54,436 and I'm going to click on that and let 17802 12:05:54,436 --> 12:05:56,400 me create last date so this is going to 17803 12:05:56,400 --> 12:05:58,640 be a date add which I'm going to use for 17804 12:05:58,640 --> 12:06:01,480 last day but we do have a previous day 17805 12:06:01,480 --> 12:06:03,276 function which is available so here I'm 17806 12:06:03,276 --> 12:06:07,520 going to use calculate net date ad and 17807 12:06:07,520 --> 12:06:09,436 in the date ad there are three arguments 17808 12:06:09,436 --> 12:06:11,240 required the first argument is date of 17809 12:06:11,240 --> 12:06:13,720 dat second is minus one and third one is 17810 12:06:13,720 --> 12:06:16,160 day so it is going to trail by a day I 17811 12:06:16,160 --> 12:06:18,596 got last day values are just a day 17812 12:06:18,596 --> 12:06:21,720 behind now let's create last week last 17813 12:06:21,720 --> 12:06:25,040 week is basically 7 days behind last day 17814 12:06:25,040 --> 12:06:27,880 last week same day which is a week 17815 12:06:27,880 --> 12:06:30,276 behind so it's going to be behind by 7 17816 12:06:30,276 --> 12:06:32,040 days so Monday to Monday Tuesday to 17817 12:06:32,040 --> 12:06:33,360 Tuesday Wednesday to Wednesday 17818 12:06:33,360 --> 12:06:35,916 comparison we and let me add this into 17819 12:06:35,916 --> 12:06:38,480 the visualization and as you can see the 17820 12:06:38,480 --> 12:06:42,560 values are a week behind so this is 20th 17821 12:06:42,560 --> 12:06:45,720 this was 13th same way 21st 14th a week 17822 12:06:45,720 --> 12:06:47,756 behind now how do I get a month behind 17823 12:06:47,756 --> 12:06:49,840 value simple create a new measure and 17824 12:06:49,840 --> 12:06:52,596 instead of day use month and minus one 17825 12:06:52,596 --> 12:06:56,756 minus one month behind and same last 17826 12:06:56,756 --> 12:07:00,040 month same day you will see on 13th of 17827 12:07:00,040 --> 12:07:02,436 November I'll get my value on 14th of 17828 12:07:02,436 --> 12:07:04,436 November I'll get my 14th of October 17829 12:07:04,436 --> 12:07:07,160 value I getting a month behind value 17830 12:07:07,160 --> 12:07:08,916 same day I can do for quarter but I 17831 12:07:08,916 --> 12:07:11,840 would like go for year and last year 17832 12:07:11,840 --> 12:07:13,756 same day so basically what happens is 17833 12:07:13,756 --> 12:07:16,360 every year typically we end up adding 17834 12:07:16,360 --> 12:07:19,360 one additional day so if it is 13th next 17835 12:07:19,360 --> 12:07:21,956 year it is 12th if it is not a leap year 17836 12:07:21,956 --> 12:07:23,800 next year it is going to be the 12th 17837 12:07:23,800 --> 12:07:26,000 October which is going to have the same 17838 12:07:26,000 --> 12:07:29,040 weekday 364 is the combination which 17839 12:07:29,040 --> 12:07:31,880 fits in the proper division of weeks so 17840 12:07:31,880 --> 12:07:34,880 365 add one additional day so because of 17841 12:07:34,880 --> 12:07:37,680 that same week day last year if I need 17842 12:07:37,680 --> 12:07:40,400 so last year same week day I'm going to 17843 12:07:40,400 --> 12:07:42,520 call I'm not going to call same day I'm 17844 12:07:42,520 --> 12:07:44,800 going to call same week day and here 17845 12:07:44,800 --> 12:07:46,756 instead of subtracting a year I'll 17846 12:07:46,756 --> 12:07:51,276 subtract minus 364 days and usually on 17847 12:07:51,276 --> 12:07:53,276 the non-leap year you will find it is a 17848 12:07:53,276 --> 12:07:55,916 day difference when the actual data 17849 12:07:55,916 --> 12:07:57,276 comes in in case of leap year it could 17850 12:07:57,276 --> 12:07:59,200 be 2 days so remember the value for the 17851 12:07:59,200 --> 12:08:02,080 13th of October and 14th of October and 17852 12:08:02,080 --> 12:08:04,116 when I go to the 17853 12:08:04,116 --> 12:08:06,956 2019 I will start getting values from 17854 12:08:06,956 --> 12:08:09,240 12th of October and the reason behind is 17855 12:08:09,240 --> 12:08:12,756 the day and let's bring in week day into 17856 12:08:12,756 --> 12:08:15,116 the picture now now let's look at what 17857 12:08:15,116 --> 12:08:18,360 it is Saturday what this is Sunday let's 17858 12:08:18,360 --> 12:08:20,400 scroll up and see what we had initially 17859 12:08:20,400 --> 12:08:22,480 Saturday and Sunday now you understood 17860 12:08:22,480 --> 12:08:24,756 why we have done that now last year same 17861 12:08:24,756 --> 12:08:27,040 day basically it is 13th October I need 17862 12:08:27,040 --> 12:08:29,800 13th October isn't it in that case I am 17863 12:08:29,800 --> 12:08:32,720 not going to use - 365 I'm going to 17864 12:08:32,720 --> 12:08:37,640 Simply use -1 year don't use 365 or 366 17865 12:08:37,640 --> 12:08:40,000 nothing like that just subtract one year 17866 12:08:40,000 --> 12:08:41,800 and we will get last year and when we 17867 12:08:41,800 --> 12:08:43,916 scroll down you will see the data is 17868 12:08:43,916 --> 12:08:46,360 actually started coming from 13th of 17869 12:08:46,360 --> 12:08:48,916 October Sunday every year the date will 17870 12:08:48,916 --> 12:08:50,756 change so this year it was Saturday next 17871 12:08:50,756 --> 12:08:52,200 year it was Sunday this is how it is 17872 12:08:52,200 --> 12:08:53,560 going to happen so this is how you 17873 12:08:53,560 --> 12:08:55,800 create trailing formulas now these 17874 12:08:55,800 --> 12:08:58,596 formulas are a day behind again sometime 17875 12:08:58,596 --> 12:09:00,116 what would happen like if you have too 17876 12:09:00,116 --> 12:09:02,880 many dates available your grand total 17877 12:09:02,880 --> 12:09:05,040 may actually not be a year behind so if 17878 12:09:05,040 --> 12:09:06,880 you don't have a year in the context 17879 12:09:06,880 --> 12:09:08,560 then what would happen is let's say I 17880 12:09:08,560 --> 12:09:10,916 have a calendar which is still 2021 so 17881 12:09:10,916 --> 12:09:13,000 what happen my calendar is actually 17882 12:09:13,000 --> 12:09:14,680 Trail let's say for minus one year 17883 12:09:14,680 --> 12:09:16,640 formula my calendar even get trailed by 17884 12:09:16,640 --> 12:09:19,116 one year when no date is in the context 17885 12:09:19,116 --> 12:09:21,756 I reach 2020 and I have data till 2020 17886 12:09:21,756 --> 12:09:24,436 so my values could be same for the 17887 12:09:24,436 --> 12:09:26,520 trailing as well as this one and that 17888 12:09:26,520 --> 12:09:28,840 you will see for the last day the grand 17889 12:09:28,840 --> 12:09:30,560 totals are same because I have 17890 12:09:30,560 --> 12:09:32,520 additional day available for the same 17891 12:09:32,520 --> 12:09:34,756 week day it is again same for month 17892 12:09:34,756 --> 12:09:36,916 definitely because we ended on October 17893 12:09:36,916 --> 12:09:38,640 so that is why we have a little bit less 17894 12:09:38,640 --> 12:09:40,640 value but if I increase my calendar 17895 12:09:40,640 --> 12:09:42,596 dates you will you will see these dates 17896 12:09:42,596 --> 12:09:45,680 are you will see if I move it by to 17897 12:09:45,680 --> 12:09:48,596 December or let's say October 2021 you 17898 12:09:48,596 --> 12:09:51,080 will see that the values of grand total 17899 12:09:51,080 --> 12:09:53,560 is now same and the reason behind that 17900 12:09:53,560 --> 12:09:56,116 that when the context is not available 17901 12:09:56,116 --> 12:09:58,276 or the filter context is not available 17902 12:09:58,276 --> 12:10:00,880 it moved the day a year behind or a 17903 12:10:00,880 --> 12:10:03,116 month behind or a quarter behind but 17904 12:10:03,116 --> 12:10:04,916 still it has covered all the dates which 17905 12:10:04,916 --> 12:10:06,880 are available in such cases if you're 17906 12:10:06,880 --> 12:10:09,560 using make sure either the context or 17907 12:10:09,560 --> 12:10:12,840 the filter or slicer is adding a ear to 17908 12:10:12,840 --> 12:10:15,400 the page or to the visualization so that 17909 12:10:15,400 --> 12:10:17,720 we get correct values otherwise you end 17910 12:10:17,720 --> 12:10:21,160 up getting incorrect values in powerbi 17911 12:10:21,160 --> 12:10:23,436 we have many Dex function but starting 17912 12:10:23,436 --> 12:10:27,080 from December 2022 we got a series of 17913 12:10:27,080 --> 12:10:29,840 functions which are very similar to SQL 17914 12:10:29,840 --> 12:10:32,320 Windows function now the reason we call 17915 12:10:32,320 --> 12:10:34,080 them very similar to SQL Windows 17916 12:10:34,080 --> 12:10:36,880 function that they do also provide us 17917 12:10:36,880 --> 12:10:38,200 something known as order by and 17918 12:10:38,200 --> 12:10:40,480 Partition by and based on that we can do 17919 12:10:40,480 --> 12:10:42,956 certain calcul which were previously 17920 12:10:42,956 --> 12:10:45,116 difficult to do and now they are very 17921 12:10:45,116 --> 12:10:47,640 easy if we use these functions so what 17922 12:10:47,640 --> 12:10:49,680 are these functions let's have a look at 17923 12:10:49,680 --> 12:10:52,240 it in December 2022 we got three 17924 12:10:52,240 --> 12:10:54,800 function offset windows and index 17925 12:10:54,800 --> 12:10:57,116 followed by two more functions in April 17926 12:10:57,116 --> 12:10:59,916 2023 those are Rank and row number all 17927 12:10:59,916 --> 12:11:02,200 these functions are on very similar 17928 12:11:02,200 --> 12:11:04,840 basis they all have order by they all 17929 12:11:04,840 --> 12:11:07,840 have Partition by and they also support 17930 12:11:07,840 --> 12:11:10,160 access and reset now what are the key 17931 12:11:10,160 --> 12:11:12,116 highlights of these text functions so 17932 12:11:12,116 --> 12:11:13,840 these Tex function as I already told you 17933 12:11:13,840 --> 12:11:16,640 are very similar to SQL Windows function 17934 12:11:16,640 --> 12:11:18,680 performing performing calculations 17935 12:11:18,680 --> 12:11:21,200 across related table rows based on Dex 17936 12:11:21,200 --> 12:11:23,916 evaluation context but unlike Windows 17937 12:11:23,916 --> 12:11:25,880 function these Dex function do not 17938 12:11:25,880 --> 12:11:28,596 return a single value but a set of row 17939 12:11:28,596 --> 12:11:30,360 which can be used with the functions 17940 12:11:30,360 --> 12:11:32,560 like calculate and sumx to compute the 17941 12:11:32,560 --> 12:11:33,756 values means they are not going to 17942 12:11:33,756 --> 12:11:35,560 return single value so we have to go 17943 12:11:35,560 --> 12:11:37,596 ahead and use different function like 17944 12:11:37,596 --> 12:11:39,800 calculate or sumx to make sure in our 17945 12:11:39,800 --> 12:11:41,880 measures we are able to get single value 17946 12:11:41,880 --> 12:11:45,040 so these function execute in Dex engine 17947 12:11:45,040 --> 12:11:46,480 rather than being pushed to the data 17948 12:11:46,480 --> 12:11:48,520 source offering improved performance 17949 12:11:48,520 --> 12:11:49,840 particularly when sarting by 17950 12:11:49,840 --> 12:11:51,680 non-continuous columns so basically what 17951 12:11:51,680 --> 12:11:53,640 happens is their execution happens as 17952 12:11:53,640 --> 12:11:55,480 the Dex engine level so they will be 17953 12:11:55,480 --> 12:11:56,916 able to provide you better performance 17954 12:11:56,916 --> 12:11:59,080 so these functions are different and 17955 12:11:59,080 --> 12:12:01,640 they are executed differently to give 17956 12:12:01,640 --> 12:12:03,400 you performance gains key highlights as 17957 12:12:03,400 --> 12:12:05,160 I already told you these functions use 17958 12:12:05,160 --> 12:12:07,840 order by Partition by access and reset 17959 12:12:07,840 --> 12:12:10,320 typically they are used in pair order by 17960 12:12:10,320 --> 12:12:12,116 and Partition by one pair access and 17961 12:12:12,116 --> 12:12:15,000 reset access and reset are usually used 17962 12:12:15,000 --> 12:12:17,480 in visual level calculations so let us 17963 12:12:17,480 --> 12:12:19,720 start with the offset function offset 17964 12:12:19,720 --> 12:12:21,640 function is one of the functions which 17965 12:12:21,640 --> 12:12:25,720 has been released in December 2022 and 17966 12:12:25,720 --> 12:12:27,840 it's very similar to Windows function 17967 12:12:27,840 --> 12:12:29,800 and now we're going to use that so let 17968 12:12:29,800 --> 12:12:31,956 me start first by creating a visual on 17969 12:12:31,956 --> 12:12:34,640 category and I will take along with the 17970 12:12:34,640 --> 12:12:36,320 category 17971 12:12:36,320 --> 12:12:38,640 net let me convert this into a table 17972 12:12:38,640 --> 12:12:40,840 visual now here I would like to know 17973 12:12:40,840 --> 12:12:42,436 what is the value of previous category 17974 12:12:42,436 --> 12:12:44,320 now based on what based on the category 17975 12:12:44,320 --> 12:12:46,320 sequence or based on the net sequence 17976 12:12:46,320 --> 12:12:48,756 okay so in this manner we can comparison 17977 12:12:48,756 --> 12:12:50,640 means based on the last one which and 17978 12:12:50,640 --> 12:12:52,320 that's where the offset comes in play 17979 12:12:52,320 --> 12:12:54,436 where we can actually go up and down now 17980 12:12:54,436 --> 12:12:56,840 offset is not a table function where it 17981 12:12:56,840 --> 12:12:58,880 goes for a table row it still need the 17982 12:12:58,880 --> 12:13:01,240 context means by which you are it needs 17983 12:13:01,240 --> 12:13:03,200 that row or group by for which you are 17984 12:13:03,200 --> 12:13:05,840 going to move up and down inside the 17985 12:13:05,840 --> 12:13:08,360 calculation so let me add a new measure 17986 12:13:08,360 --> 12:13:10,116 and this measure is I'm going to call 17987 12:13:10,116 --> 12:13:13,040 offset one 17988 12:13:13,240 --> 12:13:16,276 calculate net offset now what are the 17989 12:13:16,276 --> 12:13:18,160 things we require for offset Delta 17990 12:13:18,160 --> 12:13:20,240 plusus one what is relation this should 17991 12:13:20,240 --> 12:13:21,880 contain the columns for order by and 17992 12:13:21,880 --> 12:13:24,560 Partition by with the enhancement you 17993 12:13:24,560 --> 12:13:26,200 don't need to add Majors now so if you 17994 12:13:26,200 --> 12:13:28,040 want to use a major into the order by 17995 12:13:28,040 --> 12:13:29,520 you don't need to add it then you have 17996 12:13:29,520 --> 12:13:31,400 order by blanks most of the time we are 17997 12:13:31,400 --> 12:13:33,320 leaving that blanks Partition by where 17998 12:13:33,320 --> 12:13:35,520 you can means let's say if I want to 17999 12:13:35,520 --> 12:13:39,080 partition inside category or brand see 18000 12:13:39,080 --> 12:13:40,360 the operation should happen within a 18001 12:13:40,360 --> 12:13:42,160 partition we can do do that then we have 18002 12:13:42,160 --> 12:13:44,200 Concepts like match by and reset which 18003 12:13:44,200 --> 12:13:46,680 can also be used now let's start with 18004 12:13:46,680 --> 12:13:49,560 minus one offset and we will use all 18005 12:13:49,560 --> 12:13:51,720 selected now all selected and all 18006 12:13:51,720 --> 12:13:53,720 depending on whether the data which is 18007 12:13:53,720 --> 12:13:55,320 present based on that we want to take a 18008 12:13:55,320 --> 12:13:56,880 decision or data which is also not 18009 12:13:56,880 --> 12:13:59,000 present but present in the values want 18010 12:13:59,000 --> 12:14:00,320 to take decision based on that I would 18011 12:14:00,320 --> 12:14:02,000 like to take based on the data which is 18012 12:14:02,000 --> 12:14:05,436 present so item category order by now 18013 12:14:05,436 --> 12:14:06,916 order by let's first start with item 18014 12:14:06,916 --> 12:14:08,560 category itself isn't it that what is 18015 12:14:08,560 --> 12:14:10,480 the value for the last category 1 2 3 4 18016 12:14:10,480 --> 12:14:12,596 5 rest I don't need I don't need Val 18017 12:14:12,596 --> 12:14:14,840 blanks Partition by match by and resets 18018 12:14:14,840 --> 12:14:16,756 so let's close the offset and let's 18019 12:14:16,756 --> 12:14:19,276 close the net by default here order is 18020 12:14:19,276 --> 12:14:21,560 ascending now in powerbi those of you 18021 12:14:21,560 --> 12:14:23,596 who have seen rank you know that the by 18022 12:14:23,596 --> 12:14:25,756 default order is descending but for all 18023 12:14:25,756 --> 12:14:27,480 the windows function the by default 18024 12:14:27,480 --> 12:14:29,720 order by is ascending so let's add this 18025 12:14:29,720 --> 12:14:32,000 mejor offset inside our our 18026 12:14:32,000 --> 12:14:34,040 visualization and let me sort it on 18027 12:14:34,040 --> 12:14:35,800 category because that's is how I've done 18028 12:14:35,800 --> 12:14:38,916 it so as you can see here the net is 18029 12:14:38,916 --> 12:14:40,756 trailing by one one values because I 18030 12:14:40,756 --> 12:14:42,200 given offset one same way you can give 18031 12:14:42,200 --> 12:14:45,040 offset 2 3 this is minus one okay now 18032 12:14:45,040 --> 12:14:46,680 either I can make it plus one or I can 18033 12:14:46,680 --> 12:14:48,436 change the order that is one of the two 18034 12:14:48,436 --> 12:14:50,240 things I can do so let me do one thing 18035 12:14:50,240 --> 12:14:52,756 let me go here in order by and let me 18036 12:14:52,756 --> 12:14:55,640 use descending what would happen instead 18037 12:14:55,640 --> 12:14:58,320 of trail by one now it is lead by one so 18038 12:14:58,320 --> 12:15:00,480 Category 2 is coming in category one so 18039 12:15:00,480 --> 12:15:01,916 next now same thing you could have 18040 12:15:01,916 --> 12:15:03,800 achieved by ascending by using plus one 18041 12:15:03,800 --> 12:15:05,436 so I removed the descending and let me 18042 12:15:05,436 --> 12:15:07,800 remove the minus one also so same result 18043 12:15:07,800 --> 12:15:10,240 I got so in this manner offset works now 18044 12:15:10,240 --> 12:15:12,240 this is one way variation of offset now 18045 12:15:12,240 --> 12:15:14,080 let's run on the second variation of 18046 12:15:14,080 --> 12:15:16,400 offset where now I don't want to sort on 18047 12:15:16,400 --> 12:15:17,916 categorical values now this would be 18048 12:15:17,916 --> 12:15:19,276 really useful when we do month-on-month 18049 12:15:19,276 --> 12:15:21,640 comparison but let's look for the 18050 12:15:21,640 --> 12:15:23,956 comparison which is basically for net so 18051 12:15:23,956 --> 12:15:26,240 I want to travel by net my top category 18052 12:15:26,240 --> 12:15:28,000 I should differentiate with second top 18053 12:15:28,000 --> 12:15:29,956 second top with third top now comparison 18054 12:15:29,956 --> 12:15:32,080 is happening between the top ranks then 18055 12:15:32,080 --> 12:15:33,840 how do I do that so then what would be 18056 12:15:33,840 --> 12:15:35,840 my order by in case of this new major 18057 12:15:35,840 --> 12:15:37,320 which I'm going to call offset new I 18058 12:15:37,320 --> 12:15:39,560 don't want to do by the categories I 18059 12:15:39,560 --> 12:15:41,560 want to do by net major and see I have 18060 12:15:41,560 --> 12:15:43,276 not added the major inside my all 18061 12:15:43,276 --> 12:15:45,436 selected in relation it is not added and 18062 12:15:45,436 --> 12:15:48,560 let me use descending and let now let me 18063 12:15:48,560 --> 12:15:50,956 bring this inside now I need to sort it 18064 12:15:50,956 --> 12:15:53,116 on net to understand this so category 18065 12:15:53,116 --> 12:15:54,480 now why I'm getting in category 4 18066 12:15:54,480 --> 12:15:56,080 because I used plus one I said in 18067 12:15:56,080 --> 12:15:57,320 descending order plus one but in 18068 12:15:57,320 --> 12:15:59,200 descending out what I need minus one so 18069 12:15:59,200 --> 12:16:01,400 now the topper would be trailed so 18070 12:16:01,400 --> 12:16:03,320 second topper will get the first topper 18071 12:16:03,320 --> 12:16:05,116 in this value so now whether you need 18072 12:16:05,116 --> 12:16:06,596 second with first or first with second 18073 12:16:06,596 --> 12:16:08,680 you can decide now this is really 18074 12:16:08,680 --> 12:16:10,480 helpful the offset is going to be really 18075 12:16:10,480 --> 12:16:12,640 helpful in month on month comparison 18076 12:16:12,640 --> 12:16:14,276 quarter on quarter comparison and year 18077 12:16:14,276 --> 12:16:16,080 on year comparison now let me do one 18078 12:16:16,080 --> 12:16:17,680 thing let me bring in a new visual for 18079 12:16:17,680 --> 12:16:19,840 you and in this visual what I'm going to 18080 12:16:19,840 --> 12:16:21,360 do here is I'm going to do a little bit 18081 12:16:21,360 --> 12:16:23,880 of trick so what I'm going to do here is 18082 12:16:23,880 --> 12:16:26,360 I will bring in year I will bring in 18083 12:16:26,360 --> 12:16:29,040 quarter I will bring in month and I'll 18084 12:16:29,040 --> 12:16:31,400 bring in 18085 12:16:32,240 --> 12:16:34,640 net and let me instead of month number 18086 12:16:34,640 --> 12:16:36,360 let me bring in month 18087 12:16:36,360 --> 12:16:38,720 here what I want here first of all I 18088 12:16:38,720 --> 12:16:40,680 want month on month so how do you get 18089 12:16:40,680 --> 12:16:42,640 off offet of month on month very simple 18090 12:16:42,640 --> 12:16:44,520 challenge month on month is a text it's 18091 12:16:44,520 --> 12:16:46,480 not going to work easily so I would like 18092 12:16:46,480 --> 12:16:48,916 M and offset month on month offset how 18093 12:16:48,916 --> 12:16:52,480 do I get calculate net offset what is 18094 12:16:52,480 --> 12:16:55,596 Delta minus one what is relation all 18095 12:16:55,596 --> 12:16:57,680 selected now here comes the challenge 18096 12:16:57,680 --> 12:17:00,436 month is a text and it s order is not 18097 12:17:00,436 --> 12:17:02,640 correct so how do I take this so here 18098 12:17:02,640 --> 12:17:05,520 what I'm going to do is date table month 18099 12:17:05,520 --> 12:17:07,840 year I need to take month year as well 18100 12:17:07,840 --> 12:17:10,956 as I'll take month year sort so let's 18101 12:17:10,956 --> 12:17:12,560 take both of them month year and month 18102 12:17:12,560 --> 12:17:14,680 year sort both we have taken now we will 18103 12:17:14,680 --> 12:17:17,000 go and so relationship is done how do I 18104 12:17:17,000 --> 12:17:19,880 sort I need to sort on or order by on 18105 12:17:19,880 --> 12:17:22,116 month year 18106 12:17:22,116 --> 12:17:25,400 sort do I need to partition as of now I 18107 12:17:25,400 --> 12:17:27,040 don't seem I need a partitioning but we 18108 12:17:27,040 --> 12:17:28,840 may or 18109 12:17:28,840 --> 12:17:31,720 may let's bring this m offset inside the 18110 12:17:31,720 --> 12:17:33,680 visualization so what we see here is 18111 12:17:33,680 --> 12:17:35,680 basically that we're able to get this 18112 12:17:35,680 --> 12:17:37,880 month or month and let's not look at the 18113 12:17:37,880 --> 12:17:39,956 quarter and this one because quarter 18114 12:17:39,956 --> 12:17:41,756 offset doesn't seem like this TW first 18115 12:17:41,756 --> 12:17:43,160 of all I should not have got anything 18116 12:17:43,160 --> 12:17:44,916 here in the Q4 I'm getting something so 18117 12:17:44,916 --> 12:17:46,720 we are not looking but here in the month 18118 12:17:46,720 --> 12:17:48,276 things seems to be correct but there is 18119 12:17:48,276 --> 12:17:50,880 a challenge I'm not getting this one for 18120 12:17:50,880 --> 12:17:52,596 first month so let me change this visual 18121 12:17:52,596 --> 12:17:54,436 a little bit and let me duplicate this 18122 12:17:54,436 --> 12:17:56,756 for this so Ive duplicated it and let me 18123 12:17:56,756 --> 12:17:58,436 delete this first visual I don't need 18124 12:17:58,436 --> 12:18:00,720 but if I use here this visual I 18125 12:18:00,720 --> 12:18:02,756 duplicated it and let me remove ear and 18126 12:18:02,756 --> 12:18:05,040 quarter from here you can see that this 18127 12:18:05,040 --> 12:18:07,080 measure has properly worked isn't it for 18128 12:18:07,080 --> 12:18:08,880 every month I able to get an offset 18129 12:18:08,880 --> 12:18:11,000 minus one offset easily m is working 18130 12:18:11,000 --> 12:18:13,160 perfectly fine why not here and this is 18131 12:18:13,160 --> 12:18:15,916 what we call the inclusion of all the 18132 12:18:15,916 --> 12:18:18,000 participant in the formula so what's 18133 12:18:18,000 --> 12:18:20,320 happening here is basically the quarter 18134 12:18:20,320 --> 12:18:22,520 and year are also the participants which 18135 12:18:22,520 --> 12:18:24,720 are not been considered so even though 18136 12:18:24,720 --> 12:18:26,680 we have not done the partitioning inside 18137 12:18:26,680 --> 12:18:28,276 the quarter and year Auto partitioning 18138 12:18:28,276 --> 12:18:29,436 is happening and that is something you 18139 12:18:29,436 --> 12:18:30,880 might have seen in the rank function 18140 12:18:30,880 --> 12:18:32,320 also so now what we are going to do is 18141 12:18:32,320 --> 12:18:33,720 we are going to include that so we'll 18142 12:18:33,720 --> 12:18:35,916 say Okay include the quarter also so 18143 12:18:35,916 --> 12:18:38,116 date quarter and include the year also 18144 12:18:38,116 --> 12:18:40,880 date year and the Sorting don't need to 18145 12:18:40,880 --> 12:18:42,880 change because the Sorting month year is 18146 12:18:42,880 --> 12:18:46,200 still valid across these month year sort 18147 12:18:46,200 --> 12:18:48,000 we have taken month year sort it is not 18148 12:18:48,000 --> 12:18:50,116 month sort now what you seeing here what 18149 12:18:50,116 --> 12:18:52,160 we see here is okay this is fine this 18150 12:18:52,160 --> 12:18:53,756 was previously also happing now this is 18151 12:18:53,756 --> 12:18:56,276 also Happening Now across year and 18152 12:18:56,276 --> 12:18:58,596 quarter we are able to get M and the 18153 12:18:58,596 --> 12:19:00,360 month year actually only month year 18154 12:19:00,360 --> 12:19:02,080 visual also retaining the same so in 18155 12:19:02,080 --> 12:19:04,160 both cases it is working now you might 18156 12:19:04,160 --> 12:19:05,596 have understood how I want to get the 18157 12:19:05,596 --> 12:19:07,640 quarter very simple I'll keep quarter 18158 12:19:07,640 --> 12:19:09,160 year and change the Sorting of quarter 18159 12:19:09,160 --> 12:19:10,680 year now quarter Year is already in 18160 12:19:10,680 --> 12:19:12,000 sortable format so I don't need a 18161 12:19:12,000 --> 12:19:14,116 sortable quarter here here is easy but 18162 12:19:14,116 --> 12:19:16,040 tell me will I take three measures and 18163 12:19:16,040 --> 12:19:17,520 then how would I ensure the quarter is 18164 12:19:17,520 --> 12:19:18,916 going to be at quarter's position and 18165 12:19:18,916 --> 12:19:20,520 month is going to be a month position 18166 12:19:20,520 --> 12:19:21,680 and so what I'm going to do is I'm going 18167 12:19:21,680 --> 12:19:23,360 to create little bit complex measure 18168 12:19:23,360 --> 12:19:25,040 this time around so you understood how 18169 12:19:25,040 --> 12:19:26,956 offset 18170 12:19:26,956 --> 12:19:29,520 work and now let me take this 18171 12:19:29,520 --> 12:19:31,116 calculation here and I'm going to take 18172 12:19:31,116 --> 12:19:33,480 this use this calculation inside a new 18173 12:19:33,480 --> 12:19:36,160 measure which is basically po period on 18174 12:19:36,160 --> 12:19:37,800 period what I'm going to do is in Period 18175 12:19:37,800 --> 12:19:39,880 of period I'll create a switch statement 18176 12:19:39,880 --> 12:19:42,640 switch true and in switch true I'm going 18177 12:19:42,640 --> 12:19:45,680 to use is in Scope when we use is in 18178 12:19:45,680 --> 12:19:47,800 scope we have to remember that the one 18179 12:19:47,800 --> 12:19:49,800 which is at the bottom of the Hier so 18180 12:19:49,800 --> 12:19:51,956 let's consider this Matrix in this 18181 12:19:51,956 --> 12:19:54,640 Matrix visual at the bottom of the H is 18182 12:19:54,640 --> 12:19:56,480 month here when we look at the row 18183 12:19:56,480 --> 12:19:59,640 columns followed by quarter and year ear 18184 12:19:59,640 --> 12:20:01,680 is on the top month is on the lowest 18185 12:20:01,680 --> 12:20:04,116 whenever you use is in scope you should 18186 12:20:04,116 --> 12:20:06,276 handle the lowest one first because 18187 12:20:06,276 --> 12:20:09,520 understand ear is always in scope other 18188 12:20:09,520 --> 12:20:12,520 than grand total quarter is in always in 18189 12:20:12,520 --> 12:20:15,520 scope other than the year total month is 18190 12:20:15,520 --> 12:20:18,040 only in scope for month column so here 18191 12:20:18,040 --> 12:20:20,916 year is in scope here as well as here as 18192 12:20:20,916 --> 12:20:23,240 well as here here is only not in scope 18193 12:20:23,240 --> 12:20:24,956 in grand total we can decide what we 18194 12:20:24,956 --> 12:20:26,596 want in grand total when nothing is in 18195 12:20:26,596 --> 12:20:29,956 scope so now we know our Scopes so is in 18196 12:20:29,956 --> 12:20:32,276 scope what should be the first one month 18197 12:20:32,276 --> 12:20:34,200 year and the column which has been taken 18198 12:20:34,200 --> 12:20:35,640 in the visual is really important so 18199 12:20:35,640 --> 12:20:37,480 month has been taken in the visual and 18200 12:20:37,480 --> 12:20:38,800 at that time which formula I'm going to 18201 12:20:38,800 --> 12:20:40,680 use I already copied that formula so 18202 12:20:40,680 --> 12:20:42,596 this formula is going to work now second 18203 12:20:42,596 --> 12:20:44,680 is is in scope which should be second is 18204 12:20:44,680 --> 12:20:45,680 in scope 18205 12:20:45,680 --> 12:20:48,276 quarter so date quarter is in scope what 18206 12:20:48,276 --> 12:20:50,240 formula you need I need almost similar 18207 12:20:50,240 --> 12:20:51,756 formula but I need this for quarter so 18208 12:20:51,756 --> 12:20:53,956 let's start changing offset minus one 18209 12:20:53,956 --> 12:20:55,720 all selected I don't need monthier 18210 12:20:55,720 --> 12:20:57,756 columns quarter and year what should it 18211 12:20:57,756 --> 12:20:59,596 order by it should be order by quarter 18212 12:20:59,596 --> 12:21:01,116 see start giving the error if you're not 18213 12:21:01,116 --> 12:21:03,276 using so minus one is my Delta my 18214 12:21:03,276 --> 12:21:06,080 relationship is all selected quarter 18215 12:21:06,080 --> 12:21:07,880 year and year everything which is 18216 12:21:07,880 --> 12:21:09,800 applicable to this particular row okay 18217 12:21:09,800 --> 12:21:12,116 relation order by water here I don't 18218 12:21:12,116 --> 12:21:13,800 want partition within here I want it to 18219 12:21:13,800 --> 12:21:15,116 go across here and that's why I'm not 18220 12:21:15,116 --> 12:21:16,640 taking Partition by and that's why I'm 18221 12:21:16,640 --> 12:21:18,240 including the complete combination so 18222 12:21:18,240 --> 12:21:20,080 that it can go across so very good you 18223 12:21:20,080 --> 12:21:22,000 can copy this formula now now you can 18224 12:21:22,000 --> 12:21:23,080 take a decision whether you want to 18225 12:21:23,080 --> 12:21:24,560 write down is in scope ear because if 18226 12:21:24,560 --> 12:21:26,160 you write down is in scope ear you have 18227 12:21:26,160 --> 12:21:28,596 a flexibility to write it down the grand 18228 12:21:28,596 --> 12:21:30,640 total also but right now I don't not 18229 12:21:30,640 --> 12:21:32,116 much interested in handling the grand 18230 12:21:32,116 --> 12:21:33,916 total but this is one of the way you can 18231 12:21:33,916 --> 12:21:35,800 handle the grand total okay now think 18232 12:21:35,800 --> 12:21:37,160 about it when we are comparing month on 18233 12:21:37,160 --> 12:21:38,560 month quarter on quarter year and on 18234 12:21:38,560 --> 12:21:39,640 what I'm going to compare on the grand 18235 12:21:39,640 --> 12:21:41,000 to do I really want to compare something 18236 12:21:41,000 --> 12:21:42,360 or not that is the decision you have to 18237 12:21:42,360 --> 12:21:43,640 take based on that you decide and 18238 12:21:43,640 --> 12:21:44,880 there's nothing in the context of the 18239 12:21:44,880 --> 12:21:46,080 grand total there's no year there 18240 12:21:46,080 --> 12:21:47,560 there's no quarter here so what is going 18241 12:21:47,560 --> 12:21:49,080 to trail that is also an important 18242 12:21:49,080 --> 12:21:50,400 question okay so what we saying 18243 12:21:50,400 --> 12:21:52,520 calculate now ear is in the scope or gr 18244 12:21:52,520 --> 12:21:54,200 R is in the so assume the year is in the 18245 12:21:54,200 --> 12:21:55,720 scope so I only need ear I don't need 18246 12:21:55,720 --> 12:21:57,640 quarter I don't need month and what it 18247 12:21:57,640 --> 12:21:59,360 should be order by Year my year is 18248 12:21:59,360 --> 12:22:01,276 number which is sortable so I handled 18249 12:22:01,276 --> 12:22:02,680 all three conditions so what we have 18250 12:22:02,680 --> 12:22:04,400 done is we have used this season scope 18251 12:22:04,400 --> 12:22:06,640 and using this scope we have now created 18252 12:22:06,640 --> 12:22:08,800 a calculations which is going across 18253 12:22:08,800 --> 12:22:10,520 month quarter and year and three 18254 12:22:10,520 --> 12:22:12,160 different level it is handling in three 18255 12:22:12,160 --> 12:22:13,720 different manner now we need to 18256 12:22:13,720 --> 12:22:15,320 understand these calculations so let's 18257 12:22:15,320 --> 12:22:16,720 pull in this measor inside this 18258 12:22:16,720 --> 12:22:18,400 visualization now you can see for the 18259 12:22:18,400 --> 12:22:20,080 first year quarter and month there is no 18260 12:22:20,080 --> 12:22:21,880 value it shouldn't be because I I don't 18261 12:22:21,880 --> 12:22:23,560 have anything before that isn't it month 18262 12:22:23,560 --> 12:22:25,116 we already tested let's look at the 18263 12:22:25,116 --> 12:22:27,840 quarters so this value matches with this 18264 12:22:27,840 --> 12:22:30,560 value of 2018 here quarter matches with 18265 12:22:30,560 --> 12:22:33,320 quarter now when I go to Q2 the value 18266 12:22:33,320 --> 12:22:34,880 matches with previous quarter I to 18267 12:22:34,880 --> 12:22:36,640 scroll down little bit or make this 18268 12:22:36,640 --> 12:22:38,596 visual bigger or what I can do is I can 18269 12:22:38,596 --> 12:22:40,596 move up so month is removed now I can 18270 12:22:40,596 --> 12:22:42,520 compare year also again easily at the 18271 12:22:42,520 --> 12:22:45,080 year values so we're able to now compare 18272 12:22:45,080 --> 12:22:46,956 month on month quarter on quarter year 18273 12:22:46,956 --> 12:22:48,880 on year in the same visual same Matrix 18274 12:22:48,880 --> 12:22:50,520 visual we are able to do is in scope has 18275 12:22:50,520 --> 12:22:52,436 helped us offset has helped so this is 18276 12:22:52,436 --> 12:22:54,240 how powerful offset function is and 18277 12:22:54,240 --> 12:22:55,560 there could be many things which you can 18278 12:22:55,560 --> 12:22:57,640 do with this it makes your travel easy 18279 12:22:57,640 --> 12:22:59,436 across the rows based on categorical 18280 12:22:59,436 --> 12:23:01,720 data or a major so go ahead and try that 18281 12:23:01,720 --> 12:23:05,360 out one of the most interesting function 18282 12:23:05,360 --> 12:23:09,720 in these functions offset window index 18283 12:23:09,720 --> 12:23:12,560 rank and row number is window function 18284 12:23:12,560 --> 12:23:15,160 itself now very similar to SQL Windows 18285 12:23:15,160 --> 12:23:17,240 functions but window function is really 18286 12:23:17,240 --> 12:23:19,436 interesting it allows you to create so 18287 12:23:19,436 --> 12:23:23,436 many things running total rolling totals 18288 12:23:23,436 --> 12:23:28,400 MTD qtd YTD lot of possibilities are 18289 12:23:28,400 --> 12:23:30,720 there all the function offers different 18290 12:23:30,720 --> 12:23:32,916 kind of possibilities but Windows 18291 12:23:32,916 --> 12:23:34,880 function has so many things which you 18292 12:23:34,880 --> 12:23:38,200 can do and it is because it provides you 18293 12:23:38,200 --> 12:23:40,680 those two arguments where basically you 18294 12:23:40,680 --> 12:23:43,596 can decide the position of traveling so 18295 12:23:43,596 --> 12:23:45,680 let's look at this function so let me 18296 12:23:45,680 --> 12:23:48,360 add a new page and in this new page I 18297 12:23:48,360 --> 12:23:51,080 will start with month here this time 18298 12:23:51,080 --> 12:23:54,360 because while we can do traveling on the 18299 12:23:54,360 --> 12:23:56,916 categorical variable other than the time 18300 12:23:56,916 --> 12:23:58,720 not going to make much sense unless we 18301 12:23:58,720 --> 12:24:00,916 have very specific example and time is a 18302 12:24:00,916 --> 12:24:03,116 very good example month year and along 18303 12:24:03,116 --> 12:24:05,436 with that let's have net table visual 18304 12:24:05,436 --> 12:24:07,520 first thing is I want a rolling so how 18305 12:24:07,520 --> 12:24:09,680 do we do rolling we have formulas in the 18306 12:24:09,680 --> 12:24:11,916 past so let me tell you the first of all 18307 12:24:11,916 --> 12:24:14,560 rolling formula without Windows how you 18308 12:24:14,560 --> 12:24:16,480 let me create a new measure so let's say 18309 12:24:16,480 --> 12:24:18,200 I want rolling two and rolling two is 18310 12:24:18,200 --> 12:24:20,080 easy to understand so usually we do 18311 12:24:20,080 --> 12:24:23,320 rolling tool like usually calculate net 18312 12:24:23,320 --> 12:24:25,880 dates in period is something we use in 18313 12:24:25,880 --> 12:24:27,720 dates in Period what we want a date 18314 12:24:27,720 --> 12:24:30,560 column basically the first argument is a 18315 12:24:30,560 --> 12:24:32,880 date column start date number of 18316 12:24:32,880 --> 12:24:35,400 interval and intervals so what we do is 18317 12:24:35,400 --> 12:24:37,400 let's say we give have end dat here so 18318 12:24:37,400 --> 12:24:39,560 we start giving intervals in negative 18319 12:24:39,560 --> 12:24:41,720 and then inter well basically month 18320 12:24:41,720 --> 12:24:43,400 quarter year what you can get this is 18321 12:24:43,400 --> 12:24:45,720 the date in Period so what first thing I 18322 12:24:45,720 --> 12:24:47,640 will use is a date column so date of 18323 12:24:47,640 --> 12:24:50,800 date second is start date so we usually 18324 12:24:50,800 --> 12:24:53,436 use max of date of date means whatever 18325 12:24:53,436 --> 12:24:55,640 is current Max date you take that then 18326 12:24:55,640 --> 12:24:58,640 I'll use minus 2 because I want 2 months 18327 12:24:58,640 --> 12:25:00,800 rolling usually we do 12 months rolling 18328 12:25:00,800 --> 12:25:02,720 but 2 months is easy to understand we 18329 12:25:02,720 --> 12:25:04,956 can easily compare the total so this is 18330 12:25:04,956 --> 12:25:07,840 rolling two okay we got rolling two let 18331 12:25:07,840 --> 12:25:10,000 me bring in Rolling two here now as you 18332 12:25:10,000 --> 12:25:12,276 can understand the first one is same 18333 12:25:12,276 --> 12:25:14,160 because there is no previous month now 18334 12:25:14,160 --> 12:25:16,480 this is total of these two the second 18335 12:25:16,480 --> 12:25:18,956 row November then December is total of 18336 12:25:18,956 --> 12:25:21,276 November and December you and see the 18337 12:25:21,276 --> 12:25:24,360 number which is 18 68 which is very 18338 12:25:24,360 --> 12:25:26,116 similar to some of these and similarly 18339 12:25:26,116 --> 12:25:28,360 you can see because if it's more then it 18340 12:25:28,360 --> 12:25:30,400 would not have survived if it is too 18341 12:25:30,400 --> 12:25:32,240 high then it would not have been 2 18342 12:25:32,240 --> 12:25:34,360 months total it is more than that so now 18343 12:25:34,360 --> 12:25:36,320 we understand that it is only totally 18344 12:25:36,320 --> 12:25:38,560 for 2 months so rolling is there second 18345 12:25:38,560 --> 12:25:40,916 formula which Windows also easily is 18346 12:25:40,916 --> 12:25:42,800 cumulative now today how do we do 18347 12:25:42,800 --> 12:25:44,880 cumulative without using Windows so 18348 12:25:44,880 --> 12:25:46,520 again I'll create a new measure and give 18349 12:25:46,520 --> 12:25:48,596 you an example of cumulative so if I 18350 12:25:48,596 --> 12:25:50,436 have to do a cumulative measure let's 18351 12:25:50,436 --> 12:25:53,800 say cumulative sales how do I do I'll do 18352 12:25:53,800 --> 12:25:57,116 calculate net filter all of date so we 18353 12:25:57,116 --> 12:25:58,436 have to ignore everything which is 18354 12:25:58,436 --> 12:26:00,640 coming on the date and then we say and 18355 12:26:00,640 --> 12:26:02,956 the reason is I I don't want to say that 18356 12:26:02,956 --> 12:26:05,000 if you have taken the filter of the year 18357 12:26:05,000 --> 12:26:06,596 then I'll not give cumulative if you 18358 12:26:06,596 --> 12:26:08,360 taken filter of the date I'll not take 18359 12:26:08,360 --> 12:26:09,640 give you a cumulative or if you have 18360 12:26:09,640 --> 12:26:11,200 taken filter of month I not so that's 18361 12:26:11,200 --> 12:26:12,800 why we are ignoring all the filters on 18362 12:26:12,800 --> 12:26:15,160 the date and then we say date of date 18363 12:26:15,160 --> 12:26:16,916 and this works even for month quarter 18364 12:26:16,916 --> 12:26:18,560 end that's why we start with the basic 18365 12:26:18,560 --> 12:26:20,436 unit of date that I'm doing cumulative 18366 12:26:20,436 --> 12:26:22,520 for each date and then it will roll up 18367 12:26:22,520 --> 12:26:24,916 to month quarter and Year date of date 18368 12:26:24,916 --> 12:26:27,680 is less than equal to Max of date of 18369 12:26:27,680 --> 12:26:30,276 date so in the context whatever Max date 18370 12:26:30,276 --> 12:26:33,276 is available I will take less than equal 18371 12:26:33,276 --> 12:26:35,916 that so max of date of date and then we 18372 12:26:35,916 --> 12:26:38,840 close filter and the calculate we got a 18373 12:26:38,840 --> 12:26:41,040 new mejor which is cumula sales let me 18374 12:26:41,040 --> 12:26:43,276 bring in this let me also bring in this 18375 12:26:43,276 --> 12:26:45,520 inside the now in this one you see the 18376 12:26:45,520 --> 12:26:47,680 total is continuously increasing until 18377 12:26:47,680 --> 12:26:49,680 the end of time it will keep on 18378 12:26:49,680 --> 12:26:51,560 increasing and even if you don't have 18379 12:26:51,560 --> 12:26:53,640 the data because your normal measures 18380 12:26:53,640 --> 12:26:56,200 will stop as soon as you get blank but 18381 12:26:56,200 --> 12:26:57,956 this will not stop because it's still 18382 12:26:57,956 --> 12:26:59,916 getting the data from the past from the 18383 12:26:59,916 --> 12:27:01,200 beginning of the date you want to 18384 12:27:01,200 --> 12:27:02,756 control then you have to give additional 18385 12:27:02,756 --> 12:27:04,756 filter so now we understand that you 18386 12:27:04,756 --> 12:27:07,320 know the basic way of doing these things 18387 12:27:07,320 --> 12:27:09,880 before the windows function now how to 18388 12:27:09,880 --> 12:27:12,596 do this using window function so let me 18389 12:27:12,596 --> 12:27:14,756 duplicate this Visual and remove 18390 12:27:14,756 --> 12:27:16,800 additional stuff now again we'll start 18391 12:27:16,800 --> 12:27:19,596 with rolling again new major Home tab is 18392 12:27:19,596 --> 12:27:21,956 open we can click on new major there and 18393 12:27:21,956 --> 12:27:23,800 the major this time again I'm going to 18394 12:27:23,800 --> 12:27:26,320 create rolling two but this time the 18395 12:27:26,320 --> 12:27:28,400 rolling to would be created from Windows 18396 12:27:28,400 --> 12:27:30,240 function so let's understand this 18397 12:27:30,240 --> 12:27:33,276 function so first calculate net and now 18398 12:27:33,276 --> 12:27:35,040 I'll use the window function in the 18399 12:27:35,040 --> 12:27:36,800 window function let's understand the 18400 12:27:36,800 --> 12:27:40,840 argument from offset type of offset two 18401 12:27:40,840 --> 12:27:43,800 offset type of offset then we have the 18402 12:27:43,800 --> 12:27:47,520 normal one relation order by blanks 18403 12:27:47,520 --> 12:27:51,800 Partition by match by and reset from 18404 12:27:51,800 --> 12:27:54,720 number type absolute or relative whether 18405 12:27:54,720 --> 12:27:57,000 it's absolute or relative What's happen 18406 12:27:57,000 --> 12:28:00,320 in case of rolling rolling is basically 18407 12:28:00,320 --> 12:28:03,800 relative minus one to0 two rows and what 18408 12:28:03,800 --> 12:28:06,276 is cumulative cumulative is partially 18409 12:28:06,276 --> 12:28:08,916 absolute partially relative from the 18410 12:28:08,916 --> 12:28:11,956 absolute Z row to relative zero relative 18411 12:28:11,956 --> 12:28:14,080 zero is current row so what happens in 18412 12:28:14,080 --> 12:28:16,400 this case is the relative position is 18413 12:28:16,400 --> 12:28:18,400 with respect to current row so my 18414 12:28:18,400 --> 12:28:21,160 current row is let's say December then 18415 12:28:21,160 --> 12:28:25,116 November is minus1 and January is + one 18416 12:28:25,116 --> 12:28:27,200 so now let's start creating this 18417 12:28:27,200 --> 12:28:30,916 function so -1 why not Min -2 because 18418 12:28:30,916 --> 12:28:34,200 from -1 to 0 two only we are considering 18419 12:28:34,200 --> 12:28:36,640 which position relative position 18420 12:28:36,640 --> 12:28:39,320 relative to the current one then what is 18421 12:28:39,320 --> 12:28:42,400 the next one I want zero what is this 18422 12:28:42,400 --> 12:28:44,840 zero this is zero is also relative 18423 12:28:44,840 --> 12:28:47,116 relative position the current rows 18424 12:28:47,116 --> 12:28:50,116 relative zero position comma all 18425 12:28:50,116 --> 12:28:53,116 selected or all we use all because even 18426 12:28:53,116 --> 12:28:54,756 if the data is not present I want to 18427 12:28:54,756 --> 12:28:57,480 some all month year so what we'll use in 18428 12:28:57,480 --> 12:29:00,320 inside this one all month year but month 18429 12:29:00,320 --> 12:29:02,916 year cannot sort so we'll use all month 18430 12:29:02,916 --> 12:29:05,720 year sort this is the relation we want 18431 12:29:05,720 --> 12:29:08,520 then what is the next order by order by 18432 12:29:08,520 --> 12:29:10,640 what we can order by only only month 18433 12:29:10,640 --> 12:29:13,040 year sort then that is why in the 18434 12:29:13,040 --> 12:29:16,640 relation we have month year sort do I 18435 12:29:16,640 --> 12:29:18,640 need anything else no I don't need 18436 12:29:18,640 --> 12:29:21,160 anything else rename this one and commit 18437 12:29:21,160 --> 12:29:24,756 it rolling to by window function let me 18438 12:29:24,756 --> 12:29:27,080 drag this inside the visualization you 18439 12:29:27,080 --> 12:29:30,276 can see very similar results here same 18440 12:29:30,276 --> 12:29:33,480 rolling to results so rolling to from 18441 12:29:33,480 --> 12:29:35,640 Windows and rolling to from the 18442 12:29:35,640 --> 12:29:37,480 traditional mathod whenever we can use 18443 12:29:37,480 --> 12:29:39,596 Windows function we prefer the way of 18444 12:29:39,596 --> 12:29:42,000 calc ation is a little bit different so 18445 12:29:42,000 --> 12:29:44,116 it should give us the advantage now we 18446 12:29:44,116 --> 12:29:46,480 want to create cumulative and this 18447 12:29:46,480 --> 12:29:48,520 cumulative measure is going to become 18448 12:29:48,520 --> 12:29:51,080 base of many other measures let's see so 18449 12:29:51,080 --> 12:29:53,080 how do we create cumulative in case of 18450 12:29:53,080 --> 12:29:54,916 window so let's begin a new measure 18451 12:29:54,916 --> 12:29:57,160 first of all measure tool is open and 18452 12:29:57,160 --> 12:29:59,840 under that I have new measure and I will 18453 12:29:59,840 --> 12:30:02,956 now create a measure cative net using 18454 12:30:02,956 --> 12:30:06,916 Windows calculate net window function 18455 12:30:06,916 --> 12:30:09,720 from where I should start from or one 18456 12:30:09,720 --> 12:30:12,116 one absolute till which place I should 18457 12:30:12,116 --> 12:30:16,116 go to zero of relative I want to go zero 18458 12:30:16,116 --> 12:30:18,640 relative position what is my relation 18459 12:30:18,640 --> 12:30:20,916 here I can give all data I want to 18460 12:30:20,916 --> 12:30:23,160 include the complete date table then 18461 12:30:23,160 --> 12:30:25,480 order by order by and because I have 18462 12:30:25,480 --> 12:30:27,276 included the table it should allow me 18463 12:30:27,276 --> 12:30:29,240 the order by date do I need anything 18464 12:30:29,240 --> 12:30:31,400 else I don't think I need anything else 18465 12:30:31,400 --> 12:30:33,480 right now I should be able to get a 18466 12:30:33,480 --> 12:30:37,080 cumulative net using the window function 18467 12:30:37,080 --> 12:30:39,480 let me add this to visualization and as 18468 12:30:39,480 --> 12:30:42,040 you can see see it is also showing the 18469 12:30:42,040 --> 12:30:44,956 cumulative results continuously 18470 12:30:44,956 --> 12:30:47,640 increasing and should give me the same 18471 12:30:47,640 --> 12:30:50,520 total at the end so on the last month 18472 12:30:50,520 --> 12:30:52,800 the total is same as grand total and it 18473 12:30:52,800 --> 12:30:54,640 will continue even if you don't have 18474 12:30:54,640 --> 12:30:57,320 data so similar behavior of cumulative 18475 12:30:57,320 --> 12:30:59,720 net with cumulative sales from the 18476 12:30:59,720 --> 12:31:01,956 traditional method so both traditional 18477 12:31:01,956 --> 12:31:04,560 method and the window method for 18478 12:31:04,560 --> 12:31:06,400 cumulative giving same results now what 18479 12:31:06,400 --> 12:31:08,276 we are going to do interesting thing is 18480 12:31:08,276 --> 12:31:10,320 we'll take this cumulative method keep 18481 12:31:10,320 --> 12:31:12,680 on partitioning it month quarter and 18482 12:31:12,680 --> 12:31:15,756 year and we'll get MTD qtd and YTD very 18483 12:31:15,756 --> 12:31:18,720 simple just set Partition by you get MTD 18484 12:31:18,720 --> 12:31:21,720 qtd YTD how so let me rename and 18485 12:31:21,720 --> 12:31:25,080 duplicate this window one duplicate 18486 12:31:25,080 --> 12:31:28,520 window 2 now let's remove something 18487 12:31:28,520 --> 12:31:30,116 which we don't need I don't think even I 18488 12:31:30,116 --> 12:31:31,880 need the first visual we have learned 18489 12:31:31,880 --> 12:31:34,116 using time intelligence how to do MTD 18490 12:31:34,116 --> 12:31:36,160 qtd andt I'll only going to keep 18491 12:31:36,160 --> 12:31:38,360 cumulative here in the visual and let me 18492 12:31:38,360 --> 12:31:40,680 copy this formula using the major to new 18493 12:31:40,680 --> 12:31:42,840 major let me duplicate 18494 12:31:42,840 --> 12:31:47,080 it net MTD window function remain same 1 18495 12:31:47,080 --> 12:31:50,200 absolute 0o relative All Dates order by 18496 12:31:50,200 --> 12:31:52,756 date but now we will add after the order 18497 12:31:52,756 --> 12:31:55,880 by leave the blanks Partition by what I 18498 12:31:55,880 --> 12:31:58,400 want partition I want to partition it on 18499 12:31:58,400 --> 12:32:02,560 date month here so MTD function is ready 18500 12:32:02,560 --> 12:32:05,640 by just partitioning the cumulative 18501 12:32:05,640 --> 12:32:09,240 Windows code on month does it won't work 18502 12:32:09,240 --> 12:32:11,756 seems like month total isn't it seems 18503 12:32:11,756 --> 12:32:13,436 very similar to month total how do I 18504 12:32:13,436 --> 12:32:15,680 differentiate and to do that actually we 18505 12:32:15,680 --> 12:32:17,436 need to bring in one visual with the 18506 12:32:17,436 --> 12:32:20,360 dates at least for MTD we need dates and 18507 12:32:20,360 --> 12:32:23,160 I'll replace the month here by date so 18508 12:32:23,160 --> 12:32:25,956 in the first visual now you can see that 18509 12:32:25,956 --> 12:32:28,320 the data is getting added up till the 18510 12:32:28,320 --> 12:32:30,596 end of the month and there is a reset 18511 12:32:30,596 --> 12:32:32,400 which is happening at the start of the 18512 12:32:32,400 --> 12:32:34,560 month same way when you and another 18513 12:32:34,560 --> 12:32:36,916 month totaling up till the end of the 18514 12:32:36,916 --> 12:32:39,560 month and reset happening at start of 18515 12:32:39,560 --> 12:32:42,200 theth month MTD behavior let's do for 18516 12:32:42,200 --> 12:32:45,756 qtd copy this formula again new major 18517 12:32:45,756 --> 12:32:48,520 from the Major Tool and just we need to 18518 12:32:48,520 --> 12:32:52,720 change qtd and Partition by what quarter 18519 12:32:52,720 --> 12:32:54,640 it should be quarter here actually and 18520 12:32:54,640 --> 12:32:56,560 my quarter is actually quarter here 18521 12:32:56,560 --> 12:32:59,320 let's add this to visualization and now 18522 12:32:59,320 --> 12:33:02,040 you can see the reset is happening after 18523 12:33:02,040 --> 12:33:04,116 the quarter so the first month value is 18524 12:33:04,116 --> 12:33:06,480 same and if I look at the day level also 18525 12:33:06,480 --> 12:33:08,640 you will see that on the 1st January 18526 12:33:08,640 --> 12:33:11,160 only the reset is happen happening if I 18527 12:33:11,160 --> 12:33:13,596 go to first FA there is no reset for 18528 12:33:13,596 --> 12:33:15,840 quarter now you would have understood 18529 12:33:15,840 --> 12:33:18,916 ear is really simple same formula Major 18530 12:33:18,916 --> 12:33:22,480 Tool is open new major just go ahead and 18531 12:33:22,480 --> 12:33:26,520 change the name and the Partition by add 18532 12:33:26,520 --> 12:33:29,040 this to visualization as you can see 18533 12:33:29,040 --> 12:33:32,040 reset only happen once a year Windows 18534 12:33:32,040 --> 12:33:36,360 function giving us MTD qtd YTD running 18535 12:33:36,360 --> 12:33:38,880 total ruling total there could be there 18536 12:33:38,880 --> 12:33:40,680 could be n number number of such things 18537 12:33:40,680 --> 12:33:42,916 which you can do using Windows functions 18538 12:33:42,916 --> 12:33:45,320 so keep on exploring let's start with 18539 12:33:45,320 --> 12:33:47,240 the index function the index function 18540 12:33:47,240 --> 12:33:50,000 can be used to identify top bottom 18541 12:33:50,000 --> 12:33:52,320 performer top first performer second 18542 12:33:52,320 --> 12:33:54,880 performer by value and name so let's 18543 12:33:54,880 --> 12:33:57,040 begin our journey by bringing in 18544 12:33:57,040 --> 12:33:59,756 category in a visual along with the 18545 12:33:59,756 --> 12:34:02,080 category I would like to bring in net 18546 12:34:02,080 --> 12:34:04,720 inside this 18547 12:34:05,080 --> 12:34:07,916 visualization table 18548 12:34:07,916 --> 12:34:10,560 visual now let me create a majure which 18549 12:34:10,560 --> 12:34:13,520 is going to give me the top category Top 18550 12:34:13,520 --> 12:34:16,916 by what top by the category names or top 18551 12:34:16,916 --> 12:34:20,520 by the net I need it by net isn't it so 18552 12:34:20,520 --> 12:34:23,596 top one cat and I'm going to use the 18553 12:34:23,596 --> 12:34:25,520 function which is known as 18554 12:34:25,520 --> 12:34:29,436 index index which position first thing 18555 12:34:29,436 --> 12:34:30,240 is 18556 12:34:30,240 --> 12:34:36,080 position then relation order by blanks 18557 12:34:36,080 --> 12:34:39,080 Partition by if you need the within 18558 12:34:39,080 --> 12:34:41,200 let's say within brand what is the top 18559 12:34:41,200 --> 12:34:43,800 category or within the year which is the 18560 12:34:43,800 --> 12:34:48,480 top month match by I need the topper one 18561 12:34:48,480 --> 12:34:52,596 what is the relation all item 18562 12:34:52,596 --> 12:34:55,436 category what is next order by order by 18563 12:34:55,436 --> 12:34:58,436 what net but ascending or descending 18564 12:34:58,436 --> 12:35:00,400 topper means 18565 12:35:00,400 --> 12:35:03,116 descending in case of net topper means 18566 12:35:03,116 --> 12:35:05,320 descending I don't need to give next of 18567 12:35:05,320 --> 12:35:08,720 the argument so let me bring this inside 18568 12:35:08,720 --> 12:35:10,916 the visualization 18569 12:35:10,916 --> 12:35:12,680 it's giving me the name of the top 18570 12:35:12,680 --> 12:35:14,400 category and as you can see the top 18571 12:35:14,400 --> 12:35:16,560 category is Category 2 so this would 18572 12:35:16,560 --> 12:35:18,680 remind you of a function top n which can 18573 12:35:18,680 --> 12:35:20,560 also give you the top category but the 18574 12:35:20,560 --> 12:35:22,276 challenge with the top end function is 18575 12:35:22,276 --> 12:35:27,240 if you say top n 2 N is two in top and 18576 12:35:27,240 --> 12:35:28,520 it's going to give you two categories 18577 12:35:28,520 --> 12:35:31,116 not one I want the second topper how do 18578 12:35:31,116 --> 12:35:36,116 I get that very simple here in the index 18579 12:35:38,320 --> 12:35:41,520 function uh to Second category and just 18580 12:35:41,520 --> 12:35:43,880 change index by 18581 12:35:43,880 --> 12:35:47,080 two you got the second topper category 4 18582 12:35:47,080 --> 12:35:50,040 is the second topper you need bottom 18583 12:35:50,040 --> 12:35:55,040 performer use minus one or ascending you 18584 12:35:55,040 --> 12:35:57,560 will get it if you even put this on the 18585 12:35:57,560 --> 12:36:00,400 card visual you will get the 18586 12:36:00,400 --> 12:36:03,640 results now you may be asking why this 18587 12:36:03,640 --> 12:36:06,720 is repeating can we control it and I'll 18588 12:36:06,720 --> 12:36:11,080 tell you how to control it let's use 18589 12:36:11,080 --> 12:36:13,276 calculate max 18590 12:36:13,276 --> 12:36:16,276 of item 18591 12:36:16,276 --> 12:36:18,800 category comma then we will use keep 18592 12:36:18,800 --> 12:36:20,680 filters we don't want it to repeat so we 18593 12:36:20,680 --> 12:36:23,756 use keep filters on the index keep 18594 12:36:23,756 --> 12:36:26,000 filters on the index and the expression 18595 12:36:26,000 --> 12:36:28,080 will keep it as it is so this will work 18596 12:36:28,080 --> 12:36:30,360 as values and 18597 12:36:30,360 --> 12:36:32,956 filter and we will now close the key 18598 12:36:32,956 --> 12:36:36,040 filters and calculate and bring that in 18599 12:36:36,040 --> 12:36:38,276 and as you can see it can now filter the 18600 12:36:38,276 --> 12:36:41,480 visual if require so we can duplicate 18601 12:36:41,480 --> 12:36:44,520 remove the additional 18602 12:36:44,880 --> 12:36:46,956 items and you will see the visual is 18603 12:36:46,956 --> 12:36:49,680 getting filter and the reason I use this 18604 12:36:49,680 --> 12:36:51,200 formula was a little bit different 18605 12:36:51,200 --> 12:36:54,080 because I actually now want the topper 18606 12:36:54,080 --> 12:36:56,680 value what is the value the topper had 18607 12:36:56,680 --> 12:36:59,000 so I'll create another mejor and in this 18608 12:36:59,000 --> 12:37:03,840 mejor I want the net value of 18609 12:37:03,840 --> 12:37:06,800 topper and for that I'm going to replace 18610 12:37:06,800 --> 12:37:09,276 this Max category by net so I want to 18611 12:37:09,276 --> 12:37:11,596 keep the formulas almost similar and 18612 12:37:11,596 --> 12:37:14,480 then index is 18613 12:37:16,040 --> 12:37:18,680 one let's bring this inside the 18614 12:37:18,680 --> 12:37:20,956 visualization this is the topper value 18615 12:37:20,956 --> 12:37:22,436 but if you want to compare with the 18616 12:37:22,436 --> 12:37:25,000 topper value how much percentage you are 18617 12:37:25,000 --> 12:37:26,276 of the 18618 12:37:26,276 --> 12:37:29,480 topper then what you can do is you can 18619 12:37:29,480 --> 12:37:35,360 actually avoid using this keep filters 18620 12:37:41,360 --> 12:37:44,520 if you Avid keep filters then this value 18621 12:37:44,520 --> 12:37:47,360 will repeat for all the categories only 18622 12:37:47,360 --> 12:37:49,436 when you are inside the category View 18623 12:37:49,436 --> 12:37:51,436 and you can compare how much percentage 18624 12:37:51,436 --> 12:37:53,956 you are of category similarly if you 18625 12:37:53,956 --> 12:37:56,240 want to know bottom 18626 12:37:56,240 --> 12:37:58,116 performer very 18627 12:37:58,116 --> 12:38:01,200 easy either use minus one or sort by 18628 12:38:01,200 --> 12:38:03,596 ascending one of the two thing will give 18629 12:38:03,596 --> 12:38:06,800 you bottom performer so instead of top I 18630 12:38:06,800 --> 12:38:09,680 now want bottom performer bottom first 18631 12:38:09,680 --> 12:38:13,240 bottom second bottom third everything is 18632 12:38:13,240 --> 12:38:15,916 possible just go ahead and change the 18633 12:38:15,916 --> 12:38:18,160 number in the index function and you 18634 12:38:18,160 --> 12:38:21,880 will get it so the bottom performer 18635 12:38:21,880 --> 12:38:27,840 is Category 5 with the value of 615 K so 18636 12:38:27,840 --> 12:38:30,240 offset function makes it really easy to 18637 12:38:30,240 --> 12:38:32,596 find it you can use Partition by to find 18638 12:38:32,596 --> 12:38:35,480 is it within inside a partition and this 18639 12:38:35,480 --> 12:38:38,560 function opens New Opportunities while 18640 12:38:38,560 --> 12:38:39,840 you're dealing with this in the 18641 12:38:39,840 --> 12:38:42,360 visualization now let's understand rank 18642 12:38:42,360 --> 12:38:44,200 function you already have a rank X which 18643 12:38:44,200 --> 12:38:46,200 is very similar to this function but 18644 12:38:46,200 --> 12:38:48,400 this function is different in its 18645 12:38:48,400 --> 12:38:51,040 Behavior the way it is used and one of 18646 12:38:51,040 --> 12:38:53,000 the biggest advantage of this function 18647 12:38:53,000 --> 12:38:55,916 is it can be used to give a rank for a 18648 12:38:55,916 --> 12:38:58,956 major by considering a column also and 18649 12:38:58,956 --> 12:39:00,956 I'll give you that by an example so let 18650 12:39:00,956 --> 12:39:02,880 me first of all find out what rank we 18651 12:39:02,880 --> 12:39:04,520 already created so if you remember in 18652 12:39:04,520 --> 12:39:06,880 the past we created rank on the net and 18653 12:39:06,880 --> 12:39:08,800 it was created on brand let me bring 18654 12:39:08,800 --> 12:39:11,116 that ins inside the visualization and 18655 12:39:11,116 --> 12:39:13,200 let me bring in brand also this rank was 18656 12:39:13,200 --> 12:39:15,360 created on net so let's add net into the 18657 12:39:15,360 --> 12:39:17,480 visualiz thought on net so you can 18658 12:39:17,480 --> 12:39:18,840 understand the rank patter so how did I 18659 12:39:18,840 --> 12:39:20,840 get this rank so we use the rank X 18660 12:39:20,840 --> 12:39:22,840 function now we use the another function 18661 12:39:22,840 --> 12:39:25,400 for the rank which is rank function rank 18662 12:39:25,400 --> 12:39:29,000 net one equals to rank ties first thing 18663 12:39:29,000 --> 12:39:31,000 it ask for ties second thing it ask for 18664 12:39:31,000 --> 12:39:33,360 relation which is something which I all 18665 12:39:33,360 --> 12:39:35,840 or all selected item brand order by what 18666 12:39:35,840 --> 12:39:37,840 order by you want to give blanks in case 18667 12:39:37,840 --> 12:39:39,840 you have blanks Partition by in case you 18668 12:39:39,840 --> 12:39:41,596 want to partition the rank within 18669 12:39:41,596 --> 12:39:43,916 something match buy and reset these are 18670 12:39:43,916 --> 12:39:45,720 the standard things which we have in the 18671 12:39:45,720 --> 12:39:48,116 any window type of function it's not 18672 12:39:48,116 --> 12:39:50,560 true SQL window it's type of that what 18673 12:39:50,560 --> 12:39:52,756 is my ties ties is dance Dance means 18674 12:39:52,756 --> 12:39:54,560 even if the rank repeat the next rank 18675 12:39:54,560 --> 12:39:57,040 would be the continuous rank so 112 it's 18676 12:39:57,040 --> 12:39:59,560 not 1 13 I can use all or all selected I 18677 12:39:59,560 --> 12:40:02,240 let me use all selected item brand now 18678 12:40:02,240 --> 12:40:03,680 order by something which has been 18679 12:40:03,680 --> 12:40:05,720 enabled only major so you don't need to 18680 12:40:05,720 --> 12:40:07,436 have it part of the relation I can 18681 12:40:07,436 --> 12:40:10,040 simply give order by net ascending and 18682 12:40:10,040 --> 12:40:14,080 rank X was by default descending rank is 18683 12:40:14,080 --> 12:40:16,680 basically the series of function which 18684 12:40:16,680 --> 12:40:18,320 uses these kind of order by and 18685 12:40:18,320 --> 12:40:20,200 Partition by all of them is by default 18686 12:40:20,200 --> 12:40:22,160 ascending so we have to use order by 18687 12:40:22,160 --> 12:40:24,596 descending because we want the net to be 18688 12:40:24,596 --> 12:40:26,640 sought by descending now this function 18689 12:40:26,640 --> 12:40:29,200 is also better for handling ties the 18690 12:40:29,200 --> 12:40:31,116 reason for that is basically in the 18691 12:40:31,116 --> 12:40:33,596 order by I can simply use item brand now 18692 12:40:33,596 --> 12:40:34,880 if I use the brand name it will 18693 12:40:34,880 --> 12:40:36,480 immediately break the ties if I have the 18694 12:40:36,480 --> 12:40:38,560 same number so breaking tie is really 18695 12:40:38,560 --> 12:40:40,320 easy in this function fun well that was 18696 12:40:40,320 --> 12:40:42,480 little bit complicated in case of rank 18697 12:40:42,480 --> 12:40:45,320 so rank breaks T now I would like to 18698 12:40:45,320 --> 12:40:47,360 take another case I go to my sales table 18699 12:40:47,360 --> 12:40:49,400 first of all I go to my customer I bring 18700 12:40:49,400 --> 12:40:52,160 in customer name t date and net IND 18701 12:40:52,160 --> 12:40:54,000 visualization I first sort it on 18702 12:40:54,000 --> 12:40:56,240 customer and second s with the shift 18703 12:40:56,240 --> 12:40:58,400 button on sales date I want to know the 18704 12:40:58,400 --> 12:41:00,276 first sale of the customer so here what 18705 12:41:00,276 --> 12:41:02,840 I want to do is I want to rank the 18706 12:41:02,840 --> 12:41:04,800 customer sales States I don't want to 18707 12:41:04,800 --> 12:41:06,880 rank them by net I want to rank them by 18708 12:41:06,880 --> 12:41:09,080 sales State can I do it in rank X in the 18709 12:41:09,080 --> 12:41:11,880 r rank expression where we use the major 18710 12:41:11,880 --> 12:41:13,560 you can't use a column if you are 18711 12:41:13,560 --> 12:41:16,320 creating a rank major in a rank column 18712 12:41:16,320 --> 12:41:18,840 you can do that but not in a rank major 18713 12:41:18,840 --> 12:41:21,640 and that's where the rank function comes 18714 12:41:21,640 --> 12:41:24,276 handy unlike rank X where you can use 18715 12:41:24,276 --> 12:41:26,596 only a major in the expression of a 18716 12:41:26,596 --> 12:41:29,276 measure rank functions allows you to use 18717 12:41:29,276 --> 12:41:31,800 a column also how let's try that out new 18718 12:41:31,800 --> 12:41:33,840 measure from the Home tab and I'll 18719 12:41:33,840 --> 12:41:37,276 create rank customer date rank what I 18720 12:41:37,276 --> 12:41:39,800 need ties then something is repeat 18721 12:41:39,800 --> 12:41:41,800 use dance relation is really important 18722 12:41:41,800 --> 12:41:43,200 here and I'm going to create this 18723 12:41:43,200 --> 12:41:45,800 relation using summarize all selected 18724 12:41:45,800 --> 12:41:48,320 sales because the things are coming from 18725 12:41:48,320 --> 12:41:51,400 two different table customer which is a 18726 12:41:51,400 --> 12:41:53,480 dimension to the sales and the sales 18727 12:41:53,480 --> 12:41:55,400 date which is coming from the sales that 18728 12:41:55,400 --> 12:41:57,916 is why I need and I need definitely the 18729 12:41:57,916 --> 12:42:00,240 all selected or the all data and that's 18730 12:42:00,240 --> 12:42:02,040 that is why I'm using all selected on 18731 12:42:02,040 --> 12:42:03,720 the sales inside the sumarize from 18732 12:42:03,720 --> 12:42:05,520 customer what I need I need name what 18733 12:42:05,520 --> 12:42:07,436 else I need from the sales from the 18734 12:42:07,436 --> 12:42:10,200 sales I need the sales date 18735 12:42:10,200 --> 12:42:12,240 now comes the order bu in the order by 18736 12:42:12,240 --> 12:42:15,360 what I need I need order byy of sales 18737 12:42:15,360 --> 12:42:17,720 date ascending I need ascending rank 18738 12:42:17,720 --> 12:42:19,680 blanks I can leave empty I need 18739 12:42:19,680 --> 12:42:22,080 Partition by customer which is customer 18740 12:42:22,080 --> 12:42:25,200 name Partition by customer name I don't 18741 12:42:25,200 --> 12:42:27,560 need match by and reset I can leave it 18742 12:42:27,560 --> 12:42:29,800 and let me bring in now this measure let 18743 12:42:29,800 --> 12:42:31,560 me bring this inside the visualization 18744 12:42:31,560 --> 12:42:33,840 now as you can see as you can see we 18745 12:42:33,840 --> 12:42:36,720 have a rank of part the Sal State inside 18746 12:42:36,720 --> 12:42:39,520 each customer 18747 12:42:39,520 --> 12:42:41,400 this is something which is not possible 18748 12:42:41,400 --> 12:42:43,840 using rank X function also you can 18749 12:42:43,840 --> 12:42:45,916 easily break ties here by including 18750 12:42:45,916 --> 12:42:48,680 additional parameter to order by let's 18751 12:42:48,680 --> 12:42:50,916 start with the function row number now 18752 12:42:50,916 --> 12:42:53,916 row number function can provide you the 18753 12:42:53,916 --> 12:42:55,956 continuous sequence of the number or a 18754 12:42:55,956 --> 12:42:58,436 visualiz now for quite a some time some 18755 12:42:58,436 --> 12:43:00,276 of you are asking let's say I'm creating 18756 12:43:00,276 --> 12:43:02,436 a table Visual and in that visual I 18757 12:43:02,436 --> 12:43:04,200 would like to give you know sequence 18758 12:43:04,200 --> 12:43:06,080 number how do I give that sequence so 18759 12:43:06,080 --> 12:43:07,840 this function is going to enable that 18760 12:43:07,840 --> 12:43:09,680 I'm going to take a little bit different 18761 12:43:09,680 --> 12:43:11,800 example and measure so what I'm going to 18762 12:43:11,800 --> 12:43:14,756 do here is basically I will bring item 18763 12:43:14,756 --> 12:43:17,080 name from the item table and I would 18764 12:43:17,080 --> 12:43:19,360 like to bring from the sales table the 18765 12:43:19,360 --> 12:43:22,240 sales State Sal State and now I would 18766 12:43:22,240 --> 12:43:24,480 like to bring one major NE now here I 18767 12:43:24,480 --> 12:43:27,040 want to create a row number what would 18768 12:43:27,040 --> 12:43:29,276 be row number based on row number can be 18769 12:43:29,276 --> 12:43:31,400 based on any of my condition let's say I 18770 12:43:31,400 --> 12:43:33,916 say first item and then order by sa 18771 12:43:33,916 --> 12:43:36,520 State and then if really I can consider 18772 12:43:36,520 --> 12:43:39,200 the net or it could be based on net of 18773 12:43:39,200 --> 12:43:41,800 item and Sal state so we can decide the 18774 12:43:41,800 --> 12:43:43,956 criteria the way we wanted to do it and 18775 12:43:43,956 --> 12:43:45,400 based on that we can create so let's 18776 12:43:45,400 --> 12:43:48,080 start a measure so I'll call this as row 18777 12:43:48,080 --> 12:43:51,436 num and use the function row number now 18778 12:43:51,436 --> 12:43:53,240 let's look at the syntax of row number 18779 12:43:53,240 --> 12:43:55,276 first of all it is asking for a relation 18780 12:43:55,276 --> 12:43:57,880 then for order by lengths Partition by 18781 12:43:57,880 --> 12:43:59,880 match and reset so relation means it 18782 12:43:59,880 --> 12:44:01,596 should include the columns which are 18783 12:44:01,596 --> 12:44:03,320 there in the visualization which want to 18784 12:44:03,320 --> 12:44:05,400 consider order byy how do we order that 18785 12:44:05,400 --> 12:44:08,116 byy and blanks so now let's start with 18786 12:44:08,116 --> 12:44:10,840 so I'll use all selected because I want 18787 12:44:10,840 --> 12:44:12,640 the item and sales date whatever is 18788 12:44:12,640 --> 12:44:14,320 available in the visualization to use it 18789 12:44:14,320 --> 12:44:16,080 but the challenge is item and sales date 18790 12:44:16,080 --> 12:44:17,916 are not from the sales table so for that 18791 12:44:17,916 --> 12:44:19,560 I need to change this code little bit I 18792 12:44:19,560 --> 12:44:21,360 need to use summarize function first 18793 12:44:21,360 --> 12:44:23,800 summarize all selected sales I whenever 18794 12:44:23,800 --> 12:44:26,160 we take the central table in the star 18795 12:44:26,160 --> 12:44:28,160 schema we should be able to use the 18796 12:44:28,160 --> 12:44:31,276 related Dimension item name comma is 18797 12:44:31,276 --> 12:44:33,680 date this is what I need order by what 18798 12:44:33,680 --> 12:44:35,956 so I'll use order by let's use that 18799 12:44:35,956 --> 12:44:37,400 Partition by I don't need any kind of 18800 12:44:37,400 --> 12:44:39,000 partition I want the continuous R number 18801 12:44:39,000 --> 12:44:41,480 so let me add the r now you seeing the 18802 12:44:41,480 --> 12:44:43,640 numbers definitely not making sense to 18803 12:44:43,640 --> 12:44:46,160 us okay so let's sort on the net so when 18804 12:44:46,160 --> 12:44:48,160 I done the sort ascending and because 18805 12:44:48,160 --> 12:44:50,596 the sort is by default ascending you can 18806 12:44:50,596 --> 12:44:52,680 see you are getting the r number now 18807 12:44:52,680 --> 12:44:55,200 here we did not talk about TI Breakers 18808 12:44:55,200 --> 12:44:58,320 it did not say order by net then item 18809 12:44:58,320 --> 12:45:00,956 then sales dat no it's automatically 18810 12:45:00,956 --> 12:45:03,720 broken those ties let me do instead of 18811 12:45:03,720 --> 12:45:06,276 order by net can I use item item name we 18812 12:45:06,276 --> 12:45:08,360 do that let me sort on the item then 18813 12:45:08,360 --> 12:45:10,560 higher automatically breaken taken care 18814 12:45:10,560 --> 12:45:12,680 it's acting as a WR number now let's 18815 12:45:12,680 --> 12:45:14,640 take a case what happens if we forget 18816 12:45:14,640 --> 12:45:16,360 something is there in the visualization 18817 12:45:16,360 --> 12:45:18,520 let me bring in the ID inside the 18818 12:45:18,520 --> 12:45:20,116 visualization you start seeing a 18819 12:45:20,116 --> 12:45:22,080 repetition isn't it why are you seeing 18820 12:45:22,080 --> 12:45:24,276 the repetition now the reason for that 18821 12:45:24,276 --> 12:45:27,116 is that the city ID is not considered 18822 12:45:27,116 --> 12:45:29,480 inside the relation so let's add the 18823 12:45:29,480 --> 12:45:32,400 city ID also here Sal City ID whichever 18824 12:45:32,400 --> 12:45:34,756 City ID you taken geography Sayes and 18825 12:45:34,756 --> 12:45:36,840 immediately you see the row numbers are 18826 12:45:36,840 --> 12:45:38,916 correct again and if you forgot some 18827 12:45:38,916 --> 12:45:41,756 something it may not give the correct 18828 12:45:41,756 --> 12:45:44,116 answer so whatever is participating in 18829 12:45:44,116 --> 12:45:46,200 the table basically those which are 18830 12:45:46,200 --> 12:45:48,400 getting grouped you need to use that now 18831 12:45:48,400 --> 12:45:50,480 if you want this row number to reset 18832 12:45:50,480 --> 12:45:52,320 let's say after partition let's say you 18833 12:45:52,320 --> 12:45:54,520 want this row number to reset after 18834 12:45:54,520 --> 12:45:56,640 every name then we can use Partition by 18835 12:45:56,640 --> 12:45:58,596 name and let me remove the city because 18836 12:45:58,596 --> 12:46:00,640 otherwise there are too many items on 18837 12:46:00,640 --> 12:46:03,320 that and remove this city from the row 18838 12:46:03,320 --> 12:46:05,756 number relation also order by and now 18839 12:46:05,756 --> 12:46:08,596 let me use Partition by and it is item 18840 12:46:08,596 --> 12:46:11,640 name name I Chang my formula now we need 18841 12:46:11,640 --> 12:46:13,596 quickly scroll down the best way could 18842 12:46:13,596 --> 12:46:16,160 have been we should have used Matrix and 18843 12:46:16,160 --> 12:46:18,320 now you can see item 10 and item 10 you 18844 12:46:18,320 --> 12:46:20,680 can see a reset happening in the rank 18845 12:46:20,680 --> 12:46:22,436 because it's partition inside the item 18846 12:46:22,436 --> 12:46:24,640 so row number is allowing you now it can 18847 12:46:24,640 --> 12:46:26,560 give you continuous row numbers it can 18848 12:46:26,560 --> 12:46:28,480 give you within a partition just give 18849 12:46:28,480 --> 12:46:30,720 the combination and you will get it it's 18850 12:46:30,720 --> 12:46:32,596 automatically breaks the ties you don't 18851 12:46:32,596 --> 12:46:34,720 have to explicitly do it but yes if you 18852 12:46:34,720 --> 12:46:37,000 want to do use order by to break in a 18853 12:46:37,000 --> 12:46:39,200 particular order so another function set 18854 12:46:39,200 --> 12:46:41,756 of five functions as of now which is 18855 12:46:41,756 --> 12:46:45,160 offset Windows index Rank and row number 18856 12:46:45,160 --> 12:46:47,720 which uses these order by Partition by 18857 12:46:47,720 --> 12:46:50,800 very similar to Windows function of SQL 18858 12:46:50,800 --> 12:46:53,000 not same that has a different objective 18859 12:46:53,000 --> 12:46:55,080 it has different objective execution 18860 12:46:55,080 --> 12:46:56,916 wise they are also a little bit 18861 12:46:56,916 --> 12:46:58,956 different but they provide you whole lot 18862 12:46:58,956 --> 12:47:01,756 of flexibility to create the Maes which 18863 12:47:01,756 --> 12:47:03,956 are really difficult to create otherwise 18864 12:47:03,956 --> 12:47:06,080 let me rename 18865 12:47:06,080 --> 12:47:09,560 this before I could have completed the 18866 12:47:09,560 --> 12:47:12,480 editing of my complete code February 18867 12:47:12,480 --> 12:47:15,596 2024 release has arrived and in February 18868 12:47:15,596 --> 12:47:19,040 2024 we have got visual calculations so 18869 12:47:19,040 --> 12:47:21,840 we are going to have a deep dive into 18870 12:47:21,840 --> 12:47:24,800 the visual calculations and going to 18871 12:47:24,800 --> 12:47:27,520 look at the various functions available 18872 12:47:27,520 --> 12:47:29,956 in the visual calculations these are the 18873 12:47:29,956 --> 12:47:32,360 Dex function which we can use at the 18874 12:47:32,360 --> 12:47:34,520 visual level to understand this we have 18875 12:47:34,520 --> 12:47:37,080 to also look at the release notes of 18876 12:47:37,080 --> 12:47:40,756 visual calculations of February 2024 so 18877 12:47:40,756 --> 12:47:43,080 unlike other functions we have not taken 18878 12:47:43,080 --> 12:47:45,560 you to the release node specifically for 18879 12:47:45,560 --> 12:47:47,916 the visual calculation functions I'm 18880 12:47:47,916 --> 12:47:49,720 going to take you through the 18881 12:47:49,720 --> 12:47:53,276 documentation I am on the February 18882 12:47:53,276 --> 12:47:56,880 2024 release notes feature summary and 18883 12:47:56,880 --> 12:47:59,200 if you scroll little bit down you will 18884 12:47:59,200 --> 12:48:01,720 see all the features and one of the 18885 12:48:01,720 --> 12:48:04,320 features which has been released in 18886 12:48:04,320 --> 12:48:08,840 February 2024 is visual calculations let 18887 12:48:08,840 --> 12:48:11,080 we click on that and go to the feature 18888 12:48:11,080 --> 12:48:13,800 so let's read the release notes a new 18889 12:48:13,800 --> 12:48:16,436 way of doing calculations has arrived 18890 12:48:16,436 --> 12:48:19,160 you can now add the calculation directly 18891 12:48:19,160 --> 12:48:22,480 on your visual using visual calculation 18892 12:48:22,480 --> 12:48:24,880 which are Tex calculations remember 18893 12:48:24,880 --> 12:48:27,800 these are T calculation that are defined 18894 12:48:27,800 --> 12:48:30,640 and executed directly on visual a 18895 12:48:30,640 --> 12:48:33,596 calculation can refer to any data in the 18896 12:48:33,596 --> 12:48:36,800 visual including columns measures or 18897 12:48:36,800 --> 12:48:39,240 other visual calculations means you can 18898 12:48:39,240 --> 12:48:41,640 refer the other visual calculation also 18899 12:48:41,640 --> 12:48:44,680 this approach removes complexity of the 18900 12:48:44,680 --> 12:48:47,400 semantic model and simplify the process 18901 12:48:47,400 --> 12:48:50,520 of writing Dax you can use visual 18902 12:48:50,520 --> 12:48:53,880 calculation to complete common business 18903 12:48:53,880 --> 12:48:56,480 calculations such as running sum moving 18904 12:48:56,480 --> 12:48:59,956 average Etc visual calculations make it 18905 12:48:59,956 --> 12:49:02,800 easy to do calculation where previous 18906 12:49:02,800 --> 12:49:05,956 the very hard or almost impossible to do 18907 12:49:05,956 --> 12:49:08,040 so very interesting feature how do you 18908 12:49:08,040 --> 12:49:10,320 enable it you have to go to options and 18909 12:49:10,320 --> 12:49:13,000 setting options preview feature select 18910 12:49:13,000 --> 12:49:15,400 visual calculation and click on okay I'm 18911 12:49:15,400 --> 12:49:17,800 going to Showcase you that and then 18912 12:49:17,800 --> 12:49:19,520 there are certain examples have been 18913 12:49:19,520 --> 12:49:22,560 given there has been a separate blog on 18914 12:49:22,560 --> 12:49:25,320 the visual level calculations also on 18915 12:49:25,320 --> 12:49:28,956 the blog. powerbi.com and it has been 18916 12:49:28,956 --> 12:49:32,200 explained in detail along with all the 18917 12:49:32,200 --> 12:49:35,080 visual level functions the documentation 18918 12:49:35,080 --> 12:49:37,756 of the visual level function is also 18919 12:49:37,756 --> 12:49:40,916 available and it has provided great 18920 12:49:40,916 --> 12:49:44,160 details so let's read few part of this 18921 12:49:44,160 --> 12:49:46,680 documentation to understand the visual 18922 12:49:46,680 --> 12:49:49,000 level calculations better visual 18923 12:49:49,000 --> 12:49:51,800 calculations is the tax calculation that 18924 12:49:51,800 --> 12:49:54,276 defines and executed directly on your 18925 12:49:54,276 --> 12:49:57,436 visual visual calculation make it easier 18926 12:49:57,436 --> 12:49:59,436 to create calculation that are 18927 12:49:59,436 --> 12:50:01,720 previously hard to create leading to 18928 12:50:01,720 --> 12:50:04,640 simpler Dex and easier maintenance for 18929 12:50:04,640 --> 12:50:07,276 better performance example of running 18930 12:50:07,276 --> 12:50:09,276 sum has been given you need to Simply 18931 12:50:09,276 --> 12:50:11,480 use running some sales 18932 12:50:11,480 --> 12:50:15,040 amount visual calculation differ from 18933 12:50:15,040 --> 12:50:18,000 other calculation index how visual 18934 12:50:18,000 --> 12:50:20,360 calculation aren stored in the model 18935 12:50:20,360 --> 12:50:23,560 instead are stored on the visual which 18936 12:50:23,560 --> 12:50:26,400 means visual calculation can only refer 18937 12:50:26,400 --> 12:50:28,880 to what's on the visual anything in the 18938 12:50:28,880 --> 12:50:31,880 model must be added to the visual before 18939 12:50:31,880 --> 12:50:34,640 visual calculation can refer it being 18940 12:50:34,640 --> 12:50:37,400 visual calculation from being concerned 18941 12:50:37,400 --> 12:50:40,200 with the complexity of filter context 18942 12:50:40,200 --> 12:50:43,080 and model visual calculation combines 18943 12:50:43,080 --> 12:50:45,596 the Simplicity of the context from the 18944 12:50:45,596 --> 12:50:49,480 calculated columns with the on demand 18945 12:50:49,480 --> 12:50:51,880 calculation flexibility from 18946 12:50:51,880 --> 12:50:54,320 measure compare to measure visual 18947 12:50:54,320 --> 12:50:56,840 calculation can operate on aggregated 18948 12:50:56,840 --> 12:51:00,240 data instead of detailed level often 18949 12:51:00,240 --> 12:51:02,596 leading to the performance benefit when 18950 12:51:02,596 --> 12:51:04,916 the calculation can be achieved either 18951 12:51:04,916 --> 12:51:07,880 by new measure or visual calculation 18952 12:51:07,880 --> 12:51:10,916 later often leads to better performance 18953 12:51:10,916 --> 12:51:13,720 it means in case you have an option to 18954 12:51:13,720 --> 12:51:15,880 create a major versus a visual 18955 12:51:15,880 --> 12:51:18,080 calculation you can opt for visual 18956 12:51:18,080 --> 12:51:20,240 calculation for better performance 18957 12:51:20,240 --> 12:51:22,000 because it is going to work on the 18958 12:51:22,000 --> 12:51:25,276 aggregated data at the visual level not 18959 12:51:25,276 --> 12:51:27,956 at the detailed data since visual 18960 12:51:27,956 --> 12:51:30,360 calculations are part of the visual they 18961 12:51:30,360 --> 12:51:33,080 can refer to the visual structure which 18962 12:51:33,080 --> 12:51:35,800 leads to more flexibility there is one 18963 12:51:35,800 --> 12:51:37,880 more article which you can refer to 18964 12:51:37,880 --> 12:51:39,640 which tells the difference between 18965 12:51:39,640 --> 12:51:42,276 custom column power query calculated 18966 12:51:42,276 --> 12:51:45,000 column measure calculated table and 18967 12:51:45,000 --> 12:51:47,560 visual calculations again how to enable 18968 12:51:47,560 --> 12:51:50,080 visual level calculation and some 18969 12:51:50,080 --> 12:51:52,596 examples has been given the first simple 18970 12:51:52,596 --> 12:51:55,956 example was Sal amount minus total 18971 12:51:55,956 --> 12:51:58,240 product cost then there are few things 18972 12:51:58,240 --> 12:52:00,160 which has been explained here like you 18973 12:52:00,160 --> 12:52:02,756 can hide the fields from the visual 18974 12:52:02,756 --> 12:52:05,160 these options have been given now to you 18975 12:52:05,160 --> 12:52:07,040 when you open the visual level 18976 12:52:07,040 --> 12:52:09,480 calculation at that time you can hide 18977 12:52:09,480 --> 12:52:12,596 Fields so let's read that out in visual 18978 12:52:12,596 --> 12:52:15,040 calculation edit mode you can hide 18979 12:52:15,040 --> 12:52:18,240 fields from the visual like you can hide 18980 12:52:18,240 --> 12:52:21,160 column and table in modeling view for 18981 12:52:21,160 --> 12:52:23,480 example if you wanted to show The Profit 18982 12:52:23,480 --> 12:52:26,040 visual calculation you can hide sales 18983 12:52:26,040 --> 12:52:28,560 amount and total profit cost from The 18984 12:52:28,560 --> 12:52:31,116 View then there are using templates so 18985 12:52:31,116 --> 12:52:33,000 there are already existing template 18986 12:52:33,000 --> 12:52:35,276 which you can use which is running sum 18987 12:52:35,276 --> 12:52:38,116 moving average percent of total percent 18988 12:52:38,116 --> 12:52:41,840 of R total averages of CHS versus 18989 12:52:41,840 --> 12:52:44,596 previous versus next versus first versus 18990 12:52:44,596 --> 12:52:46,800 last what are these functions running 18991 12:52:46,800 --> 12:52:49,520 sum moving average running sum you might 18992 12:52:49,520 --> 12:52:51,360 have understood it is going to give you 18993 12:52:51,360 --> 12:52:54,080 running totals or what you call as 18994 12:52:54,080 --> 12:52:56,840 cumulative moving average calculates the 18995 12:52:56,840 --> 12:53:00,160 average of the set of given values in a 18996 12:53:00,160 --> 12:53:02,720 given window by dividing the sum of 18997 12:53:02,720 --> 12:53:04,840 values by the size of the window 18998 12:53:04,840 --> 12:53:07,000 percentage of parents calculates the 18999 12:53:07,000 --> 12:53:09,640 percentage of value related to its 19000 12:53:09,640 --> 12:53:12,800 parent uses collapse function percentage 19001 12:53:12,800 --> 12:53:14,720 of grand total now become very easy 19002 12:53:14,720 --> 12:53:17,160 calculate the percentage of value 19003 12:53:17,160 --> 12:53:19,720 relative to its value using the collap 19004 12:53:19,720 --> 12:53:22,436 Sol function averages of children you 19005 12:53:22,436 --> 12:53:25,200 can use expand calculates the average 19006 12:53:25,200 --> 12:53:28,480 value of set of values uses expand 19007 12:53:28,480 --> 12:53:30,800 versus previous using previous means the 19008 12:53:30,800 --> 12:53:34,200 preceding value next subsequent value is 19009 12:53:34,200 --> 12:53:36,956 next first Value First value in the 19010 12:53:36,956 --> 12:53:40,436 window or visual last value last value 19011 12:53:40,436 --> 12:53:43,040 now there is something known as AIS many 19012 12:53:43,040 --> 12:53:45,520 function have optional AIS parameter 19013 12:53:45,520 --> 12:53:47,956 which can only be used in visual 19014 12:53:47,956 --> 12:53:50,756 calculation X's influence how visual 19015 12:53:50,756 --> 12:53:53,800 calculation traversing in the visual 19016 12:53:53,800 --> 12:53:56,800 Matrix AIS parameter set to the first 19017 12:53:56,800 --> 12:53:59,000 axis in the visual by default it's by 19018 12:53:59,000 --> 12:54:01,560 default set to the first axis for many 19019 12:54:01,560 --> 12:54:05,320 visual first axis is the row which means 19020 12:54:05,320 --> 12:54:07,840 the visual calculations is evaluated row 19021 12:54:07,840 --> 12:54:10,956 by row in the visual Matrix from top to 19022 12:54:10,956 --> 12:54:13,720 bottom what are the different axes row 19023 12:54:13,720 --> 12:54:16,400 calculates vertically across rows to 19024 12:54:16,400 --> 12:54:19,520 perform top to bottom column calculate 19025 12:54:19,520 --> 12:54:22,640 horizontally across column from right to 19026 12:54:22,640 --> 12:54:25,520 left rows column calculate vertically 19027 12:54:25,520 --> 12:54:28,520 across Row from top to bottom continuing 19028 12:54:28,520 --> 12:54:31,640 column by left to right and column row 19029 12:54:31,640 --> 12:54:34,080 means calculate horizontally across 19030 12:54:34,080 --> 12:54:36,360 columns from left to right continuing 19031 12:54:36,360 --> 12:54:39,240 row by Row from top to bottom then many 19032 12:54:39,240 --> 12:54:41,480 functions will contain reset many 19033 12:54:41,480 --> 12:54:43,720 function have optional reset parameter 19034 12:54:43,720 --> 12:54:45,640 which is available individual 19035 12:54:45,640 --> 12:54:49,240 calculations only reset influence if and 19036 12:54:49,240 --> 12:54:51,640 when the function reset its value to 19037 12:54:51,640 --> 12:54:54,000 zero or switches to the different scope 19038 12:54:54,000 --> 12:54:56,720 while traversing the visual Matrix the 19039 12:54:56,720 --> 12:54:58,840 reset parameter is set to none by 19040 12:54:58,840 --> 12:55:00,400 default which means the visual 19041 12:55:00,400 --> 12:55:04,360 calculation is never restarted reset 19042 12:55:04,360 --> 12:55:07,436 accepts there to be multiple levels on 19043 12:55:07,436 --> 12:55:09,240 the access so there to be multiple level 19044 12:55:09,240 --> 12:55:11,080 on the access access means your bar 19045 12:55:11,080 --> 12:55:13,480 visual can have like access like brand 19046 12:55:13,480 --> 12:55:15,916 or category so that is what we means by 19047 12:55:15,916 --> 12:55:18,240 access similarly when you are using year 19048 12:55:18,240 --> 12:55:20,040 month and quarter they are your X's 19049 12:55:20,040 --> 12:55:21,436 you're displaying a visual there you 19050 12:55:21,436 --> 12:55:23,040 have year then you have quarter then you 19051 12:55:23,040 --> 12:55:24,480 have month then you have days so these 19052 12:55:24,480 --> 12:55:26,520 are your X's something on which we are 19053 12:55:26,520 --> 12:55:28,320 grouping the data the categorical 19054 12:55:28,320 --> 12:55:31,040 variable used in the visualization if 19055 12:55:31,040 --> 12:55:34,200 there is only one level on the axis you 19056 12:55:34,200 --> 12:55:36,880 can use Partition by the following list 19057 12:55:36,880 --> 12:55:39,276 describe only valid values of reset 19058 12:55:39,276 --> 12:55:41,916 parameter none highest parent lowest 19059 12:55:41,916 --> 12:55:44,400 parent highest parent and lowest parent 19060 12:55:44,400 --> 12:55:46,480 means the parent which is at highest 19061 12:55:46,480 --> 12:55:48,276 example has been given like if you have 19062 12:55:48,276 --> 12:55:50,520 year month and quarter highest parent is 19063 12:55:50,520 --> 12:55:52,800 year and the lowest parent is quarter it 19064 12:55:52,800 --> 12:55:56,400 means the the lowest most X's value is 19065 12:55:56,400 --> 12:55:58,360 not participating as a parent it can 19066 12:55:58,360 --> 12:56:00,400 also be used like values like one and 19067 12:56:00,400 --> 12:56:02,116 two so in this case because there are 19068 12:56:02,116 --> 12:56:05,276 only two so highest is one and lowest is 19069 12:56:05,276 --> 12:56:07,640 two so if you want to restart like when 19070 12:56:07,640 --> 12:56:09,000 we are doing run running sum now you 19071 12:56:09,000 --> 12:56:10,916 want to transfer this running sum to 19072 12:56:10,916 --> 12:56:14,116 let's say YTD so you can use running sum 19073 12:56:14,116 --> 12:56:16,240 highest parent so it will reset at the 19074 12:56:16,240 --> 12:56:19,116 ear level and you will get YTD AIS and 19075 12:56:19,116 --> 12:56:21,320 reset versus order by and Partition by 19076 12:56:21,320 --> 12:56:24,200 AIS reset order by and Partition by are 19077 12:56:24,200 --> 12:56:26,520 four functions that can be used in pair 19078 12:56:26,520 --> 12:56:28,160 together to influence how the 19079 12:56:28,160 --> 12:56:30,596 calculation is evaluated they form two 19080 12:56:30,596 --> 12:56:32,800 pairs that are often used together so 19081 12:56:32,800 --> 12:56:34,840 AIS and reset on order by and Partition 19082 12:56:34,840 --> 12:56:36,880 by so with AIS you can use reset and 19083 12:56:36,880 --> 12:56:39,040 order by you can use partition by by and 19084 12:56:39,040 --> 12:56:40,720 Partition by are the calculation you 19085 12:56:40,720 --> 12:56:43,040 might have seen in the window function 19086 12:56:43,040 --> 12:56:46,160 offset function index function rank 19087 12:56:46,160 --> 12:56:48,956 function and row number function then 19088 12:56:48,956 --> 12:56:51,240 this has been explained how to use this 19089 12:56:51,240 --> 12:56:53,720 access and reset are only available 19090 12:56:53,720 --> 12:56:56,116 function that can be used in visual 19091 12:56:56,116 --> 12:56:59,520 level calculation and can only be used 19092 12:56:59,520 --> 12:57:01,756 in visual level calculation as the 19093 12:57:01,756 --> 12:57:04,240 reference to the visual structure order 19094 12:57:04,240 --> 12:57:06,596 by and Partition by are the function 19095 12:57:06,596 --> 12:57:09,160 that can be used in calculated column 19096 12:57:09,160 --> 12:57:11,840 and measor and visual level calculation 19097 12:57:11,840 --> 12:57:14,640 and can refer to the fields while they 19098 12:57:14,640 --> 12:57:17,160 perform the same function they are 19099 12:57:17,160 --> 12:57:20,480 different in the level of abstraction 19100 12:57:20,480 --> 12:57:22,520 provided refering to the visual 19101 12:57:22,520 --> 12:57:26,000 structure more flexible than explicit 19102 12:57:26,000 --> 12:57:28,480 referencing Fields using order by and 19103 12:57:28,480 --> 12:57:30,800 Partition by see in case of exis and 19104 12:57:30,800 --> 12:57:33,840 reset you may not be really explicit and 19105 12:57:33,840 --> 12:57:35,680 we will take this example when we do 19106 12:57:35,680 --> 12:57:39,200 running sum that even if I change access 19107 12:57:39,200 --> 12:57:41,276 it can still do the running sum so let's 19108 12:57:41,276 --> 12:57:43,080 say if I'm having a visual at the 19109 12:57:43,080 --> 12:57:45,840 category and if I change it to Brand the 19110 12:57:45,840 --> 12:57:48,040 running sum will continue to do the 19111 12:57:48,040 --> 12:57:49,720 calculation and that's the benefit of 19112 12:57:49,720 --> 12:57:51,840 visual level calculation so let's say I 19113 12:57:51,840 --> 12:57:54,596 have year month quarter and day and I 19114 12:57:54,596 --> 12:57:56,640 use previous function so my expectation 19115 12:57:56,640 --> 12:57:58,200 is that when I'm looking at the day 19116 12:57:58,200 --> 12:57:59,800 level it should show me previous day 19117 12:57:59,800 --> 12:58:01,200 when I look at the month level it should 19118 12:58:01,200 --> 12:58:02,720 show me previous month when I look at 19119 12:58:02,720 --> 12:58:04,116 the quarter level it should show me 19120 12:58:04,116 --> 12:58:05,596 previous quarter and when I look at the 19121 12:58:05,596 --> 12:58:07,080 year level it should show me previous 19122 12:58:07,080 --> 12:58:09,240 year we have to check that at the visual 19123 12:58:09,240 --> 12:58:11,756 level calculation but if you use the 19124 12:58:11,756 --> 12:58:14,400 order by then order by is very explicit 19125 12:58:14,400 --> 12:58:16,916 it is Day means it is J even if you 19126 12:58:16,916 --> 12:58:19,276 change your visual details it is still 19127 12:58:19,276 --> 12:58:21,880 order by day so order by is going to 19128 12:58:21,880 --> 12:58:24,956 call explicit when you need explicit you 19129 12:58:24,956 --> 12:58:27,200 can use order by Partition by when you 19130 12:58:27,200 --> 12:58:29,040 don't need to be explicit you can use 19131 12:58:29,040 --> 12:58:32,116 XIs and reset available functions you 19132 12:58:32,116 --> 12:58:34,880 can use many existing Dex function in 19133 12:58:34,880 --> 12:58:37,320 visual level calculations since visual 19134 12:58:37,320 --> 12:58:40,160 level calculation can work with confin 19135 12:58:40,160 --> 12:58:42,880 of the visual Matrix functions are rely 19136 12:58:42,880 --> 12:58:44,756 on model relationship such as 19137 12:58:44,756 --> 12:58:46,756 relationship related and related table 19138 12:58:46,756 --> 12:58:48,720 aren't available these are the visual 19139 12:58:48,720 --> 12:58:50,956 calculations available with you collapse 19140 12:58:50,956 --> 12:58:53,956 collapse all expand expand all first 19141 12:58:53,956 --> 12:58:57,276 last moving average next previous range 19142 12:58:57,276 --> 12:59:00,276 running sum limitations not all visual 19143 12:59:00,276 --> 12:59:02,880 types are supported the following visual 19144 12:59:02,880 --> 12:59:05,360 types and visual properties have been 19145 12:59:05,360 --> 12:59:08,400 tested and found not to work with visual 19146 12:59:08,400 --> 12:59:10,840 level calculations or hidden Fields tree 19147 12:59:10,840 --> 12:59:14,160 map map shape map Azure map slicer it 19148 12:59:14,160 --> 12:59:16,040 means it's not going to work on slicer R 19149 12:59:16,040 --> 12:59:18,276 visual python visual key influencer 19150 12:59:18,276 --> 12:59:21,000 decomposition tree Q&A smart narrative 19151 12:59:21,000 --> 12:59:24,520 matrices paginated report arjs map power 19152 12:59:24,520 --> 12:59:27,276 app power automate small multiple visual 19153 12:59:27,276 --> 12:59:29,436 calculation and hidden field can only be 19154 12:59:29,436 --> 12:59:33,360 added and edited using powerbi desktop 19155 12:59:33,360 --> 12:59:35,276 while you can publish the report 19156 12:59:35,276 --> 12:59:37,160 containing visual level calculation to 19157 12:59:37,160 --> 12:59:39,956 powerbi ser you can't edit visual level 19158 12:59:39,956 --> 12:59:41,880 calculation or hidden field in power 19159 12:59:41,880 --> 12:59:43,756 service so that's not available on the 19160 12:59:43,756 --> 12:59:46,400 service as of now to edit it you can use 19161 12:59:46,400 --> 12:59:49,240 it and publish it performance of this 19162 12:59:49,240 --> 12:59:52,360 feature isn't representative of the end 19163 12:59:52,360 --> 12:59:54,916 product as of now you should not be too 19164 12:59:54,916 --> 12:59:56,640 much bothered about the performance part 19165 12:59:56,640 --> 12:59:59,040 of it reuse of visual level calculation 19166 12:59:59,040 --> 13:00:01,400 using copying and paste or other 19167 13:00:01,400 --> 13:00:03,240 mechanism isn't available so you can't 19168 13:00:03,240 --> 13:00:06,040 reuse them as of now you can't filter on 19169 13:00:06,040 --> 13:00:08,320 visual level calculation visual level 19170 13:00:08,320 --> 13:00:11,880 calculation can't refer to itself on the 19171 13:00:11,880 --> 13:00:14,276 same or different detail level 19172 13:00:14,276 --> 13:00:16,520 personalization of visual calcul or 19173 13:00:16,520 --> 13:00:18,200 hidden field isn't available and there 19174 13:00:18,200 --> 13:00:20,596 are many other which you can go through 19175 13:00:20,596 --> 13:00:23,320 this article I will be sharing the link 19176 13:00:23,320 --> 13:00:25,756 of this article also into the 19177 13:00:25,756 --> 13:00:27,680 description I have added a new page 19178 13:00:27,680 --> 13:00:30,480 visual calculation on this page I'm 19179 13:00:30,480 --> 13:00:34,000 going to add a table Visual and 19180 13:00:34,000 --> 13:00:38,200 start showcasing you visual calculations 19181 13:00:38,200 --> 13:00:41,320 to start with that I will go down and 19182 13:00:41,320 --> 13:00:43,880 from item I'm going to drag brand and 19183 13:00:43,880 --> 13:00:46,000 create a table 19184 13:00:46,000 --> 13:00:48,560 visual a table visual is ready and I've 19185 13:00:48,560 --> 13:00:51,916 sorted it on the brand time to add a new 19186 13:00:51,916 --> 13:00:54,596 visual calculation and the option is 19187 13:00:54,596 --> 13:00:58,840 available under the Home tab new 19188 13:00:58,840 --> 13:01:02,240 calculation let me click on that opens 19189 13:01:02,240 --> 13:01:04,160 the window very similar to the focus 19190 13:01:04,160 --> 13:01:08,436 mode window and there you have a pain 19191 13:01:08,436 --> 13:01:10,560 where you can give your visual level 19192 13:01:10,560 --> 13:01:14,596 calculation the FX pan or the formula 19193 13:01:14,596 --> 13:01:17,756 pain now here the right now before I 19194 13:01:17,756 --> 13:01:19,320 started the visual level calculation 19195 13:01:19,320 --> 13:01:21,880 visual level calculation is hidden I can 19196 13:01:21,880 --> 13:01:25,400 hide the measure if I need I can't hide 19197 13:01:25,400 --> 13:01:28,040 the AIS or the group wise so let me 19198 13:01:28,040 --> 13:01:29,840 create the first visual calculation 19199 13:01:29,840 --> 13:01:32,880 nothing but running 19200 13:01:35,880 --> 13:01:38,480 sum the function which I'm going to use 19201 13:01:38,480 --> 13:01:42,276 is running some and I'm going to give 19202 13:01:42,276 --> 13:01:44,116 net parameter I'm going to leave 19203 13:01:44,116 --> 13:01:46,240 everything else and not going to give 19204 13:01:46,240 --> 13:01:47,680 any value for 19205 13:01:47,680 --> 13:01:50,560 those now I can use the 19206 13:01:50,560 --> 13:01:53,000 commit to commit the calculation or I 19207 13:01:53,000 --> 13:01:55,400 can also press enter I'm going to press 19208 13:01:55,400 --> 13:01:58,200 enter in this case the calculation is 19209 13:01:58,200 --> 13:02:01,480 added to the visual and as you can see 19210 13:02:01,480 --> 13:02:03,400 the visual calculation which has been 19211 13:02:03,400 --> 13:02:08,116 performed here it is adding up 19212 13:02:08,116 --> 13:02:10,480 the previous value in each rows all the 19213 13:02:10,480 --> 13:02:13,480 previous values if you look at here you 19214 13:02:13,480 --> 13:02:15,640 can see all the rows is the sum of all 19215 13:02:15,640 --> 13:02:18,560 the previous R if you want to edit the 19216 13:02:18,560 --> 13:02:21,916 calculation you can click on the arrow 19217 13:02:21,916 --> 13:02:24,560 and you have option to edit calculation 19218 13:02:24,560 --> 13:02:25,796 so we have done a very simple 19219 13:02:25,796 --> 13:02:27,560 calculation running sum and we have 19220 13:02:27,560 --> 13:02:30,596 given net as an argument there let's go 19221 13:02:30,596 --> 13:02:32,040 back to the 19222 13:02:32,040 --> 13:02:35,200 report now what's the advantage I was 19223 13:02:35,200 --> 13:02:37,200 doing that using majes okay maybe they 19224 13:02:37,200 --> 13:02:38,320 are faster 19225 13:02:38,320 --> 13:02:40,720 done on aggregated data but is there any 19226 13:02:40,720 --> 13:02:41,916 other 19227 13:02:41,916 --> 13:02:44,200 advantage to understand that let me do 19228 13:02:44,200 --> 13:02:48,360 one thing let me go here on the brand 19229 13:02:48,360 --> 13:02:51,756 and change it to 19230 13:02:51,756 --> 13:02:54,880 category can you still see the running 19231 13:02:54,880 --> 13:02:57,596 total working fine this would not have 19232 13:02:57,596 --> 13:03:00,276 been the case in case I would have 19233 13:03:00,276 --> 13:03:02,956 created this calculation by any of the 19234 13:03:02,956 --> 13:03:06,116 traditional methods now I do have tested 19235 13:03:06,116 --> 13:03:08,916 this with field parameters and as of now 19236 13:03:08,916 --> 13:03:10,596 I was not able to add the field 19237 13:03:10,596 --> 13:03:12,956 parameter to it but the moment the field 19238 13:03:12,956 --> 13:03:14,480 parameter is supported it would be 19239 13:03:14,480 --> 13:03:17,116 really amazing because the moment I'm 19240 13:03:17,116 --> 13:03:21,160 changing my field in the calculation it 19241 13:03:21,160 --> 13:03:24,596 is still keep on working now let's use 19242 13:03:24,596 --> 13:03:26,916 another visual function and the function 19243 13:03:26,916 --> 13:03:30,040 which I want to use is collapse all 19244 13:03:30,040 --> 13:03:32,116 again new 19245 13:03:32,116 --> 13:03:34,956 calculation and I'll use the function 19246 13:03:34,956 --> 13:03:39,040 collapse all but that is total or gt 19247 13:03:39,040 --> 13:03:40,360 grand 19248 13:03:40,360 --> 13:03:42,640 total 19249 13:03:42,640 --> 13:03:45,840 cpol what all cpol required expression 19250 13:03:45,840 --> 13:03:49,720 and X's the expression is net and it is 19251 13:03:49,720 --> 13:03:52,436 suggesting me to use the running sum 19252 13:03:52,436 --> 13:03:56,756 also but I just wanted the net and how I 19253 13:03:56,756 --> 13:03:58,840 want the direction rowwise down is the 19254 13:03:58,840 --> 13:04:01,276 direction which I want and let me use 19255 13:04:01,276 --> 13:04:03,520 collaps all and as you can see it has 19256 13:04:03,520 --> 13:04:06,840 given me grand total now I can create 19257 13:04:06,840 --> 13:04:09,880 two functions from here percentage of 19258 13:04:09,880 --> 13:04:12,040 grand total and percentage of running 19259 13:04:12,040 --> 13:04:14,880 total again they are going to be the 19260 13:04:14,880 --> 13:04:16,116 visual level 19261 13:04:16,116 --> 13:04:20,756 calculations so let me create couple 19262 13:04:20,756 --> 13:04:26,956 more so one is percent of 19263 13:04:26,956 --> 13:04:29,796 total which is nothing but 19264 13:04:29,796 --> 13:04:31,436 divide 19265 13:04:31,436 --> 13:04:36,840 net by TT 19266 13:04:38,880 --> 13:04:41,040 now I got the percentage of total or I 19267 13:04:41,040 --> 13:04:44,956 can add it and multiply it by 100 19268 13:04:44,956 --> 13:04:48,400 100 I got percentage of total so easily 19269 13:04:48,400 --> 13:04:51,080 no calculation worries just simply 19270 13:04:51,080 --> 13:04:54,116 taking chy and use it on the measure how 19271 13:04:54,116 --> 13:04:56,560 simple it is now let's go ahead and do 19272 13:04:56,560 --> 13:05:00,000 one more which is percentage of running 19273 13:05:00,000 --> 13:05:03,640 total so again click on the new 19274 13:05:03,640 --> 13:05:07,956 calculation and here we are going to use 19275 13:05:07,956 --> 13:05:11,040 the percent of running total and what 19276 13:05:11,040 --> 13:05:13,680 I'm going to do for that is divide so we 19277 13:05:13,680 --> 13:05:16,320 are going to use divide and we are using 19278 13:05:16,320 --> 13:05:19,560 the regular Dex functions here divide is 19279 13:05:19,560 --> 13:05:22,840 a regular Dex function by running some 19280 13:05:22,840 --> 13:05:25,360 which is a visual calculation divide by 19281 13:05:25,360 --> 13:05:28,916 another visual calculation which is 19282 13:05:29,520 --> 13:05:32,756 GT completely based on visual 19283 13:05:32,756 --> 13:05:35,116 calculations addit calculation multiply 19284 13:05:35,116 --> 13:05:38,840 by 100 as of now 19285 13:05:39,240 --> 13:05:41,080 so let's go back to the report and 19286 13:05:41,080 --> 13:05:44,320 understand these so first row 22% you're 19287 13:05:44,320 --> 13:05:45,916 fine because percentage of total in the 19288 13:05:45,916 --> 13:05:47,560 first row is going to be the same in the 19289 13:05:47,560 --> 13:05:50,080 second row the running total will add 19290 13:05:50,080 --> 13:05:51,400 and I'm not doing a running total of 19291 13:05:51,400 --> 13:05:53,720 percentage of total I'm simply have 19292 13:05:53,720 --> 13:05:55,320 calculated it on running sum I could 19293 13:05:55,320 --> 13:05:57,116 have done it on the percentage of total 19294 13:05:57,116 --> 13:05:59,720 also that is another way to do it and 19295 13:05:59,720 --> 13:06:01,916 then another 14% getting added another 19296 13:06:01,916 --> 13:06:06,520 23% getting added and 100% so such a 19297 13:06:06,520 --> 13:06:09,400 easy to do the these calculations now we 19298 13:06:09,400 --> 13:06:11,480 have already seen two functions but 19299 13:06:11,480 --> 13:06:13,480 there are many more so we'll continue to 19300 13:06:13,480 --> 13:06:15,916 look at those so let's do next 19301 13:06:15,916 --> 13:06:18,080 calculation and next calculation which I 19302 13:06:18,080 --> 13:06:20,116 wanted to do is moving 19303 13:06:20,116 --> 13:06:23,116 average so I go and clicked on the new 19304 13:06:23,116 --> 13:06:27,956 calculation and let's call it as move 19305 13:06:27,956 --> 13:06:30,436 AVG and the function which is available 19306 13:06:30,436 --> 13:06:32,160 with us is moving 19307 13:06:32,160 --> 13:06:34,916 average in the moving average I can give 19308 13:06:34,916 --> 13:06:36,956 an expression expression is nothing but 19309 13:06:36,956 --> 13:06:39,080 net 19310 13:06:39,080 --> 13:06:41,560 so expression 19311 13:06:41,560 --> 13:06:44,320 window do I want to include the current 19312 13:06:44,320 --> 13:06:47,480 AIS row column blanks and where you want 19313 13:06:47,480 --> 13:06:50,360 to reset so window is two I only want to 19314 13:06:50,360 --> 13:06:53,160 do for last two I want to include the 19315 13:06:53,160 --> 13:06:54,720 current as of now I want to include the 19316 13:06:54,720 --> 13:06:56,956 current so I'll keep it otherwise you 19317 13:06:56,956 --> 13:06:59,560 can have the values like true and 19318 13:06:59,560 --> 13:07:02,560 false but let's start 19319 13:07:02,560 --> 13:07:06,040 with only moving average so what it is 19320 13:07:06,040 --> 13:07:07,840 doing right now so basically the first 19321 13:07:07,840 --> 13:07:10,200 value is the self the second value is 19322 13:07:10,200 --> 13:07:13,040 the sum of these two which is 43 19323 13:07:13,040 --> 13:07:14,680 something and just you can see it is 19324 13:07:14,680 --> 13:07:17,880 divide by two now next would be the sum 19325 13:07:17,880 --> 13:07:21,400 of these two which is around 36 3.6 19326 13:07:21,400 --> 13:07:23,240 million divide by 2 and you can see it's 19327 13:07:23,240 --> 13:07:25,756 1.8 million next one is going to be some 19328 13:07:25,756 --> 13:07:29,200 of this which is going to be around 2.9 19329 13:07:29,200 --> 13:07:31,956 Million divide by 2 which is 1.47 19330 13:07:31,956 --> 13:07:33,840 million and again this is going to be 19331 13:07:33,840 --> 13:07:37,640 some around 2.4 2.5 divide by 2 which is 19332 13:07:37,640 --> 13:07:41,320 2.22 3 so in this manner you can see we 19333 13:07:41,320 --> 13:07:45,640 are getting moving average let's go 19334 13:07:45,640 --> 13:07:49,000 back so we have got net we have got 19335 13:07:49,000 --> 13:07:51,240 running sum we have got GT percentage of 19336 13:07:51,240 --> 13:07:53,680 total moving 19337 13:07:53,680 --> 13:07:57,240 average and as you can see we can go and 19338 13:07:57,240 --> 13:08:00,640 change it the XIs to something else and 19339 13:08:00,640 --> 13:08:03,520 this calculation is still holds true 19340 13:08:03,520 --> 13:08:06,240 that's the beauty of these 19341 13:08:06,240 --> 13:08:08,596 calculation why why don't we learn few 19342 13:08:08,596 --> 13:08:09,796 more 19343 13:08:09,796 --> 13:08:12,480 function I would now like to experiment 19344 13:08:12,480 --> 13:08:14,720 with few more calculation and the 19345 13:08:14,720 --> 13:08:16,680 calculation which I would like to now 19346 13:08:16,680 --> 13:08:19,116 showcase is previous and next which is 19347 13:08:19,116 --> 13:08:20,520 going to give us the value of the 19348 13:08:20,520 --> 13:08:23,680 previous row and the next row so to 19349 13:08:23,680 --> 13:08:27,200 begin that Home tab new calculations 19350 13:08:27,200 --> 13:08:28,436 back to the visual 19351 13:08:28,436 --> 13:08:31,596 calculations let me call it previous 19352 13:08:31,596 --> 13:08:33,560 function which I'm going to use is also 19353 13:08:33,560 --> 13:08:36,000 previous no previous month no previous 19354 13:08:36,000 --> 13:08:37,880 quarter no previous 19355 13:08:37,880 --> 13:08:41,040 here only previous and we have 19356 13:08:41,040 --> 13:08:46,276 expression steps X's blank and reset and 19357 13:08:46,276 --> 13:08:50,360 step means I can go beyond one so I want 19358 13:08:50,360 --> 13:08:51,796 to compare with previous month that's 19359 13:08:51,796 --> 13:08:53,520 fine I want to compare previous to 19360 13:08:53,520 --> 13:08:55,840 previous then I can use steps and do it 19361 13:08:55,840 --> 13:08:58,160 I want to go further down let's say 11 19362 13:08:58,160 --> 13:08:59,796 month or 12 month down the line that 19363 13:08:59,796 --> 13:09:02,040 also I can do by using these steps it 19364 13:09:02,040 --> 13:09:04,480 could be month quarter year whatever you 19365 13:09:04,480 --> 13:09:07,400 want to use based on the requirement and 19366 13:09:07,400 --> 13:09:09,000 it is visual level so sometime if you 19367 13:09:09,000 --> 13:09:10,520 have a disconnected data and you want to 19368 13:09:10,520 --> 13:09:12,436 compare with the last available month 19369 13:09:12,436 --> 13:09:14,756 think about how much big calculation we 19370 13:09:14,756 --> 13:09:17,640 have to do this should resolve that out 19371 13:09:17,640 --> 13:09:19,240 because it's just looking at previous 19372 13:09:19,240 --> 13:09:22,480 it's just a visual row and what previous 19373 13:09:22,480 --> 13:09:24,360 of what 19374 13:09:24,360 --> 13:09:27,116 net anything else we want to give step 19375 13:09:27,116 --> 13:09:28,796 yes definitely I want to give step one 19376 13:09:28,796 --> 13:09:30,596 step and because we have function like 19377 13:09:30,596 --> 13:09:32,720 previous and next it might not allow you 19378 13:09:32,720 --> 13:09:34,320 the negative integer it is only the 19379 13:09:34,320 --> 13:09:36,160 positive integer which has been allowed 19380 13:09:36,160 --> 13:09:38,680 here it should would give me every time 19381 13:09:38,680 --> 13:09:40,480 the previous row and the first row will 19382 13:09:40,480 --> 13:09:42,000 not have any previous 19383 13:09:42,000 --> 13:09:44,756 row because there is no previous for the 19384 13:09:44,756 --> 13:09:47,360 first one and as expected the first one 19385 13:09:47,360 --> 13:09:49,596 doesn't have a previous rest all as a 19386 13:09:49,596 --> 13:09:52,320 previous look up here and based on these 19387 13:09:52,320 --> 13:09:54,756 values you are able to see the previous 19388 13:09:54,756 --> 13:09:58,360 values here going one 19389 13:09:58,360 --> 13:10:01,360 down 19390 13:10:02,276 --> 13:10:05,160 trailing previous well understood very 19391 13:10:05,160 --> 13:10:08,520 simple let's do the next calcul 19392 13:10:08,520 --> 13:10:12,720 next the function is very simple 19393 13:10:13,040 --> 13:10:15,000 next 19394 13:10:15,000 --> 13:10:19,916 net comma One Step done and we got the 19395 13:10:19,916 --> 13:10:22,520 next calculation and this time it would 19396 13:10:22,520 --> 13:10:26,480 be a one row ahead and as you can see 19397 13:10:26,480 --> 13:10:28,400 the in this case the last row will not 19398 13:10:28,400 --> 13:10:30,640 have it because we are going one row 19399 13:10:30,640 --> 13:10:32,720 ahead we are looking into future values 19400 13:10:32,720 --> 13:10:35,756 and there is no value for the last 19401 13:10:35,756 --> 13:10:37,880 row in this manner 19402 13:10:37,880 --> 13:10:39,080 we are able to 19403 13:10:39,080 --> 13:10:41,756 do previous and next calculation let's 19404 13:10:41,756 --> 13:10:43,640 go back to the report and check this out 19405 13:10:43,640 --> 13:10:45,956 and as you can see we able to see the 19406 13:10:45,956 --> 13:10:48,040 next and previous 19407 13:10:48,040 --> 13:10:50,720 calculation and as usual if I change the 19408 13:10:50,720 --> 13:10:52,916 AIS to 19409 13:10:52,916 --> 13:10:55,080 category it's not going to make any 19410 13:10:55,080 --> 13:10:57,040 difference I will get previous and next 19411 13:10:57,040 --> 13:10:59,360 of the 19412 13:10:59,360 --> 13:11:01,880 categories let's add couple more 19413 13:11:01,880 --> 13:11:03,880 calculations the calculations which we 19414 13:11:03,880 --> 13:11:07,000 want to do right now is basically first 19415 13:11:07,000 --> 13:11:09,596 and last so before I do that let me 19416 13:11:09,596 --> 13:11:11,956 again change the AIS 19417 13:11:11,956 --> 13:11:15,400 to BR need a lot of values 19418 13:11:15,400 --> 13:11:18,916 to look at the calculation that's how 19419 13:11:18,916 --> 13:11:21,520 you know only five category first and 19420 13:11:21,520 --> 13:11:24,320 last are just couple of steps away let's 19421 13:11:24,320 --> 13:11:26,756 go ahead and try that out so again hom 19422 13:11:26,756 --> 13:11:28,116 tab new 19423 13:11:28,116 --> 13:11:30,436 calculation very simple 19424 13:11:30,436 --> 13:11:32,840 first think about is how you're going to 19425 13:11:32,840 --> 13:11:36,116 do it with the regular Dex index 19426 13:11:36,116 --> 13:11:38,640 function it's easy but even that would 19427 13:11:38,640 --> 13:11:41,000 require what is the order by and you 19428 13:11:41,000 --> 13:11:43,276 need to mention an explicit column for 19429 13:11:43,276 --> 13:11:45,596 that so function is 19430 13:11:45,596 --> 13:11:48,116 first let's look at the arguments 19431 13:11:48,116 --> 13:11:51,680 expression exis blank and reset we are 19432 13:11:51,680 --> 13:11:53,240 only going to give one argument as of 19433 13:11:53,240 --> 13:11:55,956 now net and that should be sufficient 19434 13:11:55,956 --> 13:11:57,720 let's check that 19435 13:11:57,720 --> 13:12:01,040 out calculation has been added and as 19436 13:12:01,040 --> 13:12:03,160 expected it is just giving me the first 19437 13:12:03,160 --> 13:12:06,436 row value for all the rows so I can now 19438 13:12:06,436 --> 13:12:08,560 find out per percentage of first now 19439 13:12:08,560 --> 13:12:11,480 let's calculate the last value again 19440 13:12:11,480 --> 13:12:13,640 click on new calculation from the Home 19441 13:12:13,640 --> 13:12:17,160 tab name is last and the function we are 19442 13:12:17,160 --> 13:12:21,360 also going to use is last simple net 19443 13:12:21,360 --> 13:12:23,956 only one argument but it can take 19444 13:12:23,956 --> 13:12:28,160 expression xes blank and reset we are 19445 13:12:28,160 --> 13:12:29,680 only going to give one argument as of 19446 13:12:29,680 --> 13:12:32,320 now net and as expected it is showing 19447 13:12:32,320 --> 13:12:35,880 the last value 19448 13:12:38,160 --> 13:12:39,840 let's go back to the table and look at 19449 13:12:39,840 --> 13:12:42,400 it now we have quite a few calculations 19450 13:12:42,400 --> 13:12:44,796 as you can see we have first and last 19451 13:12:44,796 --> 13:12:47,880 also but we have more visual 19452 13:12:47,880 --> 13:12:49,840 calculations so we'll continue to 19453 13:12:49,840 --> 13:12:51,276 explore 19454 13:12:51,276 --> 13:12:53,640 those so the next function which we are 19455 13:12:53,640 --> 13:12:56,080 going to check out is range and it's 19456 13:12:56,080 --> 13:12:58,116 little bit different function and I'm 19457 13:12:58,116 --> 13:12:59,480 going to tell you one different 19458 13:12:59,480 --> 13:13:01,360 operation which you might not have seen 19459 13:13:01,360 --> 13:13:03,436 till now in 19460 13:13:03,436 --> 13:13:07,360 powerbi okay so let's jump on to the new 19461 13:13:07,360 --> 13:13:11,276 calculations from the Home tab and I 19462 13:13:11,276 --> 13:13:13,480 want to do a calculation which is range 19463 13:13:13,480 --> 13:13:16,436 now range can give me moving average but 19464 13:13:16,436 --> 13:13:20,040 I want a moving sum rolling sum and that 19465 13:13:20,040 --> 13:13:22,080 rolling sum I'm going to do using the 19466 13:13:22,080 --> 13:13:24,756 range so let me 19467 13:13:24,756 --> 13:13:26,840 do rolling 19468 13:13:26,840 --> 13:13:29,560 two and little bit different function so 19469 13:13:29,560 --> 13:13:31,080 that's why I'm using 19470 13:13:31,080 --> 13:13:33,560 calculate and I'm going to use net here 19471 13:13:33,560 --> 13:13:35,640 but I'll tell you it might not work so 19472 13:13:35,640 --> 13:13:37,200 we'll come back to that later and and 19473 13:13:37,200 --> 13:13:39,000 I'm going to use function 19474 13:13:39,000 --> 13:13:42,200 range the range function as you can see 19475 13:13:42,200 --> 13:13:46,080 the arguments are step include current I 19476 13:13:46,080 --> 13:13:50,276 want that yes AIS which is rows blanks 19477 13:13:50,276 --> 13:13:53,840 reset the first argument step is minus 19478 13:13:53,840 --> 13:13:57,480 one means one step only last one step 19479 13:13:57,480 --> 13:14:00,240 include current I want yes that is 19480 13:14:00,240 --> 13:14:03,480 true what is the next X's which is 19481 13:14:03,480 --> 13:14:06,276 nothing but rows but when I give these 19482 13:14:06,276 --> 13:14:09,596 arguments and I enter it gives me error 19483 13:14:09,596 --> 13:14:11,956 and now to correct that I'm going to 19484 13:14:11,956 --> 13:14:13,160 edit this 19485 13:14:13,160 --> 13:14:15,400 calculation click down the arrow edit 19486 13:14:15,400 --> 13:14:16,640 calculation and I'm going to do 19487 13:14:16,640 --> 13:14:18,480 something which you don't do I'm going 19488 13:14:18,480 --> 13:14:21,596 to put sum on a major it's a major and 19489 13:14:21,596 --> 13:14:23,436 usually we don't put some on a majure we 19490 13:14:23,436 --> 13:14:26,040 go ahead and use some X for that but 19491 13:14:26,040 --> 13:14:28,436 here I'm doing that and immediately I 19492 13:14:28,436 --> 13:14:30,360 get the correct calculation it means you 19493 13:14:30,360 --> 13:14:34,796 will be able to use some average Etc on 19494 13:14:34,796 --> 13:14:37,360 your measure to get those rolling the 19495 13:14:37,360 --> 13:14:40,240 rolling averages and your life has been 19496 13:14:40,240 --> 13:14:43,040 made further Easy by this let's 19497 13:14:43,040 --> 13:14:44,436 understand these calculation are they 19498 13:14:44,436 --> 13:14:46,400 correct or not first row is going to be 19499 13:14:46,400 --> 13:14:47,796 the same the second row is going to be 19500 13:14:47,796 --> 13:14:50,560 around a million the sum of these two 19501 13:14:50,560 --> 13:14:52,160 the third row is going to be the sum of 19502 13:14:52,160 --> 13:14:54,160 these two which is around 1.5 million so 19503 13:14:54,160 --> 13:14:57,040 let's look at the calculations the 19504 13:14:57,040 --> 13:15:00,596 rolling here is same here it is the two 19505 13:15:00,596 --> 13:15:03,080 which is last two rows but this is 1 19506 13:15:03,080 --> 13:15:05,436 million this is 1.5 million and 19507 13:15:05,436 --> 13:15:07,796 similarly it is going to be 1 2 million 19508 13:15:07,796 --> 13:15:10,276 it's coming from here these two on the 19509 13:15:10,276 --> 13:15:12,956 top and you can relate just for your 19510 13:15:12,956 --> 13:15:17,116 reference let me put the arrow 19511 13:15:18,320 --> 13:15:22,116 here so now we have got rolling and you 19512 13:15:22,116 --> 13:15:24,040 have done little bit different kind of 19513 13:15:24,040 --> 13:15:29,240 calculation and let open up a all set of 19514 13:15:29,240 --> 13:15:31,116 new calculations which you can do 19515 13:15:31,116 --> 13:15:32,880 important function 19516 13:15:32,880 --> 13:15:36,436 range so let's go back to the table and 19517 13:15:36,436 --> 13:15:38,116 before we we move to the next set of 19518 13:15:38,116 --> 13:15:40,956 calculation we need a different kind of 19519 13:15:40,956 --> 13:15:43,200 a visual a visual where we at least need 19520 13:15:43,200 --> 13:15:47,160 to have couple of access so let's begin 19521 13:15:47,160 --> 13:15:50,480 the Journey of few more special 19522 13:15:50,480 --> 13:15:53,480 calculations visual calculations where 19523 13:15:53,480 --> 13:15:56,720 we are going to get few more detailed or 19524 13:15:56,720 --> 13:15:59,956 few more easy calculations just by using 19525 13:15:59,956 --> 13:16:02,000 these visual 19526 13:16:02,000 --> 13:16:04,320 calculations now to explore further the 19527 13:16:04,320 --> 13:16:06,320 visual calculation I have added a new 19528 13:16:06,320 --> 13:16:09,240 page because the set of visual 19529 13:16:09,240 --> 13:16:11,680 calculation I want to explore now is 19530 13:16:11,680 --> 13:16:13,680 going to require me at least to have two 19531 13:16:13,680 --> 13:16:16,160 levels so let me create a matrix visual 19532 13:16:16,160 --> 13:16:17,200 for 19533 13:16:17,200 --> 13:16:19,596 that and in that I'm going to add state 19534 13:16:19,596 --> 13:16:21,276 and city on the 19535 13:16:21,276 --> 13:16:23,436 row expand 19536 13:16:23,436 --> 13:16:26,360 it going to add a major 19537 13:16:26,360 --> 13:16:29,240 net and let's start the two calculation 19538 13:16:29,240 --> 13:16:31,956 expand and expand all again from the 19539 13:16:31,956 --> 13:16:33,840 Home tab new 19540 13:16:33,840 --> 13:16:35,560 calculation let's look at the 19541 13:16:35,560 --> 13:16:38,560 calculation 19542 13:16:41,276 --> 13:16:43,956 expand expand and it require expression 19543 13:16:43,956 --> 13:16:47,160 and XIs and basically expand is going to 19544 13:16:47,160 --> 13:16:51,480 work at the next level in the context so 19545 13:16:51,480 --> 13:16:53,000 the details would come from the next 19546 13:16:53,000 --> 13:16:55,000 level and we have to understand that I'm 19547 13:16:55,000 --> 13:16:57,116 going to have expand expand all and then 19548 13:16:57,116 --> 13:16:59,796 I'm going to show you the differences 19549 13:16:59,796 --> 13:17:01,956 and then you will understand how these 19550 13:17:01,956 --> 13:17:05,436 calculations are performed so let's give 19551 13:17:05,436 --> 13:17:07,560 here average 19552 13:17:07,560 --> 13:17:08,880 I'm going to use average function and 19553 13:17:08,880 --> 13:17:11,560 I'm using it on a major net this is what 19554 13:17:11,560 --> 13:17:13,200 we you can do in the visual level 19555 13:17:13,200 --> 13:17:15,276 calculation and the next thing which I 19556 13:17:15,276 --> 13:17:19,596 compuls need is rows XIs is rows so 19557 13:17:19,596 --> 13:17:21,880 expand and you might not see the 19558 13:17:21,880 --> 13:17:23,400 difference but when you scroll down you 19559 13:17:23,400 --> 13:17:25,116 will see an average happening at the 19560 13:17:25,116 --> 13:17:27,880 state level and simply and at the grand 19561 13:17:27,880 --> 13:17:29,756 total level this number doesn't seems 19562 13:17:29,756 --> 13:17:32,956 like an average of cities because if you 19563 13:17:32,956 --> 13:17:35,040 look at the number of the Cities the 19564 13:17:35,040 --> 13:17:38,116 number cannot average to 19565 13:17:38,116 --> 13:17:42,880 2 100 K this is actually the average of 19566 13:17:42,880 --> 13:17:46,640 state and that's what expand does it is 19567 13:17:46,640 --> 13:17:48,436 average of a level 19568 13:17:48,436 --> 13:17:51,956 below to explain this further let's also 19569 13:17:51,956 --> 13:17:54,880 bring in expand 19570 13:17:55,720 --> 13:17:58,880 all and expand all 19571 13:17:58,880 --> 13:18:01,596 function also required to argument 19572 13:18:01,596 --> 13:18:05,000 expression where I will be doing 19573 13:18:05,000 --> 13:18:08,000 average of a major here again I'm doing 19574 13:18:08,000 --> 13:18:11,320 an average of a major net and the second 19575 13:18:11,320 --> 13:18:15,756 argument is X's which I'm going to use 19576 13:18:15,756 --> 13:18:18,480 rows and here if you see you will see a 19577 13:18:18,480 --> 13:18:20,200 little bit of difference in the averages 19578 13:18:20,200 --> 13:18:22,640 yes it is the averages of City it is the 19579 13:18:22,640 --> 13:18:25,320 average from the leaf level it is always 19580 13:18:25,320 --> 13:18:27,956 calculating it from the leaf level not 19581 13:18:27,956 --> 13:18:30,436 from the next level or the level below 19582 13:18:30,436 --> 13:18:32,680 so let me go back to the report and try 19583 13:18:32,680 --> 13:18:35,116 to explain you this if you look at these 19584 13:18:35,116 --> 13:18:38,116 calculations 19585 13:18:39,480 --> 13:18:41,560 look at how the averages is happening 19586 13:18:41,560 --> 13:18:43,200 you should be very happy to see these 19587 13:18:43,200 --> 13:18:45,276 averages happening at the state level 19588 13:18:45,276 --> 13:18:48,480 from the city level no more those 19589 13:18:48,480 --> 13:18:50,720 context plate defining what's below I 19590 13:18:50,720 --> 13:18:53,000 can easily go ahead and change it and 19591 13:18:53,000 --> 13:18:55,160 add another levels or replace these 19592 13:18:55,160 --> 13:18:58,276 levels and they will continue to work 19593 13:18:58,276 --> 13:19:00,116 but what's the difference in the grand 19594 13:19:00,116 --> 13:19:03,000 total here to understand that let me 19595 13:19:03,000 --> 13:19:06,480 collapse it I'll drill up one level 19596 13:19:06,480 --> 13:19:07,240 right 19597 13:19:07,240 --> 13:19:10,436 calculation here remains same but now 19598 13:19:10,436 --> 13:19:12,520 you can understand looking at this data 19599 13:19:12,520 --> 13:19:15,160 where I have a million here I have a 19600 13:19:15,160 --> 13:19:18,080 400k here which are pushing up my 19601 13:19:18,080 --> 13:19:20,596 calculations towards 19602 13:19:20,596 --> 13:19:22,840 the 19603 13:19:22,840 --> 13:19:26,240 232 as an average of the states if you 19604 13:19:26,240 --> 13:19:28,720 further go down you do see some bigger 19605 13:19:28,720 --> 13:19:31,756 values I can sort on the net so that you 19606 13:19:31,756 --> 13:19:33,160 understand these values little bit 19607 13:19:33,160 --> 13:19:35,520 better as you can see quite a few big 19608 13:19:35,520 --> 13:19:37,840 values are there here 19609 13:19:37,840 --> 13:19:41,596 I changeed sorting back to the 19610 13:19:41,596 --> 13:19:44,160 state so expand is doing it from the 19611 13:19:44,160 --> 13:19:46,840 leaf level to understand it 19612 13:19:46,840 --> 13:19:50,436 further let me add one more level first 19613 13:19:50,436 --> 13:19:52,796 of all I'm going to expand it and I'm 19614 13:19:52,796 --> 13:19:55,200 going to add one more level which is 19615 13:19:55,200 --> 13:19:56,640 brand from the 19616 13:19:56,640 --> 13:19:59,320 item I have added brand from the item 19617 13:19:59,320 --> 13:20:01,000 immediately What You observe that this 19618 13:20:01,000 --> 13:20:03,720 number is not changed in the expand but 19619 13:20:03,720 --> 13:20:05,640 the expand all number has changed and 19620 13:20:05,640 --> 13:20:07,720 why even even if you look at the city 19621 13:20:07,720 --> 13:20:09,720 level calculations those calculations 19622 13:20:09,720 --> 13:20:11,756 are little bit different they are not 19623 13:20:11,756 --> 13:20:13,680 same as what we previously had they were 19624 13:20:13,680 --> 13:20:16,480 same when we didn't have the brand if 19625 13:20:16,480 --> 13:20:18,916 you go down you will see these are 19626 13:20:18,916 --> 13:20:20,916 nothing but the average coming from the 19627 13:20:20,916 --> 13:20:24,560 Brand level and even on the level above 19628 13:20:24,560 --> 13:20:26,796 it will continue to be from the leaf 19629 13:20:26,796 --> 13:20:30,880 level so this expand all is doing the 19630 13:20:30,880 --> 13:20:33,080 calculation at the leaf level expand is 19631 13:20:33,080 --> 13:20:35,720 doing at the next level and what does 19632 13:20:35,720 --> 13:20:38,200 that mean for you is 19633 13:20:38,200 --> 13:20:40,680 basically when you see at the city level 19634 13:20:40,680 --> 13:20:44,160 it is average of Brands when you see at 19635 13:20:44,160 --> 13:20:45,916 the state level it is average of cities 19636 13:20:45,916 --> 13:20:47,560 when you look at the grand total level 19637 13:20:47,560 --> 13:20:50,400 it is average of states in this manner 19638 13:20:50,400 --> 13:20:52,880 these two calculation expand and expand 19639 13:20:52,880 --> 13:20:55,360 all works so this will help you to solve 19640 13:20:55,360 --> 13:20:57,880 the common problem which we wanted to do 19641 13:20:57,880 --> 13:21:00,880 average of sum or sum of averages very 19642 13:21:00,880 --> 13:21:03,436 common problem and a very simple 19643 13:21:03,436 --> 13:21:07,840 solution in visual calculation 19644 13:21:07,840 --> 13:21:09,796 now we are going to look at the two 19645 13:21:09,796 --> 13:21:12,916 function which is basically cpse and CPS 19646 13:21:12,916 --> 13:21:16,400 I already shown you cpse all ones but 19647 13:21:16,400 --> 13:21:18,596 the time has come that we again look 19648 13:21:18,596 --> 13:21:21,040 those two things together I'll go to the 19649 13:21:21,040 --> 13:21:25,320 new calculation and I'll first do here 19650 13:21:27,080 --> 13:21:31,320 collapse and collapse requires 19651 13:21:31,320 --> 13:21:35,400 expression x's and N it's basically give 19652 13:21:35,400 --> 13:21:38,276 going to give you 19653 13:21:38,276 --> 13:21:42,200 the grand total or the parents total is 19654 13:21:42,200 --> 13:21:44,796 basically going to collapse it here I 19655 13:21:44,796 --> 13:21:48,480 can use net 19656 13:21:49,880 --> 13:21:52,880 comma 19657 13:21:53,680 --> 13:21:57,436 rows and as you can 19658 13:21:57,436 --> 13:22:00,200 see here is collapse is getting its 19659 13:22:00,200 --> 13:22:01,360 ground 19660 13:22:01,360 --> 13:22:04,840 total but the cities are getting the 19661 13:22:04,840 --> 13:22:07,680 total of the 19662 13:22:07,680 --> 13:22:10,360 state so to understand that look at the 19663 13:22:10,360 --> 13:22:13,200 state total this is my state total the 19664 13:22:13,200 --> 13:22:15,200 cities are getting the state total and 19665 13:22:15,200 --> 13:22:18,680 if you further go down brands are going 19666 13:22:18,680 --> 13:22:23,080 to take the city total collapsing from 19667 13:22:23,080 --> 13:22:26,880 the parent to child so I'm getting the 19668 13:22:26,880 --> 13:22:29,916 parents calculation at the child 19669 13:22:29,916 --> 13:22:33,116 level so that is collapse but if I do 19670 13:22:33,116 --> 13:22:35,320 collapse all which is going to bring a 19671 13:22:35,320 --> 13:22:37,360 grand total for me so let me add a new 19672 13:22:37,360 --> 13:22:40,160 calculation that is colol or I can call 19673 13:22:40,160 --> 13:22:42,480 it as GT but let me call GT1 I can 19674 13:22:42,480 --> 13:22:45,000 already calculated GT not in this visual 19675 13:22:45,000 --> 13:22:46,436 I calculated another visual so I can 19676 13:22:46,436 --> 13:22:47,840 have the same name 19677 13:22:47,840 --> 13:22:52,040 but just use Now call appol and the call 19678 13:22:52,040 --> 13:22:55,200 appol is going to do it all at the final 19679 13:22:55,200 --> 13:22:58,080 parent level I can use net 19680 13:22:58,080 --> 13:23:02,796 here and I can use 19681 13:23:03,720 --> 13:23:06,480 rows and this is nothing but grand total 19682 13:23:06,480 --> 13:23:08,000 so now you can easily calculate 19683 13:23:08,000 --> 13:23:09,956 percentage of parent percentage of gland 19684 13:23:09,956 --> 13:23:12,400 total again use them back into new 19685 13:23:12,400 --> 13:23:14,436 calculation or you can edit the same 19686 13:23:14,436 --> 13:23:17,360 calculation to get it percentage of 19687 13:23:17,360 --> 13:23:19,480 total or percentage of Grant 19688 13:23:19,480 --> 13:23:23,436 total cpse and CPS help help you to get 19689 13:23:23,436 --> 13:23:26,240 the parent values now go back to the 19690 13:23:26,240 --> 13:23:27,840 reports and let's understand these 19691 13:23:27,840 --> 13:23:30,956 things so here we have already opened 19692 13:23:30,956 --> 13:23:33,116 Arizona and we have open one of the city 19693 13:23:33,116 --> 13:23:36,040 of Arizona and their Branch under it if 19694 13:23:36,040 --> 13:23:39,400 you see here this is the total of the 19695 13:23:39,400 --> 13:23:42,596 city and this is given at the Brand 19696 13:23:42,596 --> 13:23:45,480 level now when the Arizona has been 19697 13:23:45,480 --> 13:23:50,240 opened Arizona has a total of 471 look 19698 13:23:50,240 --> 13:23:52,560 at the city totals all the cities are 19699 13:23:52,560 --> 13:23:54,200 getting the Arizona 19700 13:23:54,200 --> 13:23:56,756 total when you go to the states like 19701 13:23:56,756 --> 13:23:59,596 Arizona you get the total the grand 19702 13:23:59,596 --> 13:24:02,956 total which is above one level it 19703 13:24:02,956 --> 13:24:05,116 collapse is collapsing one level at a 19704 13:24:05,116 --> 13:24:06,796 time collapse all is collaps all the 19705 13:24:06,796 --> 13:24:08,520 levels as you can see we are getting the 19706 13:24:08,520 --> 13:24:10,880 ground total here for all the rows 19707 13:24:10,880 --> 13:24:14,560 irrespective of whatever level we are 19708 13:24:14,560 --> 13:24:18,116 at we already have a quick glance at 19709 13:24:18,116 --> 13:24:20,240 these calculation but we do would like 19710 13:24:20,240 --> 13:24:23,320 to explore the reset functionality I 19711 13:24:23,320 --> 13:24:26,520 would like to see how would it work in 19712 13:24:26,520 --> 13:24:30,640 case I want to create a running total 19713 13:24:30,640 --> 13:24:33,320 which is not going across the leap level 19714 13:24:33,320 --> 13:24:37,160 but can it reset itself to ear level so 19715 13:24:37,160 --> 13:24:38,916 let me add another page and here I'm 19716 13:24:38,916 --> 13:24:39,796 going to 19717 13:24:39,796 --> 13:24:43,840 create a line Visual and in this line 19718 13:24:43,840 --> 13:24:47,160 visual I'm going to bring in from the 19719 13:24:47,160 --> 13:24:49,480 date table 19720 13:24:49,480 --> 13:24:53,720 here I'm also going to bring in quarter 19721 13:24:53,720 --> 13:24:56,240 and I would also like to bring 19722 13:24:56,240 --> 13:24:59,240 in 19723 13:25:00,560 --> 13:25:03,436 month and I would like to bring in a 19724 13:25:03,436 --> 13:25:05,240 major 19725 13:25:05,240 --> 13:25:08,956 net so I'm all set already with my 19726 13:25:08,956 --> 13:25:12,596 visual this is my visual and how it's 19727 13:25:12,596 --> 13:25:16,520 showcasing the values for last couple of 19728 13:25:16,520 --> 13:25:21,240 years and let me do a sort on the AIS so 19729 13:25:21,240 --> 13:25:23,436 I have my visual ready and here I want 19730 13:25:23,436 --> 13:25:26,240 to have a running calculation let's 19731 13:25:26,240 --> 13:25:27,880 first of all add a visual level 19732 13:25:27,880 --> 13:25:30,400 calculation from the Home tab and the 19733 13:25:30,400 --> 13:25:32,520 new calculation which I'm going to add 19734 13:25:32,520 --> 13:25:35,840 using the Home tab new calculation is 19735 13:25:35,840 --> 13:25:37,796 running 19736 13:25:37,796 --> 13:25:40,796 some 19737 13:25:41,160 --> 13:25:44,916 net and let's call it 19738 13:25:44,916 --> 13:25:47,320 RT and as you can see the moment I take 19739 13:25:47,320 --> 13:25:51,360 an RT RT is going up and if I go back to 19740 13:25:51,360 --> 13:25:54,956 the report you can see it's continuously 19741 13:25:54,956 --> 13:25:56,956 increasing I don't want to add another 19742 13:25:56,956 --> 13:25:58,520 calculation I just want to go ahead and 19743 13:25:58,520 --> 13:26:00,720 modify this so I click on this arrow and 19744 13:26:00,720 --> 13:26:03,520 use edit calculation and now I would 19745 13:26:03,520 --> 13:26:05,360 like to look at the other parameters of 19746 13:26:05,360 --> 13:26:07,360 RT so 19747 13:26:07,360 --> 13:26:11,116 AIS is definitely row 19748 13:26:11,116 --> 13:26:14,880 only blanks and I want to reset I want 19749 13:26:14,880 --> 13:26:17,880 to reset at what I want to reset at the 19750 13:26:17,880 --> 13:26:19,276 highest 19751 13:26:19,276 --> 13:26:21,756 parent so highest parent is here and I 19752 13:26:21,756 --> 13:26:25,160 want to reset there let me try that out 19753 13:26:25,160 --> 13:26:27,360 and what do you see immediately you see 19754 13:26:27,360 --> 13:26:29,276 there is a fall happening in the month 19755 13:26:29,276 --> 13:26:31,436 of January let's go back to the report 19756 13:26:31,436 --> 13:26:34,480 and understand that as you can see here 19757 13:26:34,480 --> 13:26:38,160 there is a reset happening 19758 13:26:38,360 --> 13:26:41,560 and this means now I'm getting YTD no 19759 13:26:41,560 --> 13:26:45,916 more I'm getting running total RT can I 19760 13:26:45,916 --> 13:26:50,596 get it further down to the T number two 19761 13:26:50,596 --> 13:26:52,480 which is quarter let's 19762 13:26:52,480 --> 13:26:56,880 see as you can see now it is giving me 19763 13:26:56,880 --> 13:27:00,756 qtd not YTD every quarter there is a 19764 13:27:00,756 --> 13:27:03,200 reset so look at the January look at the 19765 13:27:03,200 --> 13:27:05,320 April look at the July look at the 19766 13:27:05,320 --> 13:27:08,116 October 19767 13:27:08,116 --> 13:27:10,640 let's add more complication let's add 19768 13:27:10,640 --> 13:27:12,640 date what 19769 13:27:12,640 --> 13:27:16,520 happens now the reset would still happen 19770 13:27:16,520 --> 13:27:19,520 at the level two the level two is still 19771 13:27:19,520 --> 13:27:22,000 quarter so the reset is happening 19772 13:27:22,000 --> 13:27:26,400 quarterly still and we do it and 19773 13:27:26,400 --> 13:27:28,360 remember this quarter is in the middle 19774 13:27:28,360 --> 13:27:30,880 and that's why knowingly I have added 19775 13:27:30,880 --> 13:27:34,040 here two and I added one more level to 19776 13:27:34,040 --> 13:27:36,560 Showcase you that the reset is is not 19777 13:27:36,560 --> 13:27:38,320 happening month level so there are more 19778 13:27:38,320 --> 13:27:40,560 levels available here and it has taken 19779 13:27:40,560 --> 13:27:43,240 care this is the second level so 1 2 and 19780 13:27:43,240 --> 13:27:46,520 3 is it three or is it one let's go back 19781 13:27:46,520 --> 13:27:49,480 edit calculation move the level to three 19782 13:27:49,480 --> 13:27:51,276 and let's understand this calculation 19783 13:27:51,276 --> 13:27:54,320 once more and now you can see the reset 19784 13:27:54,320 --> 13:27:56,240 is happening at the month level the 19785 13:27:56,240 --> 13:27:58,560 highest level is one the second highest 19786 13:27:58,560 --> 13:28:02,240 is two then three four and keep on going 19787 13:28:02,240 --> 13:28:04,160 we are not including the current level 19788 13:28:04,160 --> 13:28:05,720 the current level is not part of the 19789 13:28:05,720 --> 13:28:06,680 parent 19790 13:28:06,680 --> 13:28:10,080 your parent as a year is one quarter is 19791 13:28:10,080 --> 13:28:12,240 two and month is three and we have given 19792 13:28:12,240 --> 13:28:15,560 three as of now you are seeing MTD in 19793 13:28:15,560 --> 13:28:18,560 this particular Trend 19794 13:28:18,560 --> 13:28:21,640 chart now you understand how easy these 19795 13:28:21,640 --> 13:28:26,560 calculations are and how easily we can 19796 13:28:26,560 --> 13:28:29,080 use visual level 19797 13:28:29,080 --> 13:28:31,160 calculations to 19798 13:28:31,160 --> 13:28:34,796 create those complicated calculations in 19799 13:28:34,796 --> 13:28:36,840 a easy manner 19800 13:28:36,840 --> 13:28:39,360 we are just working at the visual level 19801 13:28:39,360 --> 13:28:42,080 the visual row is the row the visual 19802 13:28:42,080 --> 13:28:45,320 level is the level and that makes our 19803 13:28:45,320 --> 13:28:47,400 life easy it's just like Excel we are 19804 13:28:47,400 --> 13:28:50,000 doing it those who likes the Excel 19805 13:28:50,000 --> 13:28:53,320 calculation very much and very find it 19806 13:28:53,320 --> 13:28:55,360 easy to do those kind of calculation 19807 13:28:55,360 --> 13:28:58,400 this is one step near to that I have 19808 13:28:58,400 --> 13:29:00,276 shown you quite a few visual 19809 13:29:00,276 --> 13:29:01,956 calculations in detail but there is a 19810 13:29:01,956 --> 13:29:03,596 quicker way to do some of these 19811 13:29:03,596 --> 13:29:05,840 calculations using templates so where is 19812 13:29:05,840 --> 13:29:08,320 those templates available for that let 19813 13:29:08,320 --> 13:29:11,080 me add a new page and quickly add a 19814 13:29:11,080 --> 13:29:15,400 table visual with item brand and 19815 13:29:15,400 --> 13:29:19,080 net visual is ready and now let me add 19816 13:29:19,080 --> 13:29:21,596 new calculation from the Home tab new 19817 13:29:21,596 --> 13:29:23,240 calculation which is a visual 19818 13:29:23,240 --> 13:29:25,240 calculation when you come to the visual 19819 13:29:25,240 --> 13:29:28,080 calculation look at this FX 19820 13:29:28,080 --> 13:29:31,480 icon when you click on this FX icon you 19821 13:29:31,480 --> 13:29:34,560 get the options for some templates so 19822 13:29:34,560 --> 13:29:37,640 without doing much of the effort you can 19823 13:29:37,640 --> 13:29:39,956 simply get some of the calculation the 19824 13:29:39,956 --> 13:29:41,640 only thing which you have to do is just 19825 13:29:41,640 --> 13:29:43,360 click on any of these calculation let's 19826 13:29:43,360 --> 13:29:45,520 say percentage of grand total and go 19827 13:29:45,520 --> 13:29:48,160 ahead and add the required field now I'm 19828 13:29:48,160 --> 13:29:50,400 going to replace it with 19829 13:29:50,400 --> 13:29:53,200 net the field with the net another field 19830 13:29:53,200 --> 13:29:58,360 also with the net and X is with 19831 13:29:58,596 --> 13:30:01,520 rows so we immediately get percentage of 19832 13:30:01,520 --> 13:30:04,240 total same way I can click on the FX 19833 13:30:04,240 --> 13:30:08,796 icon again and use versus first again I 19834 13:30:08,796 --> 13:30:10,880 need to replace the field where I can 19835 13:30:10,880 --> 13:30:12,840 replace it by one of my major which is 19836 13:30:12,840 --> 13:30:15,160 Nat which is also present in the same 19837 13:30:15,160 --> 13:30:18,000 visual and I'm getting percentage diff 19838 13:30:18,000 --> 13:30:20,276 with first same way you can utilize 19839 13:30:20,276 --> 13:30:24,160 running sum moving average percentage of 19840 13:30:24,160 --> 13:30:27,116 parent percentage of grand total average 19841 13:30:27,116 --> 13:30:30,040 of children's versus previous versus 19842 13:30:30,040 --> 13:30:33,080 next versus first and versus last so not 19843 13:30:33,080 --> 13:30:36,400 only you can create these calcul ations 19844 13:30:36,400 --> 13:30:38,720 by using the functions but you can also 19845 13:30:38,720 --> 13:30:41,276 use some of these templates so go ahead 19846 13:30:41,276 --> 13:30:45,240 and try those out visual calculations is 19847 13:30:45,240 --> 13:30:48,160 not limited to the set of new functions 19848 13:30:48,160 --> 13:30:50,680 which has came along with the visual 19849 13:30:50,680 --> 13:30:53,480 calculation feature some of the existing 19850 13:30:53,480 --> 13:30:55,796 functions can also be used in the visual 19851 13:30:55,796 --> 13:30:58,116 calculation while we have lot of 19852 13:30:58,116 --> 13:31:00,160 functions which we can use we will be 19853 13:31:00,160 --> 13:31:02,720 focusing on few functions which are 19854 13:31:02,720 --> 13:31:05,080 released some time back these functions 19855 13:31:05,080 --> 13:31:08,520 are index offset Rank and row number 19856 13:31:08,520 --> 13:31:10,596 these functions have been released 19857 13:31:10,596 --> 13:31:14,520 during December 2022 and April 2023 now 19858 13:31:14,520 --> 13:31:17,160 while all these functions may not work 19859 13:31:17,160 --> 13:31:19,596 in visual calculations we will try to 19860 13:31:19,596 --> 13:31:21,596 see how can we use them in visual 19861 13:31:21,596 --> 13:31:23,796 calculation and what all functions are 19862 13:31:23,796 --> 13:31:25,956 going to work there so in the upcoming 19863 13:31:25,956 --> 13:31:28,160 videos we are going to explore visual 19864 13:31:28,160 --> 13:31:30,000 calculations with these additional 19865 13:31:30,000 --> 13:31:32,720 functions which are very similar to SQL 19866 13:31:32,720 --> 13:31:35,436 Windows function which are index offset 19867 13:31:35,436 --> 13:31:37,840 rank and row number those provide us 19868 13:31:37,840 --> 13:31:40,160 order by and Partition by I would like 19869 13:31:40,160 --> 13:31:43,400 to go ahead and see whether offset index 19870 13:31:43,400 --> 13:31:46,276 window Rank and row number can work with 19871 13:31:46,276 --> 13:31:48,596 Dynamic rows means xess so we need to 19872 13:31:48,596 --> 13:31:51,360 check can these functions work in visual 19873 13:31:51,360 --> 13:31:53,360 calculation and if they work can they 19874 13:31:53,360 --> 13:31:56,200 work in the visual when we change AIS or 19875 13:31:56,200 --> 13:31:58,320 row of the visual will they continue to 19876 13:31:58,320 --> 13:32:00,596 work like the other visual calculations 19877 13:32:00,596 --> 13:32:01,880 we have learned in the past like 19878 13:32:01,880 --> 13:32:05,000 previous next running sum moving average 19879 13:32:05,000 --> 13:32:07,720 Etc and why I'm thinking these functions 19880 13:32:07,720 --> 13:32:09,640 can work in visual calculation is the 19881 13:32:09,640 --> 13:32:11,116 part of the documentation which I'm 19882 13:32:11,116 --> 13:32:13,400 going to Showcase you I want to perform 19883 13:32:13,400 --> 13:32:15,840 them at visual level without using 19884 13:32:15,840 --> 13:32:18,916 explicit table or relation by doing so 19885 13:32:18,916 --> 13:32:21,000 we will be able to create more flexible 19886 13:32:21,000 --> 13:32:23,360 calculation which can still work even if 19887 13:32:23,360 --> 13:32:25,756 we change the AIS so friend with that 19888 13:32:25,756 --> 13:32:27,720 objective I would like to first of all 19889 13:32:27,720 --> 13:32:29,880 show you the two statements which were 19890 13:32:29,880 --> 13:32:31,520 part of the documentation which 19891 13:32:31,520 --> 13:32:33,640 motivates me to experiment this so one 19892 13:32:33,640 --> 13:32:34,916 of the statement which we have looked 19893 13:32:34,916 --> 13:32:37,200 last time is this exis and reset and 19894 13:32:37,200 --> 13:32:40,080 order by and Partition by and they are 19895 13:32:40,080 --> 13:32:42,320 pairs now the second pair is the one 19896 13:32:42,320 --> 13:32:44,560 which is used by the five functions 19897 13:32:44,560 --> 13:32:46,680 which we plan to discuss and usually 19898 13:32:46,680 --> 13:32:49,520 these functions need explicit columns in 19899 13:32:49,520 --> 13:32:51,400 spite of those explicit column can we 19900 13:32:51,400 --> 13:32:53,480 make them little more Dynamic the second 19901 13:32:53,480 --> 13:32:55,240 thing is when it talk about available 19902 13:32:55,240 --> 13:32:57,640 function it do say you can use many 19903 13:32:57,640 --> 13:32:59,160 existing Dex function IND visual 19904 13:32:59,160 --> 13:33:01,436 calculations let's go ahead and try the 19905 13:33:01,436 --> 13:33:04,200 existing Dex function and see whether 19906 13:33:04,200 --> 13:33:06,116 they can fit in into the visual 19907 13:33:06,116 --> 13:33:08,560 calculation the way we wanted the next 19908 13:33:08,560 --> 13:33:10,320 visual calculation which we would like 19909 13:33:10,320 --> 13:33:13,756 to explore is using the index function 19910 13:33:13,756 --> 13:33:16,080 now I'll leave this page here and we'll 19911 13:33:16,080 --> 13:33:18,880 further go to another page and there 19912 13:33:18,880 --> 13:33:20,240 again I'm going to create the same 19913 13:33:20,240 --> 13:33:22,276 visual what we have started with is 19914 13:33:22,276 --> 13:33:24,560 brand and net and the function this time 19915 13:33:24,560 --> 13:33:27,040 I would like to use is the index 19916 13:33:27,040 --> 13:33:29,840 function so let me click on the visual 19917 13:33:29,840 --> 13:33:32,400 and the new calculation and I'm going to 19918 13:33:32,400 --> 13:33:34,720 call this function as 19919 13:33:34,720 --> 13:33:36,720 index 19920 13:33:36,720 --> 13:33:39,400 calculate 19921 13:33:39,400 --> 13:33:42,956 net index what does index function 19922 13:33:42,956 --> 13:33:46,640 require position relation order by 19923 13:33:46,640 --> 13:33:50,276 blanks Partition by match by and reset 19924 13:33:50,276 --> 13:33:53,000 so what we are going to do is index is 19925 13:33:53,000 --> 13:33:55,520 first index I want the first one based 19926 13:33:55,520 --> 13:33:57,680 on the relation which is nothing but 19927 13:33:57,680 --> 13:34:00,116 rows what's the next thing I require is 19928 13:34:00,116 --> 13:34:02,276 order by and here I'm going to use an 19929 13:34:02,276 --> 13:34:07,560 order by explicit order by order by 19930 13:34:07,560 --> 13:34:10,560 at 19931 13:34:13,796 --> 13:34:16,320 descending and as you can see I got the 19932 13:34:16,320 --> 13:34:18,720 first 19933 13:34:19,796 --> 13:34:22,840 value I can go ahead and modify this 19934 13:34:22,840 --> 13:34:26,080 calculation to have the second value 19935 13:34:26,080 --> 13:34:28,680 also so second value as you can see it 19936 13:34:28,680 --> 13:34:31,320 is the second 19937 13:34:31,596 --> 13:34:34,040 value I can go ahead and use it as a 19938 13:34:34,040 --> 13:34:37,640 third value also 19939 13:34:40,916 --> 13:34:43,480 so this is the third 19940 13:34:43,480 --> 13:34:46,796 topper same way I can use minus here 19941 13:34:46,796 --> 13:34:48,596 which is not possible if you would have 19942 13:34:48,596 --> 13:34:50,520 used the first and 19943 13:34:50,520 --> 13:34:53,040 second so if you would have used the 19944 13:34:53,040 --> 13:34:55,080 first function you cannot get all these 19945 13:34:55,080 --> 13:34:57,080 but you can get with the offset and I 19946 13:34:57,080 --> 13:34:59,880 can make it minus 3 which is actually 19947 13:34:59,880 --> 13:35:04,320 going to give me the bottom third 19948 13:35:06,276 --> 13:35:09,596 same way I can have another 19949 13:35:09,596 --> 13:35:11,116 calculation 19950 13:35:11,116 --> 13:35:15,040 index one where I can use 19951 13:35:15,040 --> 13:35:18,040 calculate 19952 13:35:18,080 --> 13:35:19,680 net 19953 13:35:19,680 --> 13:35:24,436 index and here I can use position as one 19954 13:35:24,436 --> 13:35:28,040 again and rows and I can leave the order 19955 13:35:28,040 --> 13:35:30,796 by to take the default order by and as 19956 13:35:30,796 --> 13:35:33,360 you can see it has taken brand one the 19957 13:35:33,360 --> 13:35:36,720 first position 19958 13:35:36,840 --> 13:35:40,640 because that's the default X's order by 19959 13:35:40,640 --> 13:35:43,400 let me go back to the 19960 13:35:43,400 --> 13:35:46,956 visualization and as you might have 19961 13:35:46,956 --> 13:35:49,596 expected if I change it to category it 19962 13:35:49,596 --> 13:35:50,956 still continue to 19963 13:35:50,956 --> 13:35:55,436 work so this is my third topper by 19964 13:35:55,756 --> 13:35:58,756 net and this is also the 19965 13:35:58,756 --> 13:36:02,080 categorical first Total both are same 19966 13:36:02,080 --> 13:36:03,436 here that's why the number is coming 19967 13:36:03,436 --> 13:36:05,080 same but they are doing two different 19968 13:36:05,080 --> 13:36:07,360 calculations 19969 13:36:07,360 --> 13:36:09,596 same way I can add both of them together 19970 13:36:09,596 --> 13:36:12,360 brand and 19971 13:36:12,360 --> 13:36:15,080 category and calculations will still 19972 13:36:15,080 --> 13:36:17,480 work so one of them would be on the 19973 13:36:17,480 --> 13:36:19,796 bottom 19974 13:36:20,116 --> 13:36:22,880 third and one of them would be based on 19975 13:36:22,880 --> 13:36:24,200 the 19976 13:36:24,200 --> 13:36:26,720 top next visual calculation which we 19977 13:36:26,720 --> 13:36:29,956 wanted to explore is using the offet 19978 13:36:29,956 --> 13:36:32,320 function so to start journey I will 19979 13:36:32,320 --> 13:36:35,796 bring in brand from the item dimension 19980 13:36:35,796 --> 13:36:39,360 and I'll also add net mejor I would like 19981 13:36:39,360 --> 13:36:41,436 to do visual calculations so how do we 19982 13:36:41,436 --> 13:36:43,640 do that from the Home 19983 13:36:43,640 --> 13:36:46,796 tab new calculations click on new 19984 13:36:46,796 --> 13:36:48,880 calculation and the function which I 19985 13:36:48,880 --> 13:36:52,520 plan to use is offset what offset used 19986 13:36:52,520 --> 13:36:54,560 to do for us we can go to the previous 19987 13:36:54,560 --> 13:36:56,880 position or the next position by 19988 13:36:56,880 --> 13:36:59,200 providing an offset just like we have 19989 13:36:59,200 --> 13:37:03,436 got previous here now I'm going to use 19990 13:37:03,436 --> 13:37:06,680 calculate net which is required with the 19991 13:37:06,680 --> 13:37:08,720 offset function you can opt for other 19992 13:37:08,720 --> 13:37:10,796 options also now I use the function 19993 13:37:10,796 --> 13:37:13,520 offset what does offset function require 19994 13:37:13,520 --> 13:37:15,040 it requires 19995 13:37:15,040 --> 13:37:19,720 Delta relation order by blanks Partition 19996 13:37:19,720 --> 13:37:22,160 by match and 19997 13:37:22,160 --> 13:37:24,720 reset let's go ahead and try these out 19998 13:37:24,720 --> 13:37:27,720 minus1 is the 19999 13:37:28,956 --> 13:37:31,916 Delta then relation and here I'm doing 20000 13:37:31,916 --> 13:37:34,880 the first change so instead of using all 20001 13:37:34,880 --> 13:37:36,320 selected 20002 13:37:36,320 --> 13:37:39,680 item brand or all item brand I'm using 20003 13:37:39,680 --> 13:37:42,360 row and remember we are doing a visual 20004 13:37:42,360 --> 13:37:44,400 calculation so getting data outside the 20005 13:37:44,400 --> 13:37:47,160 visual might not be possible for us the 20006 13:37:47,160 --> 13:37:50,000 next thing is order by and because order 20007 13:37:50,000 --> 13:37:53,200 by might require a explicit column I'm 20008 13:37:53,200 --> 13:37:56,916 as of now leaving that as is and because 20009 13:37:56,916 --> 13:37:59,000 it's going to pick up the default order 20010 13:37:59,000 --> 13:38:03,160 by or the first AIS I'm expecting it to 20011 13:38:03,160 --> 13:38:07,200 sort on brand and as as you can see we 20012 13:38:07,200 --> 13:38:13,680 are getting values which are one row 20013 13:38:13,680 --> 13:38:17,796 behind the same as previous but what the 20014 13:38:17,796 --> 13:38:20,560 difference is going to make in our life 20015 13:38:20,560 --> 13:38:24,200 if I use rows instead of explicit table 20016 13:38:24,200 --> 13:38:27,276 call or explicit relation call in the 20017 13:38:27,276 --> 13:38:29,200 offset function let me go ahead and 20018 13:38:29,200 --> 13:38:32,720 change this brand to 20019 13:38:32,720 --> 13:38:35,560 category and you can see the calculation 20020 13:38:35,560 --> 13:38:36,880 is still 20021 13:38:36,880 --> 13:38:39,240 working it is still giving me the 20022 13:38:39,240 --> 13:38:43,480 previous row value it means I am no more 20023 13:38:43,480 --> 13:38:45,916 dependent on what is there on my Axis so 20024 13:38:45,916 --> 13:38:48,756 I got rid of that it makes offset 20025 13:38:48,756 --> 13:38:52,240 function much more powerful than what we 20026 13:38:52,240 --> 13:38:54,640 have used it 20027 13:38:54,640 --> 13:38:57,080 previously now let me change it back to 20028 13:38:57,080 --> 13:39:00,160 brand and I would now like to go back 20029 13:39:00,160 --> 13:39:02,956 and can I run this offset on net I will 20030 13:39:02,956 --> 13:39:05,756 add another new calculation here and I'm 20031 13:39:05,756 --> 13:39:10,040 going to call it offset one again 20032 13:39:10,040 --> 13:39:11,956 calculate 20033 13:39:11,956 --> 13:39:13,640 net 20034 13:39:13,640 --> 13:39:15,840 offset minus 20035 13:39:15,840 --> 13:39:18,956 one rows in the relation as we have 20036 13:39:18,956 --> 13:39:21,956 given previously also and this time I'm 20037 13:39:21,956 --> 13:39:23,880 going to use order by and order by is 20038 13:39:23,880 --> 13:39:27,360 still looking for a explicit column here 20039 13:39:27,360 --> 13:39:29,320 or can we give one and two we have to 20040 13:39:29,320 --> 13:39:32,040 experiment so here I'm going to give 20041 13:39:32,040 --> 13:39:35,116 explicit name net and if you remember 20042 13:39:35,116 --> 13:39:37,200 the there has been a change done after 20043 13:39:37,200 --> 13:39:39,320 this function has been released that in 20044 13:39:39,320 --> 13:39:41,276 the order by we can use major which is 20045 13:39:41,276 --> 13:39:43,640 not part of relation net is not part of 20046 13:39:43,640 --> 13:39:45,480 the relation but we can still use it and 20047 13:39:45,480 --> 13:39:49,000 how do we want to use it descending 20048 13:39:49,480 --> 13:39:52,040 sort so I have pressed 20049 13:39:52,040 --> 13:39:55,116 enter but after adding additional 20050 13:39:55,116 --> 13:39:58,240 parenthesis and it has worked now to 20051 13:39:58,240 --> 13:39:59,320 understand this we need to change the 20052 13:39:59,320 --> 13:40:01,400 Sorting of the visual as I've sorted it 20053 13:40:01,400 --> 13:40:03,640 on net you can 20054 13:40:03,640 --> 13:40:08,640 see that now it is is trailed by 20055 13:40:08,640 --> 13:40:13,880 net so I'm getting previous row based on 20056 13:40:13,880 --> 13:40:15,320 net 20057 13:40:15,320 --> 13:40:18,596 sorting it is not sorted on brand or the 20058 13:40:18,596 --> 13:40:20,560 default 20059 13:40:20,560 --> 13:40:23,480 access can you do that using 20060 13:40:23,480 --> 13:40:26,276 previous try that out and do let me know 20061 13:40:26,276 --> 13:40:28,400 in the comments can you do the same 20062 13:40:28,400 --> 13:40:31,116 thing using previous function if not 20063 13:40:31,116 --> 13:40:33,720 offset is your choice let's go back to 20064 13:40:33,720 --> 13:40:35,520 the visual and understand these calcul a 20065 13:40:35,520 --> 13:40:37,680 little bit so right now the Sorting is 20066 13:40:37,680 --> 13:40:41,116 on net so you can see it Trail by a 20067 13:40:41,116 --> 13:40:45,956 row but this function first offs 20068 13:40:45,956 --> 13:40:49,916 set how it is working it is actually 20069 13:40:49,916 --> 13:40:52,520 still working but it is trailed by the 20070 13:40:52,520 --> 13:40:57,000 order of brand if you see brand one and 20071 13:40:57,000 --> 13:40:59,596 after that if you go to the brand 10 you 20072 13:40:59,596 --> 13:41:02,000 will see that value because the Sorting 20073 13:41:02,000 --> 13:41:04,240 order is like 20074 13:41:04,240 --> 13:41:07,956 this R 10 11 they're still working but 20075 13:41:07,956 --> 13:41:09,880 they're working based on their own 20076 13:41:09,880 --> 13:41:12,160 order the interesting thing we are able 20077 13:41:12,160 --> 13:41:13,240 to use 20078 13:41:13,240 --> 13:41:15,840 offset now I already experiment with the 20079 13:41:15,840 --> 13:41:19,040 Partition by which did not work for me 20080 13:41:19,040 --> 13:41:21,956 but let me showcase you that can we use 20081 13:41:21,956 --> 13:41:25,720 the last reset option so I will use 20082 13:41:25,720 --> 13:41:29,756 calculate net 20083 13:41:33,596 --> 13:41:35,756 offset minus one 20084 13:41:35,756 --> 13:41:39,276 one relation is 20085 13:41:39,276 --> 13:41:42,400 rows order by I will leave blanks I will 20086 13:41:42,400 --> 13:41:44,796 leave Partition by I will leave match I 20087 13:41:44,796 --> 13:41:48,436 will leave and reset can I give highest 20088 13:41:48,436 --> 13:41:51,680 parent here I'm giving highest parent 20089 13:41:51,680 --> 13:41:54,916 here no order by has been 20090 13:41:54,916 --> 13:41:58,596 used doesn't seems to have make any 20091 13:41:58,596 --> 13:42:01,480 difference but we need more than one 20092 13:42:01,480 --> 13:42:04,680 parent for such a reset isn't it so 20093 13:42:04,680 --> 13:42:06,840 let's bring bring in more than one 20094 13:42:06,840 --> 13:42:08,160 column 20095 13:42:08,160 --> 13:42:12,276 here so let's bring in category also 20096 13:42:12,276 --> 13:42:14,436 here and we would like to see the 20097 13:42:14,436 --> 13:42:16,276 calculation of this offset versus this 20098 13:42:16,276 --> 13:42:18,640 offset is it making any difference so if 20099 13:42:18,640 --> 13:42:20,276 you see here it is already sorted on the 20100 13:42:20,276 --> 13:42:22,756 brand which is the highest parent and 20101 13:42:22,756 --> 13:42:27,640 pose that this is 1 4 so if you look at 20102 13:42:27,640 --> 13:42:29,520 the first 20103 13:42:29,520 --> 13:42:32,720 calculation the 20104 13:42:33,756 --> 13:42:35,880 offset and you look look at the second 20105 13:42:35,880 --> 13:42:38,596 calculation of the 20106 13:42:39,560 --> 13:42:43,916 offset it same sounds like doing the 20107 13:42:43,916 --> 13:42:48,520 same job isn't it now let's add one 20108 13:42:49,200 --> 13:42:52,400 more do you see a change 20109 13:42:52,400 --> 13:42:55,276 here to do that let's first of all bring 20110 13:42:55,276 --> 13:42:58,240 in these two things 20111 13:42:58,276 --> 13:43:00,796 together so I have the offset and the 20112 13:43:00,796 --> 13:43:02,200 calculation 20113 13:43:02,200 --> 13:43:05,436 together and I don't see any difference 20114 13:43:05,436 --> 13:43:08,596 let me convert it into a 20115 13:43:11,956 --> 13:43:14,840 matrix and now you can 20116 13:43:14,840 --> 13:43:17,480 see the moment I have a visual like 20117 13:43:17,480 --> 13:43:19,400 Matrix visual where the concept of the 20118 13:43:19,400 --> 13:43:21,720 parent Works remember the concept of the 20119 13:43:21,720 --> 13:43:24,400 parent has to work and the moment I am 20120 13:43:24,400 --> 13:43:26,520 on a matrix visual where we have this 20121 13:43:26,520 --> 13:43:28,560 concept of a parent because remember all 20122 13:43:28,560 --> 13:43:31,276 three of them were on the same kind of 20123 13:43:31,276 --> 13:43:33,720 axis in the table Visual and the concept 20124 13:43:33,720 --> 13:43:37,880 of hery is not too much valid in case of 20125 13:43:37,880 --> 13:43:41,560 table visual it is more valid in case of 20126 13:43:41,560 --> 13:43:44,040 Matrix visual now here you will start 20127 13:43:44,040 --> 13:43:46,080 seeing a difference so one of the 20128 13:43:46,080 --> 13:43:47,276 difference which you are seeing here 20129 13:43:47,276 --> 13:43:49,276 this is the first value if you remember 20130 13:43:49,276 --> 13:43:51,320 this is my first value to this 20131 13:43:51,320 --> 13:43:53,320 calculation this also get carried 20132 13:43:53,320 --> 13:43:54,916 forward to the first calculation we are 20133 13:43:54,916 --> 13:43:57,276 still in the brand one when I go to the 20134 13:43:57,276 --> 13:43:59,000 brand 10 this is my boundary of the 20135 13:43:59,000 --> 13:44:01,756 brand 10 and as you can see inside the 20136 13:44:01,756 --> 13:44:05,040 brand 10 it is not getting the value for 20137 13:44:05,040 --> 13:44:06,200 for the first 20138 13:44:06,200 --> 13:44:08,520 category and to make it easier to 20139 13:44:08,520 --> 13:44:11,080 understand let me first remove the 20140 13:44:11,080 --> 13:44:13,796 subtotals so let me hide the 20141 13:44:13,796 --> 13:44:15,916 subtotals now as I've hidden the 20142 13:44:15,916 --> 13:44:18,916 subtotals what do you see between offset 20143 13:44:18,916 --> 13:44:20,200 and the calculation what is the 20144 13:44:20,200 --> 13:44:22,400 difference between the two so to observe 20145 13:44:22,400 --> 13:44:25,436 that look at the brand 10 only inside 20146 13:44:25,436 --> 13:44:27,916 the brand 10 inside the brand 10 what 20147 13:44:27,916 --> 13:44:30,560 you are seeing here is here I'm getting 20148 13:44:30,560 --> 13:44:32,756 both the values but only I'm getting 20149 13:44:32,756 --> 13:44:34,756 here one because the reset at the one 20150 13:44:34,756 --> 13:44:36,560 has 20151 13:44:36,560 --> 13:44:39,240 applied so it means if you're not able 20152 13:44:39,240 --> 13:44:43,320 to use Partition by you can still 20153 13:44:43,320 --> 13:44:46,560 use reset so you have a reset option 20154 13:44:46,560 --> 13:44:49,240 which can work in such scenarios so now 20155 13:44:49,240 --> 13:44:52,360 we have understood that how we can use 20156 13:44:52,360 --> 13:44:56,116 reset in offset function instead of 20157 13:44:56,116 --> 13:44:59,596 Partition by and if you remember we do 20158 13:44:59,596 --> 13:45:01,200 have the 20159 13:45:01,200 --> 13:45:04,480 flexibility of using numbers here 1 2 20160 13:45:04,480 --> 13:45:05,720 and 3 20161 13:45:05,720 --> 13:45:07,276 depending on what parent we wanted to 20162 13:45:07,276 --> 13:45:11,000 have reset we can also try to experiment 20163 13:45:11,000 --> 13:45:13,756 with that but I'm not going to do that 20164 13:45:13,756 --> 13:45:16,400 experiment as of now I'll leave it for 20165 13:45:16,400 --> 13:45:19,080 you to go ahead and try that out the 20166 13:45:19,080 --> 13:45:21,040 next visual calculation we wanted to 20167 13:45:21,040 --> 13:45:24,040 explore is using the rank function and 20168 13:45:24,040 --> 13:45:26,276 now I would like to use the next 20169 13:45:26,276 --> 13:45:29,560 function which is nothing but rank new 20170 13:45:29,560 --> 13:45:32,276 calculation rank function I'm going to 20171 13:45:32,276 --> 13:45:34,680 use is rank not rank X this is the new 20172 13:45:34,680 --> 13:45:37,680 function function came in April 2023 20173 13:45:37,680 --> 13:45:39,840 what I want to use is ties which is 20174 13:45:39,840 --> 13:45:42,116 nothing but dense and what does dense 20175 13:45:42,116 --> 13:45:45,276 means dance means if you are using a 20176 13:45:45,276 --> 13:45:47,160 rank and the rank getting duplicated 20177 13:45:47,160 --> 13:45:49,480 like 1 one one one then the next rank 20178 13:45:49,480 --> 13:45:51,720 would still be two it is not going to 20179 13:45:51,720 --> 13:45:54,400 skip the rank so we'll get continuous 20180 13:45:54,400 --> 13:45:57,796 rank what is relation 20181 13:45:58,520 --> 13:46:01,276 rows do I want to do I order by yes I 20182 13:46:01,276 --> 13:46:03,596 would like my ranks based on 20183 13:46:03,596 --> 13:46:05,916 net but you know that you can do it 20184 13:46:05,916 --> 13:46:08,480 without that 20185 13:46:10,880 --> 13:46:14,276 also and the ranks are based on the net 20186 13:46:14,276 --> 13:46:16,080 as you can see the moment I sorted it 20187 13:46:16,080 --> 13:46:19,200 you are getting your correct 20188 13:46:20,916 --> 13:46:23,240 ranks and if you want to do the rank 20189 13:46:23,240 --> 13:46:25,360 based on the axis you can add another 20190 13:46:25,360 --> 13:46:27,956 visual calculation click here and in the 20191 13:46:27,956 --> 13:46:30,680 visual calculation give it rank 20192 13:46:30,680 --> 13:46:35,116 one rank function 20193 13:46:36,720 --> 13:46:38,956 dance 20194 13:46:38,956 --> 13:46:41,720 Rose leave everything else it is based 20195 13:46:41,720 --> 13:46:45,200 on the AIS as you can see 20196 13:46:45,756 --> 13:46:48,596 here let's go back to the visualization 20197 13:46:48,596 --> 13:46:50,880 what's the beauty as you know we can 20198 13:46:50,880 --> 13:46:51,956 change 20199 13:46:51,956 --> 13:46:55,040 it we can add additional one till the 20200 13:46:55,040 --> 13:46:57,160 rank should work based on the 20201 13:46:57,160 --> 13:47:00,116 net we have not explicitly called it for 20202 13:47:00,116 --> 13:47:02,360 category you explicitly called it for 20203 13:47:02,360 --> 13:47:03,840 net so that is what it is going to 20204 13:47:03,840 --> 13:47:06,956 continue to work for the net when we do 20205 13:47:06,956 --> 13:47:08,756 the visual calculation now the visual 20206 13:47:08,756 --> 13:47:11,840 calculations are also limited to visual 20207 13:47:11,840 --> 13:47:13,840 so whatever data is not present in the 20208 13:47:13,840 --> 13:47:16,080 visual it is not going to do a ranking 20209 13:47:16,080 --> 13:47:18,796 for that if you are looking for that all 20210 13:47:18,796 --> 13:47:21,160 kind of a scenario you might not be able 20211 13:47:21,160 --> 13:47:23,436 to replicate that here so you are able 20212 13:47:23,436 --> 13:47:28,880 to use now rank also in the visual level 20213 13:47:28,880 --> 13:47:30,840 calculation with the visual level 20214 13:47:30,840 --> 13:47:34,436 arguments like row can we do a reset 20215 13:47:34,436 --> 13:47:35,276 here 20216 13:47:35,276 --> 13:47:38,756 of the rank and for that let me 20217 13:47:38,756 --> 13:47:42,796 duplicate this page after 20218 13:47:43,480 --> 13:47:47,276 renaming here let me change it to Matrix 20219 13:47:47,276 --> 13:47:50,640 Visual and let me add 20220 13:47:51,640 --> 13:47:56,116 brand disabl row sub totals and expand 20221 13:47:56,116 --> 13:47:59,720 it as of now as you can see the ranks 20222 13:47:59,720 --> 13:48:01,200 have changed their order a little bit 20223 13:48:01,200 --> 13:48:03,360 because the thing is the moment I sorted 20224 13:48:03,360 --> 13:48:07,240 it on net the net is actually sorted not 20225 13:48:07,240 --> 13:48:10,240 for the brand and category it is first 20226 13:48:10,240 --> 13:48:12,200 sorted on the top brand and then the 20227 13:48:12,200 --> 13:48:14,040 second top brand and then inside that 20228 13:48:14,040 --> 13:48:16,520 for the category and that is why you see 20229 13:48:16,520 --> 13:48:20,040 this rank is not working in a particular 20230 13:48:20,040 --> 13:48:21,720 descending order but on a table visual 20231 13:48:21,720 --> 13:48:24,756 it is going to work as expected and but 20232 13:48:24,756 --> 13:48:26,520 we would like to add a new calculation 20233 13:48:26,520 --> 13:48:29,040 here which is nothing 20234 13:48:29,040 --> 13:48:32,880 but rank three and here I would like to 20235 13:48:32,880 --> 13:48:35,680 use rank 20236 13:48:35,680 --> 13:48:38,160 ties is 20237 13:48:38,160 --> 13:48:42,680 T relation is 20238 13:48:43,320 --> 13:48:46,520 row order by 20239 13:48:46,520 --> 13:48:49,520 is 20240 13:48:50,040 --> 13:48:52,720 net order by is 20241 13:48:52,720 --> 13:48:55,720 net 20242 13:48:56,480 --> 13:48:58,756 descending I leave blanks I leave 20243 13:48:58,756 --> 13:49:00,880 Partition by I leave match by and I want 20244 13:49:00,880 --> 13:49:04,200 reset reset as right now I'll use lest 20245 13:49:04,200 --> 13:49:05,756 parent but in this case lowest parent 20246 13:49:05,756 --> 13:49:07,796 and highest parent are same so let's try 20247 13:49:07,796 --> 13:49:09,916 that out so it is saying reset parameter 20248 13:49:09,916 --> 13:49:11,400 cannot be used with the combination of 20249 13:49:11,400 --> 13:49:12,796 order by and Partition by because I've 20250 13:49:12,796 --> 13:49:14,916 used order by so it is not allowing me 20251 13:49:14,916 --> 13:49:18,000 to use the reset so let's go ahead and 20252 13:49:18,000 --> 13:49:19,040 edit this 20253 13:49:19,040 --> 13:49:22,276 calculation and remove the order by does 20254 13:49:22,276 --> 13:49:24,480 it 20255 13:49:25,080 --> 13:49:28,276 work yes it does work as we have learned 20256 13:49:28,276 --> 13:49:31,560 only the combinations can work exis and 20257 13:49:31,560 --> 13:49:35,320 reset order by and Partition by let's go 20258 13:49:35,320 --> 13:49:37,640 back to the visual and as you can see 20259 13:49:37,640 --> 13:49:40,480 the we are able to partition it when we 20260 13:49:40,480 --> 13:49:43,916 are using the default access you can now 20261 13:49:43,916 --> 13:49:46,400 observe that the categories are ranked 20262 13:49:46,400 --> 13:49:49,000 properly inside each brand so there is a 20263 13:49:49,000 --> 13:49:51,840 reset happening for each brand and 20264 13:49:51,840 --> 13:49:55,040 categories are ranked inside that so we 20265 13:49:55,040 --> 13:49:56,796 know that the combination is there and 20266 13:49:56,796 --> 13:49:59,080 that combination is applied on this 20267 13:49:59,080 --> 13:50:02,360 visual the row and AIS and order by and 20268 13:50:02,360 --> 13:50:04,520 Partition by but we don't never want it 20269 13:50:04,520 --> 13:50:07,320 to to call it explicit so but still it 20270 13:50:07,320 --> 13:50:09,240 is very good that we are able to change 20271 13:50:09,240 --> 13:50:11,436 it for category and brand whenever the 20272 13:50:11,436 --> 13:50:12,880 access is changing it's still it is 20273 13:50:12,880 --> 13:50:15,040 working so that kind of rank is working 20274 13:50:15,040 --> 13:50:17,720 for us the next visual calculation which 20275 13:50:17,720 --> 13:50:19,796 we would like to explore is using the 20276 13:50:19,796 --> 13:50:22,916 row number function now next thing which 20277 13:50:22,916 --> 13:50:25,040 you want to experiment with is the row 20278 13:50:25,040 --> 13:50:27,436 number with the row number I would like 20279 13:50:27,436 --> 13:50:29,756 to create a table Visual and this time 20280 13:50:29,756 --> 13:50:31,480 I'm going to bring in something which is 20281 13:50:31,480 --> 13:50:33,436 having data at much granular level so 20282 13:50:33,436 --> 13:50:34,596 I'm going to bring in order number 20283 13:50:34,596 --> 13:50:36,916 number as non- summarized and I'm going 20284 13:50:36,916 --> 13:50:39,400 to bring in sum of quantity I no don't 20285 13:50:39,400 --> 13:50:41,720 have any measure here I would like to 20286 13:50:41,720 --> 13:50:44,360 sort it on sum of quantity and now I 20287 13:50:44,360 --> 13:50:47,000 would like to build a calculation which 20288 13:50:47,000 --> 13:50:48,680 is row number I want to give the unique 20289 13:50:48,680 --> 13:50:51,756 row number here in this visual to do 20290 13:50:51,756 --> 13:50:54,080 that I will start a new visual 20291 13:50:54,080 --> 13:50:56,720 calculation and I'll call it 20292 13:50:56,720 --> 13:51:00,080 row num one and I'm going to use the 20293 13:51:00,080 --> 13:51:02,680 function row number and in this row 20294 13:51:02,680 --> 13:51:03,956 number function I'm going to use the 20295 13:51:03,956 --> 13:51:05,596 relation which is 20296 13:51:05,596 --> 13:51:08,596 row next thing is order by and in this 20297 13:51:08,596 --> 13:51:10,400 order 20298 13:51:10,400 --> 13:51:13,040 by I'm going to use the something which 20299 13:51:13,040 --> 13:51:15,000 is we have in this visual sum of 20300 13:51:15,000 --> 13:51:16,840 quantity see I'm not created a measure 20301 13:51:16,840 --> 13:51:19,596 here I'm going to use sum of quantity in 20302 13:51:19,596 --> 13:51:23,000 this visual calculation which is only 20303 13:51:23,000 --> 13:51:27,840 present as a implicit measor not an 20304 13:51:27,840 --> 13:51:30,640 explicit mejor defined by me with the 20305 13:51:30,640 --> 13:51:33,520 help of that implicit one I'm using it 20306 13:51:33,520 --> 13:51:36,080 and as you can see on on the first one 20307 13:51:36,080 --> 13:51:39,116 you are able to see the row numbers 20308 13:51:39,116 --> 13:51:41,640 getting from 1 2 3 4 let's go back to 20309 13:51:41,640 --> 13:51:44,520 the report and you can see that we do 20310 13:51:44,520 --> 13:51:47,400 have the row numbers here 1 2 3 4 5 6 7 20311 13:51:47,400 --> 13:51:49,640 8 9 10 can we create a multiple 20312 13:51:49,640 --> 13:51:52,360 combination and can it still work out so 20313 13:51:52,360 --> 13:51:55,116 let's go ahead and add City ID to the 20314 13:51:55,116 --> 13:51:57,756 visualization yes it is working but 20315 13:51:57,756 --> 13:51:59,560 order number is still giving the 20316 13:51:59,560 --> 13:52:01,720 uniqueness and anyway we will we'll 20317 13:52:01,720 --> 13:52:03,240 always get a unique combination so let 20318 13:52:03,240 --> 13:52:05,520 me add an item ID also 20319 13:52:05,520 --> 13:52:08,640 here Item ID and City ID still we are 20320 13:52:08,640 --> 13:52:10,596 getting the numbers and let me change 20321 13:52:10,596 --> 13:52:13,400 this combination now now it is based on 20322 13:52:13,400 --> 13:52:17,080 the combination of item ID and City ID 20323 13:52:17,080 --> 13:52:18,956 no more the combination is based on the 20324 13:52:18,956 --> 13:52:21,116 unique order number so based on the 20325 13:52:21,116 --> 13:52:23,400 unique combinations also it is working 20326 13:52:23,400 --> 13:52:24,480 and we have 20327 13:52:24,480 --> 13:52:27,916 not changed anything in our function the 20328 13:52:27,916 --> 13:52:29,436 row number function like we have not 20329 13:52:29,436 --> 13:52:31,880 done any explicit call here without any 20330 13:52:31,880 --> 13:52:34,720 explicit call of the relation it is 20331 13:52:34,720 --> 13:52:36,436 still working so that is what the 20332 13:52:36,436 --> 13:52:39,080 advantage of visual calculation the next 20333 13:52:39,080 --> 13:52:40,756 visual calculation which I want to try 20334 13:52:40,756 --> 13:52:43,200 out is on the window function and it did 20335 13:52:43,200 --> 13:52:45,480 not work out for me so let me showcase 20336 13:52:45,480 --> 13:52:47,436 you what I tried out and what did not 20337 13:52:47,436 --> 13:52:49,916 work for me but you can go ahead and try 20338 13:52:49,916 --> 13:52:51,840 and experiment and let me know in case 20339 13:52:51,840 --> 13:52:54,880 you are able to make it work so I went 20340 13:52:54,880 --> 13:52:57,560 ahead and added 20341 13:52:57,560 --> 13:53:02,040 brand along with net 20342 13:53:04,840 --> 13:53:06,880 now I will go ahead and add the new 20343 13:53:06,880 --> 13:53:08,880 visual calculation and this time I would 20344 13:53:08,880 --> 13:53:11,480 like to use window function I've done 20345 13:53:11,480 --> 13:53:13,480 few experiment none of them has given me 20346 13:53:13,480 --> 13:53:16,916 the desired success so calculate net 20347 13:53:16,916 --> 13:53:19,240 window as you know window require first 20348 13:53:19,240 --> 13:53:22,000 to argument the window position 20349 13:53:22,000 --> 13:53:23,200 something which we have experimented 20350 13:53:23,200 --> 13:53:25,276 with the range so if the window doesn't 20351 13:53:25,276 --> 13:53:28,240 work range is there with us to do all 20352 13:53:28,240 --> 13:53:31,200 these calculation we can use that 20353 13:53:31,200 --> 13:53:36,360 so from what from the minus one 20354 13:53:36,360 --> 13:53:39,320 relative position 20355 13:53:39,320 --> 13:53:42,116 to zero relative 20356 13:53:42,116 --> 13:53:44,040 position and the next thing which I 20357 13:53:44,040 --> 13:53:46,720 wanted to use is relation itself which I 20358 13:53:46,720 --> 13:53:47,956 was trying to give 20359 13:53:47,956 --> 13:53:52,000 rows and I don't want to give any order 20360 13:53:52,000 --> 13:53:54,240 by right now and try to experiment with 20361 13:53:54,240 --> 13:53:55,200 the window 20362 13:53:55,200 --> 13:53:58,720 function and it did not work as I was 20363 13:53:58,720 --> 13:54:01,360 expecting it to work because it is 20364 13:54:01,360 --> 13:54:03,880 requiring a unique context which I'm not 20365 13:54:03,880 --> 13:54:07,040 able to Pro here I went ahead and I said 20366 13:54:07,040 --> 13:54:09,240 okay let me edit the calculation let me 20367 13:54:09,240 --> 13:54:12,160 see if order by can help 20368 13:54:12,160 --> 13:54:14,916 us I used order by 20369 13:54:14,916 --> 13:54:17,916 net 20370 13:54:19,520 --> 13:54:22,040 DEC and I again committed this 20371 13:54:22,040 --> 13:54:26,160 calculation and it did not work out for 20372 13:54:26,160 --> 13:54:29,320 me so seems like for the window function 20373 13:54:29,320 --> 13:54:31,160 it is not working for me the other thing 20374 13:54:31,160 --> 13:54:33,240 which I can do is absolute to Absolute 20375 13:54:33,240 --> 13:54:34,916 this is something which 20376 13:54:34,916 --> 13:54:38,320 can work for us zero 20377 13:54:38,320 --> 13:54:41,320 absolute 20378 13:54:42,360 --> 13:54:45,276 to minus1 20379 13:54:45,276 --> 13:54:47,796 Absolute let's try from 1 absolute to 20380 13:54:47,796 --> 13:54:50,840 minus one absolute and let's see does it 20381 13:54:50,840 --> 13:54:55,320 work no it didn't so seems like we will 20382 13:54:55,320 --> 13:54:57,320 not be able to use window function as of 20383 13:54:57,320 --> 13:54:59,720 now in the visual level calculation 20384 13:54:59,720 --> 13:55:03,200 using the 20385 13:55:04,596 --> 13:55:07,040 rows as 20386 13:55:07,040 --> 13:55:09,720 X's Ive even tried the experiment by 20387 13:55:09,720 --> 13:55:11,436 giving here all 20388 13:55:11,436 --> 13:55:16,480 selected brand and item 20389 13:55:16,520 --> 13:55:19,480 brand so that calculation also doesn't 20390 13:55:19,480 --> 13:55:22,956 work for me but this is experiment for 20391 13:55:22,956 --> 13:55:25,276 you can you make the window function 20392 13:55:25,276 --> 13:55:27,916 work in the visual level calculations go 20393 13:55:27,916 --> 13:55:30,560 ahead and try that out but now we know 20394 13:55:30,560 --> 13:55:33,000 that we have made quite a few functions 20395 13:55:33,000 --> 13:55:35,276 working for 20396 13:55:35,276 --> 13:55:37,276 the visual calculation that include 20397 13:55:37,276 --> 13:55:41,360 offset index and rank noow number the 20398 13:55:41,360 --> 13:55:43,436 four functions out of the five functions 20399 13:55:43,436 --> 13:55:45,360 which are very similar to SQL window 20400 13:55:45,360 --> 13:55:47,160 function which provides us order by and 20401 13:55:47,160 --> 13:55:49,276 Partition by we are able to use in 20402 13:55:49,276 --> 13:55:51,596 visual level calculations one of the 20403 13:55:51,596 --> 13:55:54,000 most common function which you use very 20404 13:55:54,000 --> 13:55:56,480 frequently is rank now can we use rank X 20405 13:55:56,480 --> 13:55:58,596 in visual calculat because if we can use 20406 13:55:58,596 --> 13:56:00,480 rank X in the visual calculation it will 20407 13:56:00,480 --> 13:56:02,756 Pride a lot of flexibility when we are 20408 13:56:02,756 --> 13:56:05,080 going to calculate the rank so so I'm 20409 13:56:05,080 --> 13:56:06,916 going to go ahead and try out the rankx 20410 13:56:06,916 --> 13:56:09,116 function in the visual calculation and 20411 13:56:09,116 --> 13:56:11,640 explore how can it help us doing visual 20412 13:56:11,640 --> 13:56:13,640 calculation and how our ranks will 20413 13:56:13,640 --> 13:56:15,560 become more Dynamic when we use rank X 20414 13:56:15,560 --> 13:56:17,640 in the visual calculation so I'm on the 20415 13:56:17,640 --> 13:56:19,276 powerb file and here what I'm going to 20416 13:56:19,276 --> 13:56:20,796 do is I'm going to add a new page and 20417 13:56:20,796 --> 13:56:22,640 inside this new page I'm going to add 20418 13:56:22,640 --> 13:56:25,596 brand and 20419 13:56:25,596 --> 13:56:29,040 net make it a little bigger and convert 20420 13:56:29,040 --> 13:56:32,080 it into a table visual also now here I 20421 13:56:32,080 --> 13:56:34,916 want to add a rank so how do we use use 20422 13:56:34,916 --> 13:56:37,000 a rankx function and do it but this time 20423 13:56:37,000 --> 13:56:38,436 I don't want to use the rankx function 20424 13:56:38,436 --> 13:56:39,840 as a measure I want to use it as a 20425 13:56:39,840 --> 13:56:41,400 visual calculat let me click on the 20426 13:56:41,400 --> 13:56:42,916 visual that's how the visual 20427 13:56:42,916 --> 13:56:45,040 calculations are enabled go to the Home 20428 13:56:45,040 --> 13:56:47,320 tab and there I'm going to click on the 20429 13:56:47,320 --> 13:56:49,080 calculation new calculation is the 20430 13:56:49,080 --> 13:56:51,000 option to do that I'll click on the new 20431 13:56:51,000 --> 13:56:52,796 calculation visual calculations have 20432 13:56:52,796 --> 13:56:54,680 been opened now here I'm going to write 20433 13:56:54,680 --> 13:56:56,916 down a new calculation which is Rank and 20434 13:56:56,916 --> 13:56:59,240 rank I'm going to use the rank X 20435 13:56:59,240 --> 13:57:02,400 function rank X if you remember in the 20436 13:57:02,400 --> 13:57:04,240 rank X the first thing which which we 20437 13:57:04,240 --> 13:57:06,520 need to give is the table and that is 20438 13:57:06,520 --> 13:57:08,720 where I'm going to use rows expression 20439 13:57:08,720 --> 13:57:11,040 is basically our column where we are 20440 13:57:11,040 --> 13:57:13,360 going to thought third item usually we 20441 13:57:13,360 --> 13:57:16,000 keep empty fourth is order which is by 20442 13:57:16,000 --> 13:57:18,240 default descending and dies is the fifth 20443 13:57:18,240 --> 13:57:20,840 one which is by default so let me start 20444 13:57:20,840 --> 13:57:22,520 giving that so here I'm going to use 20445 13:57:22,520 --> 13:57:25,560 rows so I'm not going to use any like 20446 13:57:25,560 --> 13:57:28,276 all selected table column I'm the second 20447 13:57:28,276 --> 13:57:30,160 one is my net measure which I wanted to 20448 13:57:30,160 --> 13:57:32,880 use and third one is the values column 20449 13:57:32,880 --> 13:57:34,796 which I'm going to leave empty by 20450 13:57:34,796 --> 13:57:36,436 default it is descending but I can give 20451 13:57:36,436 --> 13:57:38,116 descending here and the dense because 20452 13:57:38,116 --> 13:57:40,916 skip is default one dense here as my 20453 13:57:40,916 --> 13:57:42,756 visual is already sorted on net you can 20454 13:57:42,756 --> 13:57:45,680 see it is showing you the rank one for 20455 13:57:45,680 --> 13:57:48,080 the maximum amount of net what we have 20456 13:57:48,080 --> 13:57:50,360 now question which you may ask is how 20457 13:57:50,360 --> 13:57:51,880 it's making a difference you would have 20458 13:57:51,880 --> 13:57:53,956 done this rank X function all selected 20459 13:57:53,956 --> 13:57:55,520 it would have behaved in the same manner 20460 13:57:55,520 --> 13:57:58,080 isn't it so let's do one thing let's try 20461 13:57:58,080 --> 13:57:59,560 to see if you already have a rank 20462 13:57:59,560 --> 13:58:02,240 function I do have a rank net which is 20463 13:58:02,240 --> 13:58:05,400 also on all selected item net descending 20464 13:58:05,400 --> 13:58:07,840 dance very similar major also I have so 20465 13:58:07,840 --> 13:58:09,400 I have a visual calculation I have a 20466 13:58:09,400 --> 13:58:11,520 major and you can see this is visual 20467 13:58:11,520 --> 13:58:14,840 calculation and this so while I have 20468 13:58:14,840 --> 13:58:16,400 both and both are giving the same but 20469 13:58:16,400 --> 13:58:19,080 let's we go ahead go to brand and click 20470 13:58:19,080 --> 13:58:20,720 on this arrow and I change it to 20471 13:58:20,720 --> 13:58:22,320 category the moment I change it to 20472 13:58:22,320 --> 13:58:23,720 category the thing which you will notice 20473 13:58:23,720 --> 13:58:25,520 here basically this rank got adjusted 20474 13:58:25,520 --> 13:58:27,040 but this is the one which is not getting 20475 13:58:27,040 --> 13:58:28,596 adjusted now why it is not getting 20476 13:58:28,596 --> 13:58:30,200 adjusted because it is talking about 20477 13:58:30,200 --> 13:58:32,596 item brand brand is not in the context 20478 13:58:32,596 --> 13:58:34,956 and that is where it all brand is not 20479 13:58:34,956 --> 13:58:36,916 get listed but here we are talking about 20480 13:58:36,916 --> 13:58:39,320 rows so here it is changed from Brand to 20481 13:58:39,320 --> 13:58:42,080 category and now it is able to adjust 20482 13:58:42,080 --> 13:58:43,756 the second case which we can test out is 20483 13:58:43,756 --> 13:58:45,276 basically let's convert this into a 20484 13:58:45,276 --> 13:58:47,480 matrix now I have category and inside 20485 13:58:47,480 --> 13:58:49,720 that let bring in brand inside the 20486 13:58:49,720 --> 13:58:52,080 category I have brand I added the brand 20487 13:58:52,080 --> 13:58:54,360 and I'm going to expand this Matrix 20488 13:58:54,360 --> 13:58:56,596 visual let's see what do you see a 20489 13:58:56,596 --> 13:58:57,956 difference here now here what is 20490 13:58:57,956 --> 13:59:00,360 happening here is this brand is 1 to n 20491 13:59:00,360 --> 13:59:03,160 so each brand is getting rank within the 20492 13:59:03,160 --> 13:59:04,720 category so there's a partitioning which 20493 13:59:04,720 --> 13:59:06,640 is happening but here when you see these 20494 13:59:06,640 --> 13:59:08,560 things this is not getting same way 20495 13:59:08,560 --> 13:59:10,000 partition there are different ranks and 20496 13:59:10,000 --> 13:59:11,796 if you see there is a one two here and 20497 13:59:11,796 --> 13:59:13,640 then there's a three here so remember 20498 13:59:13,640 --> 13:59:16,480 category 4 Brand two is at number three 20499 13:59:16,480 --> 13:59:18,956 and category two brand 8 and brand N9 20500 13:59:18,956 --> 13:59:20,720 now to understand this let me convert 20501 13:59:20,720 --> 13:59:23,240 this back into a table visual when I 20502 13:59:23,240 --> 13:59:25,956 convert it into table Visual and I sort 20503 13:59:25,956 --> 13:59:27,720 it on net which is right now the Sorting 20504 13:59:27,720 --> 13:59:29,956 you can see that it is actually sorting 20505 13:59:29,956 --> 13:59:32,480 it on the combination so in the second 20506 13:59:32,480 --> 13:59:34,480 level the Brand level when I is seeing 20507 13:59:34,480 --> 13:59:36,956 in The Matrix visual while the rank is 20508 13:59:36,956 --> 13:59:39,000 partitioning it by category this one is 20509 13:59:39,000 --> 13:59:41,080 not getting it partitioned now we we 20510 13:59:41,080 --> 13:59:42,756 have like you know rules how do we 20511 13:59:42,756 --> 13:59:44,916 partition and not partition in different 20512 13:59:44,916 --> 13:59:47,000 functions like we have rank function 20513 13:59:47,000 --> 13:59:48,560 where we can give Partition by and there 20514 13:59:48,560 --> 13:59:50,116 we can deal with but in this scenario 20515 13:59:50,116 --> 13:59:51,840 especially with the rank X function as 20516 13:59:51,840 --> 13:59:54,080 you can see now when I'm adding two it 20517 13:59:54,080 --> 13:59:55,880 is taking both of them as rows and you 20518 13:59:55,880 --> 13:59:58,080 know it is giving the rank based on that 20519 13:59:58,080 --> 13:59:59,480 now this is one of the challenge which 20520 13:59:59,480 --> 14:00:01,520 you had in the past like because if I 20521 14:00:01,520 --> 14:00:03,756 keep on adding how many ranks I'm going 20522 14:00:03,756 --> 14:00:06,116 to create and this is where you know a 20523 14:00:06,116 --> 14:00:08,720 visual calculations help helps us a lot 20524 14:00:08,720 --> 14:00:12,200 that my rank is independent of what I 20525 14:00:12,200 --> 14:00:15,116 have in the calculation I simply using 20526 14:00:15,116 --> 14:00:16,916 row and it can change based on the 20527 14:00:16,916 --> 14:00:18,916 visual so I don't have to specify a 20528 14:00:18,916 --> 14:00:20,560 particular column I get that 20529 14:00:20,560 --> 14:00:23,480 Independence that I can change my column 20530 14:00:23,480 --> 14:00:25,480 inside my visual or I can change my 20531 14:00:25,480 --> 14:00:27,360 group buys inside my visual and my rank 20532 14:00:27,360 --> 14:00:29,436 can adjust to that while in major 20533 14:00:29,436 --> 14:00:30,956 calculation that's not possible because 20534 14:00:30,956 --> 14:00:32,880 they are tied to a particular column of 20535 14:00:32,880 --> 14:00:35,276 field and they're going to behave in a 20536 14:00:35,276 --> 14:00:37,276 manner they should behave when this 20537 14:00:37,276 --> 14:00:38,956 column is tightly attached to that 20538 14:00:38,956 --> 14:00:41,000 particular measure so this is the real 20539 14:00:41,000 --> 14:00:42,116 benefit and now you would have 20540 14:00:42,116 --> 14:00:43,596 understood that you know what benefit 20541 14:00:43,596 --> 14:00:45,436 each one of them has now sometime I 20542 14:00:45,436 --> 14:00:47,276 would like to have mejor because I have 20543 14:00:47,276 --> 14:00:48,956 that kind of a scenario which is 20544 14:00:48,956 --> 14:00:50,840 basically the rank should get partition 20545 14:00:50,840 --> 14:00:52,916 as soon as I add something else and that 20546 14:00:52,916 --> 14:00:54,480 is what the case is and sometime you 20547 14:00:54,480 --> 14:00:56,436 know I have to explain that again and 20548 14:00:56,436 --> 14:00:57,956 again in many videos I've done that the 20549 14:00:57,956 --> 14:01:00,116 moment you add additional stuff the rank 20550 14:01:00,116 --> 14:01:02,080 is inside that additional column which 20551 14:01:02,080 --> 14:01:04,116 is not participating in the rank or get 20552 14:01:04,116 --> 14:01:05,956 partitioned by that other column because 20553 14:01:05,956 --> 14:01:07,640 we are limited by what column we have 20554 14:01:07,640 --> 14:01:09,276 put it into the rank X function in a 20555 14:01:09,276 --> 14:01:10,720 measure but that's not the case with the 20556 14:01:10,720 --> 14:01:13,160 visual calculation visual calculation 20557 14:01:13,160 --> 14:01:16,360 has been enounced in October 2024 so 20558 14:01:16,360 --> 14:01:18,080 let's have a look at what all 20559 14:01:18,080 --> 14:01:20,040 enhancements has been done into the 20560 14:01:20,040 --> 14:01:23,720 visual calculations in October 2024 20561 14:01:23,720 --> 14:01:25,200 there are few enhancements which has 20562 14:01:25,200 --> 14:01:27,160 been rolled out on the visual 20563 14:01:27,160 --> 14:01:30,116 calculation and one of them is using the 20564 14:01:30,116 --> 14:01:32,276 field parameters along with visual 20565 14:01:32,276 --> 14:01:34,000 calculations which we are going to 20566 14:01:34,000 --> 14:01:36,480 explore today so let's jump on the 20567 14:01:36,480 --> 14:01:39,000 release note look at what are the new 20568 14:01:39,000 --> 14:01:41,320 features which has been given for visual 20569 14:01:41,320 --> 14:01:43,720 calculations and we will explore them 20570 14:01:43,720 --> 14:01:46,796 onto the powerbi desktop I'm here on the 20571 14:01:46,796 --> 14:01:50,520 powerbi October 2024 feature summary and 20572 14:01:50,520 --> 14:01:52,116 in this feature summary one of the 20573 14:01:52,116 --> 14:01:54,320 feature which you will find under the 20574 14:01:54,320 --> 14:01:57,436 content reporting is visual calculation 20575 14:01:57,436 --> 14:01:59,680 update foreview once we click on that we 20576 14:01:59,680 --> 14:02:02,160 go down it talks about combo charts are 20577 14:02:02,160 --> 14:02:04,080 Now supported in theual visual 20578 14:02:04,080 --> 14:02:05,756 calculation now the combo chart are 20579 14:02:05,756 --> 14:02:07,720 supported so you can now use visual 20580 14:02:07,720 --> 14:02:09,880 calculation in combo chart such as line 20581 14:02:09,880 --> 14:02:12,436 and cluster column chart just you could 20582 14:02:12,436 --> 14:02:14,520 in the other chart types here is an 20583 14:02:14,520 --> 14:02:16,436 example of visual calculation reporting 20584 14:02:16,436 --> 14:02:19,276 moving average for 34s so one example 20585 14:02:19,276 --> 14:02:21,080 has been given for combo visual where we 20586 14:02:21,080 --> 14:02:22,720 can see the moving average has been 20587 14:02:22,720 --> 14:02:25,200 added on the line three quarters moving 20588 14:02:25,200 --> 14:02:28,040 average has been used on the line of 20589 14:02:28,040 --> 14:02:33,160 combo visual line clustered column chart 20590 14:02:34,756 --> 14:02:36,200 and the another feature which we are 20591 14:02:36,200 --> 14:02:37,840 looking forward mainly for today is 20592 14:02:37,840 --> 14:02:40,200 field parameters are Now supported this 20593 14:02:40,200 --> 14:02:42,000 month we have enabled the visual 20594 14:02:42,000 --> 14:02:43,680 calculation with field parameters you 20595 14:02:43,680 --> 14:02:45,916 can add visual calculation to the visual 20596 14:02:45,916 --> 14:02:47,880 containing field parameter or vice versa 20597 14:02:47,880 --> 14:02:49,756 field parameters can be used to quickly 20598 14:02:49,756 --> 14:02:51,720 switch around what's shown in the visual 20599 14:02:51,720 --> 14:02:53,756 for example you can create field 20600 14:02:53,756 --> 14:02:56,200 parameter to enable your users to decide 20601 14:02:56,200 --> 14:02:58,160 which attribute Dimension to show for 20602 14:02:58,160 --> 14:03:00,116 example field parameter called Product 20603 14:03:00,116 --> 14:03:01,840 attribute can be used to determine the 20604 14:03:01,840 --> 14:03:03,880 percentage of grand total you have the 20605 14:03:03,880 --> 14:03:05,720 percentage of grand total which is using 20606 14:03:05,720 --> 14:03:07,880 rows and you can switch the AIS using 20607 14:03:07,880 --> 14:03:09,680 the field parameter and it will continue 20608 14:03:09,680 --> 14:03:11,880 to 20609 14:03:11,880 --> 14:03:14,436 work another update is faster ways to 20610 14:03:14,436 --> 14:03:17,040 add templated visual calculation you can 20611 14:03:17,040 --> 14:03:19,040 now add templated visual calculation 20612 14:03:19,040 --> 14:03:20,956 with fewer clicks by clicking on the 20613 14:03:20,956 --> 14:03:23,200 button as part of new visual calculation 20614 14:03:23,200 --> 14:03:25,160 previously to get the visual template 20615 14:03:25,160 --> 14:03:27,756 you have to go to the visual calculation 20616 14:03:27,756 --> 14:03:29,596 and there you have the option to choose 20617 14:03:29,596 --> 14:03:31,880 the template from the calculation now 20618 14:03:31,880 --> 14:03:33,320 the template option is available 20619 14:03:33,320 --> 14:03:34,840 directly under the new visual 20620 14:03:34,840 --> 14:03:36,720 calculation under the Home tab and you 20621 14:03:36,720 --> 14:03:39,480 can use it from there you can also start 20622 14:03:39,480 --> 14:03:41,880 new calculation without template using 20623 14:03:41,880 --> 14:03:43,956 custom option so these are some of the 20624 14:03:43,956 --> 14:03:46,520 updates let me jump onto a power VA file 20625 14:03:46,520 --> 14:03:49,116 and showcase you these updates so I'm 20626 14:03:49,116 --> 14:03:50,680 here on the powerbi file this is the 20627 14:03:50,680 --> 14:03:52,200 file where I have already done some 20628 14:03:52,200 --> 14:03:54,276 visual calculations in the past also I'm 20629 14:03:54,276 --> 14:03:56,276 using the dark mode which is recently 20630 14:03:56,276 --> 14:03:58,796 released so you can see that my uis of 20631 14:03:58,796 --> 14:04:01,680 the powerbi are in the dark mode first 20632 14:04:01,680 --> 14:04:03,916 of all I'm going to add a new page in to 20633 14:04:03,916 --> 14:04:06,640 this UI and I will take you through the 20634 14:04:06,640 --> 14:04:08,756 features one by one first of all let me 20635 14:04:08,756 --> 14:04:10,200 add a table visual so I'm going to add a 20636 14:04:10,200 --> 14:04:12,560 table Visual and inside the table visual 20637 14:04:12,560 --> 14:04:15,916 let me bring in brand and the major net 20638 14:04:15,916 --> 14:04:17,436 I have a visual brand with the net and 20639 14:04:17,436 --> 14:04:18,596 let's say I want to add a visual 20640 14:04:18,596 --> 14:04:20,200 calculation how do we add a visual 20641 14:04:20,200 --> 14:04:22,276 calculation I to go to the Home 20642 14:04:22,276 --> 14:04:24,840 tab and inside the Home tab I have new 20643 14:04:24,840 --> 14:04:26,916 visual calculation and as you can see 20644 14:04:26,916 --> 14:04:28,320 the new feature which is already been 20645 14:04:28,320 --> 14:04:29,880 discussed that you have the access to 20646 14:04:29,880 --> 14:04:31,560 the template quickly you don't have to 20647 14:04:31,560 --> 14:04:33,916 go to the calculation and choose one of 20648 14:04:33,916 --> 14:04:36,116 them so let's choose percentage of grand 20649 14:04:36,116 --> 14:04:38,040 total as one of the calculations so 20650 14:04:38,040 --> 14:04:39,680 using that template we have come here 20651 14:04:39,680 --> 14:04:41,240 directly you can see we have percentage 20652 14:04:41,240 --> 14:04:44,880 of ground total and I can use net as my 20653 14:04:44,880 --> 14:04:46,796 major collapse all function is going to 20654 14:04:46,796 --> 14:04:49,520 give me the grand total net again and 20655 14:04:49,520 --> 14:04:53,520 xes is rows that remains Dynamic now I 20656 14:04:53,520 --> 14:04:55,520 got my percentage of total now you are 20657 14:04:55,520 --> 14:04:56,956 not seeing percentage and I'll tell you 20658 14:04:56,956 --> 14:04:58,560 the new feature which will enable you to 20659 14:04:58,560 --> 14:05:00,520 see it in the percentage format also 20660 14:05:00,520 --> 14:05:02,880 that came very recently few months back 20661 14:05:02,880 --> 14:05:05,116 let's go back now we would like to 20662 14:05:05,116 --> 14:05:07,160 format this percentage of total click on 20663 14:05:07,160 --> 14:05:09,756 this go to the format I opened the 20664 14:05:09,756 --> 14:05:12,160 format now inside the format go to 20665 14:05:12,160 --> 14:05:14,240 properties and inside the properties 20666 14:05:14,240 --> 14:05:16,436 data format choose the percentage of 20667 14:05:16,436 --> 14:05:18,720 grand total the data type is decimal the 20668 14:05:18,720 --> 14:05:21,436 format is percentage once you choose the 20669 14:05:21,436 --> 14:05:23,916 percentage format in the decimal data 20670 14:05:23,916 --> 14:05:25,840 type you will be able to see in the 20671 14:05:25,840 --> 14:05:27,796 percentage 20672 14:05:27,796 --> 14:05:30,720 format we have saw one more feature and 20673 14:05:30,720 --> 14:05:32,160 that the feature is it is supported on 20674 14:05:32,160 --> 14:05:34,160 combo visual so let's make this chart as 20675 14:05:34,160 --> 14:05:37,200 line cluster and let's try to move this 20676 14:05:37,200 --> 14:05:39,080 percentage of grand total from the 20677 14:05:39,080 --> 14:05:41,840 column of Y AIS line yis visual is now 20678 14:05:41,840 --> 14:05:43,916 showing percentage of total along with 20679 14:05:43,916 --> 14:05:46,756 the net what we can do now is we can 20680 14:05:46,756 --> 14:05:49,840 sort this visual on brand and observe it 20681 14:05:49,840 --> 14:05:52,520 again let's sort this on 20682 14:05:52,520 --> 14:05:55,160 brand we can observe the visual again 20683 14:05:55,160 --> 14:05:57,400 now we can see net as well as percentage 20684 14:05:57,400 --> 14:06:00,240 of grand total together now to make it 20685 14:06:00,240 --> 14:06:02,000 little more interesting where you can 20686 14:06:02,000 --> 14:06:03,756 differentiate what line is doing this is 20687 14:06:03,756 --> 14:06:06,080 what bar is doing let's convert this 20688 14:06:06,080 --> 14:06:08,840 line into percentage of running total 20689 14:06:08,840 --> 14:06:11,720 line so let's edit this calculation and 20690 14:06:11,720 --> 14:06:13,436 how do we get running total so we have 20691 14:06:13,436 --> 14:06:15,000 another template for running total but 20692 14:06:15,000 --> 14:06:18,160 we do have a function running sum on the 20693 14:06:18,160 --> 14:06:21,320 top I'll take running sum X is as rows 20694 14:06:21,320 --> 14:06:23,756 so let's divide running Su by total and 20695 14:06:23,756 --> 14:06:26,276 let me go back the report and let me 20696 14:06:26,276 --> 14:06:29,080 sort this on the brand 20697 14:06:29,080 --> 14:06:31,640 ascending and as you can see this is now 20698 14:06:31,640 --> 14:06:33,880 showing me running percentage of total 20699 14:06:33,880 --> 14:06:35,720 we are able to explore the second 20700 14:06:35,720 --> 14:06:38,400 feature also let me convert this visual 20701 14:06:38,400 --> 14:06:41,320 into table so we have a calculation net 20702 14:06:41,320 --> 14:06:43,560 we have a percentage of grand total 20703 14:06:43,560 --> 14:06:44,756 which is actually not percentage of 20704 14:06:44,756 --> 14:06:46,400 grand total which is percentage of 20705 14:06:46,400 --> 14:06:49,116 running total and I would also like to 20706 14:06:49,116 --> 14:06:51,276 add one more function offset function or 20707 14:06:51,276 --> 14:06:53,116 index function I'll add one more 20708 14:06:53,116 --> 14:06:55,360 calculation here that calculation is 20709 14:06:55,360 --> 14:06:57,400 last so what is there in the last so I 20710 14:06:57,400 --> 14:06:59,160 can use offset function calculate we 20711 14:06:59,160 --> 14:07:00,640 have previous here but I would like to 20712 14:07:00,640 --> 14:07:05,040 use offset here net comma offset minus 20713 14:07:05,040 --> 14:07:07,116 one relation is 20714 14:07:07,116 --> 14:07:11,796 rows order by is net D actually I wanted 20715 14:07:11,796 --> 14:07:13,436 to have specific order by and that is 20716 14:07:13,436 --> 14:07:16,160 why I used this offset function for last 20717 14:07:16,160 --> 14:07:18,796 row when I go back to the report now 20718 14:07:18,796 --> 14:07:20,640 this function for that I need the 20719 14:07:20,640 --> 14:07:22,276 Sorting on the net if you see if I do 20720 14:07:22,276 --> 14:07:24,200 the Sorting on the net it's giving me 20721 14:07:24,200 --> 14:07:26,720 the last two let's do one thing let's 20722 14:07:26,720 --> 14:07:29,596 duplicate this visual CU they both need 20723 14:07:29,596 --> 14:07:31,756 different sorting and now from the first 20724 14:07:31,756 --> 14:07:33,320 visual I can remove the last row from 20725 14:07:33,320 --> 14:07:35,200 the second visual I can remove percent 20726 14:07:35,200 --> 14:07:37,436 of running total sort first visual on 20727 14:07:37,436 --> 14:07:39,480 brand and second visual on net the 20728 14:07:39,480 --> 14:07:41,240 reason for this change is because one of 20729 14:07:41,240 --> 14:07:43,916 my visual calculation is working on the 20730 14:07:43,916 --> 14:07:46,040 axis another one is working on the major 20731 14:07:46,040 --> 14:07:48,040 sorting now what I would like to do is I 20732 14:07:48,040 --> 14:07:49,916 would like to make both these visuals 20733 14:07:49,916 --> 14:07:52,436 Dynamic by using field parameters so I 20734 14:07:52,436 --> 14:07:55,000 would like to change the a/ row and see 20735 14:07:55,000 --> 14:07:57,240 that the calculation is still holds true 20736 14:07:57,240 --> 14:07:59,000 for that I would now like to create 20737 14:07:59,000 --> 14:08:00,596 field parameter that is going to change 20738 14:08:00,596 --> 14:08:02,840 my categorical variable or access to do 20739 14:08:02,840 --> 14:08:05,480 that I will we go to modeling new 20740 14:08:05,480 --> 14:08:08,200 parameters Fields I'm going to create 20741 14:08:08,200 --> 14:08:11,000 access let me call it as access one and 20742 14:08:11,000 --> 14:08:13,276 here I'm going to select from item table 20743 14:08:13,276 --> 14:08:15,796 brand category subcategory from 20744 14:08:15,796 --> 14:08:18,840 geography table I'll select state and 20745 14:08:18,840 --> 14:08:21,560 city I will leave this option add slicer 20746 14:08:21,560 --> 14:08:23,436 to this page as is I would like it to 20747 14:08:23,436 --> 14:08:27,240 add and then I can now click on create 20748 14:08:27,240 --> 14:08:30,000 to create my field parameter field 20749 14:08:30,000 --> 14:08:31,560 parameter will add a table with a 20750 14:08:31,560 --> 14:08:33,880 special syntax which enables us to use 20751 14:08:33,880 --> 14:08:35,360 the field parameters this I have 20752 14:08:35,360 --> 14:08:37,680 explained in the past also now we got 20753 14:08:37,680 --> 14:08:39,680 the field parameter we also got a slicer 20754 14:08:39,680 --> 14:08:42,116 we would like to utilize it let me first 20755 14:08:42,116 --> 14:08:44,360 of all adjust it little 20756 14:08:44,360 --> 14:08:46,796 bit now we have adjusted our visual but 20757 14:08:46,796 --> 14:08:48,840 our visual are not following any access 20758 14:08:48,840 --> 14:08:49,680 isn't 20759 14:08:49,680 --> 14:08:53,240 it let's go ahead and change the visuals 20760 14:08:53,240 --> 14:08:55,916 to use access I go to the first Visual 20761 14:08:55,916 --> 14:08:58,596 and I will go to access drag XIs one and 20762 14:08:58,596 --> 14:09:00,880 remove brand I will do the same in the 20763 14:09:00,880 --> 14:09:02,200 second visual I'll click on the second 20764 14:09:02,200 --> 14:09:04,880 visual drag access and remove brand 20765 14:09:04,880 --> 14:09:07,160 visual is sorted on AIS or categorical 20766 14:09:07,160 --> 14:09:09,560 variable and second one is sorted on the 20767 14:09:09,560 --> 14:09:12,360 measor now let's change the access both 20768 14:09:12,360 --> 14:09:13,956 the visuals should change if I change 20769 14:09:13,956 --> 14:09:16,116 the access one I change it to category 20770 14:09:16,116 --> 14:09:17,916 as you can observe in the first visual 20771 14:09:17,916 --> 14:09:20,400 we are still getting the correct 20772 14:09:20,400 --> 14:09:23,436 percentage of running total it is still 20773 14:09:23,436 --> 14:09:26,116 rolling up to the 20774 14:09:26,116 --> 14:09:28,756 100% so you can observe in the second 20775 14:09:28,756 --> 14:09:30,756 vual that we are still getting the 20776 14:09:30,756 --> 14:09:32,796 correct prior with the help of field 20777 14:09:32,796 --> 14:09:35,276 parameters XIs has changed or the row 20778 14:09:35,276 --> 14:09:37,160 has changed or the categorical variable 20779 14:09:37,160 --> 14:09:39,560 has changed but still we are able to see 20780 14:09:39,560 --> 14:09:42,040 the last row value based on visual 20781 14:09:42,040 --> 14:09:43,840 calculation which we don't have to 20782 14:09:43,840 --> 14:09:46,956 change let's look at State when we look 20783 14:09:46,956 --> 14:09:48,840 at the state calculation again you can 20784 14:09:48,840 --> 14:09:50,720 see my percentage of running total is 20785 14:09:50,720 --> 14:09:53,040 still working as well as you can observe 20786 14:09:53,040 --> 14:09:55,240 that the prior calculations are still 20787 14:09:55,240 --> 14:09:57,640 working fine are still getting the 20788 14:09:57,640 --> 14:10:00,680 previous row value in spite of change in 20789 14:10:00,680 --> 14:10:04,320 the categorical variable /xs look at how 20790 14:10:04,320 --> 14:10:06,880 simple and quick calculation we have 20791 14:10:06,880 --> 14:10:09,400 done and those quick calculations have 20792 14:10:09,400 --> 14:10:12,240 not only worked with what categorical 20793 14:10:12,240 --> 14:10:14,400 variables or what axis or what row we 20794 14:10:14,400 --> 14:10:16,840 had in that visual even when we changed 20795 14:10:16,840 --> 14:10:19,436 it it continue to work and the last item 20796 14:10:19,436 --> 14:10:21,400 before we conclude for today let's have 20797 14:10:21,400 --> 14:10:23,240 more than one and does it continue to 20798 14:10:23,240 --> 14:10:25,560 work as you can see calculations are 20799 14:10:25,560 --> 14:10:29,040 still working and this is the beauty of 20800 14:10:29,040 --> 14:10:31,680 visual calculation and we can say visual 20801 14:10:31,680 --> 14:10:34,080 calculations are better to together with 20802 14:10:34,080 --> 14:10:35,680 calculation group so why don't you go 20803 14:10:35,680 --> 14:10:39,080 ahead and try this out so now let's dig 20804 14:10:39,080 --> 14:10:40,720 deep into the conditional formatting 20805 14:10:40,720 --> 14:10:42,276 details for doing that what I've done is 20806 14:10:42,276 --> 14:10:44,116 I've already created few set of visuals 20807 14:10:44,116 --> 14:10:45,640 where we are going to experiment with 20808 14:10:45,640 --> 14:10:47,080 I'll also tell you where you will not be 20809 14:10:47,080 --> 14:10:49,116 able to do the conditional formatting so 20810 14:10:49,116 --> 14:10:50,756 what do I mean by conditional formatting 20811 14:10:50,756 --> 14:10:52,520 so in every visual when you go to the 20812 14:10:52,520 --> 14:10:54,596 visual format you have a color option 20813 14:10:54,596 --> 14:10:56,400 now the color option under the bars in 20814 14:10:56,400 --> 14:10:58,320 case of bar visual in case of column 20815 14:10:58,320 --> 14:11:00,916 visual column in case of Matrix and 20816 14:11:00,916 --> 14:11:02,560 table visual you will have the colors 20817 14:11:02,560 --> 14:11:04,560 under same cell element various 20818 14:11:04,560 --> 14:11:05,956 conditional formatting options are 20819 14:11:05,956 --> 14:11:08,400 available table Visual and the Matrix 20820 14:11:08,400 --> 14:11:09,956 visual have a lot of option they have on 20821 14:11:09,956 --> 14:11:11,880 background font then they have datab 20822 14:11:11,880 --> 14:11:15,240 bars icons web URL lot of options now 20823 14:11:15,240 --> 14:11:17,276 let's start with first of all the 20824 14:11:17,276 --> 14:11:19,360 conditional formatting on a table visual 20825 14:11:19,360 --> 14:11:20,956 so conditional formatting has few 20826 14:11:20,956 --> 14:11:22,880 limitations like in case of the Matrix 20827 14:11:22,880 --> 14:11:24,360 visual when you click on the Matrix 20828 14:11:24,360 --> 14:11:25,596 Visual and you want to do conditional 20829 14:11:25,596 --> 14:11:27,520 formatting you go to series you will not 20830 14:11:27,520 --> 14:11:29,276 see anything for the rows and the 20831 14:11:29,276 --> 14:11:30,956 columns me you can't do conditional 20832 14:11:30,956 --> 14:11:32,720 formatting on R feeds and column feeds 20833 14:11:32,720 --> 14:11:34,756 on table visual on contary you will be 20834 14:11:34,756 --> 14:11:36,756 able to do almost on everything on the 20835 14:11:36,756 --> 14:11:40,000 visuals like bar and Etc you cannot do 20836 14:11:40,000 --> 14:11:42,116 it if you have more than one major or if 20837 14:11:42,116 --> 14:11:43,560 you have a legend in these kind of 20838 14:11:43,560 --> 14:11:45,756 visual the the sign is basically you see 20839 14:11:45,756 --> 14:11:47,680 this FX button and the moment you stop 20840 14:11:47,680 --> 14:11:49,400 seeing this FX button you do any action 20841 14:11:49,400 --> 14:11:51,000 and you don't see this FX button it 20842 14:11:51,000 --> 14:11:52,520 means you will not be able to do the 20843 14:11:52,520 --> 14:11:53,756 conditional formatting so let's say if I 20844 14:11:53,756 --> 14:11:55,880 drag category on the legend you will no 20845 14:11:55,880 --> 14:11:58,276 more see that okay so it means the 20846 14:11:58,276 --> 14:12:00,080 option is not available you can see the 20847 14:12:00,080 --> 14:12:02,240 color color for each series but you 20848 14:12:02,240 --> 14:12:03,880 can't do a conditional form similarly 20849 14:12:03,880 --> 14:12:05,480 when you use more than one major also 20850 14:12:05,480 --> 14:12:07,080 you will not get that option you don't 20851 14:12:07,080 --> 14:12:08,680 have the options for the conditional 20852 14:12:08,680 --> 14:12:10,400 formatting the FX is not there in case 20853 14:12:10,400 --> 14:12:12,520 you have a pi visual me create 20854 14:12:12,520 --> 14:12:14,436 one you don't have conditional 20855 14:12:14,436 --> 14:12:16,200 formatting options you go to the slice 20856 14:12:16,200 --> 14:12:17,640 you don't have the option same way if 20857 14:12:17,640 --> 14:12:20,160 you create a line visual you again don't 20858 14:12:20,160 --> 14:12:21,480 have a conditional formatting option 20859 14:12:21,480 --> 14:12:23,116 under the line so there is no option 20860 14:12:23,116 --> 14:12:25,276 under the color and at few places we 20861 14:12:25,276 --> 14:12:27,720 will be able to get this even without 20862 14:12:27,720 --> 14:12:29,360 having those options at other places 20863 14:12:29,360 --> 14:12:30,756 we'll not be able to get it so let's 20864 14:12:30,756 --> 14:12:32,240 start with the conditional formatting 20865 14:12:32,240 --> 14:12:33,560 and first of all I'll I'll quickly 20866 14:12:33,560 --> 14:12:35,000 explain you the two conditional 20867 14:12:35,000 --> 14:12:38,116 formattings options to you on the table 20868 14:12:38,116 --> 14:12:40,680 visual so in the table visual I can do 20869 14:12:40,680 --> 14:12:42,116 conditional formatting on any of these 20870 14:12:42,116 --> 14:12:44,720 but let me bring in a major so margin 20871 14:12:44,720 --> 14:12:46,240 major I want to do background 20872 14:12:46,240 --> 14:12:48,116 conditional formatting of form or data 20873 14:12:48,116 --> 14:12:50,040 bar or icon all are available here I can 20874 14:12:50,040 --> 14:12:51,080 go to the background conditional 20875 14:12:51,080 --> 14:12:52,596 formatting I click it you immediately 20876 14:12:52,596 --> 14:12:54,160 start seeing because when you click on 20877 14:12:54,160 --> 14:12:56,360 FX You Realize by default the gradient 20878 14:12:56,360 --> 14:12:57,520 conditional formatting already been 20879 14:12:57,520 --> 14:12:58,916 picked up in the gradient conditional 20880 14:12:58,916 --> 14:13:00,956 formatting you can use a major and it is 20881 14:13:00,956 --> 14:13:02,596 not necessary that when I use margin I 20882 14:13:02,596 --> 14:13:04,160 need to use margin measure I can use any 20883 14:13:04,160 --> 14:13:07,276 other measure then I can also I specify 20884 14:13:07,276 --> 14:13:09,040 when what should I do for empty values 20885 14:13:09,040 --> 14:13:10,756 don't summarize treat it as zero or 20886 14:13:10,756 --> 14:13:12,640 specific color so this option is 20887 14:13:12,640 --> 14:13:14,360 available in the gradient condition form 20888 14:13:14,360 --> 14:13:16,436 I can use the minimum maximum color 20889 14:13:16,436 --> 14:13:18,200 gradient and I can choose it now if it 20890 14:13:18,200 --> 14:13:19,596 is a reverse like discount it should be 20891 14:13:19,596 --> 14:13:21,720 reverse the minimum value is good 20892 14:13:21,720 --> 14:13:23,756 actually I can have a middle color if I 20893 14:13:23,756 --> 14:13:25,916 want and once I use the middle color uh 20894 14:13:25,916 --> 14:13:27,796 it will give me a try color gradient and 20895 14:13:27,796 --> 14:13:29,956 I can use any color in that manner I can 20896 14:13:29,956 --> 14:13:32,040 actually build in my gradient 20897 14:13:32,040 --> 14:13:33,880 conditional formatting it can apply to 20898 14:13:33,880 --> 14:13:35,680 values and total and total only right 20899 14:13:35,680 --> 14:13:37,956 now I'm keeping it only as values and 20900 14:13:37,956 --> 14:13:40,400 I'll apply gradient conditional format 20901 14:13:40,400 --> 14:13:42,880 the other options here are rule base and 20902 14:13:42,880 --> 14:13:44,560 value base which we will explore in a 20903 14:13:44,560 --> 14:13:46,000 while you are now getting gradient 20904 14:13:46,000 --> 14:13:47,400 conditional formatting the same option 20905 14:13:47,400 --> 14:13:48,840 would be available in all the visuals 20906 14:13:48,840 --> 14:13:50,480 now here in the table visual we have 20907 14:13:50,480 --> 14:13:51,916 more options like we have option for 20908 14:13:51,916 --> 14:13:54,080 background we have option for uh font 20909 14:13:54,080 --> 14:13:56,320 color datab bars Etc but this font and 20910 14:13:56,320 --> 14:13:58,276 background color so this option would be 20911 14:13:58,276 --> 14:14:00,400 available in in the color option of most 20912 14:14:00,400 --> 14:14:02,640 of the visuals now cable visual is the 20913 14:14:02,640 --> 14:14:04,880 only visual where you can actually 20914 14:14:04,880 --> 14:14:06,840 create a row conditional formatting 20915 14:14:06,840 --> 14:14:08,640 because if you can repeat this I can go 20916 14:14:08,640 --> 14:14:10,680 ahead and you know I I chose my margin 20917 14:14:10,680 --> 14:14:13,000 percentage I can go and repeat this on 20918 14:14:13,000 --> 14:14:14,796 discount percentage repeat this on net 20919 14:14:14,796 --> 14:14:17,000 repeat this on brand so I can actually 20920 14:14:17,000 --> 14:14:18,596 create a complete row conditional for 20921 14:14:18,596 --> 14:14:20,000 same conditions I have to repeat the 20922 14:14:20,000 --> 14:14:21,720 same logic I have to repeat and it is 20923 14:14:21,720 --> 14:14:23,320 not necessary then when I'm I'm doing 20924 14:14:23,320 --> 14:14:24,840 conditional formatting on Brown it is 20925 14:14:24,840 --> 14:14:26,400 not necessary when I do conditional 20926 14:14:26,400 --> 14:14:27,956 formatting on discount percentage that I 20927 14:14:27,956 --> 14:14:29,360 have to use discount percentage I can 20928 14:14:29,360 --> 14:14:31,160 still go ahead and use margin percentage 20929 14:14:31,160 --> 14:14:33,000 and I can still use the same logic so I 20930 14:14:33,000 --> 14:14:34,480 will have similar kind of colors and if 20931 14:14:34,480 --> 14:14:35,840 you repeat this you will get a color 20932 14:14:35,840 --> 14:14:38,040 draw then comes the font formatting 20933 14:14:38,040 --> 14:14:39,240 let's complete the different kind of 20934 14:14:39,240 --> 14:14:40,560 formatting and then we will go to the 20935 14:14:40,560 --> 14:14:42,956 rules and the field value in the font 20936 14:14:42,956 --> 14:14:44,200 condition formatting you actually color 20937 14:14:44,200 --> 14:14:45,956 the font so let me color the font this 20938 14:14:45,956 --> 14:14:47,680 time based on the rule values only value 20939 14:14:47,680 --> 14:14:49,796 gr total I want to Value usually what 20940 14:14:49,796 --> 14:14:51,596 happens value rule based conditional 20941 14:14:51,596 --> 14:14:53,436 formatting let me apply it on based on 20942 14:14:53,436 --> 14:14:55,000 the I'm applying it on net but I will 20943 14:14:55,000 --> 14:14:57,116 apply based on the margin percentage I 20944 14:14:57,116 --> 14:14:58,640 should be knowing what are what is the 20945 14:14:58,640 --> 14:15:00,520 values I have because values will change 20946 14:15:00,520 --> 14:15:02,160 based on the group wise now even though 20947 14:15:02,160 --> 14:15:03,840 I'm doing it on percentage column and 20948 14:15:03,840 --> 14:15:05,240 this is something you should remember 20949 14:15:05,240 --> 14:15:06,596 that even though I'm going to do it on 20950 14:15:06,596 --> 14:15:08,276 percentage kind of a column it need to 20951 14:15:08,276 --> 14:15:09,680 be done on number everything should be 20952 14:15:09,680 --> 14:15:11,756 number and it it should be between 0 and 20953 14:15:11,756 --> 14:15:15,560 1 so these are basically. 13.13 .14 so I 20954 14:15:15,560 --> 14:15:19,160 have 10% 11% 12% 133% 14% that's the max 20955 14:15:19,160 --> 14:15:21,116 range I have so what I can do I can say 20956 14:15:21,116 --> 14:15:22,756 okay it need to be red when it is 20957 14:15:22,756 --> 14:15:24,000 between 0 20958 14:15:24,000 --> 14:15:26,520 to12 okay everything should be number 20959 14:15:26,520 --> 14:15:28,200 now because it is strictly less than 20960 14:15:28,200 --> 14:15:31,116 here what I can do is I can go ahead and 20961 14:15:31,116 --> 14:15:32,680 say greater than and equal to again 20962 14:15:32,680 --> 14:15:33,756 point 20963 14:15:33,756 --> 14:15:36,436 .12 and then not percentage I want a 20964 14:15:36,436 --> 14:15:39,240 number and from there strictly less than 20965 14:15:39,240 --> 14:15:42,240 .14 percentage 14 percentage and this 20966 14:15:42,240 --> 14:15:45,000 color I can keep it as 20967 14:15:45,000 --> 14:15:47,880 orange so again everything is number not 20968 14:15:47,880 --> 14:15:50,080 percentage now let's add one more rule 20969 14:15:50,080 --> 14:15:51,916 again we have given the last condition 20970 14:15:51,916 --> 14:15:55,240 which is basically till 20971 14:15:55,240 --> 14:15:59,000 14% 12% to 14% strictly less than 14 so 20972 14:15:59,000 --> 14:16:02,480 now it could be greater than 14% .14 and 20973 14:16:02,480 --> 14:16:04,320 it could go till one or it can whatever 20974 14:16:04,320 --> 14:16:05,796 number you wanted to give the best way 20975 14:16:05,796 --> 14:16:09,276 is to give it at one and here like if 20976 14:16:09,276 --> 14:16:11,276 you have negative values the first value 20977 14:16:11,276 --> 14:16:13,040 you can go ahead and change to let's say 20978 14:16:13,040 --> 14:16:15,796 minus1 or - 100 whatever you want minus 20979 14:16:15,796 --> 14:16:18,040 one could also do the job so what are my 20980 14:16:18,040 --> 14:16:20,720 conditions now my condition is from 20981 14:16:20,720 --> 14:16:23,596 negative to positive 12% number 20982 14:16:23,596 --> 14:16:28,276 everything it's going to be red from 12 20983 14:16:28,276 --> 14:16:30,480 to 14% it's going to be yellow and from 20984 14:16:30,480 --> 14:16:34,000 14% now let's change this from 14% to 20985 14:16:34,000 --> 14:16:36,796 anything which is till 100% should be 20986 14:16:36,796 --> 14:16:39,640 green so we use green color so now this 20987 14:16:39,640 --> 14:16:41,520 is the color what we want let's click on 20988 14:16:41,520 --> 14:16:44,320 okay and see how does it apply and as 20989 14:16:44,320 --> 14:16:45,916 you can see it has applied the color now 20990 14:16:45,916 --> 14:16:47,480 the first color is not visible let's 20991 14:16:47,480 --> 14:16:49,000 make it little bit bold so that we can 20992 14:16:49,000 --> 14:16:51,240 see it so we can make the values bold if 20993 14:16:51,240 --> 14:16:55,320 we want like this to look at the color 20994 14:16:55,320 --> 14:16:56,756 so these are the condition now we have 20995 14:16:56,756 --> 14:16:58,596 applied and now based on that condition 20996 14:16:58,596 --> 14:17:00,200 the colors are coming I'm reverting back 20997 14:17:00,200 --> 14:17:03,000 the Bold right as of now 20998 14:17:03,000 --> 14:17:04,640 so this is Rule based conditional 20999 14:17:04,640 --> 14:17:06,080 formatting the rule which you have to 21000 14:17:06,080 --> 14:17:08,480 remember percentage means allocation 21001 14:17:08,480 --> 14:17:11,276 based and number means you have the 21002 14:17:11,276 --> 14:17:12,956 exact value which you are planed to use 21003 14:17:12,956 --> 14:17:14,796 even if your column is a percentage 21004 14:17:14,796 --> 14:17:18,520 column you need to use number because 21005 14:17:18,520 --> 14:17:20,756 you are giving a range you are giving 21006 14:17:20,756 --> 14:17:23,080 the exact number range and for that you 21007 14:17:23,080 --> 14:17:25,560 need to use numbers not percentage so we 21008 14:17:25,560 --> 14:17:27,200 are done with the font conditional 21009 14:17:27,200 --> 14:17:29,080 formatting now what is this data bar so 21010 14:17:29,080 --> 14:17:30,360 basically what happens when you click on 21011 14:17:30,360 --> 14:17:32,360 the data bar I'll keep it on net it will 21012 14:17:32,360 --> 14:17:34,080 add a bar The Filling of the bar if you 21013 14:17:34,080 --> 14:17:36,320 go to the FX the option you have is the 21014 14:17:36,320 --> 14:17:38,240 lowest value highest value which you can 21015 14:17:38,240 --> 14:17:39,796 give you can get the values or by 21016 14:17:39,796 --> 14:17:41,560 default it will decide by itself you 21017 14:17:41,560 --> 14:17:43,796 have for positive bar and negative bar 21018 14:17:43,796 --> 14:17:45,520 and X is color now there's no 21019 14:17:45,520 --> 14:17:47,040 conditional formatting further on it you 21020 14:17:47,040 --> 14:17:48,596 can choose left to right or right to 21021 14:17:48,596 --> 14:17:51,040 left also you can choose it will start 21022 14:17:51,040 --> 14:17:53,276 from the other direction also there's 21023 14:17:53,276 --> 14:17:54,796 one option if you want to only want to 21024 14:17:54,796 --> 14:17:57,640 show the bar you don't want to show the 21025 14:17:57,640 --> 14:18:00,000 number you can choose that in that case 21026 14:18:00,000 --> 14:18:01,720 you will only see the 21027 14:18:01,720 --> 14:18:04,436 bar so these kind of stuff you can do 21028 14:18:04,436 --> 14:18:05,680 now comes the icon conditional 21029 14:18:05,680 --> 14:18:07,720 formatting in case of Icon conditional 21030 14:18:07,720 --> 14:18:09,756 formatting you can click on FX and there 21031 14:18:09,756 --> 14:18:11,276 are always a rule again when you are 21032 14:18:11,276 --> 14:18:12,880 using the percentage base please 21033 14:18:12,880 --> 14:18:14,040 remember this is 21034 14:18:14,040 --> 14:18:17,596 allocation so allocation of net value 21035 14:18:17,596 --> 14:18:22,880 from 0 to 30.3% 33 to 67% and 67 to 100% 21036 14:18:22,880 --> 14:18:24,520 and that is why I was warning you that 21037 14:18:24,520 --> 14:18:26,680 we are not going to use the percentage 21038 14:18:26,680 --> 14:18:29,400 when it is actually percentage so here 21039 14:18:29,400 --> 14:18:30,916 you can have based on the percentage and 21040 14:18:30,916 --> 14:18:33,240 you can use different kind of icons 21041 14:18:33,240 --> 14:18:35,200 and you can say 21042 14:18:35,200 --> 14:18:38,436 okay I got conditional formatting I can 21043 14:18:38,436 --> 14:18:40,560 also do that on the brand one not that I 21044 14:18:40,560 --> 14:18:42,160 can't do it in brand I can also go ahead 21045 14:18:42,160 --> 14:18:44,360 and do the icon conditional formatting 21046 14:18:44,360 --> 14:18:46,880 on brand I can choose a major here or 21047 14:18:46,880 --> 14:18:49,320 actually we have a support for a text 21048 14:18:49,320 --> 14:18:54,720 now we can say is brand one is brand 2 21049 14:18:54,720 --> 14:18:57,640 is brand three and we can choose 21050 14:18:57,640 --> 14:18:59,436 different one okay let's choose the four 21051 14:18:59,436 --> 14:19:02,116 one so brand one is this so we can do on 21052 14:19:02,116 --> 14:19:04,160 the based on the text also brand one 21053 14:19:04,160 --> 14:19:06,796 brand 2 brand three brand four brand 21054 14:19:06,796 --> 14:19:08,560 five only we have five so will'll get 21055 14:19:08,560 --> 14:19:10,480 five there's no option to add here but 21056 14:19:10,480 --> 14:19:13,560 we can add more rules and more icons so 21057 14:19:13,560 --> 14:19:15,596 add let's say is brand six so we can add 21058 14:19:15,596 --> 14:19:17,320 more rules but let's stick with these 21059 14:19:17,320 --> 14:19:18,916 things and as you can see whatever 21060 14:19:18,916 --> 14:19:20,596 Brands we have given some icons we are 21061 14:19:20,596 --> 14:19:22,560 getting those icons now other than that 21062 14:19:22,560 --> 14:19:23,916 what you can do is you can create a 21063 14:19:23,916 --> 14:19:26,000 unique a measure and then can you you 21064 14:19:26,000 --> 14:19:27,596 can do conditional formatting on that 21065 14:19:27,596 --> 14:19:29,000 that is another way to of doing a 21066 14:19:29,000 --> 14:19:30,796 conditional form what is this web URL 21067 14:19:30,796 --> 14:19:32,320 condition formatting for the web URL you 21068 14:19:32,320 --> 14:19:34,276 need to have the URL basically so let's 21069 14:19:34,276 --> 14:19:36,240 see do we have a URL I actually have the 21070 14:19:36,240 --> 14:19:38,480 image URL but I'm trying to use that so 21071 14:19:38,480 --> 14:19:40,160 if you use the URL then it will start 21072 14:19:40,160 --> 14:19:42,360 showing you underline here you want to 21073 14:19:42,360 --> 14:19:44,276 use the underline so if you do the web 21074 14:19:44,276 --> 14:19:46,400 URL conditional formatting it will start 21075 14:19:46,400 --> 14:19:48,956 showing you the URLs underly URL so if 21076 14:19:48,956 --> 14:19:50,560 you want the underlying there is option 21077 14:19:50,560 --> 14:19:52,916 for URL icon and what happens when do 21078 14:19:52,916 --> 14:19:54,680 you use that for that let me take one 21079 14:19:54,680 --> 14:19:57,080 example let me open a new page and in 21080 14:19:57,080 --> 14:19:59,880 that page let me bring in brand and 21081 14:19:59,880 --> 14:20:02,436 brand URL and now let me go to this icon 21082 14:20:02,436 --> 14:20:04,436 value value for a moment I'll change 21083 14:20:04,436 --> 14:20:07,040 this image URL as web URL and now you 21084 14:20:07,040 --> 14:20:09,200 can see the URL here now I'll go to the 21085 14:20:09,200 --> 14:20:11,796 brand URL apply setting and in the icon 21086 14:20:11,796 --> 14:20:14,000 I'll click on the values and the moment 21087 14:20:14,000 --> 14:20:16,360 I switch this on you start seeing this 21088 14:20:16,360 --> 14:20:18,796 icon small icon and this is how you use 21089 14:20:18,796 --> 14:20:20,400 this URL icon so you want to show that 21090 14:20:20,400 --> 14:20:22,000 small icon when you have actually the 21091 14:20:22,000 --> 14:20:24,360 URL field you can do that but as of I'll 21092 14:20:24,360 --> 14:20:26,360 for a longer run I'll just revert it 21093 14:20:26,360 --> 14:20:27,880 I'll just shown you how to use that this 21094 14:20:27,880 --> 14:20:29,640 is actually a image URL and the moment I 21095 14:20:29,640 --> 14:20:31,560 make it image URL it will actually turn 21096 14:20:31,560 --> 14:20:33,276 back and then you can go ahead and play 21097 14:20:33,276 --> 14:20:34,916 with the size of the image you can go 21098 14:20:34,916 --> 14:20:36,796 ahead and say okay I want to have 250 21099 14:20:36,796 --> 14:20:38,360 you can have that much image one the 21100 14:20:38,360 --> 14:20:40,596 limit of 150 has been removed as of now 21101 14:20:40,596 --> 14:20:42,116 you can have much higher size of image 21102 14:20:42,116 --> 14:20:43,360 so now back to the conditional 21103 14:20:43,360 --> 14:20:44,840 formatting so now we have understand 21104 14:20:44,840 --> 14:20:46,080 different kind of conditional formatting 21105 14:20:46,080 --> 14:20:48,240 now I would like to use the Third Kind 21106 14:20:48,240 --> 14:20:50,276 of conditional formatting which is the 21107 14:20:50,276 --> 14:20:52,000 value based conditional formatting which 21108 14:20:52,000 --> 14:20:53,360 is the major based conditional 21109 14:20:53,360 --> 14:20:54,880 formatting which we can use in the field 21110 14:20:54,880 --> 14:20:57,436 value so let's say I want to color these 21111 14:20:57,436 --> 14:20:59,320 things based on category or brand say 21112 14:20:59,320 --> 14:21:00,796 okay we'll go rule based conditional 21113 14:21:00,796 --> 14:21:02,840 formatting also these days allowed text 21114 14:21:02,840 --> 14:21:04,640 values isn't you can do that what I want 21115 14:21:04,640 --> 14:21:06,400 is a little bit different so I want to 21116 14:21:06,400 --> 14:21:08,756 create two majors here brand color and 21117 14:21:08,756 --> 14:21:10,436 there is a reason why I'm creating so I 21118 14:21:10,436 --> 14:21:12,756 create a new major from the table tool 21119 14:21:12,756 --> 14:21:15,000 so let me create first major brand color 21120 14:21:15,000 --> 14:21:16,756 I will also create one more major which 21121 14:21:16,756 --> 14:21:18,956 is category color so let me again click 21122 14:21:18,956 --> 14:21:20,680 on new major this time from the Major 21123 14:21:20,680 --> 14:21:23,116 Tool and this major I already created 21124 14:21:23,116 --> 14:21:24,680 and let me explain you this major and 21125 14:21:24,680 --> 14:21:26,240 same way I've created the brand major so 21126 14:21:26,240 --> 14:21:28,720 I'm also creating one category color and 21127 14:21:28,720 --> 14:21:30,360 now let me explain you both have created 21128 14:21:30,360 --> 14:21:32,880 in the same manner by using the switch 21129 14:21:32,880 --> 14:21:34,480 true instead of switch true I could have 21130 14:21:34,480 --> 14:21:37,480 used switch Max of item category or Max 21131 14:21:37,480 --> 14:21:39,756 of or selected item category so when it 21132 14:21:39,756 --> 14:21:41,480 is category one I'm giving one color 21133 14:21:41,480 --> 14:21:42,880 when it is category two I'm giving 21134 14:21:42,880 --> 14:21:44,880 another color when it is category three 21135 14:21:44,880 --> 14:21:46,756 I'm giving blue let's say category four 21136 14:21:46,756 --> 14:21:49,200 yellow and category five orange so in 21137 14:21:49,200 --> 14:21:50,756 this manner I'm getting colors and 21138 14:21:50,756 --> 14:21:52,720 there's other instead of other I can 21139 14:21:52,720 --> 14:21:54,680 make it let's say 21140 14:21:54,680 --> 14:21:56,880 black there's no other category so I can 21141 14:21:56,880 --> 14:22:00,000 keep it anything I want it should return 21142 14:22:00,000 --> 14:22:02,560 color otherwise it will give error now 21143 14:22:02,560 --> 14:22:04,200 this is a color Mage it returns a color 21144 14:22:04,200 --> 14:22:05,840 you can also use the Hax code the six 21145 14:22:05,840 --> 14:22:07,680 digigit Hax code if you remember with 21146 14:22:07,680 --> 14:22:11,040 the hash sign so if you it may be hash 21147 14:22:11,040 --> 14:22:13,796 ff00 something like that you can also 21148 14:22:13,796 --> 14:22:17,436 use so right now I'm using the names now 21149 14:22:17,436 --> 14:22:19,000 what I'll do here is I'll go to this 21150 14:22:19,000 --> 14:22:22,240 brand by net visual I go to bar and 21151 14:22:22,240 --> 14:22:24,916 inside the FX I can go ahead I can use 21152 14:22:24,916 --> 14:22:28,160 the field value I can go to the major 21153 14:22:28,160 --> 14:22:30,796 and I can search for the brand major I 21154 14:22:30,796 --> 14:22:33,160 can search for brand color I can do a 21155 14:22:33,160 --> 14:22:34,640 condition now you can see each brand has 21156 14:22:34,640 --> 14:22:36,796 got its own color Okay so the color is 21157 14:22:36,796 --> 14:22:39,116 basically by brand and this helps us 21158 14:22:39,116 --> 14:22:40,640 when we want to keep the consistent 21159 14:22:40,640 --> 14:22:41,956 color so we'll go to this category 21160 14:22:41,956 --> 14:22:43,596 Visual and apply the category color to 21161 14:22:43,596 --> 14:22:44,640 keep it 21162 14:22:44,640 --> 14:22:46,720 consistent now in The Matrix visual I 21163 14:22:46,720 --> 14:22:48,480 have option I can have the color by 21164 14:22:48,480 --> 14:22:50,400 brand or by category so let's use by 21165 14:22:50,400 --> 14:22:52,400 brand here so we want to do the 21166 14:22:52,400 --> 14:22:54,400 background color 21167 14:22:54,400 --> 14:22:58,160 FX field value by brand 21168 14:22:58,160 --> 14:23:00,400 color and that's where your max is going 21169 14:23:00,400 --> 14:23:04,080 to play a role now 21170 14:23:05,160 --> 14:23:07,000 so let me use brand 21171 14:23:07,000 --> 14:23:09,720 color and as you can see other than the 21172 14:23:09,720 --> 14:23:12,160 not null values we getting color in that 21173 14:23:12,160 --> 14:23:14,560 particular 21174 14:23:14,756 --> 14:23:17,880 row and as of now the conditional 21175 14:23:17,880 --> 14:23:19,276 formatting value based conditional 21176 14:23:19,276 --> 14:23:20,956 formatting don't color the blank values 21177 14:23:20,956 --> 14:23:22,240 you might have to handle the value 21178 14:23:22,240 --> 14:23:24,520 itself to get the color now we will use 21179 14:23:24,520 --> 14:23:27,200 the other one and this category one now 21180 14:23:27,200 --> 14:23:29,240 you will ask how would you use it into 21181 14:23:29,240 --> 14:23:31,520 the I visual there's no option I'll tell 21182 14:23:31,520 --> 14:23:33,756 you the way first of all I'll convert it 21183 14:23:33,756 --> 14:23:35,520 into cluster column 21184 14:23:35,520 --> 14:23:39,640 chart or bar chart I go to the FX I go 21185 14:23:39,640 --> 14:23:41,240 to field value I can do the gradient 21186 14:23:41,240 --> 14:23:42,756 conditional formatting as well as rule 21187 14:23:42,756 --> 14:23:45,160 base but the easier for me as of now to 21188 14:23:45,160 --> 14:23:48,116 explain to you is field value I use the 21189 14:23:48,116 --> 14:23:51,160 color I created the colors I'm going to 21190 14:23:51,160 --> 14:23:53,480 convert it back remember the colors take 21191 14:23:53,480 --> 14:23:55,276 the values because I'm going to do this 21192 14:23:55,276 --> 14:23:57,160 now on this visual which is actually a 21193 14:23:57,160 --> 14:23:58,480 column visual which where the 21194 14:23:58,480 --> 14:23:59,640 conditional formatting is available so 21195 14:23:59,640 --> 14:24:01,596 we done it on a column visual convert it 21196 14:24:01,596 --> 14:24:03,840 into a pi now we are doing it on a 21197 14:24:03,840 --> 14:24:05,880 column visual again field value we 21198 14:24:05,880 --> 14:24:08,680 clicked on FX came here field value 21199 14:24:08,680 --> 14:24:11,000 color category 21200 14:24:11,000 --> 14:24:13,916 color now if you see the two visuals 21201 14:24:13,916 --> 14:24:15,880 have the same 21202 14:24:15,880 --> 14:24:17,916 colors what happens when we filter 21203 14:24:17,916 --> 14:24:21,756 something so let me bring a page level 21204 14:24:21,880 --> 14:24:25,360 filter brand one till category 4 and 21205 14:24:25,360 --> 14:24:27,360 category one retained those colors till 21206 14:24:27,360 --> 14:24:30,000 they are red and yellow and this is the 21207 14:24:30,000 --> 14:24:32,320 thing which we can do using this one we 21208 14:24:32,320 --> 14:24:35,276 we can have colors which retained it but 21209 14:24:35,276 --> 14:24:37,560 only challenge is across multiple 21210 14:24:37,560 --> 14:24:39,880 measures or with Legends it will not 21211 14:24:39,880 --> 14:24:42,640 work also we can't color The Matrix head 21212 14:24:42,640 --> 14:24:44,596 and row but how do we color line we 21213 14:24:44,596 --> 14:24:46,640 can't color line only we can show 21214 14:24:46,640 --> 14:24:48,680 additional colored marker and this is 21215 14:24:48,680 --> 14:24:50,796 other than the marker color switch so 21216 14:24:50,796 --> 14:24:52,680 what you can do here is again convert it 21217 14:24:52,680 --> 14:24:54,640 into a cluster column 21218 14:24:54,640 --> 14:24:57,596 bar go to the effects do whatever color 21219 14:24:57,596 --> 14:24:59,520 you want I want to do field conditional 21220 14:24:59,520 --> 14:25:02,000 formatting I can search the color major 21221 14:25:02,000 --> 14:25:03,436 and 21222 14:25:03,436 --> 14:25:06,680 colors and then I convert it back to the 21223 14:25:06,680 --> 14:25:09,916 line I get these 21224 14:25:09,916 --> 14:25:13,160 markers colored markers and these are 21225 14:25:13,160 --> 14:25:15,320 not same as the marker which we have in 21226 14:25:15,320 --> 14:25:17,360 the line so if I enable the marker now 21227 14:25:17,360 --> 14:25:18,916 you will say no no it is looking like 21228 14:25:18,916 --> 14:25:20,796 this let me showcase you let me make 21229 14:25:20,796 --> 14:25:23,320 them bigger you can see the background 21230 14:25:23,320 --> 14:25:25,680 the bigger markers are coming back so 21231 14:25:25,680 --> 14:25:27,880 they are not same as the marker what we 21232 14:25:27,880 --> 14:25:30,880 have they are different separate markers 21233 14:25:30,880 --> 14:25:32,436 but yes definitely you can show theor 21234 14:25:32,436 --> 14:25:33,436 you can't color the line but you can 21235 14:25:33,436 --> 14:25:35,640 show the colors so you've seen the 21236 14:25:35,640 --> 14:25:37,000 advantage of field conditional 21237 14:25:37,000 --> 14:25:39,000 formatting now when we have the field 21238 14:25:39,000 --> 14:25:40,040 conditional formatting let's say if I 21239 14:25:40,040 --> 14:25:41,640 need to do it in table visual I can 21240 14:25:41,640 --> 14:25:43,200 quickly replicate it in all the columns 21241 14:25:43,200 --> 14:25:44,720 and you know the same kind of 21242 14:25:44,720 --> 14:25:45,956 conditional formatting and I can get row 21243 14:25:45,956 --> 14:25:48,400 colors now I have done it on the 21244 14:25:48,400 --> 14:25:50,596 category and brand but it doesn't mean I 21245 14:25:50,596 --> 14:25:52,040 can't do it on measure I can do it on 21246 14:25:52,040 --> 14:25:54,276 measure and we'll take up that example 21247 14:25:54,276 --> 14:25:57,276 now before I do that I'll go to this cd2 21248 14:25:57,276 --> 14:26:00,680 and I knowingly created this because now 21249 14:26:00,680 --> 14:26:02,400 the colors are going to give a different 21250 14:26:02,400 --> 14:26:05,040 meanings to this visualization so if you 21251 14:26:05,040 --> 14:26:06,956 remember I suggested you instead of 21252 14:26:06,956 --> 14:26:11,116 using Legends use to access when I use 21253 14:26:11,116 --> 14:26:14,200 twox I don't have two colors now we have 21254 14:26:14,200 --> 14:26:15,640 because we are going to going to go to 21255 14:26:15,640 --> 14:26:18,400 the conditional formatting and from the 21256 14:26:18,400 --> 14:26:20,840 conditional formatting now this is the 21257 14:26:20,840 --> 14:26:22,756 first one is brand I'm going to use 21258 14:26:22,756 --> 14:26:25,560 field value and the brand 21259 14:26:25,560 --> 14:26:28,276 colors brand color I'm going to 21260 14:26:28,276 --> 14:26:30,640 use and you can see the different brands 21261 14:26:30,640 --> 14:26:31,796 have different color now you could have 21262 14:26:31,796 --> 14:26:33,320 used the category colors and different 21263 14:26:33,320 --> 14:26:36,000 categories could have colors and you can 21264 14:26:36,000 --> 14:26:37,680 use other table visually where you can 21265 14:26:37,680 --> 14:26:39,596 only have the categories now where from 21266 14:26:39,596 --> 14:26:40,840 where I will get the legend definitely 21267 14:26:40,840 --> 14:26:43,040 you can't get a legend here what you can 21268 14:26:43,040 --> 14:26:45,756 do is create a very small cable 21269 14:26:45,756 --> 14:26:49,756 Visual and this is brand isn't it so 21270 14:26:49,756 --> 14:26:52,596 I'll put brand 21271 14:26:54,276 --> 14:26:57,520 here and you can put the colors to the 21272 14:26:57,520 --> 14:26:59,640 brand background or font whatever you 21273 14:26:59,640 --> 14:27:03,480 want I'll put the background color we 21274 14:27:03,480 --> 14:27:06,480 value 21275 14:27:06,480 --> 14:27:08,956 brand and you can say these are the 21276 14:27:08,956 --> 14:27:11,000 color of the brand so there a color of 21277 14:27:11,000 --> 14:27:12,916 brand one brand 10 on all those now 21278 14:27:12,916 --> 14:27:14,916 definitely you make it as thin as 21279 14:27:14,916 --> 14:27:17,436 possible you can hide the total all 21280 14:27:17,436 --> 14:27:20,080 those things you can 21281 14:27:21,320 --> 14:27:24,116 do now in the second visual I'm going to 21282 14:27:24,116 --> 14:27:26,640 use it on category it's not going to 21283 14:27:26,640 --> 14:27:28,080 make much difference but I just wanted 21284 14:27:28,080 --> 14:27:30,320 to show you how different is going to 21285 14:27:30,320 --> 14:27:32,880 look like 21286 14:27:32,880 --> 14:27:34,520 you have the category color I could have 21287 14:27:34,520 --> 14:27:36,200 used brand color here and each brand 21288 14:27:36,200 --> 14:27:38,596 could have the same color so you can 21289 14:27:38,596 --> 14:27:40,680 create these kind of visuals using field 21290 14:27:40,680 --> 14:27:42,720 value conditional formatting also rules 21291 14:27:42,720 --> 14:27:45,400 support the name colors you can use do 21292 14:27:45,400 --> 14:27:47,116 do you can also use rule based 21293 14:27:47,116 --> 14:27:48,436 conditional formatting that supports the 21294 14:27:48,436 --> 14:27:50,756 color that also support text now now the 21295 14:27:50,756 --> 14:27:53,160 final which I going to do here is based 21296 14:27:53,160 --> 14:27:55,240 on a measure and for that I would like 21297 14:27:55,240 --> 14:27:57,320 to have a scatter visual I'm going to 21298 14:27:57,320 --> 14:27:59,276 create the scatter visual again so I'll 21299 14:27:59,276 --> 14:28:01,596 add a scatter Visual and this scatter 21300 14:28:01,596 --> 14:28:04,040 visual I will have on the x-axis 21301 14:28:04,040 --> 14:28:06,520 discount 21302 14:28:06,560 --> 14:28:08,880 percentage on the y axis I'm going to 21303 14:28:08,880 --> 14:28:11,240 have margin 21304 14:28:11,240 --> 14:28:15,756 percentage I will use city as my values 21305 14:28:15,756 --> 14:28:17,916 remember I can't use 21306 14:28:17,916 --> 14:28:20,596 Legend I got so many dots I'm going to 21307 14:28:20,596 --> 14:28:23,480 switch the 21308 14:28:24,116 --> 14:28:27,080 x-axis I will invert I want the lowest 21309 14:28:27,080 --> 14:28:28,956 values on the this side because I want 21310 14:28:28,956 --> 14:28:30,596 to create a fourth quadrant here which 21311 14:28:30,596 --> 14:28:32,956 is low discount High margin which is 21312 14:28:32,956 --> 14:28:35,756 green how to create the quadrant so go 21313 14:28:35,756 --> 14:28:38,480 down you have the lines reference 21314 14:28:38,480 --> 14:28:41,480 lines and here you going to add constant 21315 14:28:41,480 --> 14:28:43,560 lines not the average 21316 14:28:43,560 --> 14:28:47,400 line constant line xaxis constant line 21317 14:28:47,400 --> 14:28:49,276 and in the XX is constant line you have 21318 14:28:49,276 --> 14:28:52,040 this FX and in the FX use the measor 21319 14:28:52,040 --> 14:28:52,796 what you 21320 14:28:52,796 --> 14:28:57,040 want it switches then go to the add line 21321 14:28:57,040 --> 14:28:59,840 again use the type as Y axis constant 21322 14:28:59,840 --> 14:29:02,276 line and in the y axis constant line in 21323 14:29:02,276 --> 14:29:05,040 the FX now choose margin 21324 14:29:05,040 --> 14:29:06,956 percentage you have to use the major 21325 14:29:06,956 --> 14:29:08,400 because major is automatically going to 21326 14:29:08,400 --> 14:29:10,320 take care of the grand total because it 21327 14:29:10,320 --> 14:29:12,436 is a divided by B when you have the 21328 14:29:12,436 --> 14:29:14,080 grand total is going to do and when I 21329 14:29:14,080 --> 14:29:15,796 use the constant lines or when I use 21330 14:29:15,796 --> 14:29:17,320 these reference line they are calculated 21331 14:29:17,320 --> 14:29:19,116 at the grand total level now what I need 21332 14:29:19,116 --> 14:29:21,200 here this see these are the average line 21333 14:29:21,200 --> 14:29:23,360 our ba is given those this quadrant is 21334 14:29:23,360 --> 14:29:26,200 high margin low discount green but how 21335 14:29:26,200 --> 14:29:28,680 do I get this middle margin I need to 21336 14:29:28,680 --> 14:29:32,040 now this is still high margin but High 21337 14:29:32,040 --> 14:29:34,560 discount blue low discounts are red and 21338 14:29:34,560 --> 14:29:37,560 yellow low discount low 21339 14:29:37,560 --> 14:29:40,560 margin now for low margins I have two if 21340 14:29:40,560 --> 14:29:43,080 the discount is low I can keep it orange 21341 14:29:43,080 --> 14:29:45,040 if it is low margin High discount I will 21342 14:29:45,040 --> 14:29:48,000 keep it red so I need a measure for that 21343 14:29:48,000 --> 14:29:49,596 I'm going to create this measure and 21344 14:29:49,596 --> 14:29:51,436 I'll tell you how I'm so let me create a 21345 14:29:51,436 --> 14:29:54,116 new measure and I already have a script 21346 14:29:54,116 --> 14:29:55,000 for 21347 14:29:55,000 --> 14:29:57,756 that color scatter first of all for that 21348 14:29:57,756 --> 14:30:00,840 we need gr to so using calculate 21349 14:30:00,840 --> 14:30:03,756 discount percent for Discount all 21350 14:30:03,756 --> 14:30:05,916 selected is going to give me the grand 21351 14:30:05,916 --> 14:30:08,400 total or the average overall average 21352 14:30:08,400 --> 14:30:10,840 same way overall margin calculate margin 21353 14:30:10,840 --> 14:30:13,360 all selected why I'm using all selected 21354 14:30:13,360 --> 14:30:15,360 so because if you apply the filter still 21355 14:30:15,360 --> 14:30:17,080 it find the middle number with those 21356 14:30:17,080 --> 14:30:19,160 filters then what we are saying is if 21357 14:30:19,160 --> 14:30:21,040 margin is greater than the average 21358 14:30:21,040 --> 14:30:23,796 margin and discount is less than the 21359 14:30:23,796 --> 14:30:25,560 discount average discount overall 21360 14:30:25,560 --> 14:30:27,360 discount than green margin is still 21361 14:30:27,360 --> 14:30:29,360 greater but discount is also greater 21362 14:30:29,360 --> 14:30:31,480 blue for both lower margins if the 21363 14:30:31,480 --> 14:30:33,320 discount is low then yellow if the 21364 14:30:33,320 --> 14:30:35,240 discount is greater then red this is 21365 14:30:35,240 --> 14:30:37,200 what I wanted these are the four color I 21366 14:30:37,200 --> 14:30:39,200 wanted I have a major now which can do 21367 14:30:39,200 --> 14:30:40,916 that so I use switch through and created 21368 14:30:40,916 --> 14:30:43,680 this measure now I would like to use 21369 14:30:43,680 --> 14:30:44,840 this 21370 14:30:44,840 --> 14:30:47,956 measure so I'll go to the 21371 14:30:47,956 --> 14:30:50,840 markers inside the marker color I will 21372 14:30:50,840 --> 14:30:54,240 use FX and inside the FX field value 21373 14:30:54,240 --> 14:30:57,956 search for the color color skatter okay 21374 14:30:57,956 --> 14:31:00,360 and you can see the four colors green 21375 14:31:00,360 --> 14:31:03,320 blue yellow or orange if you want it and 21376 14:31:03,320 --> 14:31:05,680 red the four colors have come we have 21377 14:31:05,680 --> 14:31:08,160 got the four quadrants of different 21378 14:31:08,160 --> 14:31:10,560 different colors so conditional 21379 14:31:10,560 --> 14:31:13,360 formatting is a powerful tool to 21380 14:31:13,360 --> 14:31:15,560 communicate the message the message 21381 14:31:15,560 --> 14:31:17,796 could be done in terms of value or it 21382 14:31:17,796 --> 14:31:19,560 could be done in terms of categorical 21383 14:31:19,560 --> 14:31:21,796 values to enhance the visual experience 21384 14:31:21,796 --> 14:31:24,480 you can use whenever you require to make 21385 14:31:24,480 --> 14:31:27,160 impactful visualization so let's 21386 14:31:27,160 --> 14:31:29,200 understand visual interactions to 21387 14:31:29,200 --> 14:31:30,756 understand visual interactions what I've 21388 14:31:30,756 --> 14:31:32,640 done is I actually created created a few 21389 14:31:32,640 --> 14:31:34,840 visuals which include table visual Pi 21390 14:31:34,840 --> 14:31:37,000 visual map Visual and bar visual to 21391 14:31:37,000 --> 14:31:38,360 explain you what are the different kind 21392 14:31:38,360 --> 14:31:40,116 of interactions which happens between 21393 14:31:40,116 --> 14:31:42,160 the visuals I also added a slicer so 21394 14:31:42,160 --> 14:31:43,840 that you can understand it better let me 21395 14:31:43,840 --> 14:31:46,520 close rest of the panes and give you a 21396 14:31:46,520 --> 14:31:48,436 space on the page so that page has a 21397 14:31:48,436 --> 14:31:51,520 larger canvas available now I'll click 21398 14:31:51,520 --> 14:31:53,436 on any of the visual and then I can go 21399 14:31:53,436 --> 14:31:55,240 to format and enable the edit 21400 14:31:55,240 --> 14:31:57,796 interaction edit interactions allows you 21401 14:31:57,796 --> 14:32:00,040 to change the interactions between the 21402 14:32:00,040 --> 14:32:01,520 visuals what do you mean by interactions 21403 14:32:01,520 --> 14:32:03,000 first of of all between the visual so 21404 14:32:03,000 --> 14:32:04,720 let's say if I click on any of these 21405 14:32:04,720 --> 14:32:07,520 slices all these visuals are changing 21406 14:32:07,520 --> 14:32:09,520 okay why these visuals are changing 21407 14:32:09,520 --> 14:32:11,436 these visuals are changing because they 21408 14:32:11,436 --> 14:32:13,436 are interacting with this slicer if you 21409 14:32:13,436 --> 14:32:14,756 go to this brand visual it will only 21410 14:32:14,756 --> 14:32:16,796 show one value because only one value is 21411 14:32:16,796 --> 14:32:18,480 applicable because of its interaction 21412 14:32:18,480 --> 14:32:20,436 with the second brand slicer now the 21413 14:32:20,436 --> 14:32:22,400 moment I erase it you will again see the 21414 14:32:22,400 --> 14:32:24,240 values are removed now if you click on 21415 14:32:24,240 --> 14:32:25,520 any of the visual let's say if I click 21416 14:32:25,520 --> 14:32:27,560 on Category 2 you will see a different 21417 14:32:27,560 --> 14:32:29,276 kind of impact which is happening here 21418 14:32:29,276 --> 14:32:30,840 now I'll explain what is happening on 21419 14:32:30,840 --> 14:32:33,000 the P later but you see this is 21420 14:32:33,000 --> 14:32:34,116 highlight which is happening in the 21421 14:32:34,116 --> 14:32:35,400 brand visual actually there's a 21422 14:32:35,400 --> 14:32:36,720 highlight also happening in the pi 21423 14:32:36,720 --> 14:32:38,320 visual but because it's on the same 21424 14:32:38,320 --> 14:32:39,756 level only category 2 is getting 21425 14:32:39,756 --> 14:32:42,400 highlight now I click back and I click 21426 14:32:42,400 --> 14:32:45,000 on any of the brands in the P visual 21427 14:32:45,000 --> 14:32:47,040 what do you see here the T table visual 21428 14:32:47,040 --> 14:32:49,116 is getting filtered but in the pi visual 21429 14:32:49,116 --> 14:32:50,520 there is a highlight which is happening 21430 14:32:50,520 --> 14:32:52,916 again this visual is basically getting 21431 14:32:52,916 --> 14:32:55,640 filtered the map visual now if I go and 21432 14:32:55,640 --> 14:32:57,916 click again it will deselect and here if 21433 14:32:57,916 --> 14:33:00,276 I click on any of the city you will see 21434 14:33:00,276 --> 14:33:02,400 again highlight at few places and filter 21435 14:33:02,400 --> 14:33:04,480 at other places but is slicer getting 21436 14:33:04,480 --> 14:33:07,200 impacted no so visual is not changing 21437 14:33:07,200 --> 14:33:08,956 the slicer unless the joint is 21438 14:33:08,956 --> 14:33:11,040 bidirectional so visual is not going to 21439 14:33:11,040 --> 14:33:13,916 filter the slicer and we don't see any 21440 14:33:13,916 --> 14:33:16,160 interaction side with the filter pane so 21441 14:33:16,160 --> 14:33:18,116 even if I click on any of the filters we 21442 14:33:18,116 --> 14:33:20,200 don't see any interaction changes so 21443 14:33:20,200 --> 14:33:22,596 filters can also filter the data inside 21444 14:33:22,596 --> 14:33:24,840 the visualization but the interactions 21445 14:33:24,840 --> 14:33:26,880 with the filter cannot be changed while 21446 14:33:26,880 --> 14:33:28,360 it can be changed for other what do I 21447 14:33:28,360 --> 14:33:30,916 mean by interactions can be changed so 21448 14:33:30,916 --> 14:33:33,040 now I will click on let's say one slicer 21449 14:33:33,040 --> 14:33:34,756 and I go to edit interaction and I click 21450 14:33:34,756 --> 14:33:36,480 on that immediately you start seeing 21451 14:33:36,480 --> 14:33:39,680 these signs these signs means filter and 21452 14:33:39,680 --> 14:33:41,360 don't filter so whenever I click on the 21453 14:33:41,360 --> 14:33:43,480 slicer all other visuals we get this 21454 14:33:43,480 --> 14:33:45,040 filter and not filter because the 21455 14:33:45,040 --> 14:33:46,840 interaction with the slicer is either 21456 14:33:46,840 --> 14:33:48,276 you going to filter with that slicer or 21457 14:33:48,276 --> 14:33:49,436 you're not going to filter with that 21458 14:33:49,436 --> 14:33:51,276 slicer only two type of interactions can 21459 14:33:51,276 --> 14:33:53,840 happen every chart is a driver chart and 21460 14:33:53,840 --> 14:33:55,360 all other chart will become the driven 21461 14:33:55,360 --> 14:33:56,796 chart when you click on the edit 21462 14:33:56,796 --> 14:33:58,480 interactions and you try to edit the 21463 14:33:58,480 --> 14:34:00,000 interaction so every chart will become a 21464 14:34:00,000 --> 14:34:01,400 driver for edit interaction so if I 21465 14:34:01,400 --> 14:34:03,040 click on on this visual you will see the 21466 14:34:03,040 --> 14:34:05,756 Dr are you know now asking for whether 21467 14:34:05,756 --> 14:34:07,880 they want to get filtered or not and at 21468 14:34:07,880 --> 14:34:09,240 some of the visuals you are seeing three 21469 14:34:09,240 --> 14:34:11,000 options not two options the third 21470 14:34:11,000 --> 14:34:12,360 additional options which you're seeing 21471 14:34:12,360 --> 14:34:15,160 is the Highlight option so what happens 21472 14:34:15,160 --> 14:34:17,436 if this is a brand if I click on this I 21473 14:34:17,436 --> 14:34:19,040 can disable its interaction with this 21474 14:34:19,040 --> 14:34:20,720 chart I can disable its interaction with 21475 14:34:20,720 --> 14:34:22,560 this chart so now when I click on brand 21476 14:34:22,560 --> 14:34:24,640 one you see that the other visuals are 21477 14:34:24,640 --> 14:34:26,276 getting updated but these two visual 21478 14:34:26,276 --> 14:34:27,520 where I switch off the interaction they 21479 14:34:27,520 --> 14:34:29,880 are not interacting so let me erase this 21480 14:34:29,880 --> 14:34:32,116 now let me select brand 10 here in this 21481 14:34:32,116 --> 14:34:34,276 visual when I select brand 10 and if I 21482 14:34:34,276 --> 14:34:36,000 go here the brand 10 is getting filtered 21483 14:34:36,000 --> 14:34:38,160 into the other visual why because from 21484 14:34:38,160 --> 14:34:40,000 this visual when I click on this visual 21485 14:34:40,000 --> 14:34:41,880 the interactions are on for this one so 21486 14:34:41,880 --> 14:34:44,436 when this chart is driver chart there is 21487 14:34:44,436 --> 14:34:46,080 interaction which is still happening the 21488 14:34:46,080 --> 14:34:48,840 filter is which is still highlighted so 21489 14:34:48,840 --> 14:34:51,480 each slicer or each visual can filter 21490 14:34:51,480 --> 14:34:53,720 other visual unless stopped default 21491 14:34:53,720 --> 14:34:56,116 behavior is filter or highlight in which 21492 14:34:56,116 --> 14:34:57,520 case it would be default highlight I'll 21493 14:34:57,520 --> 14:34:59,880 let you know mean know let me erase it 21494 14:34:59,880 --> 14:35:01,276 let me click on any of the filter You 21495 14:35:01,276 --> 14:35:03,276 Don't See see any interaction happening 21496 14:35:03,276 --> 14:35:05,560 with the filter so see the Highlight is 21497 14:35:05,560 --> 14:35:08,680 still on the slicer so filter can we 21498 14:35:08,680 --> 14:35:09,880 cannot change interaction with the 21499 14:35:09,880 --> 14:35:11,360 filter we can only change with the 21500 14:35:11,360 --> 14:35:13,360 slicers filter is not part of 21501 14:35:13,360 --> 14:35:16,000 interactions now let's go ahead when I 21502 14:35:16,000 --> 14:35:18,276 click on category here you see that 21503 14:35:18,276 --> 14:35:20,040 there is a highlight which is 21504 14:35:20,040 --> 14:35:22,320 happening now why does this highlight is 21505 14:35:22,320 --> 14:35:24,360 happening because there's a method 21506 14:35:24,360 --> 14:35:25,916 available when I click on this chart 21507 14:35:25,916 --> 14:35:27,520 there is a method which is available as 21508 14:35:27,520 --> 14:35:29,560 highlight if I change it to filter and 21509 14:35:29,560 --> 14:35:31,160 if I click on any of these categories 21510 14:35:31,160 --> 14:35:32,640 you will see see now the visual is 21511 14:35:32,640 --> 14:35:34,400 getting filtered so the behavior is 21512 14:35:34,400 --> 14:35:36,956 filter same way when I've clicked here I 21513 14:35:36,956 --> 14:35:38,640 can go ahead and change this Behavior 21514 14:35:38,640 --> 14:35:41,240 also to filter so now this chart will 21515 14:35:41,240 --> 14:35:42,680 only show the category which is clicked 21516 14:35:42,680 --> 14:35:45,680 on this table visual so there are chart 21517 14:35:45,680 --> 14:35:47,200 where we can show The Fill Behavior 21518 14:35:47,200 --> 14:35:49,756 which include the bar chart pie chart 21519 14:35:49,756 --> 14:35:52,200 tree map these visuals can show The Fill 21520 14:35:52,200 --> 14:35:54,240 Behavior but chart like table cannot 21521 14:35:54,240 --> 14:35:55,720 show fill Behavior so let's say if I go 21522 14:35:55,720 --> 14:35:57,756 to the pie chart and when I filter the 21523 14:35:57,756 --> 14:36:00,080 default table can only get filtered or I 21524 14:36:00,080 --> 14:36:02,040 can disable filter or I can filter 21525 14:36:02,040 --> 14:36:04,596 there's no filpa so we cannot do it so 21526 14:36:04,596 --> 14:36:06,596 using the edit interaction under the 21527 14:36:06,596 --> 14:36:08,840 format you can change the behavior let's 21528 14:36:08,840 --> 14:36:10,796 quickly take one use case the use case 21529 14:36:10,796 --> 14:36:12,720 of dividing a page into two parts so 21530 14:36:12,720 --> 14:36:13,956 what I'm going to do is I'm going to 21531 14:36:13,956 --> 14:36:16,400 copy these two visuals from here and 21532 14:36:16,400 --> 14:36:18,040 I'll take them to a new page let me 21533 14:36:18,040 --> 14:36:20,916 paste them let me see don't syn also I 21534 14:36:20,916 --> 14:36:22,640 copied three let me make it two or let 21535 14:36:22,640 --> 14:36:25,160 me keep them three only so I got these 21536 14:36:25,160 --> 14:36:27,480 three visuals and let me instead of two 21537 14:36:27,480 --> 14:36:30,320 I got three I put them on one side now 21538 14:36:30,320 --> 14:36:31,840 what's happening if I select a br 21539 14:36:31,840 --> 14:36:33,680 everything is interacting now let me say 21540 14:36:33,680 --> 14:36:37,640 CR a contrl c contr v i get two sets of 21541 14:36:37,640 --> 14:36:40,360 visuals now even if I select brand here 21542 14:36:40,360 --> 14:36:43,080 it is filtering across now for this use 21543 14:36:43,080 --> 14:36:45,560 case let me go ahead and insert a shape 21544 14:36:45,560 --> 14:36:47,560 and the shape I plan to insert is a line 21545 14:36:47,560 --> 14:36:50,240 let me make this line bigger and thinner 21546 14:36:50,240 --> 14:36:52,200 and I I'll change its orientation now 21547 14:36:52,200 --> 14:36:55,000 let me enable the formatting and inside 21548 14:36:55,000 --> 14:36:57,720 the format I'll go to rotation and let 21549 14:36:57,720 --> 14:37:01,000 me rotate it by 90° so I got a full line 21550 14:37:01,000 --> 14:37:03,880 a y drawn a line here I want the left 21551 14:37:03,880 --> 14:37:05,880 side to only work with the left side I 21552 14:37:05,880 --> 14:37:07,200 want right side to work with the right 21553 14:37:07,200 --> 14:37:08,596 side they should not interact with each 21554 14:37:08,596 --> 14:37:11,000 other then how do I change this Behavior 21555 14:37:11,000 --> 14:37:13,080 so click on this visual now edit 21556 14:37:13,080 --> 14:37:14,520 interaction is already available from 21557 14:37:14,520 --> 14:37:16,200 the format pan we have enabled it last 21558 14:37:16,200 --> 14:37:17,880 time if it is not enabled go to the 21559 14:37:17,880 --> 14:37:21,596 format pan and enable it now disable its 21560 14:37:21,596 --> 14:37:24,000 interaction with all the three visuals 21561 14:37:24,000 --> 14:37:25,240 let me make it a little bit smaller 21562 14:37:25,240 --> 14:37:27,400 because it's overlapping now what would 21563 14:37:27,400 --> 14:37:29,560 happen here when I select brand one it 21564 14:37:29,560 --> 14:37:31,640 is going to filter the first two visual 21565 14:37:31,640 --> 14:37:33,240 not the visual on the other side so you 21566 14:37:33,240 --> 14:37:34,756 can see this visual is filtering this 21567 14:37:34,756 --> 14:37:36,720 visual is filtering but these two 21568 14:37:36,720 --> 14:37:38,480 visuals are not interacting and that is 21569 14:37:38,480 --> 14:37:40,040 the reason why they are not getting 21570 14:37:40,040 --> 14:37:42,596 filtered but it will not stop here I 21571 14:37:42,596 --> 14:37:44,436 have to do the same thing for here and 21572 14:37:44,436 --> 14:37:46,080 have to repeat it for all the visual so 21573 14:37:46,080 --> 14:37:47,796 I click on this I disable its 21574 14:37:47,796 --> 14:37:49,680 interaction with these visual now I 21575 14:37:49,680 --> 14:37:51,520 click on this Visual and I disable its 21576 14:37:51,520 --> 14:37:53,240 interaction with the other side I click 21577 14:37:53,240 --> 14:37:55,360 on the bar Visual and disable bar 21578 14:37:55,360 --> 14:37:57,000 visuals interaction with the right hand 21579 14:37:57,000 --> 14:37:58,480 side visual on the right hand side I 21580 14:37:58,480 --> 14:38:00,276 click on the p and I disable it 21581 14:38:00,276 --> 14:38:01,756 interaction with left hand side visual 21582 14:38:01,756 --> 14:38:03,240 click on the bar and disable its 21583 14:38:03,240 --> 14:38:04,880 interaction with left hand side visual 21584 14:38:04,880 --> 14:38:06,840 now let's check it out so if I filter 21585 14:38:06,840 --> 14:38:08,640 brand one here only right side is 21586 14:38:08,640 --> 14:38:10,160 getting filtered so I filtered on right 21587 14:38:10,160 --> 14:38:11,560 side right side is getting filtered when 21588 14:38:11,560 --> 14:38:13,160 I click on category and let me change 21589 14:38:13,160 --> 14:38:15,116 the impact to highlight let me click on 21590 14:38:15,116 --> 14:38:17,000 the pi on the left and change the impact 21591 14:38:17,000 --> 14:38:19,436 to highlight see left hand side 21592 14:38:19,436 --> 14:38:20,916 interacts with left hand side right hand 21593 14:38:20,916 --> 14:38:22,320 side interact with right hand side there 21594 14:38:22,320 --> 14:38:25,040 is no interaction between left and right 21595 14:38:25,040 --> 14:38:27,400 in this manner you can change the 21596 14:38:27,400 --> 14:38:30,360 interaction and create different kind of 21597 14:38:30,360 --> 14:38:32,200 interactions Behavior where you can 21598 14:38:32,200 --> 14:38:34,520 decide which visual is going to filter 21599 14:38:34,520 --> 14:38:35,680 which other 21600 14:38:35,680 --> 14:38:39,436 visual let's learn the feature bookmarks 21601 14:38:39,436 --> 14:38:41,720 bookmarks is a feature which allows you 21602 14:38:41,720 --> 14:38:44,116 to create snapshots and using those 21603 14:38:44,116 --> 14:38:46,880 snapshot you can create more interactive 21604 14:38:46,880 --> 14:38:49,560 power VI Pages now what happens is there 21605 14:38:49,560 --> 14:38:51,480 is a facility to show and hide the 21606 14:38:51,480 --> 14:38:54,436 visuals so if you go to view and enable 21607 14:38:54,436 --> 14:38:56,480 the selection pan which is right now 21608 14:38:56,480 --> 14:38:58,240 enabled here so you to enable the 21609 14:38:58,240 --> 14:38:59,796 selection Pane and for every 21610 14:38:59,796 --> 14:39:01,360 visualization you will get option to 21611 14:39:01,360 --> 14:39:03,680 show and hide and you can capture that 21612 14:39:03,680 --> 14:39:05,400 stage because sometime the visual is 21613 14:39:05,400 --> 14:39:07,080 showing sometime the visual is not 21614 14:39:07,080 --> 14:39:09,080 showing so you can capture such kind of 21615 14:39:09,080 --> 14:39:11,480 situations and using such kind of 21616 14:39:11,480 --> 14:39:13,880 situations you can actually create a 21617 14:39:13,880 --> 14:39:15,680 really interactive page what are the 21618 14:39:15,680 --> 14:39:17,880 uses there are many uses before field 21619 14:39:17,880 --> 14:39:20,680 parameter came in place this was also 21620 14:39:20,680 --> 14:39:23,040 used for switch AIS so basically if a 21621 14:39:23,040 --> 14:39:24,480 visual is on brand and I want to change 21622 14:39:24,480 --> 14:39:26,956 it to category so bookmarks along with 21623 14:39:26,956 --> 14:39:29,240 Buttons used to help in that then 21624 14:39:29,240 --> 14:39:31,320 sometime it helps us in creating a b 21625 14:39:31,320 --> 14:39:33,756 basically a slicer pan so what happens 21626 14:39:33,756 --> 14:39:35,880 you can have a slicer pan and that 21627 14:39:35,880 --> 14:39:38,956 slicer pen can show and hide so let's 21628 14:39:38,956 --> 14:39:41,160 take these two examples of bookmarks and 21629 14:39:41,160 --> 14:39:43,320 try to implement that and understand the 21630 14:39:43,320 --> 14:39:45,400 bookmark feature in detail what I'm 21631 14:39:45,400 --> 14:39:47,000 going to do is I have another page where 21632 14:39:47,000 --> 14:39:49,320 I have this two slices let me bring them 21633 14:39:49,320 --> 14:39:51,360 in now these slices are not interacting 21634 14:39:51,360 --> 14:39:55,320 with each other right now I'll say don't 21635 14:39:56,720 --> 14:39:59,000 sync so let me change the column on the 21636 14:39:59,000 --> 14:40:01,480 second slicer so on the second slicer 21637 14:40:01,480 --> 14:40:03,640 instead of the brand let me use category 21638 14:40:03,640 --> 14:40:05,200 so I have a visual which is on brand I 21639 14:40:05,200 --> 14:40:06,880 have a visual which is on category brand 21640 14:40:06,880 --> 14:40:10,040 and category and let me bring in one 21641 14:40:10,040 --> 14:40:13,360 visual also I bring a visual here I put 21642 14:40:13,360 --> 14:40:16,640 this visual here below now these visuals 21643 14:40:16,640 --> 14:40:19,840 are filtering this one let's check that 21644 14:40:19,840 --> 14:40:23,756 out round one 21645 14:40:23,756 --> 14:40:26,520 category interaction is happening now 21646 14:40:26,520 --> 14:40:28,560 sometime for the space requirement what 21647 14:40:28,560 --> 14:40:31,320 you want is I want to hide this region 21648 14:40:31,320 --> 14:40:33,880 or you can have it on left hand side so 21649 14:40:33,880 --> 14:40:36,796 how do I do that so let me first of all 21650 14:40:36,796 --> 14:40:39,080 create a pain kind of impression by 21651 14:40:39,080 --> 14:40:42,720 using a shape I put a 21652 14:40:42,840 --> 14:40:46,436 rectangle so let me remove the color and 21653 14:40:46,436 --> 14:40:49,276 everything from this one shape and Style 21654 14:40:49,276 --> 14:40:51,080 no fill I think we are fine with the 21655 14:40:51,080 --> 14:40:53,040 boundaries let me bring in the category 21656 14:40:53,040 --> 14:40:55,080 on top of it so let's go to the format 21657 14:40:55,080 --> 14:40:57,840 Tab and let's send this backward so we 21658 14:40:57,840 --> 14:41:00,956 will say send to back so this is now on 21659 14:41:00,956 --> 14:41:03,360 when to the back one 21660 14:41:03,360 --> 14:41:07,916 now this is here and this should again 21661 14:41:07,916 --> 14:41:11,436 let's bring this forward bring in front 21662 14:41:11,436 --> 14:41:16,596 this is also bring in front control or 21663 14:41:16,596 --> 14:41:20,880 shift press and right click group so all 21664 14:41:20,880 --> 14:41:23,000 these visuals are group so we have one 21665 14:41:23,000 --> 14:41:26,200 group so what can happen is I can hide 21666 14:41:26,200 --> 14:41:28,916 this this is hidden now this is one 21667 14:41:28,916 --> 14:41:30,520 stage where this is hidden this is one 21668 14:41:30,520 --> 14:41:32,640 of the stage I want to show so this is 21669 14:41:32,640 --> 14:41:34,116 the one stage which I would like to 21670 14:41:34,116 --> 14:41:37,040 capture and in that stage I would like 21671 14:41:37,040 --> 14:41:40,160 to use the bookmark 21672 14:41:40,320 --> 14:41:43,116 pan and this is the bookmark pain which 21673 14:41:43,116 --> 14:41:44,160 is already 21674 14:41:44,160 --> 14:41:46,560 enabled and using the pan switcher let 21675 14:41:46,560 --> 14:41:48,320 me bring it 21676 14:41:48,320 --> 14:41:52,680 in so now this stage I add a bookmark 21677 14:41:52,680 --> 14:41:54,240 and this bookmark let me call this 21678 14:41:54,240 --> 14:41:55,320 bookmark as 21679 14:41:55,320 --> 14:41:58,796 hide enable and what is this stage when 21680 14:41:58,796 --> 14:42:01,756 it is showing this this is show stage so 21681 14:42:01,756 --> 14:42:04,040 there are two stages hide and show so in 21682 14:42:04,040 --> 14:42:05,840 this stage it is hidden this stage it is 21683 14:42:05,840 --> 14:42:07,640 show but what happens if I select 21684 14:42:07,640 --> 14:42:10,116 category one I removed all the 21685 14:42:10,116 --> 14:42:12,200 categories in the show stage I go to 21686 14:42:12,200 --> 14:42:14,240 hide stage do you see this a category 21687 14:42:14,240 --> 14:42:16,880 still filtered so what has happened when 21688 14:42:16,880 --> 14:42:19,480 I created this bookmark actually the 21689 14:42:19,480 --> 14:42:21,360 data got saved though the filter is not 21690 14:42:21,360 --> 14:42:24,680 appearing so if I go to show I uncheck 21691 14:42:24,680 --> 14:42:26,596 it but if I go to hide and I come back 21692 14:42:26,596 --> 14:42:28,116 to show you again see the category one 21693 14:42:28,116 --> 14:42:29,436 because the category one was sa so let 21694 14:42:29,436 --> 14:42:31,436 me erase this category one let me erase 21695 14:42:31,436 --> 14:42:34,840 the filter and update this bookmark now 21696 14:42:34,840 --> 14:42:38,276 let me hide this so I unhide it first of 21697 14:42:38,276 --> 14:42:41,400 all erase erase this one now I hide it 21698 14:42:41,400 --> 14:42:43,360 right click and update now both the 21699 14:42:43,360 --> 14:42:45,796 bookmarks are saved without values but 21700 14:42:45,796 --> 14:42:47,720 let's say if I put Category 2 here let 21701 14:42:47,720 --> 14:42:49,720 me put Category 5 here and after keep 21702 14:42:49,720 --> 14:42:51,720 creating Category 5 in the show view I 21703 14:42:51,720 --> 14:42:53,276 go to the Hidden View now if you 21704 14:42:53,276 --> 14:42:55,320 remember I cleaned up and saved it again 21705 14:42:55,320 --> 14:42:56,840 now it is is still showing me everything 21706 14:42:56,840 --> 14:42:58,400 so can I pass the values because when I 21707 14:42:58,400 --> 14:43:00,200 show and hide this menu I still want the 21708 14:43:00,200 --> 14:43:02,080 values to pass so for that we right 21709 14:43:02,080 --> 14:43:04,200 click here and we say disable data we 21710 14:43:04,200 --> 14:43:05,916 say don't save the data same thing on 21711 14:43:05,916 --> 14:43:08,160 the show we go and we say don't save the 21712 14:43:08,160 --> 14:43:09,840 data now we go to the show go to the 21713 14:43:09,840 --> 14:43:12,000 category and put Category 2 come to the 21714 14:43:12,000 --> 14:43:13,880 hide view still Category 2 come back 21715 14:43:13,880 --> 14:43:15,720 show now let's choose a category where 21716 14:43:15,720 --> 14:43:18,080 we have lesser values like Category 5 21717 14:43:18,080 --> 14:43:19,596 this is the show View and we go to the 21718 14:43:19,596 --> 14:43:21,240 hide view we still get the category 5 it 21719 14:43:21,240 --> 14:43:23,240 means even if I hide my menu I will be 21720 14:43:23,240 --> 14:43:25,320 able to do that now what I'm going to do 21721 14:43:25,320 --> 14:43:27,080 is I'm I need a button here isn't it so 21722 14:43:27,080 --> 14:43:29,200 I give a small button for show or hide 21723 14:43:29,200 --> 14:43:30,796 so I want to hide or show then I need to 21724 14:43:30,796 --> 14:43:33,560 give a button so I will go here in the 21725 14:43:33,560 --> 14:43:37,240 insert and I go to button so let me add 21726 14:43:37,240 --> 14:43:39,080 a very small button here blank button 21727 14:43:39,080 --> 14:43:41,320 I'm plan to add let me move it on the 21728 14:43:41,320 --> 14:43:44,320 right hand side I'll go to the button 21729 14:43:44,320 --> 14:43:47,276 style enable the text and give it as a 21730 14:43:47,276 --> 14:43:49,200 name show whenever I click on this the 21731 14:43:49,200 --> 14:43:51,680 menu should show now I go further down I 21732 14:43:51,680 --> 14:43:53,756 go to the actions in the action in The 21733 14:43:53,756 --> 14:43:56,080 Bookmark I'll first of all type action 21734 14:43:56,080 --> 14:43:58,080 type is bookmark what action it should 21735 14:43:58,080 --> 14:43:59,436 show it should show so whenever I click 21736 14:43:59,436 --> 14:44:00,796 on this it should show right now it's 21737 14:44:00,796 --> 14:44:02,756 already showing okay so we need to do a 21738 14:44:02,756 --> 14:44:04,360 little bit of adjustment and then I put 21739 14:44:04,360 --> 14:44:06,240 another button and I put hide button on 21740 14:44:06,240 --> 14:44:08,000 top of the menu itself and I need to 21741 14:44:08,000 --> 14:44:10,080 group it so let me group this together 21742 14:44:10,080 --> 14:44:13,080 so merge I merge it with the group one 21743 14:44:13,080 --> 14:44:15,360 so when I go to height the button itself 21744 14:44:15,360 --> 14:44:17,200 is hidden with that if I go to the show 21745 14:44:17,200 --> 14:44:19,520 it is there now but this should be 21746 14:44:19,520 --> 14:44:21,956 renamed as hide and what action it 21747 14:44:21,956 --> 14:44:24,116 should do if I click it should take me 21748 14:44:24,116 --> 14:44:27,436 to The Bookmark hide so now let's do a 21749 14:44:27,436 --> 14:44:28,880 go ahead and click on this how do we 21750 14:44:28,880 --> 14:44:31,080 click a button in the powerb desktop 21751 14:44:31,080 --> 14:44:33,640 control click hide control click show 21752 14:44:33,640 --> 14:44:36,520 shows can we apply a filter yes category 21753 14:44:36,520 --> 14:44:39,160 two and we go and apply brand and filter 21754 14:44:39,160 --> 14:44:41,080 yes brand and filter has been applied 21755 14:44:41,080 --> 14:44:42,596 let's hide it till the same thing is 21756 14:44:42,596 --> 14:44:44,480 there click on show same thing is there 21757 14:44:44,480 --> 14:44:46,360 okay so we are in short this using the 21758 14:44:46,360 --> 14:44:48,000 not saving the data with the bookmarks 21759 14:44:48,000 --> 14:44:49,956 so these are the stages which are saved 21760 14:44:49,956 --> 14:44:52,000 and we are able to create slicer menu 21761 14:44:52,000 --> 14:44:53,240 which we can show under it you can 21762 14:44:53,240 --> 14:44:54,880 create it on left hand side sometime 21763 14:44:54,880 --> 14:44:56,320 what happens is when you create such 21764 14:44:56,320 --> 14:44:58,200 kind of menu you do adjust your visual 21765 14:44:58,200 --> 14:45:00,160 so BBE the visual is see this big and 21766 14:45:00,160 --> 14:45:01,796 when it is shown on the visual is this 21767 14:45:01,796 --> 14:45:03,480 big so this kind of adjustment also we 21768 14:45:03,480 --> 14:45:05,320 do so with this kind of adjustment you 21769 14:45:05,320 --> 14:45:07,756 can try that out now the Second Use case 21770 14:45:07,756 --> 14:45:09,360 which actually I wanted to go ahead and 21771 14:45:09,360 --> 14:45:11,840 do is I want to create a impression of 21772 14:45:11,840 --> 14:45:13,596 access slicer using the bookmarks and 21773 14:45:13,596 --> 14:45:14,880 button so we have used bookmarks and 21774 14:45:14,880 --> 14:45:17,040 button and created the menu show hide 21775 14:45:17,040 --> 14:45:19,240 menu now what we want is now we want the 21776 14:45:19,240 --> 14:45:21,276 behavior of access slicer now access 21777 14:45:21,276 --> 14:45:23,400 slicer bookmarks cannot work in a slicer 21778 14:45:23,400 --> 14:45:24,680 so what I'm going to do here is 21779 14:45:24,680 --> 14:45:27,040 basically I will go ahead and create 21780 14:45:27,040 --> 14:45:28,880 buttons for those and going to create an 21781 14:45:28,880 --> 14:45:31,000 impression of exess slicer and when you 21782 14:45:31,000 --> 14:45:32,796 learn field parameter you will find that 21783 14:45:32,796 --> 14:45:34,400 the new method is really easy the field 21784 14:45:34,400 --> 14:45:36,560 parameter method is really easy while 21785 14:45:36,560 --> 14:45:38,680 bookmarks can use for both access slicer 21786 14:45:38,680 --> 14:45:40,916 as well as major slicer for major slicer 21787 14:45:40,916 --> 14:45:42,560 traditionally also there are many ways 21788 14:45:42,560 --> 14:45:43,956 available including the calculation 21789 14:45:43,956 --> 14:45:45,680 group now calculation group has very 21790 14:45:45,680 --> 14:45:47,520 recently become part of the Microsoft 21791 14:45:47,520 --> 14:45:49,956 powerbi desktop without going to tabular 21792 14:45:49,956 --> 14:45:51,596 editor or external tool you can create 21793 14:45:51,596 --> 14:45:53,596 it so calculation group is another easy 21794 14:45:53,596 --> 14:45:55,680 way to explore that so calculation group 21795 14:45:55,680 --> 14:45:57,720 was previously there and major slicers 21796 14:45:57,720 --> 14:45:58,840 we can create with the help of 21797 14:45:58,840 --> 14:46:00,276 independent table that was also 21798 14:46:00,276 --> 14:46:02,240 available previous viously so unless a 21799 14:46:02,240 --> 14:46:04,436 very specific case used to come we never 21800 14:46:04,436 --> 14:46:07,040 used to use bookmark for major slices 21801 14:46:07,040 --> 14:46:08,560 but definitely for the exess slicer we 21802 14:46:08,560 --> 14:46:10,360 were using it so let's quickly take an 21803 14:46:10,360 --> 14:46:12,240 example in this example again what I 21804 14:46:12,240 --> 14:46:13,720 want here is basically let me bring in 21805 14:46:13,720 --> 14:46:16,880 this visual by category to this new page 21806 14:46:16,880 --> 14:46:18,560 let me duplicate this contrl C control V 21807 14:46:18,560 --> 14:46:20,080 now there are two visuals and what I'm 21808 14:46:20,080 --> 14:46:21,756 going to do here is the second visual 21809 14:46:21,756 --> 14:46:23,756 I'll change the second visual to Brand 21810 14:46:23,756 --> 14:46:26,160 so what you want is if you click on if 21811 14:46:26,160 --> 14:46:27,840 you click on a button you want brand if 21812 14:46:27,840 --> 14:46:29,636 you click on a button you want category 21813 14:46:29,636 --> 14:46:31,720 so if I hide this is only category 21814 14:46:31,720 --> 14:46:34,480 Visual and if I unhide and this this is 21815 14:46:34,480 --> 14:46:36,436 a brand visual so when category is 21816 14:46:36,436 --> 14:46:38,320 hidden it is brand Visual and when brand 21817 14:46:38,320 --> 14:46:40,240 is hidden we can have category visual 21818 14:46:40,240 --> 14:46:41,880 these are two stages and I want to cover 21819 14:46:41,880 --> 14:46:43,400 these two stages in two buttons so I 21820 14:46:43,400 --> 14:46:45,720 create a hidden brand and I can add a 21821 14:46:45,720 --> 14:46:47,400 bookmark and what will this bookmark be 21822 14:46:47,400 --> 14:46:49,080 known as this bookmark will be known as 21823 14:46:49,080 --> 14:46:51,756 category bookmark then I unhide the 21824 14:46:51,756 --> 14:46:53,480 brand and hide category what this 21825 14:46:53,480 --> 14:46:55,040 bookmark will be known as because brand 21826 14:46:55,040 --> 14:46:57,080 is visible I'll add a bookmark and that 21827 14:46:57,080 --> 14:46:58,720 bookmark double click and rename will be 21828 14:46:58,720 --> 14:47:01,240 known as brand bookmark you you can have 21829 14:47:01,240 --> 14:47:02,720 few more versions and you can have this 21830 14:47:02,720 --> 14:47:04,596 so category brand now I can ship but 21831 14:47:04,596 --> 14:47:06,240 definitely there would be no bookmark 21832 14:47:06,240 --> 14:47:07,560 pain for the users so how you're going 21833 14:47:07,560 --> 14:47:08,916 to enable that we are going to bring 21834 14:47:08,916 --> 14:47:10,916 button insert buttons there are already 21835 14:47:10,916 --> 14:47:12,276 bookmark button which I doesn't like 21836 14:47:12,276 --> 14:47:13,720 there is a navigator also bookmark 21837 14:47:13,720 --> 14:47:15,916 Navigator so I'll add two buttons blank 21838 14:47:15,916 --> 14:47:17,840 button but what typically I do is I add 21839 14:47:17,840 --> 14:47:19,520 the first button and then I start 21840 14:47:19,520 --> 14:47:21,480 editing the style and then I can easily 21841 14:47:21,480 --> 14:47:23,160 edit it to the second button so what is 21842 14:47:23,160 --> 14:47:25,040 the button Style I want I want text 21843 14:47:25,040 --> 14:47:26,880 first of all so let me enable and let me 21844 14:47:26,880 --> 14:47:29,400 call this text as brand so brand is 21845 14:47:29,400 --> 14:47:31,240 there and then I go to the action and 21846 14:47:31,240 --> 14:47:33,200 inside the action I enable the action 21847 14:47:33,200 --> 14:47:35,276 what action I need I need a type action 21848 14:47:35,276 --> 14:47:37,756 is bookmark and I want to show brand so 21849 14:47:37,756 --> 14:47:39,000 whenever I click on this button I want 21850 14:47:39,000 --> 14:47:41,360 to show brand then contrl ctrol V now 21851 14:47:41,360 --> 14:47:42,596 this second button is going to do the 21852 14:47:42,596 --> 14:47:44,636 same stuff but here the action I want is 21853 14:47:44,636 --> 14:47:46,560 basically category and this means that 21854 14:47:46,560 --> 14:47:48,276 it need to be renamed so I will go to 21855 14:47:48,276 --> 14:47:50,080 the button text and rename it as 21856 14:47:50,080 --> 14:47:52,880 category so we have brand as well as 21857 14:47:52,880 --> 14:47:54,796 category buttons now control and click 21858 14:47:54,796 --> 14:47:56,560 on brand it is brand control and click 21859 14:47:56,560 --> 14:47:58,360 on category it is category what is 21860 14:47:58,360 --> 14:48:00,520 happening the AIS is switching or the 21861 14:48:00,520 --> 14:48:02,596 lay legent is switching now if this 21862 14:48:02,596 --> 14:48:04,720 would have been the bar visuals it had 21863 14:48:04,720 --> 14:48:06,276 been excess switching these are P 21864 14:48:06,276 --> 14:48:07,916 visuals Legend shifting you want to 21865 14:48:07,916 --> 14:48:10,520 change the visualization type one time 21866 14:48:10,520 --> 14:48:12,400 it is bar one time it is table one time 21867 14:48:12,400 --> 14:48:14,480 it is pi again bookmarks you can use so 21868 14:48:14,480 --> 14:48:16,276 many such use cases can be done with the 21869 14:48:16,276 --> 14:48:18,320 bookmarks these are very common use 21870 14:48:18,320 --> 14:48:20,480 cases which you can do and bookmark can 21871 14:48:20,480 --> 14:48:22,756 in increase the interactivity of the 21872 14:48:22,756 --> 14:48:25,080 page and it can create a different 21873 14:48:25,080 --> 14:48:27,276 impression of the page it looks like 21874 14:48:27,276 --> 14:48:29,480 much more professionally handled page 21875 14:48:29,480 --> 14:48:31,240 when you use bookmarks 21876 14:48:31,240 --> 14:48:33,560 so now let's learn what is calculation 21877 14:48:33,560 --> 14:48:37,276 groups calculation group is a power ba 21878 14:48:37,276 --> 14:48:40,040 feature which will allows you to apply 21879 14:48:40,040 --> 14:48:42,840 common calculation across multiple 21880 14:48:42,840 --> 14:48:45,000 measures so you don't have to create 21881 14:48:45,000 --> 14:48:47,040 measure for each and everything so this 21882 14:48:47,040 --> 14:48:51,160 is particularly useful to simplify the 21883 14:48:51,160 --> 14:48:54,360 measor management but the feature allows 21884 14:48:54,360 --> 14:48:57,320 you more than that so if you simply 21885 14:48:57,320 --> 14:48:59,480 combine the majors you can create a 21886 14:48:59,480 --> 14:49:02,720 major slicer if you use selected value 21887 14:49:02,720 --> 14:49:05,596 and you then create a major let's say 21888 14:49:05,596 --> 14:49:08,200 for MTD qtd YTD you can create time 21889 14:49:08,200 --> 14:49:09,560 intelligence measure by just using 21890 14:49:09,560 --> 14:49:11,680 selected measures and then I don't need 21891 14:49:11,680 --> 14:49:14,040 to create separate measures for Cog MTD 21892 14:49:14,040 --> 14:49:18,400 Cog YTD Cog qtd next net YTD net qtd all 21893 14:49:18,400 --> 14:49:20,360 those measures I don't need to create so 21894 14:49:20,360 --> 14:49:21,560 what we are going to do is we going to 21895 14:49:21,560 --> 14:49:24,040 take an example of calculation group 21896 14:49:24,040 --> 14:49:25,756 where we are going to create two 21897 14:49:25,756 --> 14:49:27,596 calculation groups one which will 21898 14:49:27,596 --> 14:49:29,320 provide us time intelligence using 21899 14:49:29,320 --> 14:49:32,116 selected major which can take a measure 21900 14:49:32,116 --> 14:49:34,000 which is in the visual and give the 21901 14:49:34,000 --> 14:49:37,520 value for that as MTD qtd YTD and the 21902 14:49:37,520 --> 14:49:38,956 second calculation Group which we are 21903 14:49:38,956 --> 14:49:40,916 going to create its item would be same 21904 14:49:40,916 --> 14:49:43,636 as what we have net gross cogs margin 21905 14:49:43,636 --> 14:49:47,240 Etc but the objective of that would be 21906 14:49:47,240 --> 14:49:50,756 to give you a dynamic slicer both will 21907 14:49:50,756 --> 14:49:53,040 give slicer that would be equivalent of 21908 14:49:53,040 --> 14:49:55,160 major slicer we have also seen in field 21909 14:49:55,160 --> 14:49:57,880 parameters so to do that you have to go 21910 14:49:57,880 --> 14:50:00,720 to the model view and inside the model 21911 14:50:00,720 --> 14:50:03,796 view very recently in the data pane on 21912 14:50:03,796 --> 14:50:06,240 the right hand side we have been given 21913 14:50:06,240 --> 14:50:09,240 this option model semantic model and 21914 14:50:09,240 --> 14:50:12,200 using this semantic model you can now 21915 14:50:12,200 --> 14:50:14,840 create calculation groups right now if 21916 14:50:14,840 --> 14:50:16,636 you click you don't have any calculation 21917 14:50:16,636 --> 14:50:18,796 group so we are going to create a 21918 14:50:18,796 --> 14:50:21,276 calculation group the first calculation 21919 14:50:21,276 --> 14:50:23,880 group to convert measures to slicer and 21920 14:50:23,880 --> 14:50:25,436 second calculation group for time 21921 14:50:25,436 --> 14:50:27,680 intelligence so click on the calculation 21922 14:50:27,680 --> 14:50:30,680 groups New calculation group and this 21923 14:50:30,680 --> 14:50:33,000 will give you a message this change will 21924 14:50:33,000 --> 14:50:35,240 discourage implicit measures now you 21925 14:50:35,240 --> 14:50:36,720 can't use implicit measures implicit 21926 14:50:36,720 --> 14:50:38,720 measure means when I use a quantity 21927 14:50:38,720 --> 14:50:41,116 column and I say it is sum okay this 21928 14:50:41,116 --> 14:50:43,160 kind of stuff would be discouraged from 21929 14:50:43,160 --> 14:50:45,680 now and that is why you might have seen 21930 14:50:45,680 --> 14:50:47,080 every time I'm using something I'm 21931 14:50:47,080 --> 14:50:49,240 creating a major this is the something 21932 14:50:49,240 --> 14:50:51,116 which I know at some stage I'll need 21933 14:50:51,116 --> 14:50:53,276 calculation group and I'm doing it we 21934 14:50:53,276 --> 14:50:54,756 just discussing two use cases of 21935 14:50:54,756 --> 14:50:56,560 calculation group but it's much more 21936 14:50:56,560 --> 14:50:58,160 powerful feature it can be used at 21937 14:50:58,160 --> 14:51:00,956 multiple places so one of the things 21938 14:51:00,956 --> 14:51:04,080 which we can also use is basically to 21939 14:51:04,080 --> 14:51:07,240 use this in small multiples to shift the 21940 14:51:07,240 --> 14:51:10,480 measures that is also one of the uses so 21941 14:51:10,480 --> 14:51:13,320 now let me create yes this will change 21942 14:51:13,320 --> 14:51:14,840 this will discourage implicit measure 21943 14:51:14,840 --> 14:51:16,596 yes let it 21944 14:51:16,596 --> 14:51:19,116 discourage our first calculation group 21945 14:51:19,116 --> 14:51:20,480 has been 21946 14:51:20,480 --> 14:51:22,916 created and we are directly landed onto 21947 14:51:22,916 --> 14:51:26,276 a calculation item okay so we can come 21948 14:51:26,276 --> 14:51:32,436 here we can call it as major slicer we 21949 14:51:32,436 --> 14:51:34,680 I renamed it now I go to the calculation 21950 14:51:34,680 --> 14:51:36,916 item and there is already one item which 21951 14:51:36,916 --> 14:51:38,636 is created with selected Imes right now 21952 14:51:38,636 --> 14:51:40,116 I don't want to use selected Mees what I 21953 14:51:40,116 --> 14:51:44,636 simply want is I would like to create 21954 14:51:45,116 --> 14:51:48,276 gross gross as gross one item I added 21955 14:51:48,276 --> 14:51:50,040 and I'm quickly going to add few more 21956 14:51:50,040 --> 14:51:52,400 items 21957 14:51:54,756 --> 14:51:57,360 now net 21958 14:51:57,360 --> 14:52:02,436 net one more new calculation item 21959 14:52:06,276 --> 14:52:07,880 so left hand side is a name right hand 21960 14:52:07,880 --> 14:52:11,040 side is a definition cogs 21961 14:52:11,200 --> 14:52:13,880 cogs three is sufficient and this will 21962 14:52:13,880 --> 14:52:15,880 act as a major slicer so we can use it 21963 14:52:15,880 --> 14:52:17,520 as a major slicer it is just the 21964 14:52:17,520 --> 14:52:20,276 collection of measure now we again click 21965 14:52:20,276 --> 14:52:22,680 on the calculation group and it there is 21966 14:52:22,680 --> 14:52:24,360 a button for new calculation group we 21967 14:52:24,360 --> 14:52:25,560 are going to use 21968 14:52:25,560 --> 14:52:30,400 it new calculation group 21969 14:52:30,840 --> 14:52:33,080 and this would be our TI okay time 21970 14:52:33,080 --> 14:52:36,520 intelligence calculation group so 21971 14:52:36,520 --> 14:52:39,680 calculation item calculation group and 21972 14:52:39,680 --> 14:52:41,520 name it as TI time intelligence 21973 14:52:41,520 --> 14:52:44,040 calculation 21974 14:52:44,320 --> 14:52:46,276 group and now let's go to the 21975 14:52:46,276 --> 14:52:50,080 calculation item and rename it as MTD 21976 14:52:50,080 --> 14:52:52,436 left hand side rename and right hand 21977 14:52:52,436 --> 14:52:54,200 side look at the calculation 21978 14:52:54,200 --> 14:52:59,000 calculate selected major dates 21979 14:52:59,000 --> 14:53:01,520 MTD date of date this is how we created 21980 14:53:01,520 --> 14:53:05,360 time intelligence measures in the past 21981 14:53:06,956 --> 14:53:11,520 also dates MTD date of 21982 14:53:11,520 --> 14:53:14,720 date let's close MTD let's close 21983 14:53:14,720 --> 14:53:17,240 calculate we got an MTD 21984 14:53:17,240 --> 14:53:19,680 measure in the same manner we are going 21985 14:53:19,680 --> 14:53:22,520 to create two more qtd and YTD in this 21986 14:53:22,520 --> 14:53:24,480 calculation group now I'm using selected 21987 14:53:24,480 --> 14:53:27,880 major so I would need a major inside my 21988 14:53:27,880 --> 14:53:29,956 visualization to supply to this selected 21989 14:53:29,956 --> 14:53:32,916 major to get MTD qtd and YTD let's 21990 14:53:32,916 --> 14:53:34,560 create qtd and YTD click on the 21991 14:53:34,560 --> 14:53:36,200 calculation items on the right hand side 21992 14:53:36,200 --> 14:53:38,880 you will get this new calculation option 21993 14:53:38,880 --> 14:53:41,560 click on that and create 21994 14:53:41,560 --> 14:53:44,080 more this time we will use copy paste 21995 14:53:44,080 --> 14:53:46,560 and couple of 21996 14:53:46,560 --> 14:53:49,240 changes qtd 21997 14:53:49,240 --> 14:53:52,840 qtd using dates 21998 14:53:53,360 --> 14:53:57,956 qtd let's add one more 21999 14:54:04,000 --> 14:54:07,636 so we got YTD we got qtd and we got MTD 22000 14:54:07,636 --> 14:54:10,796 so now let's go ahead and use this so 22001 14:54:10,796 --> 14:54:13,596 I'll go to report View and inside the 22002 14:54:13,596 --> 14:54:15,520 report view I'll create a new page and 22003 14:54:15,520 --> 14:54:17,480 first of all I'll tell you how do I 22004 14:54:17,480 --> 14:54:19,596 create a major slicer so I can see this 22005 14:54:19,596 --> 14:54:21,400 calculation group I'll bring this 22006 14:54:21,400 --> 14:54:24,040 calculation item to this is showing me 22007 14:54:24,040 --> 14:54:27,756 three names I will change this to 22008 14:54:27,756 --> 14:54:30,320 slicer now I will go ahead and create 22009 14:54:30,320 --> 14:54:33,116 create a matrix 22010 14:54:33,160 --> 14:54:36,520 Visual and inside the Matrix 22011 14:54:36,520 --> 14:54:39,160 visual what I'm going to do here is I 22012 14:54:39,160 --> 14:54:41,956 will bring brand on the 22013 14:54:41,956 --> 14:54:46,040 row brand on the row calculation group 22014 14:54:46,040 --> 14:54:47,080 on the 22015 14:54:47,080 --> 14:54:49,436 column it will not show anything because 22016 14:54:49,436 --> 14:54:52,840 it need at least one major I'll go to 22017 14:54:52,840 --> 14:54:55,360 the majors on the 22018 14:54:55,360 --> 14:54:58,360 top and bring in net it doesn't mean 22019 14:54:58,360 --> 14:54:59,720 it's going to give only net it's going 22020 14:54:59,720 --> 14:55:02,560 to give me all three now I can check and 22021 14:55:02,560 --> 14:55:05,840 uncheck or do multi select using control 22022 14:55:05,840 --> 14:55:09,160 and get the measures so measor slicer 22023 14:55:09,160 --> 14:55:10,480 this is what you have 22024 14:55:10,480 --> 14:55:12,636 seen and this is same thing we are able 22025 14:55:12,636 --> 14:55:15,360 to achieve using calculation group now 22026 14:55:15,360 --> 14:55:17,400 now what we are going to do here is now 22027 14:55:17,400 --> 14:55:19,756 let's bring in the second one TI time 22028 14:55:19,756 --> 14:55:22,520 intelligence one again first of all 22029 14:55:22,520 --> 14:55:24,040 using the time intelligence one let me 22030 14:55:24,040 --> 14:55:26,436 create a 22031 14:55:27,880 --> 14:55:30,636 slicer so we got a slicer now here what 22032 14:55:30,636 --> 14:55:33,080 I'm going to do is I'm going to add this 22033 14:55:33,080 --> 14:55:36,200 calculation group on the 22034 14:55:36,200 --> 14:55:38,520 row 22035 14:55:38,520 --> 14:55:40,360 PI right now you don't see any 22036 14:55:40,360 --> 14:55:42,000 difference and I'll expand it the moment 22037 14:55:42,000 --> 14:55:43,796 I expand it you don't see a value and we 22038 14:55:43,796 --> 14:55:45,720 know time intelligence we use MTD qtd 22039 14:55:45,720 --> 14:55:48,756 YTD so unless there is some month where 22040 14:55:48,756 --> 14:55:51,000 we have the data we not get it so let's 22041 14:55:51,000 --> 14:55:54,436 bring in a slicer for month 22042 14:55:55,116 --> 14:55:59,680 here so I got a slicer and here add data 22043 14:55:59,680 --> 14:56:01,560 on the 22044 14:56:01,560 --> 14:56:03,000 date 22045 14:56:03,000 --> 14:56:05,080 table month 22046 14:56:05,080 --> 14:56:07,400 year and let's go and select a month 22047 14:56:07,400 --> 14:56:10,000 year where we have 22048 14:56:10,080 --> 14:56:13,320 data I'll select 22049 14:56:13,320 --> 14:56:17,636 July so as you can see I got MTD value 22050 14:56:17,636 --> 14:56:19,400 qtd same because in the month of July 22051 14:56:19,400 --> 14:56:21,436 MTD and QT saved and YTD different now 22052 14:56:21,436 --> 14:56:24,680 if I go to June I will get different MTD 22053 14:56:24,680 --> 14:56:27,040 qtd YTD and for all three of them I'm 22054 14:56:27,040 --> 14:56:28,840 able to get it see I have not calculated 22055 14:56:28,840 --> 14:56:31,480 it for cogs gross and net I just 22056 14:56:31,480 --> 14:56:33,880 calculated it for the selected measure 22057 14:56:33,880 --> 14:56:35,916 and there are three selected measure 22058 14:56:35,916 --> 14:56:37,116 which are coming inside this 22059 14:56:37,116 --> 14:56:39,436 visualization and it is able to use 22060 14:56:39,436 --> 14:56:42,240 those in this manner we are able to 22061 14:56:42,240 --> 14:56:45,276 utilize calculation groups to reduce the 22062 14:56:45,276 --> 14:56:48,040 measures now think about cogs gross net 22063 14:56:48,040 --> 14:56:51,040 three into three nine Majors I needed I 22064 14:56:51,040 --> 14:56:52,720 actually did not create nine Majors 22065 14:56:52,720 --> 14:56:54,160 three Majors were already created which 22066 14:56:54,160 --> 14:56:57,000 I utilized inside one calculation group 22067 14:56:57,000 --> 14:56:58,956 and in that manner I've done it you can 22068 14:56:58,956 --> 14:57:00,520 do some of those calculations under 22069 14:57:00,520 --> 14:57:02,320 calculation group items you don't need 22070 14:57:02,320 --> 14:57:04,080 to do all the calculations here as 22071 14:57:04,080 --> 14:57:06,840 measures so this is one example now we 22072 14:57:06,840 --> 14:57:09,720 will use one more 22073 14:57:09,720 --> 14:57:12,240 example of calculation 22074 14:57:12,240 --> 14:57:14,720 group where I want to use the small 22075 14:57:14,720 --> 14:57:18,720 multiple so if I have this brand wise 22076 14:57:18,720 --> 14:57:19,880 net 22077 14:57:19,880 --> 14:57:23,400 visual me create a brand wise net 22078 14:57:23,400 --> 14:57:25,840 visual what would happen here is you can 22079 14:57:25,840 --> 14:57:28,000 usually create a small multiple using 22080 14:57:28,000 --> 14:57:31,040 let's say category but I want want to 22081 14:57:31,040 --> 14:57:33,080 have the small multiple using measures 22082 14:57:33,080 --> 14:57:34,916 can I have it no because measures you 22083 14:57:34,916 --> 14:57:37,160 can't drag a measure here and how do we 22084 14:57:37,160 --> 14:57:40,200 create multiple measures can I use a 22085 14:57:40,200 --> 14:57:42,796 field parameter here let's try out so we 22086 14:57:42,796 --> 14:57:44,880 go to measor slicer we put major slicer 22087 14:57:44,880 --> 14:57:47,276 here it takes the major slicer does 22088 14:57:47,276 --> 14:57:50,000 nothing now let's drag the calculation 22089 14:57:50,000 --> 14:57:52,080 Group which we have created the 22090 14:57:52,080 --> 14:57:55,200 calculation group major slicer we put it 22091 14:57:55,200 --> 14:57:56,360 into the small 22092 14:57:56,360 --> 14:57:58,956 multiple and the moment I do it you see 22093 14:57:58,956 --> 14:58:02,240 cogs gross and Nets three different 22094 14:58:02,240 --> 14:58:05,240 visuals coming in place now let me go to 22095 14:58:05,240 --> 14:58:06,276 the small 22096 14:58:06,276 --> 14:58:09,160 multiples how many rows you need I will 22097 14:58:09,160 --> 14:58:11,956 need three rows how many columns only 22098 14:58:11,956 --> 14:58:12,916 one 22099 14:58:12,916 --> 14:58:16,116 column each of them is on the different 22100 14:58:16,116 --> 14:58:20,480 different rows cogs net gross do I need 22101 14:58:20,480 --> 14:58:23,480 the titles yes I need the 22102 14:58:23,480 --> 14:58:27,116 titles but I can go to the Y 22103 14:58:27,116 --> 14:58:31,680 AIS and disable this shared y axis 22104 14:58:31,680 --> 14:58:36,436 so now the Y AIS would be able to adjust 22105 14:58:36,436 --> 14:58:38,796 itself so I removed the shared y- axis 22106 14:58:38,796 --> 14:58:40,840 so that these values can adjust inside 22107 14:58:40,840 --> 14:58:43,520 the each Visual 22108 14:58:43,520 --> 14:58:47,000 and I will remove the y-axis title now 22109 14:58:47,000 --> 14:58:49,796 cogs gross and net three different 22110 14:58:49,796 --> 14:58:53,320 measures we are able to use using small 22111 14:58:53,320 --> 14:58:56,160 multiples small multiples is a feature 22112 14:58:56,160 --> 14:58:58,520 which allows you to have multiple visual 22113 14:58:58,520 --> 14:59:01,680 using the categorical variables but 22114 14:59:01,680 --> 14:59:05,200 calculation groups allows you to convert 22115 14:59:05,200 --> 14:59:08,160 measures into Dimension means into 22116 14:59:08,160 --> 14:59:10,320 categorical variables and then you can 22117 14:59:10,320 --> 14:59:12,160 use it into the places where you could 22118 14:59:12,160 --> 14:59:14,436 have actually used only categorical 22119 14:59:14,436 --> 14:59:16,560 variables and one of the example is 22120 14:59:16,560 --> 14:59:19,596 small multiples so these are the few use 22121 14:59:19,596 --> 14:59:21,436 cases of calculation groups you can 22122 14:59:21,436 --> 14:59:24,480 experiment with more such use cases now 22123 14:59:24,480 --> 14:59:26,040 let's look at the feature field 22124 14:59:26,040 --> 14:59:27,840 parameters field parameter features 22125 14:59:27,840 --> 14:59:30,596 allows you for to create access slicer 22126 14:59:30,596 --> 14:59:33,680 as well as major slicer before May 2022 22127 14:59:33,680 --> 14:59:35,480 for Access slicer we used to use 22128 14:59:35,480 --> 14:59:38,436 bookmarks or we used to unpivot the 22129 14:59:38,436 --> 14:59:40,116 table and use to create slicers for 22130 14:59:40,116 --> 14:59:43,000 major slicers we were using independent 22131 14:59:43,000 --> 14:59:45,200 table and a major and then we were also 22132 14:59:45,200 --> 14:59:47,840 using calculation groups now because of 22133 14:59:47,840 --> 14:59:49,916 availability of all these options I am 22134 14:59:49,916 --> 14:59:51,320 not showing you how could have you 22135 14:59:51,320 --> 14:59:53,200 created a major Slicer in the older 22136 14:59:53,200 --> 14:59:55,436 fashion but let's start this journey of 22137 14:59:55,436 --> 14:59:58,040 field parameters with access slicer I 22138 14:59:58,040 --> 15:00:00,360 added a new page and in this new page P 22139 15:00:00,360 --> 15:00:03,436 I would like to change the access of my 22140 15:00:03,436 --> 15:00:05,796 visual and let me bring in one visual 22141 15:00:05,796 --> 15:00:08,796 using copy paste so I have this brand 22142 15:00:08,796 --> 15:00:11,956 visual I'm bringing it brand and net 22143 15:00:11,956 --> 15:00:14,080 visual is there I I'm bringing it what's 22144 15:00:14,080 --> 15:00:15,956 happening right now it is displaying 22145 15:00:15,956 --> 15:00:18,160 brand I can go to Home tab and change 22146 15:00:18,160 --> 15:00:20,796 the type to column showing brand can I 22147 15:00:20,796 --> 15:00:23,320 change it to category go here and you 22148 15:00:23,320 --> 15:00:25,796 know bring the visualization pan and 22149 15:00:25,796 --> 15:00:28,040 from there you change it to category but 22150 15:00:28,040 --> 15:00:29,276 this is something which you're not going 22151 15:00:29,276 --> 15:00:30,796 to enable for for the end users so the 22152 15:00:30,796 --> 15:00:32,756 how end users will make it how do we 22153 15:00:32,756 --> 15:00:35,276 make this visual more Dynamic so field 22154 15:00:35,276 --> 15:00:37,240 parameters allows you to create Dynamic 22155 15:00:37,240 --> 15:00:39,720 visuals By changes both A's as well as 22156 15:00:39,720 --> 15:00:41,240 measures how do we create field 22157 15:00:41,240 --> 15:00:43,116 parameters and how do we use it so let's 22158 15:00:43,116 --> 15:00:45,276 start with the first thing which is XIs 22159 15:00:45,276 --> 15:00:47,360 slicer under the modeling T we have this 22160 15:00:47,360 --> 15:00:49,436 new parameter previously we only used to 22161 15:00:49,436 --> 15:00:51,320 have numeric parameter something we have 22162 15:00:51,320 --> 15:00:53,320 used in top end to make it Dynamic and 22163 15:00:53,320 --> 15:00:54,916 there are many other use cases the 22164 15:00:54,916 --> 15:00:57,756 second option which came in May 2022 is 22165 15:00:57,756 --> 15:00:59,596 fields and this is what we call field 22166 15:00:59,596 --> 15:01:01,680 par parameters let's click on that so 22167 15:01:01,680 --> 15:01:04,116 what your variable adjust to Fields name 22168 15:01:04,116 --> 15:01:06,276 is access I want to create access slicer 22169 15:01:06,276 --> 15:01:07,956 so I'm giving a name as access now when 22170 15:01:07,956 --> 15:01:09,596 you drag the fields remember when you 22171 15:01:09,596 --> 15:01:11,956 are dragging categorical field only drag 22172 15:01:11,956 --> 15:01:13,636 categorical when you are dragging Majors 22173 15:01:13,636 --> 15:01:16,276 only drag Majors don't mix and match 22174 15:01:16,276 --> 15:01:18,200 that's not the purpose here brand 22175 15:01:18,200 --> 15:01:20,916 category subcategory and I can drag from 22176 15:01:20,916 --> 15:01:23,000 across Dimension state and city also I 22177 15:01:23,000 --> 15:01:24,360 can 22178 15:01:24,360 --> 15:01:27,400 drag add slicer to the page I can click 22179 15:01:27,400 --> 15:01:29,400 on this if you don't add then you have 22180 15:01:29,400 --> 15:01:31,956 to go to to the data Pane and from there 22181 15:01:31,956 --> 15:01:33,956 you have to add it so let me add it and 22182 15:01:33,956 --> 15:01:36,080 showcase you what is happening here what 22183 15:01:36,080 --> 15:01:38,200 this does is it creates a new table and 22184 15:01:38,200 --> 15:01:39,596 this table is a little bit different 22185 15:01:39,596 --> 15:01:41,480 type of what you have seen till now so 22186 15:01:41,480 --> 15:01:43,720 if you go here on the pane you will see 22187 15:01:43,720 --> 15:01:47,040 one table name as XIs and this table has 22188 15:01:47,040 --> 15:01:49,436 this kind of a code which is previously 22189 15:01:49,436 --> 15:01:51,916 not known to us brand name of item brand 22190 15:01:51,916 --> 15:01:53,320 category name of item category 22191 15:01:53,320 --> 15:01:55,636 subcategory name of item subcategory 22192 15:01:55,636 --> 15:01:58,360 state name of geography state city name 22193 15:01:58,360 --> 15:02:00,756 of geography City there is order which 22194 15:02:00,756 --> 15:02:03,200 is 0 1 2 3 4 You Can Change you can even 22195 15:02:03,200 --> 15:02:05,680 change the names like brand and category 22196 15:02:05,680 --> 15:02:07,680 subcategory names you can also we got a 22197 15:02:07,680 --> 15:02:09,756 slicer now if I click on this slicer 22198 15:02:09,756 --> 15:02:11,400 it's not going to do any change to your 22199 15:02:11,400 --> 15:02:13,400 visual because we have to use it so now 22200 15:02:13,400 --> 15:02:15,116 what we are going to do is in this 22201 15:02:15,116 --> 15:02:17,756 visual net by brand first of all build 22202 15:02:17,756 --> 15:02:20,560 my visual and here instead of brand now 22203 15:02:20,560 --> 15:02:23,916 I will go ahead and use access access 22204 15:02:23,916 --> 15:02:25,796 and the moment I do it you still see it 22205 15:02:25,796 --> 15:02:27,400 on brand sorting has Chang that is 22206 15:02:27,400 --> 15:02:28,680 another thing you might have observed 22207 15:02:28,680 --> 15:02:29,796 I'll tell you what to do with this 22208 15:02:29,796 --> 15:02:32,080 sorting now What's Happening Here is 22209 15:02:32,080 --> 15:02:34,200 basically now if I click on the brand it 22210 15:02:34,200 --> 15:02:35,880 is brand if I click on category it is 22211 15:02:35,880 --> 15:02:37,596 category if I click on subcategory it is 22212 15:02:37,596 --> 15:02:39,756 sub category if I click on state it is 22213 15:02:39,756 --> 15:02:42,200 state if I click on City it is City it's 22214 15:02:42,200 --> 15:02:44,400 changing when I leave everything then I 22215 15:02:44,400 --> 15:02:47,200 get this expand icon the expand icon 22216 15:02:47,200 --> 15:02:49,756 will allow us to now expand drill next 22217 15:02:49,756 --> 15:02:52,360 icon to go to the drill Next Level drill 22218 15:02:52,360 --> 15:02:54,116 next icon drill down icon all these 22219 15:02:54,116 --> 15:02:55,436 icons are available because now there 22220 15:02:55,436 --> 15:02:56,916 are five levels which are available so 22221 15:02:56,916 --> 15:02:58,596 if I expand it you will be able to see 22222 15:02:58,596 --> 15:03:02,400 those levels okay but if you just wanted 22223 15:03:02,400 --> 15:03:04,680 to keep it for the purpose of slicing 22224 15:03:04,680 --> 15:03:06,240 the axis you can make this as single 22225 15:03:06,240 --> 15:03:08,320 select if you have multi select you can 22226 15:03:08,320 --> 15:03:12,000 also select more than one so now this is 22227 15:03:12,000 --> 15:03:14,360 access slicer one of the problem with 22228 15:03:14,360 --> 15:03:15,916 the access slicer and for which you need 22229 15:03:15,916 --> 15:03:18,400 a solution so if you go and sort it on 22230 15:03:18,400 --> 15:03:19,796 brand let's say now it is sorted on 22231 15:03:19,796 --> 15:03:22,080 brand okay brand 110 but if I go to 22232 15:03:22,080 --> 15:03:24,596 category it's not sorted on category if 22233 15:03:24,596 --> 15:03:27,200 I go to City it's not sorted on City 22234 15:03:27,200 --> 15:03:30,436 okay a a s l it started sorting on the 22235 15:03:30,436 --> 15:03:33,240 major so to overcome this what you have 22236 15:03:33,240 --> 15:03:35,276 to do is you have to take help of a 22237 15:03:35,276 --> 15:03:37,116 major and this is the trick to make it 22238 15:03:37,116 --> 15:03:39,480 work so axis sorting is not happening 22239 15:03:39,480 --> 15:03:41,240 properly because axis is changing the 22240 15:03:41,240 --> 15:03:43,880 moment axis changes it lose the sorting 22241 15:03:43,880 --> 15:03:46,000 and it start sorting it on major so if I 22242 15:03:46,000 --> 15:03:47,680 go to category then I go to category 22243 15:03:47,680 --> 15:03:50,276 then I again go here and I say sort on 22244 15:03:50,276 --> 15:03:52,796 category so now you go to Brand it is 22245 15:03:52,796 --> 15:03:54,360 sorted on brand you go to category it is 22246 15:03:54,360 --> 15:03:56,680 sorted again on net it is losing how do 22247 15:03:56,680 --> 15:03:58,320 we correct it let create one major so 22248 15:03:58,320 --> 15:03:59,956 the new major which I'm creating now 22249 15:03:59,956 --> 15:04:01,840 what happens is first of all we need to 22250 15:04:01,840 --> 15:04:03,276 understand how do we get the selected 22251 15:04:03,276 --> 15:04:05,200 value because getting the selected value 22252 15:04:05,200 --> 15:04:07,360 of field parameter is not easy so we 22253 15:04:07,360 --> 15:04:09,956 will use sort AIS but in the S AIS first 22254 15:04:09,956 --> 15:04:12,000 of all I'll let you know the way to find 22255 15:04:12,000 --> 15:04:14,560 out what is selected so where underscore 22256 15:04:14,560 --> 15:04:18,520 cell equals to selected value X's XIs if 22257 15:04:18,520 --> 15:04:20,756 I use this and if I try to return this 22258 15:04:20,756 --> 15:04:23,360 and let's use it on the visual card 22259 15:04:23,360 --> 15:04:25,796 visual does it work we go here and we 22260 15:04:25,796 --> 15:04:28,116 try to bring it it actually doesn't work 22261 15:04:28,116 --> 15:04:29,916 now to overcome what we do is in instead 22262 15:04:29,916 --> 15:04:32,756 of AIS we use AIS sort selected value 22263 15:04:32,756 --> 15:04:34,880 and then what I'm going to do is Max x 22264 15:04:34,880 --> 15:04:38,360 filter XIs XIs do order equals to 22265 15:04:38,360 --> 15:04:41,200 selected value then give me AIS access 22266 15:04:41,200 --> 15:04:43,636 and now let me return this so now you're 22267 15:04:43,636 --> 15:04:45,200 getting category I'm only talking about 22268 15:04:45,200 --> 15:04:46,596 the case when you do single select if 22269 15:04:46,596 --> 15:04:48,320 you do multi select we have to do few 22270 15:04:48,320 --> 15:04:50,436 little different things but getting this 22271 15:04:50,436 --> 15:04:52,200 category is not sufficient for sorting 22272 15:04:52,200 --> 15:04:53,796 so what we have to do is to create a 22273 15:04:53,796 --> 15:04:56,276 major switch switch uncore cell so what 22274 15:04:56,276 --> 15:04:58,680 happens if the cell is brand you will 22275 15:04:58,680 --> 15:05:01,560 say Max of item brand remember item 22276 15:05:01,560 --> 15:05:03,956 brand is already on AIS what happen when 22277 15:05:03,956 --> 15:05:06,080 brand is brand I take a Max of it what 22278 15:05:06,080 --> 15:05:07,880 value it is going to give me brand only 22279 15:05:07,880 --> 15:05:09,360 that brand brand one is brand one brand 22280 15:05:09,360 --> 15:05:10,956 10 is brand 10 brand two is brand two 22281 15:05:10,956 --> 15:05:12,916 all those and in this manner I need to 22282 15:05:12,916 --> 15:05:15,680 add all of them so brand category 22283 15:05:15,680 --> 15:05:18,360 subcategories state and city for all of 22284 15:05:18,360 --> 15:05:20,080 them we need to add so let me quickly go 22285 15:05:20,080 --> 15:05:23,040 ahead and modify these 22286 15:05:26,596 --> 15:05:28,840 category so what I have done here is 22287 15:05:28,840 --> 15:05:31,320 brand I Max of item brand categories Max 22288 15:05:31,320 --> 15:05:33,200 of item category subcategories Max of 22289 15:05:33,200 --> 15:05:35,840 item subcategory State Max of geography 22290 15:05:35,840 --> 15:05:39,116 State I have created a major like this 22291 15:05:39,116 --> 15:05:40,880 now I'll tell you one trick go to this 22292 15:05:40,880 --> 15:05:43,320 visual go to its visualization pane 22293 15:05:43,320 --> 15:05:46,240 scroll down and in the tool tip go and 22294 15:05:46,240 --> 15:05:48,956 add this major sort AIS now when you go 22295 15:05:48,956 --> 15:05:51,360 to three dots it will show you one more 22296 15:05:51,360 --> 15:05:53,880 option to sort that is sort access click 22297 15:05:53,880 --> 15:05:57,916 on that okay now you go to Brand 22298 15:05:57,916 --> 15:06:01,276 category subcategory state city all are 22299 15:06:01,276 --> 15:06:02,796 descending sort if you might have 22300 15:06:02,796 --> 15:06:05,360 observed let's go here click on this 22301 15:06:05,360 --> 15:06:08,436 visualization sort it is descending 22302 15:06:08,436 --> 15:06:11,480 right now ascending sorted on a state 22303 15:06:11,480 --> 15:06:15,756 sorted on a subcategories 1 10 11 12 13 22304 15:06:15,756 --> 15:06:19,160 14 16 and then we go 2 3 4 5 6 7 8 this 22305 15:06:19,160 --> 15:06:23,680 is how it sorts category 1 2 3 4 5 brand 22306 15:06:23,680 --> 15:06:27,000 110 11 12 13 no if you want to change 22307 15:06:27,000 --> 15:06:28,796 this sort like you'll say no no this 22308 15:06:28,796 --> 15:06:30,880 brand doesn't see seems one we do have a 22309 15:06:30,880 --> 15:06:33,680 brand ID let's do that okay and 22310 15:06:33,680 --> 15:06:36,636 subcategory also we have ID isn't it 22311 15:06:36,636 --> 15:06:40,200 category our five but we can use ID now 22312 15:06:40,200 --> 15:06:43,360 let's try what happens if I do this so 22313 15:06:43,360 --> 15:06:45,080 I'm now using the numeric equivalent 22314 15:06:45,080 --> 15:06:47,880 measure of that one so categories 1 2 3 22315 15:06:47,880 --> 15:06:50,636 4 5 subcategories now you see 1 2 3 4 5 22316 15:06:50,636 --> 15:06:54,320 6 7 8 9 10 11 12 13 14 brand is 1 2 3 4 22317 15:06:54,320 --> 15:06:56,796 5 6 7 8 9 10 11 12 13 14 so what has 22318 15:06:56,796 --> 15:06:59,840 happened is we have not even set as sort 22319 15:06:59,840 --> 15:07:02,200 column here itself we are able to do 22320 15:07:02,200 --> 15:07:04,636 this and now this sort AIS doesn't 22321 15:07:04,636 --> 15:07:06,200 matter because it's going to give some 22322 15:07:06,200 --> 15:07:08,276 value which we are returning something 22323 15:07:08,276 --> 15:07:09,840 else so what's happening here is we are 22324 15:07:09,840 --> 15:07:11,520 able to sort it correct access sort is 22325 15:07:11,520 --> 15:07:13,520 it done we also talked about that it 22326 15:07:13,520 --> 15:07:14,840 gives the flexibility to change the 22327 15:07:14,840 --> 15:07:16,520 major and how do we change the major 22328 15:07:16,520 --> 15:07:18,596 major is still fixed it is only net not 22329 15:07:18,596 --> 15:07:20,560 coded major here for that we will create 22330 15:07:20,560 --> 15:07:22,796 another slicer using the field parameter 22331 15:07:22,796 --> 15:07:24,756 and that we will call as major slicer so 22332 15:07:24,756 --> 15:07:26,796 we will again go to modeling new 22333 15:07:26,796 --> 15:07:30,040 parameter fields and in the field this 22334 15:07:30,040 --> 15:07:33,276 time we will call it major Majors is a 22335 15:07:33,276 --> 15:07:35,320 reserve or major table I already used so 22336 15:07:35,320 --> 15:07:37,880 I'm going to call it as a major slicer 22337 15:07:37,880 --> 15:07:40,240 when you do that please make sure that 22338 15:07:40,240 --> 15:07:42,916 you are only taking measures don't try 22339 15:07:42,916 --> 15:07:44,680 to bring in columns which are not 22340 15:07:44,680 --> 15:07:46,956 summarized it's not going to work 22341 15:07:46,956 --> 15:07:49,720 great what happen sometime you say oh I 22342 15:07:49,720 --> 15:07:51,116 take the quantity column here now 22343 15:07:51,116 --> 15:07:53,480 quantity column is not summarized not 22344 15:07:53,480 --> 15:07:55,436 aggregated is going to create a problem 22345 15:07:55,436 --> 15:07:57,480 here that's why I'm only taking measures 22346 15:07:57,480 --> 15:07:59,436 here I've taken all the measures add 22347 15:07:59,436 --> 15:08:01,276 slicer to this page yes I want to add a 22348 15:08:01,276 --> 15:08:03,560 slicer click on create again a new table 22349 15:08:03,560 --> 15:08:05,636 would be created with the name as major 22350 15:08:05,636 --> 15:08:08,080 slicer and a slicer would also be added 22351 15:08:08,080 --> 15:08:08,880 to the 22352 15:08:08,880 --> 15:08:11,720 page we got a table major slicer with a 22353 15:08:11,720 --> 15:08:13,916 similar kind of code again if you now 22354 15:08:13,916 --> 15:08:15,520 want to rename some of these you can 22355 15:08:15,520 --> 15:08:17,116 rename into this table you can call it 22356 15:08:17,116 --> 15:08:19,520 net sales if you like press enter it 22357 15:08:19,520 --> 15:08:21,756 will become net sales but still keep on 22358 15:08:21,756 --> 15:08:23,636 working on that now again this is not 22359 15:08:23,636 --> 15:08:25,276 going to change anything unless we go 22360 15:08:25,276 --> 15:08:27,956 ahead and add it into the y axis we go 22361 15:08:27,956 --> 15:08:30,436 to this visual we bring in the pan the 22362 15:08:30,436 --> 15:08:32,636 build visual Pane and there we now go to 22363 15:08:32,636 --> 15:08:35,200 the major slicer and from major slicer 22364 15:08:35,200 --> 15:08:36,916 we bring in the field immediately the 22365 15:08:36,916 --> 15:08:40,200 things have shifted margin s taes by 22366 15:08:40,200 --> 15:08:43,916 City cogs cogs by City discount by City 22367 15:08:43,916 --> 15:08:45,400 And one of the things which you might 22368 15:08:45,400 --> 15:08:47,116 have observed when you were actually 22369 15:08:47,116 --> 15:08:49,240 using that major slicer the traditional 22370 15:08:49,240 --> 15:08:51,200 major slicer with disconnected table it 22371 15:08:51,200 --> 15:08:53,360 has a lot of problem with changing the 22372 15:08:53,360 --> 15:08:54,596 different type of measure now it's a 22373 15:08:54,596 --> 15:08:55,880 percentage measure immediately it 22374 15:08:55,880 --> 15:08:57,956 adjusted to the percentage exis normal 22375 15:08:57,956 --> 15:09:00,720 measure I go to brand category all X is 22376 15:09:00,720 --> 15:09:02,520 getting adjusted pretty quickly on 22377 15:09:02,520 --> 15:09:04,160 different kind of data types so now you 22378 15:09:04,160 --> 15:09:06,956 have fully flexible visual which you can 22379 15:09:06,956 --> 15:09:08,840 change based on the slices you want to 22380 15:09:08,840 --> 15:09:11,000 add two you want to you can add two or 22381 15:09:11,000 --> 15:09:13,880 add three you can do that or if you want 22382 15:09:13,880 --> 15:09:16,636 you can have all of them you can make it 22383 15:09:16,636 --> 15:09:18,956 as a single select you can create two of 22384 15:09:18,956 --> 15:09:20,880 them and have one of them online and one 22385 15:09:20,880 --> 15:09:23,160 of them as bars you can create combo 22386 15:09:23,160 --> 15:09:25,200 visuals so in this manner field 22387 15:09:25,200 --> 15:09:27,360 parameters allows you to create flexible 22388 15:09:27,360 --> 15:09:30,080 visuals and these visuals can be really 22389 15:09:30,080 --> 15:09:32,240 interactive where you can change the AES 22390 15:09:32,240 --> 15:09:33,840 as well as measures so add this 22391 15:09:33,840 --> 15:09:36,160 flexibility as per the need in your 22392 15:09:36,160 --> 15:09:38,636 powerbi reports and dashboard to get a 22393 15:09:38,636 --> 15:09:41,840 really Dynamic experience now let's look 22394 15:09:41,840 --> 15:09:43,636 at the feature drill through so drill 22395 15:09:43,636 --> 15:09:45,520 through is the feature which allows you 22396 15:09:45,520 --> 15:09:48,520 to drill from one page to another page 22397 15:09:48,520 --> 15:09:50,360 by passing the filters drill through 22398 15:09:50,360 --> 15:09:53,360 feature is also controlled for what you 22399 15:09:53,360 --> 15:09:55,400 can pass from one page to another page 22400 15:09:55,400 --> 15:09:58,720 means you have the controls and also you 22401 15:09:58,720 --> 15:10:00,636 have to decide on which Fields you will 22402 15:10:00,636 --> 15:10:03,436 allow drill through so let's go to one 22403 15:10:03,436 --> 15:10:06,276 of the page here and let me copy this 22404 15:10:06,276 --> 15:10:07,880 visual to start 22405 15:10:07,880 --> 15:10:10,720 with on this the page one let me call it 22406 15:10:10,720 --> 15:10:13,956 as main M1 and let me create another 22407 15:10:13,956 --> 15:10:16,596 page where I have the visual I'll again 22408 15:10:16,596 --> 15:10:18,480 go back to this particular one and I'll 22409 15:10:18,480 --> 15:10:21,956 bring in D1 which is detailed one this 22410 15:10:21,956 --> 15:10:24,916 visual now this visual I copy paste the 22411 15:10:24,916 --> 15:10:27,000 category wise net visual is there I'm 22412 15:10:27,000 --> 15:10:28,840 copy pasting this Visual and converting 22413 15:10:28,840 --> 15:10:31,276 it into table Visual and in this visual 22414 15:10:31,276 --> 15:10:34,240 I will also add 22415 15:10:34,240 --> 15:10:37,160 brand okay so when we drill from the 22416 15:10:37,160 --> 15:10:39,000 first visual we will be able to know 22417 15:10:39,000 --> 15:10:43,560 what brand we have filtered also let me 22418 15:10:43,560 --> 15:10:46,320 select both these visuals and create a 22419 15:10:46,320 --> 15:10:49,796 page D2 and also paste these visuals and 22420 15:10:49,796 --> 15:10:52,596 in this D2 22421 15:10:53,560 --> 15:10:57,480 page let me have three 22422 15:10:58,240 --> 15:11:01,436 visuals and in this visual I'm going to 22423 15:11:01,436 --> 15:11:05,596 add one more stuff let me add State 22424 15:11:05,680 --> 15:11:09,560 here so when I go to the first page let 22425 15:11:09,560 --> 15:11:11,240 me add a bar visual here 22426 15:11:11,240 --> 15:11:14,720 also on the first page category separate 22427 15:11:14,720 --> 15:11:17,240 bar is if I right click on any of the 22428 15:11:17,240 --> 15:11:18,956 visual you don't see any option for 22429 15:11:18,956 --> 15:11:20,160 drill 22430 15:11:20,160 --> 15:11:22,636 through if I click here I also don't see 22431 15:11:22,636 --> 15:11:26,720 any option okay now go to the D1 page 22432 15:11:26,720 --> 15:11:30,080 and inside D1 page at the page level 22433 15:11:30,080 --> 15:11:33,000 go to the page information and Page type 22434 15:11:33,000 --> 15:11:35,080 you can use drill through the moment you 22435 15:11:35,080 --> 15:11:37,796 enable the drill through now this is the 22436 15:11:37,796 --> 15:11:39,680 newer version of power Behavior it 22437 15:11:39,680 --> 15:11:41,636 happens like this if you are on a little 22438 15:11:41,636 --> 15:11:43,596 bit older version actually under the 22439 15:11:43,596 --> 15:11:45,320 visualization pan itself you will get 22440 15:11:45,320 --> 15:11:47,596 drill through option you can use that 22441 15:11:47,596 --> 15:11:49,436 now how you want to drill through I say 22442 15:11:49,436 --> 15:11:51,276 okay only I want to drill through from 22443 15:11:51,276 --> 15:11:52,796 Brand so whenever there is a brand 22444 15:11:52,796 --> 15:11:55,080 available I want to drill through so I 22445 15:11:55,080 --> 15:11:56,756 go to item and I pick up brand I can 22446 15:11:56,756 --> 15:11:59,240 pick up category or whatever I want now 22447 15:11:59,240 --> 15:12:00,796 how does it going to make a difference 22448 15:12:00,796 --> 15:12:02,680 if I go to page M1 or any of the pages 22449 15:12:02,680 --> 15:12:04,596 for the sake wherever I have brand if I 22450 15:12:04,596 --> 15:12:06,956 right click I will now see option drill 22451 15:12:06,956 --> 15:12:09,916 through D1 but if I go to the category I 22452 15:12:09,916 --> 15:12:12,480 still don't see now as of now you can't 22453 15:12:12,480 --> 15:12:14,680 restrict this feature mean once you 22454 15:12:14,680 --> 15:12:16,480 enable you can't say it's enabled for 22455 15:12:16,480 --> 15:12:18,276 this page and that page so now what 22456 15:12:18,276 --> 15:12:19,956 happens is you are in any of the page 22457 15:12:19,956 --> 15:12:21,240 let's say whenever you have brand and 22458 15:12:21,240 --> 15:12:23,160 this happens for single value because 22459 15:12:23,160 --> 15:12:24,880 what ideally you can do with the control 22460 15:12:24,880 --> 15:12:26,320 you can select two values and then you 22461 15:12:26,320 --> 15:12:28,436 can right click then you don't see it 22462 15:12:28,436 --> 15:12:30,160 with the control and click we can select 22463 15:12:30,160 --> 15:12:32,480 more than one value if you have only one 22464 15:12:32,480 --> 15:12:35,240 value selected like brand 13 is selected 22465 15:12:35,240 --> 15:12:37,880 and you say drill through D1 the values 22466 15:12:37,880 --> 15:12:40,040 get filtered and you can see only brand 22467 15:12:40,040 --> 15:12:41,756 13 here you can see the categories 22468 15:12:41,756 --> 15:12:44,560 related to Brand 1 if you further right 22469 15:12:44,560 --> 15:12:46,480 click here though there is a brand we 22470 15:12:46,480 --> 15:12:48,796 can't further drill from category which 22471 15:12:48,796 --> 15:12:51,880 we can't drill okay when you drill 22472 15:12:51,880 --> 15:12:53,520 through you will automatically get this 22473 15:12:53,520 --> 15:12:55,680 button back button on the page where you 22474 15:12:55,680 --> 15:12:57,756 have drill through and you can click on 22475 15:12:57,756 --> 15:12:59,320 this control click on the desktop stop 22476 15:12:59,320 --> 15:13:01,040 click on the powerbi service you can 22477 15:13:01,040 --> 15:13:03,000 come back once you come back you can go 22478 15:13:03,000 --> 15:13:05,040 to another brand and again you say drill 22479 15:13:05,040 --> 15:13:07,720 through and D1 that will get filtered 22480 15:13:07,720 --> 15:13:10,160 and again come back so we are able to 22481 15:13:10,160 --> 15:13:12,796 drill through now from D1 to D2 I again 22482 15:13:12,796 --> 15:13:15,480 further want it to drill on the D2 I 22483 15:13:15,480 --> 15:13:18,040 click on the empty space on my 22484 15:13:18,040 --> 15:13:21,320 page I go and make it s Del through and 22485 15:13:21,320 --> 15:13:23,956 this time what I want here basically is 22486 15:13:23,956 --> 15:13:26,040 let people drill from category Whenever 22487 15:13:26,040 --> 15:13:27,596 there is a category in the visual people 22488 15:13:27,596 --> 15:13:30,040 can drill 22489 15:13:30,040 --> 15:13:32,596 so what would happen from M1 now from 22490 15:13:32,596 --> 15:13:34,756 this visual I can drill through to D2 22491 15:13:34,756 --> 15:13:37,680 now here in the drill one I only get D1 22492 15:13:37,680 --> 15:13:40,240 I go to D1 now in D1 all both the 22493 15:13:40,240 --> 15:13:42,240 visuals have category so either from 22494 15:13:42,240 --> 15:13:44,400 here I can drill through now here it is 22495 15:13:44,400 --> 15:13:46,116 not showing me brand 8 but brand 8 is 22496 15:13:46,116 --> 15:13:48,916 there and if I go to D2 now brand 8 do 22497 15:13:48,916 --> 15:13:51,160 got filtered out so brand 8 is also 22498 15:13:51,160 --> 15:13:53,480 filtered it means anything which is 22499 15:13:53,480 --> 15:13:55,956 filtered by some mean will carry on that 22500 15:13:55,956 --> 15:13:57,480 filter to the subsequent page of the 22501 15:13:57,480 --> 15:13:59,320 drill through now let's go back here and 22502 15:13:59,320 --> 15:14:01,796 we can further go back on the first page 22503 15:14:01,796 --> 15:14:04,560 I'll go to D2 now from where these 22504 15:14:04,560 --> 15:14:06,116 filters 22505 15:14:06,116 --> 15:14:08,596 are you go to the filter pane you will 22506 15:14:08,596 --> 15:14:10,320 start seeing these filters on this page 22507 15:14:10,320 --> 15:14:12,520 you can remove these filters if you want 22508 15:14:12,520 --> 15:14:13,796 so these are the Dr through filter which 22509 15:14:13,796 --> 15:14:16,080 are now sometime you don't want to pass 22510 15:14:16,080 --> 15:14:17,756 everything so now what I want is when 22511 15:14:17,756 --> 15:14:19,560 I'm coming to this page I don't want to 22512 15:14:19,560 --> 15:14:21,200 pass the brand filter then how can I do 22513 15:14:21,200 --> 15:14:23,276 that so you disable this keep all 22514 15:14:23,276 --> 15:14:25,360 filters now before everything getting 22515 15:14:25,360 --> 15:14:27,276 passed whether the brand was there on 22516 15:14:27,276 --> 15:14:29,320 the drill through list or not everything 22517 15:14:29,320 --> 15:14:31,080 whether it was available in the list or 22518 15:14:31,080 --> 15:14:33,680 not it was getting passed the moment you 22519 15:14:33,680 --> 15:14:36,040 switch off this PE all filters now only 22520 15:14:36,040 --> 15:14:37,636 you can drill through using category and 22521 15:14:37,636 --> 15:14:39,520 category will only pass all other values 22522 15:14:39,520 --> 15:14:41,040 will not pass so you have to add 22523 15:14:41,040 --> 15:14:42,276 everything you want to pass you want to 22524 15:14:42,276 --> 15:14:43,916 pass City you have to add it you want to 22525 15:14:43,916 --> 15:14:45,276 pass State you have to add it you want 22526 15:14:45,276 --> 15:14:47,276 to pass brand even you have to add it 22527 15:14:47,276 --> 15:14:50,360 now how different it is now let's go to 22528 15:14:50,360 --> 15:14:52,880 D1 and here we say brand it and Category 22529 15:14:52,880 --> 15:14:55,956 2 now right click here drill through 22530 15:14:55,956 --> 15:14:59,360 D2 what happens here only category 2 has 22531 15:14:59,360 --> 15:15:01,436 been drilled through there is no drill 22532 15:15:01,436 --> 15:15:04,436 of brand8 in this manner you can control 22533 15:15:04,436 --> 15:15:06,200 what you want to drill through also so 22534 15:15:06,200 --> 15:15:08,040 you can do multi-level drill you can 22535 15:15:08,040 --> 15:15:09,956 control what you want to drill through 22536 15:15:09,956 --> 15:15:12,480 drill through feature helps you for 22537 15:15:12,480 --> 15:15:14,520 creating Pages which can take 22538 15:15:14,520 --> 15:15:16,520 information from other page there is 22539 15:15:16,520 --> 15:15:18,040 something known as drill through button 22540 15:15:18,040 --> 15:15:20,956 also so you can go and insert a 22541 15:15:20,956 --> 15:15:25,040 button you can name it go to button 22542 15:15:25,040 --> 15:15:27,756 style in the text you can name it as 22543 15:15:27,756 --> 15:15:30,916 let's say drill now when you go down in 22544 15:15:30,916 --> 15:15:33,840 the action you can use action to drill 22545 15:15:33,840 --> 15:15:35,720 through and important thing to note not 22546 15:15:35,720 --> 15:15:37,080 only you can select a page let's say I 22547 15:15:37,080 --> 15:15:38,680 can select a page you can have FX 22548 15:15:38,680 --> 15:15:41,116 function what does this FX function does 22549 15:15:41,116 --> 15:15:43,636 it depending on a condition you can 22550 15:15:43,636 --> 15:15:46,680 change a page what does that mean so let 22551 15:15:46,680 --> 15:15:48,796 first test this button and then let me 22552 15:15:48,796 --> 15:15:51,400 tell you how to use that conditional one 22553 15:15:51,400 --> 15:15:53,400 so click on one of them you will get 22554 15:15:53,400 --> 15:15:55,520 this button enabled if you control click 22555 15:15:55,520 --> 15:15:57,916 to it is disabled only one of them then 22556 15:15:57,916 --> 15:15:59,796 control click on the button on desktop 22557 15:15:59,796 --> 15:16:01,796 and click on the powerbi service will 22558 15:16:01,796 --> 15:16:04,276 take you to the drill page so we said 22559 15:16:04,276 --> 15:16:07,560 okay go to page D1 what I want is for 22560 15:16:07,560 --> 15:16:09,400 some of them I want to go to D1 and some 22561 15:16:09,400 --> 15:16:11,400 of them I want to go to D2 can I do that 22562 15:16:11,400 --> 15:16:13,520 yes I should be able to do 22563 15:16:13,520 --> 15:16:16,880 that now if I right now go there is a 22564 15:16:16,880 --> 15:16:18,756 restriction D1 and D2 on the brand and 22565 15:16:18,756 --> 15:16:21,080 category okay so now let me go ahead and 22566 15:16:21,080 --> 15:16:23,040 do one thing let me create a 22567 15:16:23,040 --> 15:16:26,480 major so I go ahead and create a major 22568 15:16:26,480 --> 15:16:30,240 and in this one what I'll do is 22569 15:16:30,240 --> 15:16:33,240 let's use it like this if is 22570 15:16:33,240 --> 15:16:36,116 filtered item 22571 15:16:36,116 --> 15:16:39,400 brand then we go to 22572 15:16:39,400 --> 15:16:43,000 D1 as we go to 22573 15:16:43,000 --> 15:16:46,276 D2 so if item brand is filtered then I 22574 15:16:46,276 --> 15:16:48,796 go to D1 else I go to D2 if it is 22575 15:16:48,796 --> 15:16:50,636 filtered or not we want to check that 22576 15:16:50,636 --> 15:16:55,320 let's let me call this major as drill 22577 15:16:56,480 --> 15:17:00,080 page let me go to the button 22578 15:17:00,080 --> 15:17:02,040 and in the drill 22579 15:17:02,040 --> 15:17:05,276 FX I'll call the drill page 22580 15:17:05,276 --> 15:17:07,840 button I'm saying I'm going to decide 22581 15:17:07,840 --> 15:17:09,240 the 22582 15:17:09,240 --> 15:17:12,436 page so text is going to show us D1 or 22583 15:17:12,436 --> 15:17:14,956 D2 and in the action 22584 15:17:14,956 --> 15:17:17,720 also in the action I'm again going to 22585 15:17:17,720 --> 15:17:20,240 choose a page drill page D1 and 22586 15:17:20,240 --> 15:17:23,680 D2 so I click on the brand the brand I 22587 15:17:23,680 --> 15:17:26,040 filter on brand single brand is filtered 22588 15:17:26,040 --> 15:17:27,796 now brand is filtered if I click control 22589 15:17:27,796 --> 15:17:31,276 click I go to D1 press the back button 22590 15:17:31,276 --> 15:17:35,680 come back I click on category it is D2 22591 15:17:35,680 --> 15:17:36,680 control 22592 15:17:36,680 --> 15:17:39,680 click this time I went to D2 so I 22593 15:17:39,680 --> 15:17:41,520 checked if it is filtered then I go to 22594 15:17:41,520 --> 15:17:43,240 one page if it is not filtered I go to 22595 15:17:43,240 --> 15:17:44,276 another 22596 15:17:44,276 --> 15:17:47,796 page okay come back now the first time 22597 15:17:47,796 --> 15:17:49,636 it is showing D2 because we what we have 22598 15:17:49,636 --> 15:17:54,360 said in our major drill major is 22599 15:17:54,360 --> 15:17:57,160 that if it is not filter show2 we can 22600 15:17:57,160 --> 15:17:59,000 further improve upon this one you can 22601 15:17:59,000 --> 15:18:00,040 say 22602 15:18:00,040 --> 15:18:02,200 switch 22603 15:18:02,200 --> 15:18:06,796 true is filtered item Rand then 22604 15:18:09,320 --> 15:18:14,240 D1 is filtered comma is filtered item 22605 15:18:14,240 --> 15:18:16,480 category 22606 15:18:16,480 --> 15:18:18,436 D2 22607 15:18:18,436 --> 15:18:20,636 else 22608 15:18:20,636 --> 15:18:23,560 select value you say display select 22609 15:18:23,560 --> 15:18:25,200 value now it is saying select value let 22610 15:18:25,200 --> 15:18:27,160 make it a little bit bigger so what we 22611 15:18:27,160 --> 15:18:29,560 have done here is in the text next we 22612 15:18:29,560 --> 15:18:31,520 have used the same mejor so which is 22613 15:18:31,520 --> 15:18:34,240 giving the message and in the action 22614 15:18:34,240 --> 15:18:36,360 also we have used the same one right now 22615 15:18:36,360 --> 15:18:38,160 there is no action anyway it is disabled 22616 15:18:38,160 --> 15:18:41,596 now I when I click it got enabled and I 22617 15:18:41,596 --> 15:18:43,240 can go to 22618 15:18:43,240 --> 15:18:47,436 D2 come back so in this manner you can 22619 15:18:47,436 --> 15:18:50,276 use Dynamic drill through button you can 22620 15:18:50,276 --> 15:18:51,796 control the text of the button you can 22621 15:18:51,796 --> 15:18:55,040 also control where it should land you in 22622 15:18:55,040 --> 15:18:56,956 this manner you will be able to use 22623 15:18:56,956 --> 15:18:58,796 drill through and you will also be able 22624 15:18:58,796 --> 15:19:01,160 to control Pages where it goes and the 22625 15:19:01,160 --> 15:19:04,080 values it pass now let's discuss tool 22626 15:19:04,080 --> 15:19:06,200 tip page or report tool tip page so what 22627 15:19:06,200 --> 15:19:08,480 happens typically whenever you go to any 22628 15:19:08,480 --> 15:19:10,116 visualization let me go to a page where 22629 15:19:10,116 --> 15:19:11,400 I already have some visualization you 22630 15:19:11,400 --> 15:19:13,320 get this default tool if I go here I 22631 15:19:13,320 --> 15:19:15,080 also get a default tool you can add few 22632 15:19:15,080 --> 15:19:17,000 measures here but sometime what happens 22633 15:19:17,000 --> 15:19:19,636 is you want more interactive kind of 22634 15:19:19,636 --> 15:19:21,240 stuff what I want is basically this 22635 15:19:21,240 --> 15:19:23,000 category Pi should be shown when on the 22636 15:19:23,000 --> 15:19:25,160 tool tip of this BR how do I do that so 22637 15:19:25,160 --> 15:19:27,040 for that what you need is basically a 22638 15:19:27,040 --> 15:19:29,240 tool tip page so add a new p page click 22639 15:19:29,240 --> 15:19:31,080 on the empty space and in that one you 22640 15:19:31,080 --> 15:19:33,116 can go and Define a page as tool tip 22641 15:19:33,116 --> 15:19:34,916 page when you define a tool tip Page by 22642 15:19:34,916 --> 15:19:37,160 default it takes the tool tip page size 22643 15:19:37,160 --> 15:19:39,436 and it you get a small page so if you go 22644 15:19:39,436 --> 15:19:40,756 to the canvas setting you will see it's 22645 15:19:40,756 --> 15:19:42,560 a tool tie page you can change the size 22646 15:19:42,560 --> 15:19:44,520 if required as of now I'll keep of the 22647 15:19:44,520 --> 15:19:46,276 same size what we can do is we can add a 22648 15:19:46,276 --> 15:19:47,916 visual here so I can add let's say Pi 22649 15:19:47,916 --> 15:19:49,596 visual we give the complete space you 22650 15:19:49,596 --> 15:19:51,276 can add whatever kind of visual you want 22651 15:19:51,276 --> 15:19:53,400 now in this visual let me add few items 22652 15:19:53,400 --> 15:19:55,880 so build a visual enable build a visual 22653 15:19:55,880 --> 15:19:59,240 so I'll go to Legend add item 22654 15:19:59,240 --> 15:20:01,560 category and then I'll go to values 22655 15:20:01,560 --> 15:20:04,436 major base net okay we can do some font 22656 15:20:04,436 --> 15:20:06,040 adjustment and all those as per 22657 15:20:06,040 --> 15:20:07,720 requirement so we have little bit 22658 15:20:07,720 --> 15:20:10,400 smaller or something or I can go ahead 22659 15:20:10,400 --> 15:20:12,040 and on this Visual and I can say I don't 22660 15:20:12,040 --> 15:20:14,796 need a title I can go to Legend and text 22661 15:20:14,796 --> 15:20:17,040 size and I can reduce the text size okay 22662 15:20:17,040 --> 15:20:19,916 and similarly I can go to detail labels 22663 15:20:19,916 --> 15:20:22,400 and values and I can reduce the size 22664 15:20:22,400 --> 15:20:23,880 okay because on tool tip we will be 22665 15:20:23,880 --> 15:20:25,560 having a smaller one so we can reduce 22666 15:20:25,560 --> 15:20:27,880 that so we able to adjust this visual 22667 15:20:27,880 --> 15:20:30,276 now if I go to a page let say I go back 22668 15:20:30,276 --> 15:20:33,000 to that first page in this page how do I 22669 15:20:33,000 --> 15:20:34,720 bring that tool tip page our tool tip 22670 15:20:34,720 --> 15:20:36,880 page was enabled so click on this Visual 22671 15:20:36,880 --> 15:20:38,840 and when you get to the format go to the 22672 15:20:38,840 --> 15:20:40,320 properties tool tip should have been 22673 15:20:40,320 --> 15:20:42,840 enabled so enable the tool tip and here 22674 15:20:42,840 --> 15:20:44,796 by default it is report page and auto 22675 15:20:44,796 --> 15:20:46,956 here now you can select a tool tip page 22676 15:20:46,956 --> 15:20:48,720 once you select a tool tip page on this 22677 15:20:48,720 --> 15:20:50,040 particular visual you will be able to 22678 15:20:50,040 --> 15:20:52,276 see that and look this is changing based 22679 15:20:52,276 --> 15:20:54,596 on the information okay now if you go 22680 15:20:54,596 --> 15:20:56,080 here there is no change if you go here 22681 15:20:56,080 --> 15:20:58,000 there's no change because we are not use 22682 15:20:58,000 --> 15:20:59,480 the tool tip page there now we have used 22683 15:20:59,480 --> 15:21:00,840 tool tip page here so it will give me 22684 15:21:00,840 --> 15:21:02,636 tool tip now let's go to another page I 22685 15:21:02,636 --> 15:21:05,400 go to a page where in this visual I have 22686 15:21:05,400 --> 15:21:07,000 both brand and category let me clear 22687 15:21:07,000 --> 15:21:08,560 this off so now what happens in this 22688 15:21:08,560 --> 15:21:10,916 page let me on this table visual I'll 22689 15:21:10,916 --> 15:21:13,436 add tool tip I'll switch it on page page 22690 15:21:13,436 --> 15:21:15,240 one is a tool tip page now it will only 22691 15:21:15,240 --> 15:21:17,400 give category because the visual is on 22692 15:21:17,400 --> 15:21:18,720 category and the category is in the 22693 15:21:18,720 --> 15:21:20,400 visual it will pass that I don't want to 22694 15:21:20,400 --> 15:21:22,040 pass category one thing I'll do is first 22695 15:21:22,040 --> 15:21:25,000 of all let me call it as tp1 tool tip 1 22696 15:21:25,000 --> 15:21:26,956 so I rename it I go to this page and I 22697 15:21:26,956 --> 15:21:28,596 want to do certain changes so very 22698 15:21:28,596 --> 15:21:30,160 carefully I need to click on the page 22699 15:21:30,160 --> 15:21:32,276 properties the canva property and here I 22700 15:21:32,276 --> 15:21:34,840 have option keep all filters I uncheck 22701 15:21:34,840 --> 15:21:37,000 this now what should get pass to this 22702 15:21:37,000 --> 15:21:39,240 page all things which you want to pass I 22703 15:21:39,240 --> 15:21:40,916 don't want to pass category here I can 22704 15:21:40,916 --> 15:21:42,320 give all other things which it should 22705 15:21:42,320 --> 15:21:44,360 pass so I can give a brand here I can 22706 15:21:44,360 --> 15:21:46,596 even give a city and state whatever I 22707 15:21:46,596 --> 15:21:48,436 want to pass so State Should pass City 22708 15:21:48,436 --> 15:21:50,276 should pass all the things which I want 22709 15:21:50,276 --> 15:21:52,040 on this page to pass I can give here so 22710 15:21:52,040 --> 15:21:53,636 these things will pass to this page now 22711 15:21:53,636 --> 15:21:56,240 if I go to this D1 page and I click here 22712 15:21:56,240 --> 15:21:57,720 you will see multiple categories the 22713 15:21:57,720 --> 15:21:59,240 brand is getting pass but the category 22714 15:21:59,240 --> 15:22:00,680 is not getting passed very good now 22715 15:22:00,680 --> 15:22:02,436 let's test it on other things I go to 22716 15:22:02,436 --> 15:22:04,080 this interaction page I do have this 22717 15:22:04,080 --> 15:22:05,560 page where I have cities I go to the 22718 15:22:05,560 --> 15:22:07,596 properties I go to report page and I 22719 15:22:07,596 --> 15:22:09,840 enable tp1 for this and you can see with 22720 15:22:09,840 --> 15:22:11,840 the cities the categories are changing 22721 15:22:11,840 --> 15:22:13,636 it means the cities the are getting 22722 15:22:13,636 --> 15:22:15,596 passed it's getting passed and brand is 22723 15:22:15,596 --> 15:22:16,840 getting passed but category is not 22724 15:22:16,840 --> 15:22:18,560 getting passed in this manner you can 22725 15:22:18,560 --> 15:22:20,880 create a tool tip page now while adding 22726 15:22:20,880 --> 15:22:22,116 the tool tip page you should be really 22727 15:22:22,116 --> 15:22:23,560 careful the moment you go on the 22728 15:22:23,560 --> 15:22:24,916 something it will start showing this 22729 15:22:24,916 --> 15:22:26,756 tool tip so sometime the user go and 22730 15:22:26,756 --> 15:22:28,636 want to read a value it will create a 22731 15:22:28,636 --> 15:22:30,956 hindrance so very carefully add tool tip 22732 15:22:30,956 --> 15:22:32,880 page because it suddenly pops up a big 22733 15:22:32,880 --> 15:22:35,040 value and user may not be able to pay 22734 15:22:35,040 --> 15:22:36,596 attention to the detail when the mouse 22735 15:22:36,596 --> 15:22:39,400 is moving so as per the need add it on 22736 15:22:39,400 --> 15:22:42,240 the required visuals let's quickly have 22737 15:22:42,240 --> 15:22:45,360 a look at the AI visuals so I'll add a 22738 15:22:45,360 --> 15:22:48,320 new page and inside that new page I will 22739 15:22:48,320 --> 15:22:50,720 add the first AI visual which I want to 22740 15:22:50,720 --> 15:22:52,636 discuss with this Q influencer now in 22741 15:22:52,636 --> 15:22:55,956 the key influencer I need analyze and 22742 15:22:55,956 --> 15:22:58,436 then I need to explain it by something 22743 15:22:58,436 --> 15:23:01,680 things so so in the ly let me add 22744 15:23:01,680 --> 15:23:04,796 brand and in the explain by let me add a 22745 15:23:04,796 --> 15:23:06,956 major margin 22746 15:23:06,956 --> 15:23:09,916 percentage it goes ahead and analyze and 22747 15:23:09,916 --> 15:23:12,000 the filter is there on the brand one 22748 15:23:12,000 --> 15:23:14,596 right now so margin percentage goes up 22749 15:23:14,596 --> 15:23:19,276 by 0 2% the likelihood brand being brand 22750 15:23:19,276 --> 15:23:21,200 one increase by this is the likelihood 22751 15:23:21,200 --> 15:23:22,880 the brand one going inre you can change 22752 15:23:22,880 --> 15:23:25,116 it to let's say brand 10 and it's going 22753 15:23:25,116 --> 15:23:27,956 to generate the ideas for that same way 22754 15:23:27,956 --> 15:23:31,040 you can also add discount percentage 22755 15:23:31,040 --> 15:23:32,636 here 22756 15:23:32,636 --> 15:23:36,160 net and it will keep on generating the 22757 15:23:36,160 --> 15:23:38,916 key influencers for those this is one of 22758 15:23:38,916 --> 15:23:42,116 the AI visuals now the next AI visual is 22759 15:23:42,116 --> 15:23:44,160 decomposition tree now decomposition 22760 15:23:44,160 --> 15:23:47,000 tree expands you to do the root cause 22761 15:23:47,000 --> 15:23:49,520 kind of analysis and here what you can 22762 15:23:49,520 --> 15:23:51,436 do in the analyze by let's add a few 22763 15:23:51,436 --> 15:23:53,360 things in the analyze by let me add 22764 15:23:53,360 --> 15:23:55,680 major I would like to add let's say net 22765 15:23:55,680 --> 15:23:58,520 sales and then in the explain by let me 22766 15:23:58,520 --> 15:24:02,040 add item brand category subcategory 22767 15:24:02,040 --> 15:24:04,956 geography City now here what I can do is 22768 15:24:04,956 --> 15:24:06,560 I can go to this plus button and I can 22769 15:24:06,560 --> 15:24:08,596 say you know I want to see the high 22770 15:24:08,596 --> 15:24:10,636 values or the low values or I just 22771 15:24:10,636 --> 15:24:12,436 wanted to see Next Step by let's say 22772 15:24:12,436 --> 15:24:14,956 category it shows me how my category 22773 15:24:14,956 --> 15:24:16,596 division is there then I want to say 22774 15:24:16,596 --> 15:24:18,320 okay how my categories are doing like 22775 15:24:18,320 --> 15:24:19,720 say by high 22776 15:24:19,720 --> 15:24:22,436 values okay I get the subcategories the 22777 15:24:22,436 --> 15:24:24,636 next level in the next one I can say 22778 15:24:24,636 --> 15:24:27,000 okay what is the low values of the brand 22779 15:24:27,000 --> 15:24:28,916 inside that one the these are the low 22780 15:24:28,916 --> 15:24:30,796 values of the brand in this one so in 22781 15:24:30,796 --> 15:24:32,480 this manner you can go ahead and you 22782 15:24:32,480 --> 15:24:34,956 know keep on expanding and find out more 22783 15:24:34,956 --> 15:24:38,320 details so let's try this let me 22784 15:24:38,320 --> 15:24:42,320 duplicate this page remove this let me 22785 15:24:42,320 --> 15:24:44,560 try to use M percentage measure here so 22786 15:24:44,560 --> 15:24:46,680 I'm going to create M percentage measure 22787 15:24:46,680 --> 15:24:49,636 here I'm going to Simply use M 22788 15:24:49,636 --> 15:24:53,796 percentage which is nothing but divide 22789 15:24:53,796 --> 15:24:58,796 MTD net minus lmtd comma denom minator 22790 15:24:58,796 --> 15:25:00,400 which is again 22791 15:25:00,400 --> 15:25:03,796 lmtd we make it as a percentage column 22792 15:25:03,796 --> 15:25:07,276 let me use this measure here now 22793 15:25:07,276 --> 15:25:09,680 definitely M need a month filter it 22794 15:25:09,680 --> 15:25:11,436 can't work without that because I don't 22795 15:25:11,436 --> 15:25:13,720 have data in the last available month so 22796 15:25:13,720 --> 15:25:15,360 I'll put a filter for the month here 22797 15:25:15,360 --> 15:25:18,276 here let's use December so now the 22798 15:25:18,276 --> 15:25:20,320 change percentage are coming so category 22799 15:25:20,320 --> 15:25:23,520 so we are having negative here so we now 22800 15:25:23,520 --> 15:25:26,360 would like to analyze with this negative 22801 15:25:26,360 --> 15:25:28,756 how this is performing where it is there 22802 15:25:28,756 --> 15:25:30,720 again we see it's doing 22803 15:25:30,720 --> 15:25:33,400 good let me remove these levels me 22804 15:25:33,400 --> 15:25:35,436 remove this so Category 3 is doing 22805 15:25:35,436 --> 15:25:37,400 negative let me go to the low values of 22806 15:25:37,400 --> 15:25:39,520 Category 3 where I'm losing so I'm 22807 15:25:39,520 --> 15:25:42,080 losing in these this is a 100% I'm 22808 15:25:42,080 --> 15:25:45,720 losing okay so let me go ahead and check 22809 15:25:45,720 --> 15:25:48,436 the category one remove the this one let 22810 15:25:48,436 --> 15:25:50,116 me see in category one where I'm losing 22811 15:25:50,116 --> 15:25:53,000 very small what are the low values uh 22812 15:25:53,000 --> 15:25:54,276 here I'm losing 22813 15:25:54,276 --> 15:25:57,240 93% so what I'm losing 22814 15:25:57,240 --> 15:25:59,400 here okay so these are the brand where 22815 15:25:59,400 --> 15:26:01,400 I'm losing so in this brand what are the 22816 15:26:01,400 --> 15:26:04,320 subcategories where I'm what I have so 22817 15:26:04,320 --> 15:26:06,560 only one subcategory now we know M we 22818 15:26:06,560 --> 15:26:08,400 are not doing good so what is that 22819 15:26:08,400 --> 15:26:11,320 causing this m not doing good so you can 22820 15:26:11,320 --> 15:26:13,720 do a root cause analysis using this 22821 15:26:13,720 --> 15:26:15,680 visualization next visual which I want 22822 15:26:15,680 --> 15:26:17,680 to explain is Q&A visual really 22823 15:26:17,680 --> 15:26:19,360 interesting visual it creates questions 22824 15:26:19,360 --> 15:26:21,480 for you and you can ask so I can and it 22825 15:26:21,480 --> 15:26:23,080 is already suggested one of the things 22826 15:26:23,080 --> 15:26:24,956 which I wanted to create top customers 22827 15:26:24,956 --> 15:26:27,560 by net I say okay give me top customers 22828 15:26:27,560 --> 15:26:29,796 by net sales it has given me top 10 22829 15:26:29,796 --> 15:26:31,916 customers by net sales and the good 22830 15:26:31,916 --> 15:26:33,360 thing which you can do with this visual 22831 15:26:33,360 --> 15:26:35,200 is not only you can ask the questions 22832 15:26:35,200 --> 15:26:36,880 you can actually go ahead and convert 22833 15:26:36,880 --> 15:26:38,636 this into a regular visual so here you 22834 15:26:38,636 --> 15:26:40,000 have a sign here turn this into a 22835 15:26:40,000 --> 15:26:42,080 standard visual it creates a visual for 22836 15:26:42,080 --> 15:26:45,160 me I add another one and I'll ask 22837 15:26:45,160 --> 15:26:49,276 another question or top five Brands by 22838 15:26:49,276 --> 15:26:52,160 margin percent top five Brands by margin 22839 15:26:52,160 --> 15:26:54,200 person and we got it we can convert this 22840 15:26:54,200 --> 15:26:56,636 into a visual there are few settings 22841 15:26:56,636 --> 15:26:59,040 here person SN names review question 22842 15:26:59,040 --> 15:27:01,276 teach Q&A and suggest you can go and 22843 15:27:01,276 --> 15:27:03,080 Define additional synonymes like net I 22844 15:27:03,080 --> 15:27:05,480 wanted to call sales I would definitely 22845 15:27:05,480 --> 15:27:07,436 go ahead and somewhere mentioned that 22846 15:27:07,436 --> 15:27:10,000 net is nothing but sales whenever I use 22847 15:27:10,000 --> 15:27:13,480 sales use net so here if I go down you 22848 15:27:13,480 --> 15:27:15,320 can see it's already the net is 22849 15:27:15,320 --> 15:27:17,636 basically sales so sales is used for net 22850 15:27:17,636 --> 15:27:19,796 already it's no name if not I can add it 22851 15:27:19,796 --> 15:27:21,916 so in this manner you can modify the 22852 15:27:21,916 --> 15:27:24,320 setup for Q&A and can make it more 22853 15:27:24,320 --> 15:27:26,360 effective and you can leave it for your 22854 15:27:26,360 --> 15:27:29,116 end users to ask questions and get the 22855 15:27:29,116 --> 15:27:31,080 answers other than that there are a 22856 15:27:31,080 --> 15:27:33,240 couple of interesting visuals like Power 22857 15:27:33,240 --> 15:27:34,840 app in case you are using power app you 22858 15:27:34,840 --> 15:27:36,636 will be able to embed and you will be 22859 15:27:36,636 --> 15:27:38,636 able to write back you will be able to 22860 15:27:38,636 --> 15:27:41,116 start a power automate flow using the 22861 15:27:41,116 --> 15:27:42,756 power automate for that you need to have 22862 15:27:42,756 --> 15:27:45,560 power automate you can also embed page 22863 15:27:45,560 --> 15:27:48,596 native report inside your powerbi 22864 15:27:48,596 --> 15:27:51,040 desktop report or powerbi report and 22865 15:27:51,040 --> 15:27:52,636 also publish it and then you will have 22866 15:27:52,636 --> 15:27:54,360 the page inated report also part of this 22867 15:27:54,360 --> 15:27:55,636 so these are the various kind of 22868 15:27:55,636 --> 15:27:57,200 visualization other than the normal 22869 15:27:57,200 --> 15:27:58,596 visualization which are aailable which 22870 15:27:58,596 --> 15:28:01,276 you can use you want to use a custom 22871 15:28:01,276 --> 15:28:02,720 visual you can click on the get more 22872 15:28:02,720 --> 15:28:04,756 visual make sure you are signed in and 22873 15:28:04,756 --> 15:28:06,480 your organization has allowed that and 22874 15:28:06,480 --> 15:28:08,636 one of the very common custom visual 22875 15:28:08,636 --> 15:28:10,400 which I use is the text filter again it 22876 15:28:10,400 --> 15:28:12,880 is from Microsoft Corporation and let's 22877 15:28:12,880 --> 15:28:14,680 add it now the good thing with this 22878 15:28:14,680 --> 15:28:18,116 visual is the text visual is that this 22879 15:28:18,116 --> 15:28:20,880 visual you can search let me add to it 22880 15:28:20,880 --> 15:28:23,276 so basically I don't need to go and say 22881 15:28:23,276 --> 15:28:25,880 New York I can search new it's filtered 22882 15:28:25,880 --> 15:28:27,200 now what all cities have come let me 22883 15:28:27,200 --> 15:28:29,436 showcase you using another visual where 22884 15:28:29,436 --> 15:28:31,596 I create a table visual so these are the 22885 15:28:31,596 --> 15:28:34,040 three cities which I got or where I use 22886 15:28:34,040 --> 15:28:37,240 or all these cities I use or so this is 22887 15:28:37,240 --> 15:28:38,880 the way you can use text there are other 22888 15:28:38,880 --> 15:28:41,116 few visuals and one of the interesting 22889 15:28:41,116 --> 15:28:44,360 visual which you can also try out is 22890 15:28:44,360 --> 15:28:47,116 basically play access Visual so play 22891 15:28:47,116 --> 15:28:49,200 access Visual is another good one which 22892 15:28:49,200 --> 15:28:51,240 you can try out let me add this this is 22893 15:28:51,240 --> 15:28:54,400 by some third party not from Microsoft 22894 15:28:54,400 --> 15:28:56,080 but what you can do is you can put this 22895 15:28:56,080 --> 15:28:58,560 play access Visual I can put month year 22896 15:28:58,560 --> 15:28:59,360 on 22897 15:28:59,360 --> 15:29:02,080 this and in this visual I would also 22898 15:29:02,080 --> 15:29:04,436 like to have a visual level filter that 22899 15:29:04,436 --> 15:29:06,796 whatever month year I want I only want 22900 15:29:06,796 --> 15:29:10,040 those month here where net is not blank 22901 15:29:10,040 --> 15:29:12,596 only those months and what I'm going to 22902 15:29:12,596 --> 15:29:14,796 do here is I'm going to create a visual 22903 15:29:14,796 --> 15:29:18,116 on which I will use margin 22904 15:29:18,116 --> 15:29:21,636 percentage on brands or I can use 22905 15:29:21,636 --> 15:29:25,116 cities so my Brand's margin percentage 22906 15:29:25,116 --> 15:29:27,160 will keep on moving in a direction let's 22907 15:29:27,160 --> 15:29:30,400 see let me play this how does it behave 22908 15:29:30,400 --> 15:29:32,160 and the reason for this behavior is 22909 15:29:32,160 --> 15:29:35,080 right now the interaction is highlight 22910 15:29:35,080 --> 15:29:37,200 and let me change this interaction I 22911 15:29:37,200 --> 15:29:39,360 click on the visual and I go to format 22912 15:29:39,360 --> 15:29:41,596 edit interaction and I change it to 22913 15:29:41,596 --> 15:29:44,080 filter one more thing I do is I go to 22914 15:29:44,080 --> 15:29:47,596 the column and under the FX I go and 22915 15:29:47,596 --> 15:29:50,080 write down a rule the margin which is 22916 15:29:50,080 --> 15:29:54,636 basically from minus one number to zero 22917 15:29:54,636 --> 15:29:57,480 as a number it should be red plus 22918 15:29:57,480 --> 15:29:58,480 greater than 22919 15:29:58,480 --> 15:30:01,160 zero number to one as a number should be 22920 15:30:01,160 --> 15:30:03,240 green it will give you a little bit more 22921 15:30:03,240 --> 15:30:04,680 variety right now everything is green 22922 15:30:04,680 --> 15:30:05,916 now let's play 22923 15:30:05,916 --> 15:30:09,160 around every month is showing the brand 22924 15:30:09,160 --> 15:30:10,720 how they're behaving and you can start 22925 15:30:10,720 --> 15:30:13,200 seeing the negative values now so how 22926 15:30:13,200 --> 15:30:16,200 each brand is changing now you can see 22927 15:30:16,200 --> 15:30:19,916 that so in this manner you can use the 22928 15:30:19,916 --> 15:30:22,796 AI visuals and custom visual as per your 22929 15:30:22,796 --> 15:30:25,360 requirement let's learn about the card 22930 15:30:25,360 --> 15:30:27,720 visual so let me go to a new page and in 22931 15:30:27,720 --> 15:30:30,240 this this page I will add this new card 22932 15:30:30,240 --> 15:30:32,956 visual now this new card visual came 22933 15:30:32,956 --> 15:30:36,320 very recently in 2023 it has feature of 22934 15:30:36,320 --> 15:30:38,636 card visual along with some Advanced 22935 15:30:38,636 --> 15:30:40,840 feature like you can add images you can 22936 15:30:40,840 --> 15:30:43,160 have multiple Majors inside the card 22937 15:30:43,160 --> 15:30:44,916 visual so let me make it little bit 22938 15:30:44,916 --> 15:30:47,596 bigger and I will start adding content 22939 15:30:47,596 --> 15:30:51,720 to it so let me add net gross discount 22940 15:30:51,720 --> 15:30:54,116 and calls on that so I can add these 22941 15:30:54,116 --> 15:30:56,000 different kind of measures here so this 22942 15:30:56,000 --> 15:30:58,796 is one simple way now it has lots of 22943 15:30:58,796 --> 15:31:00,720 formatting properties let me click on 22944 15:31:00,720 --> 15:31:03,000 the format and inside that size and 22945 15:31:03,000 --> 15:31:05,400 style is common title is if you want to 22946 15:31:05,400 --> 15:31:07,720 add a title you can add as usual we have 22947 15:31:07,720 --> 15:31:09,916 seen we have title and then we have 22948 15:31:09,916 --> 15:31:12,480 subtitle then we have divider I don't 22949 15:31:12,480 --> 15:31:14,436 think we require a title unless we want 22950 15:31:14,436 --> 15:31:16,160 to give it I don't want to give some 22951 15:31:16,160 --> 15:31:18,796 Title Here let me disable that shape yes 22952 15:31:18,796 --> 15:31:20,880 the it is rectangular shape I like 22953 15:31:20,880 --> 15:31:23,040 rounded rectangular shape so I'll do 22954 15:31:23,040 --> 15:31:25,480 that but yes I can change the rounding 22955 15:31:25,480 --> 15:31:28,080 or I can use some custom style custom 22956 15:31:28,080 --> 15:31:30,680 style means I need to decide what I want 22957 15:31:30,680 --> 15:31:32,956 for each and every corner I don't want 22958 15:31:32,956 --> 15:31:35,200 to do that but I just want to decrease 22959 15:31:35,200 --> 15:31:37,796 it so I will decrease the rounded then 22960 15:31:37,796 --> 15:31:40,000 comes the layout what kind of layout you 22961 15:31:40,000 --> 15:31:42,596 need single row multi row grid and 22962 15:31:42,596 --> 15:31:45,480 sometime you might not want single rows 22963 15:31:45,480 --> 15:31:47,360 so you can have a grid and once you give 22964 15:31:47,360 --> 15:31:49,436 grid it can ask you how many rows and 22965 15:31:49,436 --> 15:31:51,756 columns I need I can let's say two rows 22966 15:31:51,756 --> 15:31:54,080 and two columns just right now for the 22967 15:31:54,080 --> 15:31:56,240 testing purpose let's do that then the 22968 15:31:56,240 --> 15:31:59,000 next is go to call out values inside the 22969 15:31:59,000 --> 15:32:01,040 call out values if you switch it off you 22970 15:32:01,040 --> 15:32:03,400 will stop seeing the values so and on 22971 15:32:03,400 --> 15:32:05,436 which series you want to take a decision 22972 15:32:05,436 --> 15:32:08,240 you can take a decision of font color 22973 15:32:08,240 --> 15:32:10,200 the conditional formatting all those 22974 15:32:10,200 --> 15:32:12,796 decisions can be taken on based on the 22975 15:32:12,796 --> 15:32:14,596 values you can want to align them 22976 15:32:14,596 --> 15:32:17,916 centrally right align left align display 22977 15:32:17,916 --> 15:32:20,520 unit Auto or none you want to display 22978 15:32:20,520 --> 15:32:22,880 completely then you can say none then 22979 15:32:22,880 --> 15:32:25,596 decimal places I can set up to zero I 22980 15:32:25,596 --> 15:32:27,520 don't want any decimal places if there 22981 15:32:27,520 --> 15:32:30,400 is no value then what should I show na 22982 15:32:30,400 --> 15:32:32,636 or blank I can do that then comes the 22983 15:32:32,636 --> 15:32:34,720 label which is on I can switch off the 22984 15:32:34,720 --> 15:32:37,276 label and I will not see any names there 22985 15:32:37,276 --> 15:32:39,000 right now I'm seeing the names so this 22986 15:32:39,000 --> 15:32:40,796 one name I want to make these name 22987 15:32:40,796 --> 15:32:43,436 Bolder I can do that I can want to do 22988 15:32:43,436 --> 15:32:45,240 conditional formatting on the name I can 22989 15:32:45,240 --> 15:32:47,636 do I want them above or below so the 22990 15:32:47,636 --> 15:32:49,680 names could be below like this it was 22991 15:32:49,680 --> 15:32:51,596 above previously I likeed this one if 22992 15:32:51,596 --> 15:32:53,636 they are bigger you can use text strap 22993 15:32:53,636 --> 15:32:55,560 and align Baseline if you want to align 22994 15:32:55,560 --> 15:32:57,796 to the Baseline on and off then comes 22995 15:32:57,796 --> 15:32:59,916 the reference label reference label for 22996 15:32:59,916 --> 15:33:03,116 what net for cogs or what let's try to 22997 15:33:03,116 --> 15:33:05,276 add a reference label for net we have 22998 15:33:05,276 --> 15:33:07,756 lot of reference label so we have MTD 22999 15:33:07,756 --> 15:33:11,596 net lmtd net let me add net MTD net so 23000 15:33:11,596 --> 15:33:14,160 first of all let me add a slicer here on 23001 15:33:14,160 --> 15:33:16,956 the page for month here let me select a 23002 15:33:16,956 --> 15:33:18,916 particular month now I have certain set 23003 15:33:18,916 --> 15:33:21,840 of values now let me go ahead and add 23004 15:33:21,840 --> 15:33:23,956 some reference labels so for net I 23005 15:33:23,956 --> 15:33:26,080 wanted to add a reference label let me 23006 15:33:26,080 --> 15:33:30,116 try to add MTD major and as you can see 23007 15:33:30,116 --> 15:33:32,636 I'm able to see the MTD I can enable the 23008 15:33:32,636 --> 15:33:35,320 title so that I see the MTD value now I 23009 15:33:35,320 --> 15:33:38,116 can also enable details details will 23010 15:33:38,116 --> 15:33:40,360 give me one more major I can have here 23011 15:33:40,360 --> 15:33:43,276 let me add m m measure I can add here in 23012 15:33:43,276 --> 15:33:45,560 the details now to add this measure what 23013 15:33:45,560 --> 15:33:47,956 you have to do basically is here when 23014 15:33:47,956 --> 15:33:50,520 you have added this MTD you have to go 23015 15:33:50,520 --> 15:33:53,400 ahead and select this MTD and then when 23016 15:33:53,400 --> 15:33:55,840 you come down you will be able to add a 23017 15:33:55,840 --> 15:33:57,796 major a without that you can't add 23018 15:33:57,796 --> 15:33:59,956 unless you selected now this value is 23019 15:33:59,956 --> 15:34:01,916 something which is you know you might 23020 15:34:01,916 --> 15:34:03,880 not be able to format it here so what I 23021 15:34:03,880 --> 15:34:05,436 need to do is I need to create a 23022 15:34:05,436 --> 15:34:08,116 formatted major for this one so I'll go 23023 15:34:08,116 --> 15:34:11,200 and create a new major I'll call it m 23024 15:34:11,200 --> 15:34:14,560 icon and let me first do without icon so 23025 15:34:14,560 --> 15:34:20,240 format M percentage comma hash do 0% I 23026 15:34:20,240 --> 15:34:23,480 want that and let me use M icon now here 23027 15:34:23,480 --> 15:34:25,840 if you want to use M then you can go and 23028 15:34:25,840 --> 15:34:27,880 use the display basically none so now 23029 15:34:27,880 --> 15:34:31,000 let me replace this with M icon so I'm 23030 15:34:31,000 --> 15:34:33,480 able to see the percentage change here 23031 15:34:33,480 --> 15:34:36,880 and or I can change it to percent so it 23032 15:34:36,880 --> 15:34:39,000 is showing the percentage I was using 23033 15:34:39,000 --> 15:34:41,116 the one decimal place so it was showing 23034 15:34:41,116 --> 15:34:44,276 that much so this is now 9% now in case 23035 15:34:44,276 --> 15:34:46,720 you need some icon so then what we can 23036 15:34:46,720 --> 15:34:48,680 do is we can use certain uni a 23037 15:34:48,680 --> 15:34:50,680 characters let me bring in a uni a 23038 15:34:50,680 --> 15:34:53,276 character for you and modify this mejor 23039 15:34:53,276 --> 15:34:55,116 I had a previous code which I want to 23040 15:34:55,116 --> 15:34:57,636 bring it here I want to append icon so 23041 15:34:57,636 --> 15:35:00,240 so I'll use M perent to string now 23042 15:35:00,240 --> 15:35:02,276 there's a change percentage for which I 23043 15:35:02,276 --> 15:35:04,400 have identified few uni a I'm going to 23044 15:35:04,400 --> 15:35:06,880 use this m percentage there so if it is 23045 15:35:06,880 --> 15:35:08,880 greater than zero I'm using a particular 23046 15:35:08,880 --> 15:35:11,116 kind of uni if it is less than zero I'm 23047 15:35:11,116 --> 15:35:13,000 using a particular kind of enar so let 23048 15:35:13,000 --> 15:35:15,160 me see what happens now I'll commit this 23049 15:35:15,160 --> 15:35:17,436 UniCare gives us small small icons which 23050 15:35:17,436 --> 15:35:19,520 we can use it's giving me these kind of 23051 15:35:19,520 --> 15:35:21,436 icons now I want to change the color 23052 15:35:21,436 --> 15:35:23,840 also isn't it based on my M chain 23053 15:35:23,840 --> 15:35:25,840 percentage I can go to the font color 23054 15:35:25,840 --> 15:35:28,400 and I can click on FX and I'll use the 23055 15:35:28,400 --> 15:35:31,400 rule based color I'll use M percentage 23056 15:35:31,400 --> 15:35:34,200 if M percentage is less than minimum to 23057 15:35:34,200 --> 15:35:36,636 less than zero it's red plus M 23058 15:35:36,636 --> 15:35:39,040 percentage is greater than Zer or equal 23059 15:35:39,040 --> 15:35:41,756 to Zer and less than Max we can write 23060 15:35:41,756 --> 15:35:43,796 down Max here then I want to show it a 23061 15:35:43,796 --> 15:35:45,956 green here and let's click on okay it's 23062 15:35:45,956 --> 15:35:47,796 red because it's coming negative I can 23063 15:35:47,796 --> 15:35:49,636 change few months and check it out here 23064 15:35:49,636 --> 15:35:51,956 it is positive negative so you can see 23065 15:35:51,956 --> 15:35:54,360 and similar manner I can add a few more 23066 15:35:54,360 --> 15:35:56,636 additional details here to make it 23067 15:35:56,636 --> 15:35:58,520 little bit more attractive one thing 23068 15:35:58,520 --> 15:36:00,560 which I observed if your reference 23069 15:36:00,560 --> 15:36:02,596 labels are giving blank value the 23070 15:36:02,596 --> 15:36:05,116 properties might go away seems like uh 23071 15:36:05,116 --> 15:36:07,596 there is a null value handling issue now 23072 15:36:07,596 --> 15:36:09,596 let's go further down you have option 23073 15:36:09,596 --> 15:36:11,636 for background on or off so if you don't 23074 15:36:11,636 --> 15:36:13,400 need the background color you can do it 23075 15:36:13,400 --> 15:36:15,276 and then there are certain properties 23076 15:36:15,276 --> 15:36:17,400 which may be applicable at the all level 23077 15:36:17,400 --> 15:36:19,320 so if you select all the labels and you 23078 15:36:19,320 --> 15:36:21,596 come down then you have few properties 23079 15:36:21,596 --> 15:36:24,200 which you can basically it's always on 23080 15:36:24,200 --> 15:36:26,560 that but you can use the transparency 23081 15:36:26,560 --> 15:36:30,240 stylish solid width is 1 pixel ignore 23082 15:36:30,240 --> 15:36:32,596 padding all those things you can you can 23083 15:36:32,596 --> 15:36:34,480 change then background you can change 23084 15:36:34,480 --> 15:36:36,276 the background color you don't want the 23085 15:36:36,276 --> 15:36:38,160 gray color you can have some other color 23086 15:36:38,160 --> 15:36:39,840 now one more thing you can do is you can 23087 15:36:39,840 --> 15:36:42,520 add images now again images are 23088 15:36:42,520 --> 15:36:45,276 individual to the major so for 23089 15:36:45,276 --> 15:36:47,560 particular major you can have add a 23090 15:36:47,560 --> 15:36:49,796 image you can browse the image and can 23091 15:36:49,796 --> 15:36:52,040 add it or you can go ahead and add a 23092 15:36:52,040 --> 15:36:55,040 image from the URL so let me add a image 23093 15:36:55,040 --> 15:36:58,000 from the desktop 23094 15:36:58,000 --> 15:37:00,116 I have some images let me just take one 23095 15:37:00,116 --> 15:37:02,636 of these image nothing represent new but 23096 15:37:02,636 --> 15:37:05,000 let's take one of them this is a real 23097 15:37:05,000 --> 15:37:07,360 big image so fit we can decide let's say 23098 15:37:07,360 --> 15:37:10,000 use a fit or we'll use a fill and then 23099 15:37:10,000 --> 15:37:12,400 we can go and decide the 23100 15:37:12,400 --> 15:37:16,200 size I use 150 pixel side but it's 23101 15:37:16,200 --> 15:37:19,116 reducing my font and giving the problem 23102 15:37:19,116 --> 15:37:21,916 so let me use 100 100 pixel is perfectly 23103 15:37:21,916 --> 15:37:24,276 suitable so same way for others I can 23104 15:37:24,276 --> 15:37:27,680 also give icons so this new card visual 23105 15:37:27,680 --> 15:37:30,880 offers you lot of flexibility lot of 23106 15:37:30,880 --> 15:37:33,240 options which you can use and make it 23107 15:37:33,240 --> 15:37:36,880 really engaging and using this you can 23108 15:37:36,880 --> 15:37:40,400 add lot of value to your visualization 23109 15:37:40,400 --> 15:37:43,880 and powerbi is continuously improving on 23110 15:37:43,880 --> 15:37:46,240 these kind of visualization whether it 23111 15:37:46,240 --> 15:37:50,160 is new card visual or new slicer so you 23112 15:37:50,160 --> 15:37:53,320 can go ahead and try these out inside 23113 15:37:53,320 --> 15:37:57,160 your Microsoft powerbi report pages and 23114 15:37:57,160 --> 15:37:59,756 create really give a new level of look 23115 15:37:59,756 --> 15:38:01,480 and fee to your 23116 15:38:01,480 --> 15:38:04,320 pages new card visual was released 23117 15:38:04,320 --> 15:38:08,200 sometime back and in November 2024 small 23118 15:38:08,200 --> 15:38:10,560 multiples for new card visual has been 23119 15:38:10,560 --> 15:38:13,276 released these features allow you to 23120 15:38:13,276 --> 15:38:15,796 have small multiples for the new card 23121 15:38:15,796 --> 15:38:18,916 visual this feature is in preview as of 23122 15:38:18,916 --> 15:38:21,756 now and let's look at the details of 23123 15:38:21,756 --> 15:38:22,560 this 23124 15:38:22,560 --> 15:38:24,956 feature so let's have a quick look at 23125 15:38:24,956 --> 15:38:27,596 what we plan to discuss in this video 23126 15:38:27,596 --> 15:38:29,400 first of all we will go ahead and look 23127 15:38:29,400 --> 15:38:33,200 at the release notes of November 2024 to 23128 15:38:33,200 --> 15:38:35,480 understand what is small multiples for 23129 15:38:35,480 --> 15:38:39,000 new card visual then we will go ahead 23130 15:38:39,000 --> 15:38:41,520 onto the power ba dtop and we will 23131 15:38:41,520 --> 15:38:44,160 enable the new card visual under options 23132 15:38:44,160 --> 15:38:46,636 and setting and options then we will 23133 15:38:46,636 --> 15:38:49,560 explore small multiples on the new car 23134 15:38:49,560 --> 15:38:52,240 Visual and finally we will play around 23135 15:38:52,240 --> 15:38:54,756 with various settings available for the 23136 15:38:54,756 --> 15:38:58,240 new card visual small multiples 23137 15:38:58,240 --> 15:39:00,756 so let me jump onto the release notes of 23138 15:39:00,756 --> 15:39:02,276 November 23139 15:39:02,276 --> 15:39:08,040 2024 so I am here on the November 2024 23140 15:39:08,040 --> 15:39:11,520 powerbi feature summary and in this 23141 15:39:11,520 --> 15:39:13,520 feature summary when you scroll little 23142 15:39:13,520 --> 15:39:16,956 bit down you will find the feature which 23143 15:39:16,956 --> 15:39:20,200 is small multiple for new card visual 23144 15:39:20,200 --> 15:39:22,916 review Once you click on that you will 23145 15:39:22,916 --> 15:39:25,560 find the details about that with this 23146 15:39:25,560 --> 15:39:27,320 month's update we are announcing the 23147 15:39:27,320 --> 15:39:29,680 card visual with a new version that 23148 15:39:29,680 --> 15:39:31,880 retains all the familiar features and 23149 15:39:31,880 --> 15:39:34,160 update while adding the advanced 23150 15:39:34,160 --> 15:39:36,116 functionality and improved user 23151 15:39:36,116 --> 15:39:38,436 experience with all multiple this 23152 15:39:38,436 --> 15:39:41,000 feature is currently preview and the new 23153 15:39:41,000 --> 15:39:43,276 card visual offering is an excellent 23154 15:39:43,276 --> 15:39:45,480 opportunity to experience the 23155 15:39:45,480 --> 15:39:47,956 capabilities of the feature small 23156 15:39:47,956 --> 15:39:50,720 multiples are a series of similar card 23157 15:39:50,720 --> 15:39:54,040 ties displayed together in Grid format 23158 15:39:54,040 --> 15:39:56,400 each representing a category or 23159 15:39:56,400 --> 15:40:00,116 dimension of data allowing for 23160 15:40:00,116 --> 15:40:03,560 easyr comparison and analyzing multiple 23161 15:40:03,560 --> 15:40:06,160 feeds you will be able to use the small 23162 15:40:06,160 --> 15:40:08,636 multiples means the cards will Repeat 23163 15:40:08,636 --> 15:40:10,880 based on categorical variable which you 23164 15:40:10,880 --> 15:40:13,436 will to provide the newly feature in has 23165 15:40:13,436 --> 15:40:16,480 the data organization visual Clarity and 23166 15:40:16,480 --> 15:40:19,596 performance making it easier analyze and 23167 15:40:19,596 --> 15:40:23,320 present data fact to try it navigate to 23168 15:40:23,320 --> 15:40:25,880 options and setting options preview 23169 15:40:25,880 --> 15:40:28,000 features new card visual and make sure 23170 15:40:28,000 --> 15:40:30,000 it is enabled that is something which we 23171 15:40:30,000 --> 15:40:31,796 have enabled in the past and the car 23172 15:40:31,796 --> 15:40:34,240 visual has arrived if you are not using 23173 15:40:34,240 --> 15:40:36,200 the new car visual you have to enable 23174 15:40:36,200 --> 15:40:38,756 that another advantage of new small 23175 15:40:38,756 --> 15:40:41,360 multiples feature is extensive 23176 15:40:41,360 --> 15:40:44,520 customization it offers including small 23177 15:40:44,520 --> 15:40:47,200 multiple layout and choose from single 23178 15:40:47,200 --> 15:40:49,680 column single row or grid and customize 23179 15:40:49,680 --> 15:40:52,680 the number of small multiple r or column 23180 15:40:52,680 --> 15:40:54,956 displayed Advanced formatting option 23181 15:40:54,956 --> 15:40:57,756 featur such as font styes color coding 23182 15:40:57,756 --> 15:41:00,080 and traditional format borders and grid 23183 15:41:00,080 --> 15:41:03,116 lines the enable individual controls for 23184 15:41:03,116 --> 15:41:05,360 border and grid lines permits the 23185 15:41:05,360 --> 15:41:08,116 customization of style fit and 23186 15:41:08,116 --> 15:41:11,360 transparency overflow style options 23187 15:41:11,360 --> 15:41:14,040 include continuous scrw or pagination to 23188 15:41:14,040 --> 15:41:16,040 smoothly navigate through the multiple 23189 15:41:16,040 --> 15:41:17,956 card without overwhelming the visual 23190 15:41:17,956 --> 15:41:21,520 space headers toose from the horizontal 23191 15:41:21,520 --> 15:41:24,080 or vertical orientation top or left 23192 15:41:24,080 --> 15:41:27,240 position customizable alignment F color 23193 15:41:27,240 --> 15:41:29,560 transparency padding plus background 23194 15:41:29,560 --> 15:41:32,400 color and image these are the few of the 23195 15:41:32,400 --> 15:41:34,840 features which we going to explore into 23196 15:41:34,840 --> 15:41:38,160 the powerbi so this is the summary of 23197 15:41:38,160 --> 15:41:41,360 the notes now time has come that we jump 23198 15:41:41,360 --> 15:41:43,916 onto the powerbi 23199 15:41:43,916 --> 15:41:47,276 desktop on the power ba desktop first of 23200 15:41:47,276 --> 15:41:50,360 all let me showcase you my schema under 23201 15:41:50,360 --> 15:41:53,520 the data model view it contains my usual 23202 15:41:53,520 --> 15:41:56,200 sales model which contain a central 23203 15:41:56,200 --> 15:41:57,956 sales f 23204 15:41:57,956 --> 15:42:01,720 joined with item Dimension customer 23205 15:42:01,720 --> 15:42:05,160 Dimension geography Dimension and dat 23206 15:42:05,160 --> 15:42:08,680 table all the joins are one too many and 23207 15:42:08,680 --> 15:42:11,720 mostly single directional me go back to 23208 15:42:11,720 --> 15:42:16,040 the report View and add a page to start 23209 15:42:16,040 --> 15:42:19,276 today's demo but before I start today's 23210 15:42:19,276 --> 15:42:21,756 demo I would like to tell you the 23211 15:42:21,756 --> 15:42:25,000 setting to enable the new card visual in 23212 15:42:25,000 --> 15:42:27,276 case you have not enabled it previously 23213 15:42:27,276 --> 15:42:32,200 ly file options and setting 23214 15:42:32,200 --> 15:42:34,480 options and in the options under the 23215 15:42:34,480 --> 15:42:36,756 preview features inside the preview 23216 15:42:36,756 --> 15:42:38,916 feature I have already enabled new card 23217 15:42:38,916 --> 15:42:41,840 visual in case you are doing it for very 23218 15:42:41,840 --> 15:42:45,400 first time it was uncheck press on okay 23219 15:42:45,400 --> 15:42:47,916 and continue in my case I can press on 23220 15:42:47,916 --> 15:42:50,680 cancel and continue when you press okay 23221 15:42:50,680 --> 15:42:53,436 you might have to close and open your 23222 15:42:53,436 --> 15:42:58,080 file again in case it is asking for that 23223 15:42:58,080 --> 15:43:01,160 back onto the power VA page and let's 23224 15:43:01,160 --> 15:43:05,040 call this new page as C 23225 15:43:05,040 --> 15:43:07,720 is on this page I'm going to add a new 23226 15:43:07,720 --> 15:43:09,840 card visual so first of all I'll open 23227 15:43:09,840 --> 15:43:12,916 the build visual P from my right hand 23228 15:43:12,916 --> 15:43:15,756 side where I have see all the panes and 23229 15:43:15,756 --> 15:43:17,480 from here I'm going to add a new card 23230 15:43:17,480 --> 15:43:21,160 visual or in this card visual I can add 23231 15:43:21,160 --> 15:43:24,320 multiple measures but I want to add one 23232 15:43:24,320 --> 15:43:26,796 measure to start with I have added the 23233 15:43:26,796 --> 15:43:29,276 one major and as you can see the net 23234 15:43:29,276 --> 15:43:32,116 value is displayed on the new card 23235 15:43:32,116 --> 15:43:36,000 visual I will go ahead and add brand 23236 15:43:36,000 --> 15:43:39,116 onto the small multiples and you can see 23237 15:43:39,116 --> 15:43:42,360 option of small multiple has also been 23238 15:43:42,360 --> 15:43:46,480 provided into the new car visual as I 23239 15:43:46,480 --> 15:43:49,400 add that you observe that my new car 23240 15:43:49,400 --> 15:43:52,000 visual is showing brand but because of 23241 15:43:52,000 --> 15:43:54,160 the space limitation it's not showing it 23242 15:43:54,160 --> 15:43:57,040 properly time has come to provide this V 23243 15:43:57,040 --> 15:43:58,320 visual more 23244 15:43:58,320 --> 15:44:01,596 space make it little bigger now you're 23245 15:44:01,596 --> 15:44:05,240 able to see the brand and the net it's 23246 15:44:05,240 --> 15:44:08,240 only showing the three rows as of now 23247 15:44:08,240 --> 15:44:10,436 and we are going to adjust it using the 23248 15:44:10,436 --> 15:44:13,000 new format properties which we have got 23249 15:44:13,000 --> 15:44:15,276 for small multiples let's click on the 23250 15:44:15,276 --> 15:44:18,080 format and you have got two properties 23251 15:44:18,080 --> 15:44:21,160 here small multiples layout and a small 23252 15:44:21,160 --> 15:44:24,276 multiples header first of all let's look 23253 15:44:24,276 --> 15:44:26,520 at the layout so single column layout 23254 15:44:26,520 --> 15:44:28,880 let right right now we can continue with 23255 15:44:28,880 --> 15:44:31,200 that and we use five multiple for 23256 15:44:31,200 --> 15:44:33,436 displaying the multiples when the reason 23257 15:44:33,436 --> 15:44:36,040 I'm not showing 10 because I would like 23258 15:44:36,040 --> 15:44:39,040 to show you the scrolling as well as the 23259 15:44:39,040 --> 15:44:42,480 vertical headers here it's single column 23260 15:44:42,480 --> 15:44:44,320 I could have gone for single row which 23261 15:44:44,320 --> 15:44:45,956 will look like something like this I 23262 15:44:45,956 --> 15:44:49,320 need to do width adjustment in that case 23263 15:44:49,320 --> 15:44:51,276 and I can make it a little smaller if I 23264 15:44:51,276 --> 15:44:54,520 want like that that's the G or I could 23265 15:44:54,520 --> 15:44:57,240 have made it as a grid once I made it a 23266 15:44:57,240 --> 15:45:00,400 grid so the values like this brand one 23267 15:45:00,400 --> 15:45:03,880 brand 10 Brand 11 brand 12 brand 13 I 23268 15:45:03,880 --> 15:45:06,000 can choose the layouts like how many 23269 15:45:06,000 --> 15:45:08,080 rows and columns I 23270 15:45:08,080 --> 15:45:11,320 want I can make it a 4x4 matrix by 23271 15:45:11,320 --> 15:45:13,596 choosing four rows and four 23272 15:45:13,596 --> 15:45:16,276 columns now depending on the values and 23273 15:45:16,276 --> 15:45:18,840 the font size you can make it little 23274 15:45:18,840 --> 15:45:21,160 different so let's go back to the single 23275 15:45:21,160 --> 15:45:24,116 column layout keep it five we have the 23276 15:45:24,116 --> 15:45:26,240 borders you can see I can add the 23277 15:45:26,240 --> 15:45:28,636 additional bord if I add the Border I 23278 15:45:28,636 --> 15:45:31,080 can change the color or I can change the 23279 15:45:31,080 --> 15:45:34,200 width Etc if I add the Border I can CH 23280 15:45:34,200 --> 15:45:35,956 the width and if I start changing the 23281 15:45:35,956 --> 15:45:38,480 WID we'll be able to see the B grid 23282 15:45:38,480 --> 15:45:40,956 lines in case you want grid lines go use 23283 15:45:40,956 --> 15:45:42,840 grid lights pay attention 23284 15:45:42,840 --> 15:45:46,400 here you don't use gr grid lines what 23285 15:45:46,400 --> 15:45:50,080 happens overflow AG inated 23286 15:45:50,080 --> 15:45:52,360 orous scrw so let me change it to 23287 15:45:52,360 --> 15:45:55,360 continuous scrw now you can see on and 23288 15:45:55,360 --> 15:45:58,320 if I make it paginated you see small 23289 15:45:58,320 --> 15:46:00,956 icon here and then scroll down and you 23290 15:46:00,956 --> 15:46:03,276 can scroll up using the pagination 23291 15:46:03,276 --> 15:46:05,560 pagination could be vertical and 23292 15:46:05,560 --> 15:46:08,040 horizontal that what you can do the 23293 15:46:08,040 --> 15:46:10,400 background in case you want to change 23294 15:46:10,400 --> 15:46:12,200 the background I'm not interested in 23295 15:46:12,200 --> 15:46:14,956 changing the background as of now and 23296 15:46:14,956 --> 15:46:17,520 the shape shape could be a little bit 23297 15:46:17,520 --> 15:46:19,880 rounded Corners here you can observe the 23298 15:46:19,880 --> 15:46:22,916 rounded Corners now it is column wise 23299 15:46:22,916 --> 15:46:24,840 with single measure so I can reduce the 23300 15:46:24,840 --> 15:46:27,840 width Cas we add more measure we have to 23301 15:46:27,840 --> 15:46:31,520 increase the width according to that so 23302 15:46:31,520 --> 15:46:33,916 these are the properties which I have 23303 15:46:33,916 --> 15:46:35,840 inside the small multiples and the 23304 15:46:35,840 --> 15:46:38,200 various stuff which I can change out I 23305 15:46:38,200 --> 15:46:40,916 can make the single column single row or 23306 15:46:40,916 --> 15:46:43,520 grid layout and I can play around with 23307 15:46:43,520 --> 15:46:45,680 when I go to the small multiple headers 23308 15:46:45,680 --> 15:46:48,240 I have you know whether I want the this 23309 15:46:48,240 --> 15:46:50,436 for one series or for all the series as 23310 15:46:50,436 --> 15:46:52,680 of now I wanted to do the changes for 23311 15:46:52,680 --> 15:46:55,000 all the serieses so let's me go ahead 23312 15:46:55,000 --> 15:46:57,040 and change the orientation to orient 23313 15:46:57,040 --> 15:46:59,880 ation to vertical and this is something 23314 15:46:59,880 --> 15:47:02,596 you were asking for long now that we 23315 15:47:02,596 --> 15:47:05,400 need to display it vertically you have 23316 15:47:05,400 --> 15:47:08,276 option in the small multiple header for 23317 15:47:08,276 --> 15:47:09,680 the 23318 15:47:09,680 --> 15:47:12,916 orientation position is left or top 23319 15:47:12,916 --> 15:47:14,520 right now it is left and I when I make 23320 15:47:14,520 --> 15:47:17,116 it top you will stop seeing the data and 23321 15:47:17,116 --> 15:47:19,320 this top position will for suited if you 23322 15:47:19,320 --> 15:47:23,000 go to let's say the single Row the top 23323 15:47:23,000 --> 15:47:25,596 position is more suitable for the single 23324 15:47:25,596 --> 15:47:30,080 row rather than the single column option 23325 15:47:30,080 --> 15:47:32,720 depending on the requirement we can play 23326 15:47:32,720 --> 15:47:35,796 around with the single row single column 23327 15:47:35,796 --> 15:47:39,720 as well as left and top it is just 23328 15:47:39,720 --> 15:47:42,596 basically based on the need what suits 23329 15:47:42,596 --> 15:47:44,480 most for your 23330 15:47:44,480 --> 15:47:47,520 requirement it doesn't look so good so 23331 15:47:47,520 --> 15:47:49,680 let's change it back to the five and 23332 15:47:49,680 --> 15:47:52,756 let's go down and make it from the top 23333 15:47:52,756 --> 15:47:54,840 to left there are scenarios where single 23334 15:47:54,840 --> 15:47:57,520 row will look better than the single 23335 15:47:57,520 --> 15:48:00,240 column when you have lot of values it 23336 15:48:00,240 --> 15:48:04,000 may be little better to have the single 23337 15:48:04,000 --> 15:48:08,636 row along with the left this is giving a 23338 15:48:08,636 --> 15:48:11,756 different look and feel and if you want 23339 15:48:11,756 --> 15:48:14,400 you can continue with that but let me 23340 15:48:14,400 --> 15:48:17,636 make it little smaller we'll go down and 23341 15:48:17,636 --> 15:48:21,360 change the position to the top now for 23342 15:48:21,360 --> 15:48:23,916 the top display I have to again do 23343 15:48:23,916 --> 15:48:26,796 little bit of visual size adjustment 23344 15:48:26,796 --> 15:48:29,160 vertical orientation let me change the 23345 15:48:29,160 --> 15:48:33,080 number of small multiple from 5 to 8 is 23346 15:48:33,080 --> 15:48:35,756 not the most suitable UI for what I'm 23347 15:48:35,756 --> 15:48:37,880 displaying right now but I just wanted 23348 15:48:37,880 --> 15:48:40,480 to Showcase you the properties let me 23349 15:48:40,480 --> 15:48:42,916 play around little bit and go back to 23350 15:48:42,916 --> 15:48:45,916 the single column View and back on the 23351 15:48:45,916 --> 15:48:47,596 single column left 23352 15:48:47,596 --> 15:48:50,680 layout now on the headers what we can 23353 15:48:50,680 --> 15:48:53,560 also do is do the change of the color so 23354 15:48:53,560 --> 15:48:56,276 background is on off I can have a 23355 15:48:56,276 --> 15:48:58,880 background color and the background 23356 15:48:58,880 --> 15:49:01,880 color a little lighter color I can 23357 15:49:01,880 --> 15:49:03,680 choose a background color or I can 23358 15:49:03,680 --> 15:49:05,636 choose a background 23359 15:49:05,636 --> 15:49:08,116 image one can play around with the call 23360 15:49:08,116 --> 15:49:10,636 out value enable and disable that to 23361 15:49:10,636 --> 15:49:13,636 disable the values also we can play 23362 15:49:13,636 --> 15:49:15,840 around with the label if you have only 23363 15:49:15,840 --> 15:49:18,000 one major you might not want to display 23364 15:49:18,000 --> 15:49:21,756 the label but yes if uh I have more than 23365 15:49:21,756 --> 15:49:24,596 one value if I add other major which is 23366 15:49:24,596 --> 15:49:27,480 gross along with net 23367 15:49:27,480 --> 15:49:30,436 now in such case I would definitely like 23368 15:49:30,436 --> 15:49:33,240 to have a label I'm having gross and net 23369 15:49:33,240 --> 15:49:35,636 now so I need to go ahead and change the 23370 15:49:35,636 --> 15:49:37,680 layout position to single Row in this 23371 15:49:37,680 --> 15:49:40,436 case now this is the layout position of 23372 15:49:40,436 --> 15:49:44,040 the card you have a multiple card visual 23373 15:49:44,040 --> 15:49:46,116 this is not the layout position of small 23374 15:49:46,116 --> 15:49:48,596 multiple this is only layout which we 23375 15:49:48,596 --> 15:49:51,240 get with the card Visual and we can 23376 15:49:51,240 --> 15:49:54,240 change it when we use more than one 23377 15:49:54,240 --> 15:49:58,200 measure to display it correctly can 23378 15:49:58,200 --> 15:50:00,720 choose between the style card and table 23379 15:50:00,720 --> 15:50:02,756 and when I choose card you will see the 23380 15:50:02,756 --> 15:50:05,000 small differences of individual card 23381 15:50:05,000 --> 15:50:07,116 display in 23382 15:50:07,116 --> 15:50:10,000 this you can try out the various 23383 15:50:10,000 --> 15:50:12,200 properties and the option which has been 23384 15:50:12,200 --> 15:50:15,840 provided with this small multiple option 23385 15:50:15,840 --> 15:50:19,560 of new car visual powerbi is putting lot 23386 15:50:19,560 --> 15:50:22,200 of effort these days to enhance your 23387 15:50:22,200 --> 15:50:25,796 visual experience so keep a eye on every 23388 15:50:25,796 --> 15:50:29,080 month's update what powerbi has stored 23389 15:50:29,080 --> 15:50:32,160 for you in the future why don't you go 23390 15:50:32,160 --> 15:50:35,080 ahead and try this 23391 15:50:36,160 --> 15:50:39,080 out now time has come that we understand 23392 15:50:39,080 --> 15:50:41,596 what is power query so power query you 23393 15:50:41,596 --> 15:50:44,796 can say is one of the PowerHouse in 23394 15:50:44,796 --> 15:50:47,560 Microsoft powerbi power query is the 23395 15:50:47,560 --> 15:50:49,560 data transformation and data preparation 23396 15:50:49,560 --> 15:50:52,720 engine so basically when you talk about 23397 15:50:52,720 --> 15:50:54,596 you know how do I manipulate the data 23398 15:50:54,596 --> 15:50:57,720 how I do I going to make it into shape 23399 15:50:57,720 --> 15:50:59,560 we talk about that you know in power ba 23400 15:50:59,560 --> 15:51:01,596 we need to have a star 23401 15:51:01,596 --> 15:51:04,040 schema then if it is not in a star 23402 15:51:04,040 --> 15:51:06,520 schema how do we transform and put it 23403 15:51:06,520 --> 15:51:08,756 into a star sign if our data is not 23404 15:51:08,756 --> 15:51:10,680 clean how we are going to make it clean 23405 15:51:10,680 --> 15:51:13,360 and going to put it into a format where 23406 15:51:13,360 --> 15:51:15,240 powerb can understand it easily or the 23407 15:51:15,240 --> 15:51:18,040 Dax engine can work better so that is 23408 15:51:18,040 --> 15:51:19,956 where the role of power query comes in 23409 15:51:19,956 --> 15:51:21,276 everything which you are bringing in 23410 15:51:21,276 --> 15:51:24,840 into the powerbi is typically coming in 23411 15:51:24,840 --> 15:51:28,360 via the power query layer so we have the 23412 15:51:28,360 --> 15:51:31,320 power query layer post that the what 23413 15:51:31,320 --> 15:51:33,080 transform data we got from the power 23414 15:51:33,080 --> 15:51:35,756 query layer that comes to the models on 23415 15:51:35,756 --> 15:51:37,400 those models we create relationship 23416 15:51:37,400 --> 15:51:40,360 create Dex measures and then create 23417 15:51:40,360 --> 15:51:42,480 visualizations power query comes with a 23418 15:51:42,480 --> 15:51:43,916 graphical interface for getting data 23419 15:51:43,916 --> 15:51:45,520 from the sources and a power query 23420 15:51:45,520 --> 15:51:47,040 editor for applying the transformation 23421 15:51:47,040 --> 15:51:48,720 so you will see that you know it has a 23422 15:51:48,720 --> 15:51:50,956 UI interface basically which is going to 23423 15:51:50,956 --> 15:51:53,436 help you to do various operations so 23424 15:51:53,436 --> 15:51:55,560 those operations are pretty easy but for 23425 15:51:55,560 --> 15:51:57,596 everything what you are seeing there 23426 15:51:57,596 --> 15:52:00,040 there is a basically code behind that 23427 15:52:00,040 --> 15:52:01,636 which you can open into the advanced 23428 15:52:01,636 --> 15:52:03,916 editor and can check it out because the 23429 15:52:03,916 --> 15:52:05,680 engine is available in many products and 23430 15:52:05,680 --> 15:52:07,636 services the destination where the data 23431 15:52:07,636 --> 15:52:09,560 will be stored depends on where the 23432 15:52:09,560 --> 15:52:11,756 power query was used basically power 23433 15:52:11,756 --> 15:52:14,000 query is not only use in powerbi in case 23434 15:52:14,000 --> 15:52:16,596 of Microsoft fabric we have data flow 23435 15:52:16,596 --> 15:52:18,880 Gen 2 in case of Azor we have Azor data 23436 15:52:18,880 --> 15:52:21,360 flow there is a data flow in the powerbi 23437 15:52:21,360 --> 15:52:23,680 service also so there are different 23438 15:52:23,680 --> 15:52:25,160 places where you know you can have a 23439 15:52:25,160 --> 15:52:28,520 destination like Microsoft fabric power 23440 15:52:28,520 --> 15:52:30,480 data flow Gen 2 which is also using 23441 15:52:30,480 --> 15:52:32,796 power query to provide a destination 23442 15:52:32,796 --> 15:52:35,916 option to you using power query you can 23443 15:52:35,916 --> 15:52:38,916 perform the EXT transform and load ETL 23444 15:52:38,916 --> 15:52:42,596 process for data so basically in powerbi 23445 15:52:42,596 --> 15:52:45,276 if you wanted to do ETL it's natively 23446 15:52:45,276 --> 15:52:48,000 power VI ETL then you have to use power 23447 15:52:48,000 --> 15:52:50,240 query so let's talk a little bit about 23448 15:52:50,240 --> 15:52:52,320 power query experience the power query 23449 15:52:52,320 --> 15:52:53,880 user experience is provided through 23450 15:52:53,880 --> 15:52:55,956 Power query editor user interface the 23451 15:52:55,956 --> 15:52:58,520 goal of it this interface is to help you 23452 15:52:58,520 --> 15:53:01,840 apply transformation you need simply by 23453 15:53:01,840 --> 15:53:03,520 interacting with the user friendly set 23454 15:53:03,520 --> 15:53:05,756 of ribbons menus buttons and other 23455 15:53:05,756 --> 15:53:07,400 interactive components so you have set 23456 15:53:07,400 --> 15:53:10,320 of menus like home transform data custom 23457 15:53:10,320 --> 15:53:12,916 column Etc using that you can do tons of 23458 15:53:12,916 --> 15:53:14,916 operations all these operations are 23459 15:53:14,916 --> 15:53:17,000 pretty intuitive they have been given a 23460 15:53:17,000 --> 15:53:19,040 name by which you can understand them 23461 15:53:19,040 --> 15:53:21,040 and there are step which perform quite a 23462 15:53:21,040 --> 15:53:22,916 few complex operations like when you go 23463 15:53:22,916 --> 15:53:24,796 to pyot data or unpivot data they are 23464 15:53:24,796 --> 15:53:26,680 performing real complex operations but 23465 15:53:26,680 --> 15:53:29,720 for you it's just one click power query 23466 15:53:29,720 --> 15:53:31,200 experience you will get it two Place 23467 15:53:31,200 --> 15:53:32,400 definitely one is you are getting in 23468 15:53:32,400 --> 15:53:33,840 powerbi desktop another one you are 23469 15:53:33,840 --> 15:53:36,636 getting powerb online so powerb online 23470 15:53:36,636 --> 15:53:39,040 you will found the integration such as 23471 15:53:39,040 --> 15:53:41,596 powerb data flows Microsoft fabric data 23472 15:53:41,596 --> 15:53:44,320 flow Gen 2 Microsoft Power Platform data 23473 15:53:44,320 --> 15:53:47,080 flows AZ data factory rangling data 23474 15:53:47,080 --> 15:53:50,400 flows and many more that provides the 23475 15:53:50,400 --> 15:53:53,080 experience through the online web pages 23476 15:53:53,080 --> 15:53:55,200 these are online experiences and as you 23477 15:53:55,200 --> 15:53:57,756 know your favorite power query for 23478 15:53:57,756 --> 15:54:00,200 desktop found integration such as power 23479 15:54:00,200 --> 15:54:02,200 query for Excel and powerb desktop so 23480 15:54:02,200 --> 15:54:03,956 both in Excel and powerb desktop we do 23481 15:54:03,956 --> 15:54:06,160 have the power query 23482 15:54:06,160 --> 15:54:09,080 experience what power query use 23483 15:54:09,080 --> 15:54:11,596 internally so power query use a language 23484 15:54:11,596 --> 15:54:13,520 which is known as M language which is 23485 15:54:13,520 --> 15:54:15,436 basically for the transformation so the 23486 15:54:15,436 --> 15:54:17,240 power query engine uses scripting 23487 15:54:17,240 --> 15:54:19,040 language behind the scenes for all power 23488 15:54:19,040 --> 15:54:21,000 query transformation the power query 23489 15:54:21,000 --> 15:54:23,520 formula language it's known as m m 23490 15:54:23,520 --> 15:54:25,480 language is data transformation language 23491 15:54:25,480 --> 15:54:27,240 of power query and anything that happens 23492 15:54:27,240 --> 15:54:29,636 in the query is ultimately written in m 23493 15:54:29,636 --> 15:54:31,040 so basically if you're doing a operation 23494 15:54:31,040 --> 15:54:33,040 pyot Operation so there is some function 23495 15:54:33,040 --> 15:54:35,320 of M which is getting execute and then 23496 15:54:35,320 --> 15:54:36,680 you getting that so what will happen 23497 15:54:36,680 --> 15:54:38,116 when you open the Advan editor you will 23498 15:54:38,116 --> 15:54:40,436 be able to find out the code so right 23499 15:54:40,436 --> 15:54:42,360 now at this stage we'll not discuss is 23500 15:54:42,360 --> 15:54:44,276 what is inside this Advanced editor as 23501 15:54:44,276 --> 15:54:45,756 you become the advanced power VI 23502 15:54:45,756 --> 15:54:47,796 developer you will be able to see that 23503 15:54:47,796 --> 15:54:49,756 code inside that one and in our beginner 23504 15:54:49,756 --> 15:54:51,916 series we have discussed quite a few 23505 15:54:51,916 --> 15:54:54,880 functions all the power query functions 23506 15:54:54,880 --> 15:54:56,796 which you can use has been discussed in 23507 15:54:56,796 --> 15:54:58,276 the beginner series all the table 23508 15:54:58,276 --> 15:55:00,436 function the list function all these has 23509 15:55:00,436 --> 15:55:02,560 been discussed in detail there so please 23510 15:55:02,560 --> 15:55:04,276 go ahead and also watch that series 23511 15:55:04,276 --> 15:55:05,560 means once you are a little bit 23512 15:55:05,560 --> 15:55:07,116 comfortable with this one there are 23513 15:55:07,116 --> 15:55:08,360 quite a few videos in the beginner 23514 15:55:08,360 --> 15:55:10,160 series which you will be able to watch 23515 15:55:10,160 --> 15:55:12,360 so let's move ahead if you want to do 23516 15:55:12,360 --> 15:55:13,840 Advanced transformation using power 23517 15:55:13,840 --> 15:55:15,916 query engine you can use Advanced Editor 23518 15:55:15,916 --> 15:55:18,080 to access the script of the power query 23519 15:55:18,080 --> 15:55:20,560 and modify it as you want as I said you 23520 15:55:20,560 --> 15:55:22,240 know Advanced editor is there and we do 23521 15:55:22,240 --> 15:55:24,276 manually write down the script if needed 23522 15:55:24,276 --> 15:55:25,796 you can modify the script as per our 23523 15:55:25,796 --> 15:55:27,596 requirement is all we can do it it is 23524 15:55:27,596 --> 15:55:29,560 not only the graphical user interface 23525 15:55:29,560 --> 15:55:31,360 which is going to do everything for us 23526 15:55:31,360 --> 15:55:33,840 if user interface function and the 23527 15:55:33,840 --> 15:55:36,276 transformation won't perform the exact 23528 15:55:36,276 --> 15:55:38,796 changes you need use the advanced editor 23529 15:55:38,796 --> 15:55:40,840 or the M language to fine-tune your 23530 15:55:40,840 --> 15:55:42,796 functions and transformation we can go 23531 15:55:42,796 --> 15:55:44,320 ahead and you know change these things 23532 15:55:44,320 --> 15:55:46,000 and sometime we solve the complex 23533 15:55:46,000 --> 15:55:47,480 problem at that time we realize okay 23534 15:55:47,480 --> 15:55:49,596 it's really difficult if I simply try to 23535 15:55:49,596 --> 15:55:51,360 combine some steps so we go ahead and 23536 15:55:51,360 --> 15:55:53,160 you know write down manually the power 23537 15:55:53,160 --> 15:55:55,040 query code and so now what we are going 23538 15:55:55,040 --> 15:55:56,520 to do we going to go ahead ahead and 23539 15:55:56,520 --> 15:55:59,276 look at basic operations of power VI 23540 15:55:59,276 --> 15:56:01,240 which you must know as a beginner and 23541 15:56:01,240 --> 15:56:03,320 then from there you can pick up and can 23542 15:56:03,320 --> 15:56:06,080 do more and more complex transformation 23543 15:56:06,080 --> 15:56:07,840 you can combine transformation and solve 23544 15:56:07,840 --> 15:56:09,436 some problems you can go ahead and write 23545 15:56:09,436 --> 15:56:11,720 down you know nested functions of M 23546 15:56:11,720 --> 15:56:13,560 language and you know create your own 23547 15:56:13,560 --> 15:56:16,360 Solutions around it let's understand 23548 15:56:16,360 --> 15:56:18,680 data transformation and which is also 23549 15:56:18,680 --> 15:56:21,116 known as power query so what happens is 23550 15:56:21,116 --> 15:56:23,596 when we start data loading especially in 23551 15:56:23,596 --> 15:56:26,480 the import mode in the powerbi the data 23552 15:56:26,480 --> 15:56:28,320 when it get imported the first place 23553 15:56:28,320 --> 15:56:30,240 where it LS it is into the data 23554 15:56:30,240 --> 15:56:32,320 transformation mode but what happens is 23555 15:56:32,320 --> 15:56:34,000 most of the time we just simply load the 23556 15:56:34,000 --> 15:56:36,080 data so we are not aware that the data 23557 15:56:36,080 --> 15:56:38,276 was actually passed through the power 23558 15:56:38,276 --> 15:56:40,080 query layer or the data transformation 23559 15:56:40,080 --> 15:56:42,400 layer power query transformation or the 23560 15:56:42,400 --> 15:56:44,596 transform data layer is really strong 23561 15:56:44,596 --> 15:56:47,160 and we can do a lot to improve the 23562 15:56:47,160 --> 15:56:49,756 quality of the data it is kind of a ETL 23563 15:56:49,756 --> 15:56:51,756 data quality improvement data 23564 15:56:51,756 --> 15:56:54,720 transformation engine so let's begin by 23565 15:56:54,720 --> 15:56:56,880 using the power query typical way to 23566 15:56:56,880 --> 15:56:59,080 reach power query is transform data so 23567 15:56:59,080 --> 15:57:00,636 when you do this you will reach power 23568 15:57:00,636 --> 15:57:02,636 query layer but when you load a new data 23569 15:57:02,636 --> 15:57:04,796 also you can instead of loading the data 23570 15:57:04,796 --> 15:57:06,756 you can use transform data and in that 23571 15:57:06,756 --> 15:57:09,200 manner you can also reach to power query 23572 15:57:09,200 --> 15:57:11,560 and we will use the same method for this 23573 15:57:11,560 --> 15:57:13,320 part of the video what we are going to 23574 15:57:13,320 --> 15:57:15,360 do is we are going to use this file pyot 23575 15:57:15,360 --> 15:57:17,796 data. XLS which is again available on my 23576 15:57:17,796 --> 15:57:19,636 GitHub account and you'll get a link 23577 15:57:19,636 --> 15:57:22,436 right click on the raw copy link and go 23578 15:57:22,436 --> 15:57:24,840 to Power query click on get 23579 15:57:24,840 --> 15:57:26,916 data web 23580 15:57:26,916 --> 15:57:29,400 give the URL click on 23581 15:57:29,400 --> 15:57:31,840 okay you got a popup there are quite a 23582 15:57:31,840 --> 15:57:33,756 few things which are available in this 23583 15:57:33,756 --> 15:57:36,116 file and what I'm going to do is I will 23584 15:57:36,116 --> 15:57:38,796 take most of these things and instead of 23585 15:57:38,796 --> 15:57:41,560 load now I will use transform data 23586 15:57:41,560 --> 15:57:44,360 transform data will take me to the power 23587 15:57:44,360 --> 15:57:46,880 query module and power query module 23588 15:57:46,880 --> 15:57:49,400 which can be used to transform data also 23589 15:57:49,400 --> 15:57:51,000 sometime when you have huge amount of 23590 15:57:51,000 --> 15:57:52,956 data you don't want to load it directly 23591 15:57:52,956 --> 15:57:54,956 you can come to this module and reduce 23592 15:57:54,956 --> 15:57:57,360 it the data not in final shape just like 23593 15:57:57,360 --> 15:57:59,080 the data we have loaded right now you 23594 15:57:59,080 --> 15:58:01,560 can come to this place transform it and 23595 15:58:01,560 --> 15:58:03,560 then start loading it you have option 23596 15:58:03,560 --> 15:58:06,000 here for close and apply which you can 23597 15:58:06,000 --> 15:58:07,240 use once you done with the 23598 15:58:07,240 --> 15:58:08,956 transformation apply stay here and 23599 15:58:08,956 --> 15:58:10,916 continue close and apply means close and 23600 15:58:10,916 --> 15:58:12,480 the changes would be apply and you can 23601 15:58:12,480 --> 15:58:14,840 go ahead and analyze that various tabs 23602 15:58:14,840 --> 15:58:16,680 and the most important tabs which you're 23603 15:58:16,680 --> 15:58:18,400 going to use for the transformation is 23604 15:58:18,400 --> 15:58:20,360 Home tab the tons of transformation 23605 15:58:20,360 --> 15:58:22,276 available here then the transform tab 23606 15:58:22,276 --> 15:58:24,636 this include lot of transformation add 23607 15:58:24,636 --> 15:58:26,916 columns not only you can add The Columns 23608 15:58:26,916 --> 15:58:28,520 but other than that there are 23609 15:58:28,520 --> 15:58:30,400 transformation which can be done while 23610 15:58:30,400 --> 15:58:32,480 adding the column you can do that then 23611 15:58:32,480 --> 15:58:34,596 inside the view you have the column 23612 15:58:34,596 --> 15:58:36,560 quality column distribution column 23613 15:58:36,560 --> 15:58:38,320 profile if you are now looking at the 23614 15:58:38,320 --> 15:58:39,916 data you might be seeing that you know 23615 15:58:39,916 --> 15:58:41,720 it is showing the column distribution 23616 15:58:41,720 --> 15:58:43,240 right now distribution means how many 23617 15:58:43,240 --> 15:58:44,916 distinct value you have and how many 23618 15:58:44,916 --> 15:58:46,796 unique value you have might ask what is 23619 15:58:46,796 --> 15:58:48,276 the difference between distinct and 23620 15:58:48,276 --> 15:58:50,080 unique distinct means how many distinct 23621 15:58:50,080 --> 15:58:52,596 value I have like a b c d nine values I 23622 15:58:52,596 --> 15:58:54,000 have distinct values then what's the 23623 15:58:54,000 --> 15:58:55,560 difference between distinct and unique 23624 15:58:55,560 --> 15:58:57,320 the dis distinct value which are non- 23625 15:58:57,320 --> 15:58:59,116 repetitive if you look at the second 23626 15:58:59,116 --> 15:59:00,956 column it is saying there are only two 23627 15:59:00,956 --> 15:59:03,240 values which are basically non 23628 15:59:03,240 --> 15:59:05,436 repetitive so if you see 78 it is 23629 15:59:05,436 --> 15:59:07,916 actually repeating okay if you look at 23630 15:59:07,916 --> 15:59:10,080 56 it is actually repeating so one of 23631 15:59:10,080 --> 15:59:12,436 the value distinct value is 56 but it is 23632 15:59:12,436 --> 15:59:14,680 repeating if you look at 90 it is one of 23633 15:59:14,680 --> 15:59:16,560 the values which is disting but 23634 15:59:16,560 --> 15:59:20,000 repeating 80 and 45 are the values which 23635 15:59:20,000 --> 15:59:21,636 are the distinct which will become part 23636 15:59:21,636 --> 15:59:23,116 of the distinct values but they are not 23637 15:59:23,116 --> 15:59:25,040 repeating so that's how unique and 23638 15:59:25,040 --> 15:59:27,040 distinct are different then you can also 23639 15:59:27,040 --> 15:59:29,636 add column quality column qualities give 23640 15:59:29,636 --> 15:59:32,040 you valid error and empty so the data 23641 15:59:32,040 --> 15:59:34,000 which I have is empty but if you have a 23642 15:59:34,000 --> 15:59:35,840 data like this one you have the empty 23643 15:59:35,840 --> 15:59:38,796 rows 25% of rows are empty for this 23644 15:59:38,796 --> 15:59:40,840 particular column then then comes the 23645 15:59:40,840 --> 15:59:42,796 column profile now column profiling is 23646 15:59:42,796 --> 15:59:44,680 pretty strong it provides you a lot of 23647 15:59:44,680 --> 15:59:47,436 information like count error empty 23648 15:59:47,436 --> 15:59:50,080 distinct unique empty string min max and 23649 15:59:50,080 --> 15:59:51,720 if you have a number column let's go to 23650 15:59:51,720 --> 15:59:53,880 a table where you have a number column 23651 15:59:53,880 --> 15:59:56,436 also so here in this one we a number 23652 15:59:56,436 --> 15:59:58,116 column so in the case of number column 23653 15:59:58,116 --> 16:00:00,320 it will also give you min max average 23654 16:00:00,320 --> 16:00:03,160 standard deviation odd even so so many 23655 16:00:03,160 --> 16:00:04,916 things it will tell you so if you want 23656 16:00:04,916 --> 16:00:07,916 to know more about your data then you 23657 16:00:07,916 --> 16:00:10,720 can use column profiling column quality 23658 16:00:10,720 --> 16:00:12,916 and column distribution Under The View 23659 16:00:12,916 --> 16:00:15,480 tab now you learned about these column 23660 16:00:15,480 --> 16:00:17,160 profiling column distribution let's also 23661 16:00:17,160 --> 16:00:19,840 pay attention to the panes on the left 23662 16:00:19,840 --> 16:00:21,200 hand side we have pain where all the 23663 16:00:21,200 --> 16:00:23,000 queries has been given on the right hand 23664 16:00:23,000 --> 16:00:24,956 side all the steps have been given 23665 16:00:24,956 --> 16:00:26,480 whatever you are doing here here every 23666 16:00:26,480 --> 16:00:28,880 step is getting captured other than this 23667 16:00:28,880 --> 16:00:31,636 observation of profile so how this data 23668 16:00:31,636 --> 16:00:34,080 came in what was the source the Excel 23669 16:00:34,080 --> 16:00:36,000 kind of a source we had then how the 23670 16:00:36,000 --> 16:00:37,560 navigation has happened you selected a 23671 16:00:37,560 --> 16:00:40,680 sheet fail sheet then promoted the 23672 16:00:40,680 --> 16:00:42,320 headers the headers have been promote 23673 16:00:42,320 --> 16:00:44,956 change type type has changed now any 23674 16:00:44,956 --> 16:00:47,480 transformation you do any column you add 23675 16:00:47,480 --> 16:00:48,956 other than the rename queries everything 23676 16:00:48,956 --> 16:00:51,320 is getting tracked and what would happen 23677 16:00:51,320 --> 16:00:53,560 all these steps you can look what was 23678 16:00:53,560 --> 16:00:55,720 previous stage what is the current stage 23679 16:00:55,720 --> 16:00:57,956 and these can be reverted middle steps 23680 16:00:57,956 --> 16:01:00,400 can also be deleted provided the next 23681 16:01:00,400 --> 16:01:02,916 two step can adjust to each other 23682 16:01:02,916 --> 16:01:04,796 otherwise it they will give error so 23683 16:01:04,796 --> 16:01:05,840 everything what you're doing is 23684 16:01:05,840 --> 16:01:07,840 trackable here unlike Dex where you 23685 16:01:07,840 --> 16:01:09,636 create a formula you know the formula 23686 16:01:09,636 --> 16:01:11,636 but you don't know whether you created a 23687 16:01:11,636 --> 16:01:13,796 formula a before or formula B before you 23688 16:01:13,796 --> 16:01:15,596 don't know but here anything you do you 23689 16:01:15,596 --> 16:01:18,636 do rename you do transformation like we 23690 16:01:18,636 --> 16:01:21,436 are going to do pivot data unpivot data 23691 16:01:21,436 --> 16:01:23,796 merg data append data everything will 23692 16:01:23,796 --> 16:01:26,320 get tracked here so it is not process 23693 16:01:26,320 --> 16:01:28,080 where you are not aware of the steps 23694 16:01:28,080 --> 16:01:30,320 every step will be captured and will be 23695 16:01:30,320 --> 16:01:33,160 shown to you now let's look at this data 23696 16:01:33,160 --> 16:01:35,840 the pyot data is it in the final shape 23697 16:01:35,840 --> 16:01:38,276 and ready to be analyzed no it is not 23698 16:01:38,276 --> 16:01:40,436 the data is basically pivoted in the 23699 16:01:40,436 --> 16:01:43,840 Excel somebody has moved the subjects on 23700 16:01:43,840 --> 16:01:46,756 the columns and this is a pivoted data 23701 16:01:46,756 --> 16:01:49,916 and to make this data more suitable for 23702 16:01:49,916 --> 16:01:52,956 analysis we have to unpivot it so we 23703 16:01:52,956 --> 16:01:55,000 have to go to transform data and there 23704 16:01:55,000 --> 16:01:57,796 we have option for for unpivot unpivot 23705 16:01:57,796 --> 16:02:00,116 columns unpivot other columns means 23706 16:02:00,116 --> 16:02:01,680 other than what you have selected like 23707 16:02:01,680 --> 16:02:03,560 right now I can do unpivot other columns 23708 16:02:03,560 --> 16:02:05,720 I selected name I can unpivot other 23709 16:02:05,720 --> 16:02:08,636 columns unpivot selected column unpivot 23710 16:02:08,636 --> 16:02:10,840 columns First Step can decide whether it 23711 16:02:10,840 --> 16:02:13,756 need to do other two unpivot selected 23712 16:02:13,756 --> 16:02:15,636 columns whatever I select let's say if I 23713 16:02:15,636 --> 16:02:19,160 select from here to here math to English 23714 16:02:19,160 --> 16:02:21,796 then I will have to go and say unpivot 23715 16:02:21,796 --> 16:02:24,116 selected columns when do I use other 23716 16:02:24,116 --> 16:02:26,160 columns or when do I use selected column 23717 16:02:26,160 --> 16:02:28,040 what happens if you have something known 23718 16:02:28,040 --> 16:02:30,320 as month on the top it is possible that 23719 16:02:30,320 --> 16:02:31,880 number of months are going to increase 23720 16:02:31,880 --> 16:02:33,756 so you will get more months in the 23721 16:02:33,756 --> 16:02:36,520 columns in such cases select the name 23722 16:02:36,520 --> 16:02:38,200 kind of the column or the fixed 23723 16:02:38,200 --> 16:02:40,436 categorical column and use unpivot other 23724 16:02:40,436 --> 16:02:42,320 columns now you may come back and say no 23725 16:02:42,320 --> 16:02:44,720 no no the column which need to unpivot 23726 16:02:44,720 --> 16:02:46,636 remain same but the attributes may 23727 16:02:46,636 --> 16:02:49,160 increase so with the name I can get age 23728 16:02:49,160 --> 16:02:50,880 tomorrow I can get some other property 23729 16:02:50,880 --> 16:02:52,240 the subjects are going to remain 23730 16:02:52,240 --> 16:02:54,040 consistent in such case we will use 23731 16:02:54,040 --> 16:02:56,520 unpivot only selected column so here 23732 16:02:56,520 --> 16:02:58,796 we'll click on the name and use unpivot 23733 16:02:58,796 --> 16:03:01,400 other column once I unpivot it it is 23734 16:03:01,400 --> 16:03:03,520 going to give me attribute and value 23735 16:03:03,520 --> 16:03:05,480 column and these attribute and the value 23736 16:03:05,480 --> 16:03:07,200 columns are the one which has made my 23737 16:03:07,200 --> 16:03:09,320 data now more suitable for analysis what 23738 16:03:09,320 --> 16:03:11,596 I can do here is basically in the last 23739 16:03:11,596 --> 16:03:14,520 step of unpivot other columns I can go 23740 16:03:14,520 --> 16:03:18,436 ahead and change the name to subject and 23741 16:03:18,436 --> 16:03:21,560 marks but don't do this in all the power 23742 16:03:21,560 --> 16:03:23,636 query steps unless you understand that 23743 16:03:23,636 --> 16:03:26,436 you can change them 23744 16:03:26,436 --> 16:03:28,400 let's have a look at this data is there 23745 16:03:28,400 --> 16:03:30,276 something wrong with this data now this 23746 16:03:30,276 --> 16:03:31,880 data you can work with but there's 23747 16:03:31,880 --> 16:03:33,840 something wrong actually the majors 23748 16:03:33,840 --> 16:03:36,320 which I have they should be the columns 23749 16:03:36,320 --> 16:03:38,276 but they are on the rows so sales and 23750 16:03:38,276 --> 16:03:40,480 the margin both editable this is margin 23751 16:03:40,480 --> 16:03:43,040 number not percentage they're actually 23752 16:03:43,040 --> 16:03:45,276 in the rows instead of column and that's 23753 16:03:45,276 --> 16:03:47,320 the problem with this data so basically 23754 16:03:47,320 --> 16:03:49,880 this data is something which is already 23755 16:03:49,880 --> 16:03:53,360 unpotted and I want to pyot it and to 23756 16:03:53,360 --> 16:03:54,796 correct this data what I'm going to do 23757 16:03:54,796 --> 16:03:56,916 is I'm going to select m and value I'll 23758 16:03:56,916 --> 16:04:00,436 go to transform and I'll use this pivot 23759 16:04:00,436 --> 16:04:04,116 data option I click on the pivot data it 23760 16:04:04,116 --> 16:04:06,040 will ask what is the value column which 23761 16:04:06,040 --> 16:04:07,720 is the column you want to Aggregate and 23762 16:04:07,720 --> 16:04:09,796 then what is the kind of aggregation now 23763 16:04:09,796 --> 16:04:11,840 here I have one value which is doubled 23764 16:04:11,840 --> 16:04:13,956 up so if you don't have any value which 23765 16:04:13,956 --> 16:04:15,240 is doubling up you can use don't 23766 16:04:15,240 --> 16:04:16,840 aggregate but there is one value which 23767 16:04:16,840 --> 16:04:18,680 is doubled up and that's why I wanted to 23768 16:04:18,680 --> 16:04:20,436 First select don't agregate and want it 23769 16:04:20,436 --> 16:04:22,320 to show you that is going to show me an 23770 16:04:22,320 --> 16:04:24,240 error for that so if I use don't 23771 16:04:24,240 --> 16:04:26,240 aggregate it will going to show me error 23772 16:04:26,240 --> 16:04:27,840 because there are two values for this 23773 16:04:27,840 --> 16:04:30,320 particular combination so it says this 23774 16:04:30,320 --> 16:04:31,956 it's getting a list so what I'm going to 23775 16:04:31,956 --> 16:04:34,040 do here is I can go to the gear icon 23776 16:04:34,040 --> 16:04:36,000 here at the last there is a gear icon I 23777 16:04:36,000 --> 16:04:37,756 can click on that I can go to the 23778 16:04:37,756 --> 16:04:39,360 Advance option and instead of don't 23779 16:04:39,360 --> 16:04:41,400 aggregate I can use some or you can 23780 16:04:41,400 --> 16:04:43,480 delete this step and edit again let me 23781 16:04:43,480 --> 16:04:45,040 do the sum and now I'm getting the 23782 16:04:45,040 --> 16:04:47,840 correct pivoted table the data was UN 23783 16:04:47,840 --> 16:04:50,320 pivoted from The Source I pivoted it I 23784 16:04:50,320 --> 16:04:53,040 can use now close and apply to use this 23785 16:04:53,040 --> 16:04:54,916 data but we'll continue to do more 23786 16:04:54,916 --> 16:04:57,636 transformation 23787 16:04:59,240 --> 16:05:01,080 what's wrong with this data quite a few 23788 16:05:01,080 --> 16:05:02,720 things the header is not placed 23789 16:05:02,720 --> 16:05:05,000 correctly there are full blank rows and 23790 16:05:05,000 --> 16:05:06,916 sometime what happen you are bringing in 23791 16:05:06,916 --> 16:05:09,040 Excel data you may get full empty rows 23792 16:05:09,040 --> 16:05:11,116 at the end somebody might have traveled 23793 16:05:11,116 --> 16:05:13,000 through that Excel sheet created those 23794 16:05:13,000 --> 16:05:15,000 empty rows so how do we remove those 23795 16:05:15,000 --> 16:05:16,680 completely empty rows the problem 23796 16:05:16,680 --> 16:05:19,596 doesn't end here in this data I see 23797 16:05:19,596 --> 16:05:22,796 complete duplicate rows the rows are 23798 16:05:22,796 --> 16:05:24,520 completely duplicated so I want to 23799 16:05:24,520 --> 16:05:26,636 remove by data doesn't have complete 23800 16:05:26,636 --> 16:05:28,480 duplicate rows that's kind of data I 23801 16:05:28,480 --> 16:05:30,116 want it to have and these are few 23802 16:05:30,116 --> 16:05:31,720 transformation which I need so let's 23803 16:05:31,720 --> 16:05:33,240 start doing these transformation so 23804 16:05:33,240 --> 16:05:35,080 First Transformation I want to do is I 23805 16:05:35,080 --> 16:05:37,720 want to make the first row as the header 23806 16:05:37,720 --> 16:05:40,040 under the Home tab we option use first 23807 16:05:40,040 --> 16:05:42,000 row as header let's do this 23808 16:05:42,000 --> 16:05:44,000 transformation promoted headers 23809 16:05:44,000 --> 16:05:45,796 transformation has been done along with 23810 16:05:45,796 --> 16:05:47,276 the change type now the second 23811 16:05:47,276 --> 16:05:48,840 transformation which I need want to 23812 16:05:48,840 --> 16:05:51,436 remove the blank rows so under the Home 23813 16:05:51,436 --> 16:05:54,116 tab we have remove rows and keep rows 23814 16:05:54,116 --> 16:05:55,596 this time we are going to use remove 23815 16:05:55,596 --> 16:05:57,200 rows under the remove rows you have 23816 16:05:57,200 --> 16:05:59,276 removed top row remove bottom rows you 23817 16:05:59,276 --> 16:06:00,636 can give the number of rows you want to 23818 16:06:00,636 --> 16:06:02,276 remove sometime what happens you have a 23819 16:06:02,276 --> 16:06:04,200 report where some additional stuff is 23820 16:06:04,200 --> 16:06:06,000 there and then you are using that you 23821 16:06:06,000 --> 16:06:07,560 might have additional R than the top 23822 16:06:07,560 --> 16:06:09,000 there is a report where bottom something 23823 16:06:09,000 --> 16:06:10,636 is written you don't want so remove the 23824 16:06:10,636 --> 16:06:12,596 top and the bottom rows remove alternate 23825 16:06:12,596 --> 16:06:14,796 rows remove duplicates which is the next 23826 16:06:14,796 --> 16:06:16,680 step you want to do remove blank rows 23827 16:06:16,680 --> 16:06:18,116 the step which you want to do right now 23828 16:06:18,116 --> 16:06:19,596 and remove errors if there are some 23829 16:06:19,596 --> 16:06:21,636 error rows let's remove those so remove 23830 16:06:21,636 --> 16:06:24,000 blank rows completely blank rows we are 23831 16:06:24,000 --> 16:06:25,796 going to remove and it removed the blank 23832 16:06:25,796 --> 16:06:27,560 rows now the next thing which so now 23833 16:06:27,560 --> 16:06:29,680 there are no blank rows now I want to 23834 16:06:29,680 --> 16:06:31,520 remove the complete duplicate but when 23835 16:06:31,520 --> 16:06:33,160 you are doing this operation you need to 23836 16:06:33,160 --> 16:06:34,796 be little bit careful because if you 23837 16:06:34,796 --> 16:06:36,680 select a column and try to do that 23838 16:06:36,680 --> 16:06:38,360 operation it is going to be little bit 23839 16:06:38,360 --> 16:06:40,240 different than the operation which you 23840 16:06:40,240 --> 16:06:42,956 want to do using the complete table so 23841 16:06:42,956 --> 16:06:45,756 here because my rows are exactly 23842 16:06:45,756 --> 16:06:47,796 duplicate what I need to do here is 23843 16:06:47,796 --> 16:06:50,000 basically click on this so that no no 23844 16:06:50,000 --> 16:06:52,200 rows is selected and then go to remove 23845 16:06:52,200 --> 16:06:54,680 rows and use remove duplicates look at 23846 16:06:54,680 --> 16:06:57,720 what it is done table do distinct remove 23847 16:06:57,720 --> 16:07:00,040 blank rows this is the step I want when 23848 16:07:00,040 --> 16:07:02,240 I want to remove complete blank rows but 23849 16:07:02,240 --> 16:07:05,160 let me go to another one here if you see 23850 16:07:05,160 --> 16:07:07,756 in this row I have 9 90 duplicate there 23851 16:07:07,756 --> 16:07:09,756 are few null values if you go here 23852 16:07:09,756 --> 16:07:12,480 remove rows and use remove duplicate you 23853 16:07:12,480 --> 16:07:14,080 see what has happened just taken a 23854 16:07:14,080 --> 16:07:16,080 column name the duplicates are not the 23855 16:07:16,080 --> 16:07:18,080 row duplicate it is the particular 23856 16:07:18,080 --> 16:07:20,320 columns duplicate which has been so you 23857 16:07:20,320 --> 16:07:22,116 know the difference between two the 23858 16:07:22,116 --> 16:07:24,320 column would be column duplicate it may 23859 16:07:24,320 --> 16:07:26,360 happen that there are no row duplicates 23860 16:07:26,360 --> 16:07:28,596 but when you delete it on the column the 23861 16:07:28,596 --> 16:07:30,680 duplicates get removed so the column 23862 16:07:30,680 --> 16:07:32,520 duplicates because of that the complete 23863 16:07:32,520 --> 16:07:34,796 row got deleted so be careful about that 23864 16:07:34,796 --> 16:07:36,400 I don't need that right now and the 23865 16:07:36,400 --> 16:07:38,200 beauty with power query is remove the 23866 16:07:38,200 --> 16:07:41,596 step back at the previous position 23867 16:07:41,596 --> 16:07:44,200 so now what's wrong with this table 23868 16:07:44,200 --> 16:07:45,756 actually there's nothing wrong this is 23869 16:07:45,756 --> 16:07:47,200 perfect table but there is something 23870 16:07:47,200 --> 16:07:48,320 which you want to learn it's not the 23871 16:07:48,320 --> 16:07:50,160 best example of the table what we can 23872 16:07:50,160 --> 16:07:51,596 have here I want to learn something 23873 16:07:51,596 --> 16:07:53,436 known as in the transformation fill up 23874 16:07:53,436 --> 16:07:55,436 and fill down in the maths if you see 23875 16:07:55,436 --> 16:07:57,320 after 90 I don't have any marks and what 23876 16:07:57,320 --> 16:07:59,040 I wanted to do is sometime you have what 23877 16:07:59,040 --> 16:08:00,840 happens in Excel you create those five 23878 16:08:00,840 --> 16:08:03,080 kind of a table 90 is repeating so only 23879 16:08:03,080 --> 16:08:04,956 one 190 will come now I want to do the 23880 16:08:04,956 --> 16:08:07,240 fill down so it should fill in the 90 so 23881 16:08:07,240 --> 16:08:09,000 under the transform tab you have this 23882 16:08:09,000 --> 16:08:11,400 fill fill down so 90 will repeat now in 23883 16:08:11,400 --> 16:08:13,276 the case of physics there's only upward 23884 16:08:13,276 --> 16:08:14,916 movement means there are blank rows and 23885 16:08:14,916 --> 16:08:16,756 then we have a number so here I will use 23886 16:08:16,756 --> 16:08:18,636 fill up under the transform tab again 23887 16:08:18,636 --> 16:08:20,520 fill up now in this column I could do 23888 16:08:20,520 --> 16:08:22,160 any of these operation in this I can 23889 16:08:22,160 --> 16:08:23,840 also do any of these operation so fill 23890 16:08:23,840 --> 16:08:25,756 up and fill down it takes the value on 23891 16:08:25,756 --> 16:08:27,200 the top if there is anything which is 23892 16:08:27,200 --> 16:08:28,916 blank it's going to replace those value 23893 16:08:28,916 --> 16:08:30,520 with the last available value and very 23894 16:08:30,520 --> 16:08:32,116 useful transformation very difficult to 23895 16:08:32,116 --> 16:08:34,320 do otherwise but Power query made it 23896 16:08:34,320 --> 16:08:36,360 easy so this kind of transformation is 23897 16:08:36,360 --> 16:08:38,480 something which enables you to improve 23898 16:08:38,480 --> 16:08:40,796 your data quality they available inside 23899 16:08:40,796 --> 16:08:43,320 the power 23900 16:08:43,320 --> 16:08:46,000 query now let's come to this table and 23901 16:08:46,000 --> 16:08:47,796 in this table we wanted to learn the 23902 16:08:47,796 --> 16:08:49,560 feature of replace value now first of 23903 16:08:49,560 --> 16:08:51,160 all this table is not in the proper 23904 16:08:51,160 --> 16:08:53,000 shape so what I'm going to do here is 23905 16:08:53,000 --> 16:08:55,116 now instead of going to those options I 23906 16:08:55,116 --> 16:08:56,756 click CLI on this table icon and there 23907 16:08:56,756 --> 16:08:58,480 are options here and the one of the 23908 16:08:58,480 --> 16:09:00,160 option which is there is use first row 23909 16:09:00,160 --> 16:09:02,560 is header and I'm going to use that now 23910 16:09:02,560 --> 16:09:04,520 I want to learn replace values and the 23911 16:09:04,520 --> 16:09:06,276 objective is twofold how do we replace 23912 16:09:06,276 --> 16:09:08,400 null values how do we replace any other 23913 16:09:08,400 --> 16:09:10,436 value and how do we replace some value 23914 16:09:10,436 --> 16:09:12,000 with the null value so we have this 23915 16:09:12,000 --> 16:09:14,116 replace value option on the right click 23916 16:09:14,116 --> 16:09:15,720 we have replace value but it is going to 23917 16:09:15,720 --> 16:09:17,360 replace in this particular column only 23918 16:09:17,360 --> 16:09:18,916 what I can do is I can select multiple 23919 16:09:18,916 --> 16:09:21,000 columns also with the shift and under 23920 16:09:21,000 --> 16:09:22,756 the transform tab I also have replace 23921 16:09:22,756 --> 16:09:24,916 values or right click replace values so 23922 16:09:24,916 --> 16:09:26,560 you can go go to replace values what I 23923 16:09:26,560 --> 16:09:28,116 want to replace here in both the columns 23924 16:09:28,116 --> 16:09:29,756 what I want to replace there is a value 23925 16:09:29,756 --> 16:09:31,796 called known as GG I want to replace 23926 16:09:31,796 --> 16:09:33,796 this value with a b c it's available in 23927 16:09:33,796 --> 16:09:35,596 both the columns if observe that here 23928 16:09:35,596 --> 16:09:37,680 and here now there are Advanced options 23929 16:09:37,680 --> 16:09:39,756 match the entire cell content replace 23930 16:09:39,756 --> 16:09:41,880 using special characters so I can use 23931 16:09:41,880 --> 16:09:43,400 the first option now but I don't want to 23932 16:09:43,400 --> 16:09:45,360 use let it replace so you will see there 23933 16:09:45,360 --> 16:09:47,400 was Triple G here and because there was 23934 16:09:47,400 --> 16:09:49,400 a triple G here and it replaced the only 23935 16:09:49,400 --> 16:09:51,116 2 G's you can go to the back previous 23936 16:09:51,116 --> 16:09:52,956 stab and see this is Triple G where only 23937 16:09:52,956 --> 16:09:54,680 two G's were replaced the first match 23938 16:09:54,680 --> 16:09:55,756 was get 23939 16:09:55,756 --> 16:09:57,480 how do we replace the null values or how 23940 16:09:57,480 --> 16:09:59,000 do we replace something with a null Val 23941 16:09:59,000 --> 16:10:00,720 if you see here this column also have 23942 16:10:00,720 --> 16:10:02,200 null values this column also have null 23943 16:10:02,200 --> 16:10:03,880 value click on both of these column with 23944 16:10:03,880 --> 16:10:05,756 shift replace values and for null you 23945 16:10:05,756 --> 16:10:07,840 have to write down Nu L and then you can 23946 16:10:07,840 --> 16:10:09,880 replace it with the value na but if this 23947 16:10:09,880 --> 16:10:12,520 null is n l null text then I'll tell you 23948 16:10:12,520 --> 16:10:14,360 the one quick fix for that so once you 23949 16:10:14,360 --> 16:10:16,040 do this fix and you can see the null 23950 16:10:16,040 --> 16:10:18,040 values are replaced with na now if this 23951 16:10:18,040 --> 16:10:20,116 null is a string you can do the same 23952 16:10:20,116 --> 16:10:21,680 step and come back here and put this 23953 16:10:21,680 --> 16:10:23,436 null into double quotes you will see the 23954 16:10:23,436 --> 16:10:25,480 formula here and this is the step in 23955 16:10:25,480 --> 16:10:26,956 that step you can go ahead and replace 23956 16:10:26,956 --> 16:10:28,680 if I do here right now this will not 23957 16:10:28,680 --> 16:10:30,436 find any null value not replace it the 23958 16:10:30,436 --> 16:10:32,320 null text value go ahead and change this 23959 16:10:32,320 --> 16:10:34,000 now what I would like to do here is this 23960 16:10:34,000 --> 16:10:36,756 hyphone I want to replace this value I 23961 16:10:36,756 --> 16:10:38,116 clicked on that and I say I want to 23962 16:10:38,116 --> 16:10:39,840 replace this value with what I want to 23963 16:10:39,840 --> 16:10:42,956 replace this with n null replace with 23964 16:10:42,956 --> 16:10:45,360 null click okay so it's again giving 23965 16:10:45,360 --> 16:10:47,520 replace table do replace value in the 23966 16:10:47,520 --> 16:10:49,080 last step see every time it use the last 23967 16:10:49,080 --> 16:10:52,000 step Hyun with null replacer do replace 23968 16:10:52,000 --> 16:10:54,276 values item category column only in that 23969 16:10:54,276 --> 16:10:55,680 particular column we have done it but if 23970 16:10:55,680 --> 16:10:57,520 you look at the previous steps you find 23971 16:10:57,520 --> 16:10:59,360 that it has been executed on multiple 23972 16:10:59,360 --> 16:11:01,276 columns you can give n number of columns 23973 16:11:01,276 --> 16:11:02,796 and then you can execute on that so this 23974 16:11:02,796 --> 16:11:06,276 is replace value for 23975 16:11:07,160 --> 16:11:09,880 you so what is wrong with this data the 23976 16:11:09,880 --> 16:11:12,276 data itself is transposed so the rows 23977 16:11:12,276 --> 16:11:14,000 are on the column The Columns are on the 23978 16:11:14,000 --> 16:11:15,720 rows the date should have been in the 23979 16:11:15,720 --> 16:11:18,160 rows they are in columns the major sales 23980 16:11:18,160 --> 16:11:19,796 and margin should have been the columns 23981 16:11:19,796 --> 16:11:21,320 there in the rows so we need to 23982 16:11:21,320 --> 16:11:23,436 transpose this so click on this table 23983 16:11:23,436 --> 16:11:25,756 icon so that nothing is selected supp 23984 16:11:25,756 --> 16:11:28,320 that go to transform Tab and use the 23985 16:11:28,320 --> 16:11:29,320 option 23986 16:11:29,320 --> 16:11:31,916 transpose the data will get transposed 23987 16:11:31,916 --> 16:11:34,080 but still it is not correct or the final 23988 16:11:34,080 --> 16:11:36,680 shape of the data the first row contains 23989 16:11:36,680 --> 16:11:38,796 the header and to overcome that you will 23990 16:11:38,796 --> 16:11:40,880 go to the Home tab and inside the Home 23991 16:11:40,880 --> 16:11:42,680 tab on the right hand side you have an 23992 16:11:42,680 --> 16:11:46,160 option use first row as header also when 23993 16:11:46,160 --> 16:11:48,000 you click on the down arrow you have the 23994 16:11:48,000 --> 16:11:50,596 reverse option also use headers as first 23995 16:11:50,596 --> 16:11:52,276 row sometime it may happen that you 23996 16:11:52,276 --> 16:11:54,040 bring in the data and you don't have 23997 16:11:54,040 --> 16:11:56,080 headers it may create the first row as 23998 16:11:56,080 --> 16:11:58,040 header we want to revert it so as of now 23999 16:11:58,040 --> 16:12:00,200 I'm going to use the use first row as 24000 16:12:00,200 --> 16:12:02,596 header so the first row which I have the 24001 16:12:02,596 --> 16:12:04,720 row number one should become the header 24002 16:12:04,720 --> 16:12:06,360 and this is add an additional 24003 16:12:06,360 --> 16:12:08,560 transformation for promote data and 24004 16:12:08,560 --> 16:12:10,880 after the promote data powerb do try to 24005 16:12:10,880 --> 16:12:12,596 change the data type to correct your 24006 16:12:12,596 --> 16:12:15,000 data types automatically and as you can 24007 16:12:15,000 --> 16:12:17,080 see in this step it has automatically 24008 16:12:17,080 --> 16:12:19,080 detected the correct data type so this 24009 16:12:19,080 --> 16:12:20,596 is the additional step which has been 24010 16:12:20,596 --> 16:12:23,040 added and because of this step you now 24011 16:12:23,040 --> 16:12:24,916 have the correct data type and you have 24012 16:12:24,916 --> 16:12:27,956 the correct format 24013 16:12:28,116 --> 16:12:31,400 Also let's now learn the operation merge 24014 16:12:31,400 --> 16:12:33,480 which is basically the operation merge 24015 16:12:33,480 --> 16:12:35,160 what it does it it can join the two 24016 16:12:35,160 --> 16:12:36,880 tables you can use any kind of joint 24017 16:12:36,880 --> 16:12:39,756 like inner joint left join right join 24018 16:12:39,756 --> 16:12:41,596 and anti joints also I'll explain you 24019 16:12:41,596 --> 16:12:43,360 what those are and can combine two 24020 16:12:43,360 --> 16:12:45,436 tables so I have couple of tables which 24021 16:12:45,436 --> 16:12:47,436 I want to merge basically and the merge 24022 16:12:47,436 --> 16:12:49,276 is basically the you matches the rows 24023 16:12:49,276 --> 16:12:50,840 and then you merge it's not up and one 24024 16:12:50,840 --> 16:12:52,520 below each other that's not the merge 24025 16:12:52,520 --> 16:12:54,400 here so merge here is basically you join 24026 16:12:54,400 --> 16:12:56,116 them so what you call in the SQL joining 24027 16:12:56,116 --> 16:12:58,080 two tables using the joins here actually 24028 16:12:58,080 --> 16:13:00,116 we going to create a new table or new 24029 16:13:00,116 --> 16:13:02,040 query when we join them in the power 24030 16:13:02,040 --> 16:13:04,080 query you usually call it query when we 24031 16:13:04,080 --> 16:13:06,916 join and execute so I basically have two 24032 16:13:06,916 --> 16:13:08,596 tables here the first table is master 24033 16:13:08,596 --> 16:13:10,320 table it's not true Master it has couple 24034 16:13:10,320 --> 16:13:12,080 of duplicates and I have knowingly kept 24035 16:13:12,080 --> 16:13:13,520 those duplicate that what impact 24036 16:13:13,520 --> 16:13:15,400 duplicates can have pay attention to the 24037 16:13:15,400 --> 16:13:18,520 category IDs which we have 1 2 3 and 5 24038 16:13:18,520 --> 16:13:19,880 the second table which I have is the 24039 16:13:19,880 --> 16:13:21,796 detailed table along with which I want 24040 16:13:21,796 --> 16:13:23,636 to merge this pay attention to the 24041 16:13:23,636 --> 16:13:27,756 category IDs 1 2 3 and four so five is 24042 16:13:27,756 --> 16:13:29,756 there which is not here and four is here 24043 16:13:29,756 --> 16:13:31,596 which is not there and I have kept it 24044 16:13:31,596 --> 16:13:33,680 for a purpose and category ID 1 is 24045 16:13:33,680 --> 16:13:35,720 repeating here or couple of rows 24046 16:13:35,720 --> 16:13:38,000 category ID 2 is repeating but not going 24047 16:13:38,000 --> 16:13:40,040 to play such a major role because it is 24048 16:13:40,040 --> 16:13:41,636 expected in the detail it is repeating 24049 16:13:41,636 --> 16:13:43,796 but the one is repeating in the master 24050 16:13:43,796 --> 16:13:45,720 also so now let's start our journey we 24051 16:13:45,720 --> 16:13:47,400 can click on any of these tables I'll 24052 16:13:47,400 --> 16:13:49,360 start by clicking on Master go to the 24053 16:13:49,360 --> 16:13:52,276 Home tab and use merge queries I will 24054 16:13:52,276 --> 16:13:54,000 use this down arrow because it giv me 24055 16:13:54,000 --> 16:13:55,916 two options merge queries and merge 24056 16:13:55,916 --> 16:13:58,160 queries as new if I use merge query it 24057 16:13:58,160 --> 16:13:59,720 the data would be merged in this current 24058 16:13:59,720 --> 16:14:01,796 table but I would like to use merge 24059 16:14:01,796 --> 16:14:04,200 queries as new this will allow me to 24060 16:14:04,200 --> 16:14:05,956 create new tables and I'll keep on 24061 16:14:05,956 --> 16:14:07,520 explaining you different kind of joints 24062 16:14:07,520 --> 16:14:09,636 merge queries as new master table we got 24063 16:14:09,636 --> 16:14:12,200 it let's click on detail table how do we 24064 16:14:12,200 --> 16:14:14,756 join click on category ID and go and 24065 16:14:14,756 --> 16:14:16,520 click on cat ID if you have multiple 24066 16:14:16,520 --> 16:14:18,840 columns assume you have then Control 24067 16:14:18,840 --> 16:14:21,116 Plus click will give you the options so 24068 16:14:21,116 --> 16:14:22,636 here again Control Plus click you want 24069 16:14:22,636 --> 16:14:25,080 to remove again control and click so I 24070 16:14:25,080 --> 16:14:27,160 only want to do one so I'm doing only on 24071 16:14:27,160 --> 16:14:29,040 one column but you can do it on multiple 24072 16:14:29,040 --> 16:14:30,840 columns the first join I want to do is 24073 16:14:30,840 --> 16:14:32,596 inner join and what does the inner join 24074 16:14:32,596 --> 16:14:34,636 do only matching columns whatever rows 24075 16:14:34,636 --> 16:14:36,680 are matching it is going to do that once 24076 16:14:36,680 --> 16:14:38,636 after selecting this I'll click on after 24077 16:14:38,636 --> 16:14:40,756 selecting this I'll click on okay it is 24078 16:14:40,756 --> 16:14:42,276 showing how much is matching and 24079 16:14:42,276 --> 16:14:43,596 definitely not everything is going to 24080 16:14:43,596 --> 16:14:45,360 match because we have some missing IDs 24081 16:14:45,360 --> 16:14:47,116 on both sides so let me click on okay 24082 16:14:47,116 --> 16:14:48,480 and as you can see it has given me a 24083 16:14:48,480 --> 16:14:50,636 table and right away in the table table 24084 16:14:50,636 --> 16:14:52,080 first is going to be complete and table 24085 16:14:52,080 --> 16:14:53,956 two we need to expand but you can see 24086 16:14:53,956 --> 16:14:56,000 the missing id5 here let me expand and 24087 16:14:56,000 --> 16:14:57,520 see does it make it any difference so 24088 16:14:57,520 --> 16:14:59,116 when I expand it it ask me what all you 24089 16:14:59,116 --> 16:15:01,040 want right now I can choose to get 24090 16:15:01,040 --> 16:15:03,276 everything and also I'll uncheck this 24091 16:15:03,276 --> 16:15:04,720 because this is going to prefix the 24092 16:15:04,720 --> 16:15:06,520 table name otherwise so I'll uncheck 24093 16:15:06,520 --> 16:15:09,480 this use original column name as prefix 24094 16:15:09,480 --> 16:15:12,080 so I got this data now if you see here 24095 16:15:12,080 --> 16:15:15,436 observe this the cat ID one is now four 24096 16:15:15,436 --> 16:15:17,160 rows two from the header and two from 24097 16:15:17,160 --> 16:15:18,880 the detail so it became four cartisian 24098 16:15:18,880 --> 16:15:21,160 product is happening 2x two so that is 24099 16:15:21,160 --> 16:15:22,680 why we our master table should never 24100 16:15:22,680 --> 16:15:24,520 have duplicate we could have done remove 24101 16:15:24,520 --> 16:15:26,720 duplicate before this now this is inner 24102 16:15:26,720 --> 16:15:28,400 join and because of the inner join we 24103 16:15:28,400 --> 16:15:30,840 have lost four and five four in the 24104 16:15:30,840 --> 16:15:32,480 details and five in the header now let's 24105 16:15:32,480 --> 16:15:34,636 go back and let me rename this table 24106 16:15:34,636 --> 16:15:36,360 first of all double click or right click 24107 16:15:36,360 --> 16:15:38,880 rename inner join as you might have 24108 16:15:38,880 --> 16:15:40,720 observed that this has not added a step 24109 16:15:40,720 --> 16:15:42,720 it means this thing cannot be reverted 24110 16:15:42,720 --> 16:15:44,360 now let's go back to the master again 24111 16:15:44,360 --> 16:15:46,680 follow the same flow merge queries merge 24112 16:15:46,680 --> 16:15:48,880 queries as new master table is already 24113 16:15:48,880 --> 16:15:51,360 there select the detail table category 24114 16:15:51,360 --> 16:15:53,400 ID cat ID and this time we are going to 24115 16:15:53,400 --> 16:15:55,240 do left joint what does left joint means 24116 16:15:55,240 --> 16:15:57,080 all from the first and matching from the 24117 16:15:57,080 --> 16:15:59,116 second so whatever is matching and if 24118 16:15:59,116 --> 16:16:00,720 there are multiple rows getting 24119 16:16:00,720 --> 16:16:02,080 generated because of that it will 24120 16:16:02,080 --> 16:16:04,200 generate that but whatever is left out 24121 16:16:04,200 --> 16:16:06,040 which is not joined if it is part of the 24122 16:16:06,040 --> 16:16:08,160 table one it will bring that and all 24123 16:16:08,160 --> 16:16:10,200 those corresponding value from the table 24124 16:16:10,200 --> 16:16:12,200 two would be null for that so that's 24125 16:16:12,200 --> 16:16:14,080 left joint from you all from the first 24126 16:16:14,080 --> 16:16:15,636 and matching from the second it is 24127 16:16:15,636 --> 16:16:17,080 showing how much match you're going to 24128 16:16:17,080 --> 16:16:19,680 get and let me click on okay now again 24129 16:16:19,680 --> 16:16:21,720 we get the first table columns and 24130 16:16:21,720 --> 16:16:24,200 expansion for details I'll expand it and 24131 16:16:24,200 --> 16:16:26,400 let me click on okay it has unchecked 24132 16:16:26,400 --> 16:16:27,916 that because last time I unchecked so it 24133 16:16:27,916 --> 16:16:29,596 will remain unchecked and let me click 24134 16:16:29,596 --> 16:16:31,636 on okay now and as you can see we got 24135 16:16:31,636 --> 16:16:33,636 category ID five from the header for 24136 16:16:33,636 --> 16:16:35,160 which we don't have any corresponding 24137 16:16:35,160 --> 16:16:37,360 data in details but because of the left 24138 16:16:37,360 --> 16:16:39,480 join it is coming in let's rename this 24139 16:16:39,480 --> 16:16:41,880 table as left join right click rename 24140 16:16:41,880 --> 16:16:44,720 left join let's go back again to the 24141 16:16:44,720 --> 16:16:46,880 master table merge queries merge queries 24142 16:16:46,880 --> 16:16:48,720 as new master table let's take the 24143 16:16:48,720 --> 16:16:51,756 detail table category ID cat ID the join 24144 16:16:51,756 --> 16:16:53,796 and right join right join means all from 24145 16:16:53,796 --> 16:16:55,596 second so the missing ID so the 24146 16:16:55,596 --> 16:16:57,360 additional ID four is going to come now 24147 16:16:57,360 --> 16:16:59,116 but we will miss five because five is on 24148 16:16:59,116 --> 16:17:00,480 the left hand side but what we are 24149 16:17:00,480 --> 16:17:02,360 saying all the matching things will come 24150 16:17:02,360 --> 16:17:04,116 from the details plus additionally 24151 16:17:04,116 --> 16:17:05,796 whatever the details contain that will 24152 16:17:05,796 --> 16:17:07,796 also come let me click on okay now this 24153 16:17:07,796 --> 16:17:09,880 time you start seeing a null row already 24154 16:17:09,880 --> 16:17:11,000 it means there's something which is 24155 16:17:11,000 --> 16:17:13,040 coming for which we don't have a value 24156 16:17:13,040 --> 16:17:14,916 in the left hand side of the table table 24157 16:17:14,916 --> 16:17:17,040 on the top is here in the left I expand 24158 16:17:17,040 --> 16:17:19,116 the details using this expand icon I'll 24159 16:17:19,116 --> 16:17:20,796 include all the column just press okay 24160 16:17:20,796 --> 16:17:23,240 and as you can see we have one row where 24161 16:17:23,240 --> 16:17:25,200 we have category ID 4 which was not 24162 16:17:25,200 --> 16:17:27,360 present in our table the master table 24163 16:17:27,360 --> 16:17:29,520 let me rename this right join let's do 24164 16:17:29,520 --> 16:17:31,596 the journey again merge queries merge 24165 16:17:31,596 --> 16:17:34,680 queries as new master table detail table 24166 16:17:34,680 --> 16:17:36,796 category ID cat ID and this time we'll 24167 16:17:36,796 --> 16:17:38,720 use full join from both matching will 24168 16:17:38,720 --> 16:17:40,560 match and whatever is not going to match 24169 16:17:40,560 --> 16:17:42,116 from both the tables is going to come 24170 16:17:42,116 --> 16:17:43,560 and again it showing what is matching 24171 16:17:43,560 --> 16:17:45,480 what is not matching let's click on okay 24172 16:17:45,480 --> 16:17:47,116 you see a blank row you see category 24173 16:17:47,116 --> 16:17:49,636 five also expand once you expand you can 24174 16:17:49,636 --> 16:17:51,320 get all the column in and you will see 24175 16:17:51,320 --> 16:17:53,796 now both the rows one from the left side 24176 16:17:53,796 --> 16:17:56,480 having blank because category ID 4 only 24177 16:17:56,480 --> 16:17:58,840 exist in second table one having Blanks 24178 16:17:58,840 --> 16:18:00,596 on the right hand side no blank on the 24179 16:18:00,596 --> 16:18:02,796 left because Category 5 does not exist 24180 16:18:02,796 --> 16:18:04,636 in the detail table so this is full 24181 16:18:04,636 --> 16:18:06,320 outer joint for you or full joint for 24182 16:18:06,320 --> 16:18:08,160 you let's rename this as full joint 24183 16:18:08,160 --> 16:18:10,480 double click rename let's continue to 24184 16:18:10,480 --> 16:18:12,436 now two interesting kind of joins click 24185 16:18:12,436 --> 16:18:14,596 on master table merge query down arrow 24186 16:18:14,596 --> 16:18:17,756 merge query as new master details 24187 16:18:17,756 --> 16:18:19,796 category ID cat ID and the most 24188 16:18:19,796 --> 16:18:21,596 interesting join which we could use is 24189 16:18:21,596 --> 16:18:23,560 left ENT and right ENT let me use left 24190 16:18:23,560 --> 16:18:25,596 ENT this time row on only from first 24191 16:18:25,596 --> 16:18:28,880 something which exist in the table one 24192 16:18:28,880 --> 16:18:31,240 or the table on the left hand side which 24193 16:18:31,240 --> 16:18:33,240 is not present in the right hand side 24194 16:18:33,240 --> 16:18:35,840 table is typically category id5 which is 24195 16:18:35,840 --> 16:18:38,000 not matching is going to come that two 24196 16:18:38,000 --> 16:18:40,320 for the left table so non-matching rows 24197 16:18:40,320 --> 16:18:42,720 is come if you remember we have 24198 16:18:42,720 --> 16:18:45,596 something known as except or minus set 24199 16:18:45,596 --> 16:18:48,000 operation something which is present in 24200 16:18:48,000 --> 16:18:50,916 the table one or table a and not present 24201 16:18:50,916 --> 16:18:54,080 in table two or table B so you will see 24202 16:18:54,080 --> 16:18:56,040 we are having the category 5 row is 24203 16:18:56,040 --> 16:18:57,400 coming in and we know there's not going 24204 16:18:57,400 --> 16:18:59,116 to be any match data in the details but 24205 16:18:59,116 --> 16:19:00,880 anyway we can expand and check it out 24206 16:19:00,880 --> 16:19:02,200 actually after this join there is no 24207 16:19:02,200 --> 16:19:03,880 benefit of expanding but to understand 24208 16:19:03,880 --> 16:19:05,880 this we have expanded it so this is left 24209 16:19:05,880 --> 16:19:08,000 ENT now let's go back to the master 24210 16:19:08,000 --> 16:19:10,956 again and try the last join we wanted to 24211 16:19:10,956 --> 16:19:12,880 have in the Marge queries Marge queries 24212 16:19:12,880 --> 16:19:15,880 as new and we are going to try write ENT 24213 16:19:15,880 --> 16:19:17,720 with the detail table so master in 24214 16:19:17,720 --> 16:19:20,916 detail category ID cat ID right and join 24215 16:19:20,916 --> 16:19:22,956 only the rows available at the right 24216 16:19:22,956 --> 16:19:25,400 table the bottom table here in this case 24217 16:19:25,400 --> 16:19:27,480 whatever is only available in this table 24218 16:19:27,480 --> 16:19:29,360 which is not matching with the master 24219 16:19:29,360 --> 16:19:31,436 table is going to come here let's click 24220 16:19:31,436 --> 16:19:33,796 on okay it shows one row with a blank 24221 16:19:33,796 --> 16:19:35,840 and when we expand the detail we will 24222 16:19:35,840 --> 16:19:38,560 see category ID 4 coming in here and 24223 16:19:38,560 --> 16:19:41,240 there is no data on the left for that so 24224 16:19:41,240 --> 16:19:43,480 the row which is not having a matching 24225 16:19:43,480 --> 16:19:45,720 data which is on the right hand side is 24226 16:19:45,720 --> 16:19:48,200 coming here and that is right anti joint 24227 16:19:48,200 --> 16:19:49,720 for you let's 24228 16:19:49,720 --> 16:19:52,160 rename you can use these Marge to 24229 16:19:52,160 --> 16:19:54,436 combine the tables in powerbi we prefer 24230 16:19:54,436 --> 16:19:56,160 start star schema and sometime you may 24231 16:19:56,160 --> 16:19:58,596 come across a situation where the tables 24232 16:19:58,596 --> 16:20:01,200 are not in Star schema in such cases you 24233 16:20:01,200 --> 16:20:03,276 can use power query to create star 24234 16:20:03,276 --> 16:20:05,596 schema if required sometime you may want 24235 16:20:05,596 --> 16:20:07,916 to duplicate the tables to do that 24236 16:20:07,916 --> 16:20:09,956 because in the star schema facts are 24237 16:20:09,956 --> 16:20:11,720 self-sufficient so let's say you have a 24238 16:20:11,720 --> 16:20:13,796 header table header act as a dimension 24239 16:20:13,796 --> 16:20:15,240 as well as it need to be merged with the 24240 16:20:15,240 --> 16:20:17,240 detailed table in such cases you can 24241 16:20:17,240 --> 16:20:19,436 duplicate the table and use it so how do 24242 16:20:19,436 --> 16:20:21,436 we duplicate click on any of the table 24243 16:20:21,436 --> 16:20:23,080 let's say I have this detailed table I 24244 16:20:23,080 --> 16:20:24,840 want to duplicate it right click 24245 16:20:24,840 --> 16:20:26,916 duplicate don't use reference it going 24246 16:20:26,916 --> 16:20:28,596 to reference that so you can call it as 24247 16:20:28,596 --> 16:20:31,276 detail 2 it's getting duplicated and 24248 16:20:31,276 --> 16:20:34,560 then you can do your Marge 24249 16:20:36,320 --> 16:20:39,916 operations we had this detailed table 24250 16:20:39,916 --> 16:20:41,596 and we duplicated and created another 24251 16:20:41,596 --> 16:20:44,116 detail table to let me go ahead and add 24252 16:20:44,116 --> 16:20:46,040 one more column here how do we add a 24253 16:20:46,040 --> 16:20:49,436 column we can simply add some formula or 24254 16:20:49,436 --> 16:20:52,080 I can split it or to add a column or I 24255 16:20:52,080 --> 16:20:54,680 can duplicate it so you can right click 24256 16:20:54,680 --> 16:20:57,840 and duplicate a column and let me call 24257 16:20:57,840 --> 16:21:00,200 it as a name Tool and why am I'm doing 24258 16:21:00,200 --> 16:21:01,796 this I want to show you something known 24259 16:21:01,796 --> 16:21:04,160 as operation upend Operation now upend 24260 16:21:04,160 --> 16:21:05,916 operation is typically you want to Union 24261 16:21:05,916 --> 16:21:08,240 the data you want to combine that so the 24262 16:21:08,240 --> 16:21:09,956 operation which is upend here is kind of 24263 16:21:09,956 --> 16:21:11,520 a union all mean it's just going to 24264 16:21:11,520 --> 16:21:13,840 append the rules second is unlike the 24265 16:21:13,840 --> 16:21:17,000 SQL Union or the Dex Union where you 24266 16:21:17,000 --> 16:21:18,756 need the same size of the table or the 24267 16:21:18,756 --> 16:21:21,400 same number of columns in the table it's 24268 16:21:21,400 --> 16:21:23,636 not necessary and that is why when I had 24269 16:21:23,636 --> 16:21:25,160 a detail and detailed I just 24270 16:21:25,160 --> 16:21:27,436 additionally added a column in the click 24271 16:21:27,436 --> 16:21:29,916 on any of the column click on any of the 24272 16:21:29,916 --> 16:21:31,720 table and then go to append again you 24273 16:21:31,720 --> 16:21:34,400 have two options upend queries and upend 24274 16:21:34,400 --> 16:21:36,240 queries as new so what I want to do here 24275 16:21:36,240 --> 16:21:37,720 is basically I want to use the append 24276 16:21:37,720 --> 16:21:39,880 queries as 24277 16:21:39,880 --> 16:21:43,480 new so let me use append queries as new 24278 16:21:43,480 --> 16:21:45,116 now detail is the first table if you 24279 16:21:45,116 --> 16:21:46,480 have three or more you can use this 24280 16:21:46,480 --> 16:21:48,956 particular UI for two tables you can use 24281 16:21:48,956 --> 16:21:50,596 this UI first table and you can select 24282 16:21:50,596 --> 16:21:52,400 the second table and the second table 24283 16:21:52,400 --> 16:21:53,756 which I wanted to select is basically 24284 16:21:53,756 --> 16:21:56,596 the details table details table and 24285 16:21:56,596 --> 16:22:00,276 details two table let's click on 24286 16:22:01,040 --> 16:22:03,400 okay and as you can see that the both 24287 16:22:03,400 --> 16:22:05,636 the tables are appended one after 24288 16:22:05,636 --> 16:22:07,796 another one they just comb just 24289 16:22:07,796 --> 16:22:09,720 combining the tables with all the 24290 16:22:09,720 --> 16:22:11,400 possible column there's no deletion of 24291 16:22:11,400 --> 16:22:13,720 duplicate here and definitely I have now 24292 16:22:13,720 --> 16:22:15,116 created a new additional column so it's 24293 16:22:15,116 --> 16:22:17,480 not going to delete any duplicates as 24294 16:22:17,480 --> 16:22:19,400 you know we have removed duplicate 24295 16:22:19,400 --> 16:22:21,880 option in case we wanted to do a union 24296 16:22:21,880 --> 16:22:24,596 all kind of operation we can do that now 24297 16:22:24,596 --> 16:22:27,880 in this case you can see that the 24298 16:22:27,880 --> 16:22:30,240 additional column do have come which is 24299 16:22:30,240 --> 16:22:33,480 part of only one table and the rows are 24300 16:22:33,480 --> 16:22:35,400 blank for the table for which it was not 24301 16:22:35,400 --> 16:22:36,756 available and the other table where it 24302 16:22:36,756 --> 16:22:39,840 was available it has come now post 24303 16:22:39,840 --> 16:22:42,400 this if you want to delete duplicate now 24304 16:22:42,400 --> 16:22:44,596 the delete duplicate can happen based on 24305 16:22:44,596 --> 16:22:47,080 ID column or based on the complete table 24306 16:22:47,080 --> 16:22:48,276 now here I would like to delete the 24307 16:22:48,276 --> 16:22:50,080 duplicate based on the ID column I can 24308 16:22:50,080 --> 16:22:52,520 click on the ID column I can go to 24309 16:22:52,520 --> 16:22:56,000 remove rows and remove duplicates so I'm 24310 16:22:56,000 --> 16:22:59,276 trying to do kind of a union operation 24311 16:22:59,276 --> 16:23:01,680 in the SQL world where you actually 24312 16:23:01,680 --> 16:23:03,160 don't have duplicates now in this case 24313 16:23:03,160 --> 16:23:05,200 definitely it has taken a decision to 24314 16:23:05,200 --> 16:23:07,880 take some set of columns from the of the 24315 16:23:07,880 --> 16:23:10,636 tables when there are multiple values 24316 16:23:10,636 --> 16:23:12,400 available so in this case this has taken 24317 16:23:12,400 --> 16:23:14,560 the name to where the null values are 24318 16:23:14,560 --> 16:23:16,320 there you can append you can remove 24319 16:23:16,320 --> 16:23:18,436 duplicates and create a union or Union 24320 16:23:18,436 --> 16:23:22,160 all kind of a scenario based on the 24321 16:23:22,160 --> 16:23:25,160 requirement let's learn how to create a 24322 16:23:25,160 --> 16:23:27,680 custom column in power query and for 24323 16:23:27,680 --> 16:23:29,200 that what I'm going to do is I'm going 24324 16:23:29,200 --> 16:23:32,436 to add the same file here the sales file 24325 16:23:32,436 --> 16:23:34,880 which we have used and the reason for 24326 16:23:34,880 --> 16:23:37,040 that is basically because I want to show 24327 16:23:37,040 --> 16:23:38,720 you the same formula which we created 24328 16:23:38,720 --> 16:23:41,560 there so let me go to the github.com and 24329 16:23:41,560 --> 16:23:43,000 in GitHub this is the file which we are 24330 16:23:43,000 --> 16:23:45,520 using say data used in video right click 24331 16:23:45,520 --> 16:23:48,116 on the raw copy link come back to the 24332 16:23:48,116 --> 16:23:50,116 powerb and now I'll tell you directly 24333 16:23:50,116 --> 16:23:52,916 from the power query under the Home tab 24334 16:23:52,916 --> 16:23:54,840 if you click on the new source you will 24335 16:23:54,840 --> 16:23:57,320 be able to add new sources from here go 24336 16:23:57,320 --> 16:24:00,636 to new sources click on web which is 24337 16:24:00,636 --> 16:24:03,116 available directly into the menu give 24338 16:24:03,116 --> 16:24:05,720 the URL click on 24339 16:24:05,720 --> 16:24:08,756 okay and I load only the sales 24340 16:24:08,756 --> 16:24:11,400 here and now you don't see the button of 24341 16:24:11,400 --> 16:24:12,840 load data and transform data this is 24342 16:24:12,840 --> 16:24:15,520 only okay button because when we opened 24343 16:24:15,520 --> 16:24:18,880 it from Power query it's going to put us 24344 16:24:18,880 --> 16:24:21,520 back onto the transform data mode only 24345 16:24:21,520 --> 16:24:23,840 because it has put us into the transform 24346 16:24:23,840 --> 16:24:25,916 data mode it is not asking for the 24347 16:24:25,916 --> 16:24:27,520 option whether you want to load the data 24348 16:24:27,520 --> 16:24:29,436 or transform the data so we have to 24349 16:24:29,436 --> 16:24:31,160 transform the data sometime we may get 24350 16:24:31,160 --> 16:24:32,400 this kind of error you can simply 24351 16:24:32,400 --> 16:24:33,956 refresh now if you remember we created 24352 16:24:33,956 --> 16:24:35,680 few columns there so same column we 24353 16:24:35,680 --> 16:24:37,080 wanted to create here we will take one 24354 16:24:37,080 --> 16:24:39,480 or two example of such columns and also 24355 16:24:39,480 --> 16:24:41,240 create some different kind of new custom 24356 16:24:41,240 --> 16:24:43,276 column so once you are on the table you 24357 16:24:43,276 --> 16:24:45,916 can go to add columns and inside the add 24358 16:24:45,916 --> 16:24:47,840 column you have column from example 24359 16:24:47,840 --> 16:24:49,796 custom column invoke function 24360 16:24:49,796 --> 16:24:51,880 conditional column index column now the 24361 16:24:51,880 --> 16:24:53,240 first of let's learn index column what 24362 16:24:53,240 --> 16:24:54,436 is the index column sometimes what 24363 16:24:54,436 --> 16:24:55,956 happens you are bringing in a table and 24364 16:24:55,956 --> 16:24:57,840 you don't have row numbers and row 24365 16:24:57,840 --> 16:25:00,160 number is required sometime because I 24366 16:25:00,160 --> 16:25:02,560 want to create it as a dimension means I 24367 16:25:02,560 --> 16:25:04,720 I went ahead and I remove the duplicate 24368 16:25:04,720 --> 16:25:06,560 and I created a dimension I need a 24369 16:25:06,560 --> 16:25:08,080 unique number then how do I do that I 24370 16:25:08,080 --> 16:25:09,560 can add index column sometime you 24371 16:25:09,560 --> 16:25:11,200 require row number just because in a 24372 16:25:11,200 --> 16:25:13,320 visual you want to display and power 24373 16:25:13,320 --> 16:25:15,400 always summarized so you need one unsm 24374 16:25:15,400 --> 16:25:17,560 column so in that case you can add index 24375 16:25:17,560 --> 16:25:19,720 column so you can add index column from 24376 16:25:19,720 --> 16:25:21,720 zero or from one or you can even modify 24377 16:25:21,720 --> 16:25:23,560 it so I added an index column it is a 24378 16:25:23,560 --> 16:25:26,040 unique rule number column for me I can 24379 16:25:26,040 --> 16:25:27,796 decide from where it should start how 24380 16:25:27,796 --> 16:25:29,560 much increment it should have so if I 24381 16:25:29,560 --> 16:25:31,520 want let's say two to increment I can 24382 16:25:31,520 --> 16:25:34,400 make it two what would happen here is it 24383 16:25:34,400 --> 16:25:36,596 will become odd numbers I want to start 24384 16:25:36,596 --> 16:25:38,916 it from let's say three I can make it 24385 16:25:38,916 --> 16:25:41,756 three and it will start from 24386 16:25:41,756 --> 16:25:44,160 three these changes I can do let me make 24387 16:25:44,160 --> 16:25:46,840 it one and one now this is one type of 24388 16:25:46,840 --> 16:25:48,276 custom column let's go ahead and add 24389 16:25:48,276 --> 16:25:49,756 another kind of custom column which is 24390 16:25:49,756 --> 16:25:52,276 basically custom column B what I want to 24391 16:25:52,276 --> 16:25:54,276 gross what is my definition of gross is 24392 16:25:54,276 --> 16:25:58,000 quantity multiply by price now here uh 24393 16:25:58,000 --> 16:25:59,596 we have no option to select the data 24394 16:25:59,596 --> 16:26:01,636 type but in the power query online 24395 16:26:01,636 --> 16:26:03,320 version the data flows we are getting 24396 16:26:03,320 --> 16:26:05,276 that option to select the data types 24397 16:26:05,276 --> 16:26:06,796 here we don't have so let's click on 24398 16:26:06,796 --> 16:26:09,116 okay and you will see it doesn't take a 24399 16:26:09,116 --> 16:26:10,796 data type here so what I can do is 24400 16:26:10,796 --> 16:26:12,956 whatever data type I want I can give 24401 16:26:12,956 --> 16:26:15,240 that as a last argument so be on that 24402 16:26:15,240 --> 16:26:18,200 step put a comma and use type let's say 24403 16:26:18,200 --> 16:26:20,956 I want in 64 or decimal so here I can 24404 16:26:20,956 --> 16:26:24,200 give type number on numeric and let's 24405 16:26:24,200 --> 16:26:25,916 try this out and it has become the 24406 16:26:25,916 --> 16:26:27,480 number data type so in this manner if 24407 16:26:27,480 --> 16:26:28,840 you remember the type you can give the 24408 16:26:28,840 --> 16:26:31,400 type otherwise you have to use the 24409 16:26:31,400 --> 16:26:33,116 option here you click on this number 24410 16:26:33,116 --> 16:26:35,000 column or ABC what was written and you 24411 16:26:35,000 --> 16:26:36,520 choose the data type and it will add a 24412 16:26:36,520 --> 16:26:39,080 step for that to avoid the step I simply 24413 16:26:39,080 --> 16:26:41,080 written type number because I remember 24414 16:26:41,080 --> 16:26:42,636 that it can be added like a number same 24415 16:26:42,636 --> 16:26:44,040 way you can add another custom column 24416 16:26:44,040 --> 16:26:46,636 for cogs and that is nothing but 24417 16:26:46,636 --> 16:26:49,160 quantity multiply by cost now you can if 24418 16:26:49,160 --> 16:26:51,040 you use this here you click on this 24419 16:26:51,040 --> 16:26:53,000 number column or ABC what was written 24420 16:26:53,000 --> 16:26:54,956 and you choose the data type see it add 24421 16:26:54,956 --> 16:26:57,680 additional step but that is why just to 24422 16:26:57,680 --> 16:27:00,200 avoid this additional step I had this 24423 16:27:00,200 --> 16:27:03,080 script I can remove 24424 16:27:03,080 --> 16:27:05,436 this and go ahead and put a comma and 24425 16:27:05,436 --> 16:27:06,880 put the third argument which is not 24426 16:27:06,880 --> 16:27:08,596 available 24427 16:27:08,596 --> 16:27:10,840 here now the new column which you 24428 16:27:10,840 --> 16:27:12,596 created you can again use them in 24429 16:27:12,596 --> 16:27:14,680 creation of columns like discount amount 24430 16:27:14,680 --> 16:27:16,596 you can go here and create discount 24431 16:27:16,596 --> 16:27:18,560 amount you can use the column which is 24432 16:27:18,560 --> 16:27:20,636 previously created which is nothing but 24433 16:27:20,636 --> 16:27:22,596 gross multiplied by discount percentage 24434 16:27:22,596 --> 16:27:25,796 divide by 100 if you remember 24435 16:27:25,796 --> 16:27:27,560 the discount percentage is absolute and 24436 16:27:27,560 --> 16:27:30,480 that is why we need to divide it by 100 24437 16:27:30,480 --> 16:27:33,240 again I can change the data type now if 24438 16:27:33,240 --> 16:27:34,840 you want to create a conditional column 24439 16:27:34,840 --> 16:27:36,360 you have option here to create a 24440 16:27:36,360 --> 16:27:38,796 conditional column so you can click on 24441 16:27:38,796 --> 16:27:40,320 that and you can write down a 24442 16:27:40,320 --> 16:27:43,400 conditional script so if let's say sales 24443 16:27:43,400 --> 16:27:47,520 date equals or less than equal to or is 24444 16:27:47,520 --> 16:27:51,436 after we say before what date we say 24445 16:27:51,436 --> 16:27:55,276 okay it is before 2019 24446 16:27:56,596 --> 16:27:58,080 let's go by 24447 16:27:58,080 --> 16:28:01,636 years now go by month Double Arrow take 24448 16:28:01,636 --> 16:28:06,436 years is before 1 January 2019 then one 24449 16:28:06,436 --> 16:28:09,400 else zero so Data before 2019 and after 24450 16:28:09,400 --> 16:28:11,636 2019 so you can create a conditional 24451 16:28:11,636 --> 16:28:14,720 column so it will give you values and 24452 16:28:14,720 --> 16:28:16,480 what all values we have if you they are 24453 16:28:16,480 --> 16:28:17,956 not loading we can click on load so we 24454 16:28:17,956 --> 16:28:20,400 have both one and zero values depending 24455 16:28:20,400 --> 16:28:22,400 on the dates we will have value it will 24456 16:28:22,400 --> 16:28:25,080 always load a sample side of hous and 24457 16:28:25,080 --> 16:28:26,680 rows and based on that it will do the 24458 16:28:26,680 --> 16:28:29,796 column profiling here at the end if you 24459 16:28:29,796 --> 16:28:32,160 see but if you want all the rows you can 24460 16:28:32,160 --> 16:28:34,636 actually click here and you can use on 24461 16:28:34,636 --> 16:28:36,436 entire data set it is especially useful 24462 16:28:36,436 --> 16:28:38,520 when you go to the view and you do this 24463 16:28:38,520 --> 16:28:40,680 column distribution column profiling 24464 16:28:40,680 --> 16:28:42,880 then you can use that now again I can 24465 16:28:42,880 --> 16:28:44,880 change the data type but right now I'm 24466 16:28:44,880 --> 16:28:46,796 leaving that now I can add this column 24467 16:28:46,796 --> 16:28:48,680 manually also actually I can go to the 24468 16:28:48,680 --> 16:28:50,080 custom column and I can write down the 24469 16:28:50,080 --> 16:28:52,796 condition of my choice so let's say test 24470 16:28:52,796 --> 16:28:58,200 if quantity equals to one then unit one 24471 16:28:58,200 --> 16:29:01,116 else many so I'm saying if quantity is 24472 16:29:01,116 --> 16:29:03,200 equal to one then one else many this 24473 16:29:03,200 --> 16:29:04,680 kind of condition I can give and I can 24474 16:29:04,680 --> 16:29:08,756 have multiple if else to create complex 24475 16:29:08,756 --> 16:29:11,436 conditions so one and many one and many 24476 16:29:11,436 --> 16:29:12,796 usually I have quantity one two and 24477 16:29:12,796 --> 16:29:14,840 three so I'll get one and many for many 24478 16:29:14,840 --> 16:29:16,400 for two and three I'll get in this 24479 16:29:16,400 --> 16:29:18,160 manner you can create quite a few custom 24480 16:29:18,160 --> 16:29:20,520 columns now some cases you have this 24481 16:29:20,520 --> 16:29:23,116 additional column which you can create 24482 16:29:23,116 --> 16:29:25,116 you can add a column um so you want to 24483 16:29:25,116 --> 16:29:26,596 measure a length let's say you want to 24484 16:29:26,596 --> 16:29:28,796 measure the length of this column but I 24485 16:29:28,796 --> 16:29:30,596 don't want to use a transformation I 24486 16:29:30,596 --> 16:29:31,840 don't want to change this column I want 24487 16:29:31,840 --> 16:29:33,956 a new column you can go to extract and 24488 16:29:33,956 --> 16:29:36,160 say length so it will actually give you 24489 16:29:36,160 --> 16:29:38,360 the length of this column same way other 24490 16:29:38,360 --> 16:29:40,040 operation on length like first character 24491 16:29:40,040 --> 16:29:42,320 last character range text before delimer 24492 16:29:42,320 --> 16:29:45,080 text after delimer text between delim so 24493 16:29:45,080 --> 16:29:47,000 what happens in all such cases it will 24494 16:29:47,000 --> 16:29:49,320 actually go ahead and add a new column 24495 16:29:49,320 --> 16:29:51,200 so instead of transforming the current 24496 16:29:51,200 --> 16:29:52,476 column sometimes you don't want to 24497 16:29:52,476 --> 16:29:53,596 transform the current column you 24498 16:29:53,596 --> 16:29:55,040 actually want the information in the 24499 16:29:55,040 --> 16:29:57,240 next column so this is really helpful 24500 16:29:57,240 --> 16:29:59,916 here same way for parsing if you have a 24501 16:29:59,916 --> 16:30:02,200 XML or Json column you can par and other 24502 16:30:02,200 --> 16:30:04,560 one you can like format like I want this 24503 16:30:04,560 --> 16:30:05,956 upper case or lower case but I don't 24504 16:30:05,956 --> 16:30:07,636 want to transform this column I want a 24505 16:30:07,636 --> 16:30:09,476 new column so I can go ahead and use 24506 16:30:09,476 --> 16:30:11,276 this so this will add a new column just 24507 16:30:11,276 --> 16:30:13,916 for an example let me use this lower 24508 16:30:13,916 --> 16:30:16,080 case and this time instead of making 24509 16:30:16,080 --> 16:30:18,436 this test as lower case it actually 24510 16:30:18,436 --> 16:30:20,840 created a new column lower case in this 24511 16:30:20,840 --> 16:30:22,680 manner you can add custom columns in 24512 16:30:22,680 --> 16:30:25,320 power query so most of the column where 24513 16:30:25,320 --> 16:30:27,160 you require multiplication kind of a 24514 16:30:27,160 --> 16:30:30,040 stuff you can add them in power query 24515 16:30:30,040 --> 16:30:31,476 conditional column you can add them in 24516 16:30:31,476 --> 16:30:33,560 power query other transformation which 24517 16:30:33,560 --> 16:30:35,596 are needed at row level you can pretty 24518 16:30:35,596 --> 16:30:37,476 much do all such columns in power query 24519 16:30:37,476 --> 16:30:38,956 there are formulas which can only be 24520 16:30:38,956 --> 16:30:42,680 done on the aggregated data for that we 24521 16:30:42,680 --> 16:30:44,116 cannot use this one they are better 24522 16:30:44,116 --> 16:30:47,040 suited on measure so there is a option 24523 16:30:47,040 --> 16:30:49,476 of colum by example you can create a new 24524 16:30:49,476 --> 16:30:51,796 column by example how that I'm going to 24525 16:30:51,796 --> 16:30:53,320 give you one example now there could be 24526 16:30:53,320 --> 16:30:55,596 more us is have little complex data also 24527 16:30:55,596 --> 16:30:57,240 you can use it what I'm going to do is 24528 16:30:57,240 --> 16:30:58,880 I'm going to go to this text operation 24529 16:30:58,880 --> 16:31:01,240 table and in this text operation table 24530 16:31:01,240 --> 16:31:04,680 I'll go to a column is my column key to 24531 16:31:04,680 --> 16:31:06,476 I'll right click on that and then there 24532 16:31:06,476 --> 16:31:09,200 is option add column from exam now I'll 24533 16:31:09,200 --> 16:31:11,160 click on this option add column from 24534 16:31:11,160 --> 16:31:14,400 examples and here it is asking example 24535 16:31:14,400 --> 16:31:16,880 let's say I put one one what does it it 24536 16:31:16,880 --> 16:31:19,200 identify it that I am asking for text 24537 16:31:19,200 --> 16:31:21,560 before delimiters and based on that it 24538 16:31:21,560 --> 16:31:24,000 is creating everything like text before 24539 16:31:24,000 --> 16:31:25,840 delimiter let me go ahead and replace 24540 16:31:25,840 --> 16:31:28,360 this with 333 now what is happening it 24541 16:31:28,360 --> 16:31:30,796 now identified that I need text after 24542 16:31:30,796 --> 16:31:32,840 delimiter after which delimer it is 24543 16:31:32,840 --> 16:31:34,916 identifying that I need it after the 24544 16:31:34,916 --> 16:31:36,636 third delimer and that is why you are 24545 16:31:36,636 --> 16:31:39,276 see in the second row it is using 24546 16:31:39,276 --> 16:31:41,636 33355 now the same manner you go and 24547 16:31:41,636 --> 16:31:44,476 type 222 what it will realize is that I 24548 16:31:44,476 --> 16:31:47,040 need Tex between Eliminator hyon and hyp 24549 16:31:47,040 --> 16:31:49,560 creating the next also it is creating to 24550 16:31:49,560 --> 16:31:52,080 and one to one Etc in this manner it is 24551 16:31:52,080 --> 16:31:54,040 identifying that I need X between 24552 16:31:54,040 --> 16:31:56,436 delimiter and it is creating data like 24553 16:31:56,436 --> 16:31:58,040 that now let me click on it would be 24554 16:31:58,040 --> 16:32:00,000 added as a new column and then you can 24555 16:32:00,000 --> 16:32:02,320 look at the formula this formula which 24556 16:32:02,320 --> 16:32:05,756 has been Tex between has been used hyph 24557 16:32:05,756 --> 16:32:08,040 and H So based on the example I try to 24558 16:32:08,040 --> 16:32:09,956 do that operation and based on that 24559 16:32:09,956 --> 16:32:12,560 operation you will now get taex before 24560 16:32:12,560 --> 16:32:14,796 delimiter or Tex after delimiter or 24561 16:32:14,796 --> 16:32:16,360 there could be any other operations 24562 16:32:16,360 --> 16:32:18,400 which has been identified we done here 24563 16:32:18,400 --> 16:32:20,116 these are the various way in which you 24564 16:32:20,116 --> 16:32:23,200 can create a new column in power query 24565 16:32:23,200 --> 16:32:24,756 and once once you are done with those 24566 16:32:24,756 --> 16:32:27,240 columns from the home you can go and 24567 16:32:27,240 --> 16:32:29,680 click on close and apply or simply apply 24568 16:32:29,680 --> 16:32:32,116 and those columns would be added at part 24569 16:32:32,116 --> 16:32:34,200 of your query which will be known as a 24570 16:32:34,200 --> 16:32:37,116 table when we visualization part the 24571 16:32:37,116 --> 16:32:39,360 next operation which we wanted to learn 24572 16:32:39,360 --> 16:32:41,240 is under the transform and that 24573 16:32:41,240 --> 16:32:43,680 operation is basically Group by now the 24574 16:32:43,680 --> 16:32:45,276 group by operation is something which 24575 16:32:45,276 --> 16:32:46,956 can create a group col basically you 24576 16:32:46,956 --> 16:32:48,956 have a complete table and group a data 24577 16:32:48,956 --> 16:32:50,916 at a particular level use this group by 24578 16:32:50,916 --> 16:32:52,360 so basically summarized table or 24579 16:32:52,360 --> 16:32:54,636 aggregated tables if you you can take 24580 16:32:54,636 --> 16:32:56,636 help from group by now you have 24581 16:32:56,636 --> 16:32:58,880 summarize in tax which can do the 24582 16:32:58,880 --> 16:33:00,360 similar job there are other functions 24583 16:33:00,360 --> 16:33:02,276 also like summarize callums the job grp 24584 16:33:02,276 --> 16:33:04,796 by can also do the job so now here in 24585 16:33:04,796 --> 16:33:06,476 power query we are going to use group so 24586 16:33:06,476 --> 16:33:08,200 what I'm going to do is I'm going I'm 24587 16:33:08,200 --> 16:33:09,476 going to click on the sales table and 24588 16:33:09,476 --> 16:33:10,916 after that I'm going to click on group 24589 16:33:10,916 --> 16:33:13,360 buy once I click on the group buy it 24590 16:33:13,360 --> 16:33:15,400 gives me two option basic and advanc in 24591 16:33:15,400 --> 16:33:17,240 basic it is asking for one group buy and 24592 16:33:17,240 --> 16:33:19,720 it is only asking one column now what I 24593 16:33:19,720 --> 16:33:21,560 can do here is basically I can go to the 24594 16:33:21,560 --> 16:33:23,956 Advance the advance I can add grouping 24595 16:33:23,956 --> 16:33:25,400 of my own choice so I can say Okay I 24596 16:33:25,400 --> 16:33:27,240 want to group this data let's say a city 24597 16:33:27,240 --> 16:33:29,520 and then here in the count columns I can 24598 16:33:29,520 --> 16:33:31,476 give a name of the column where the 24599 16:33:31,476 --> 16:33:33,040 count has been written here then I can 24600 16:33:33,040 --> 16:33:35,276 choose the operation sum average median 24601 16:33:35,276 --> 16:33:38,240 min max count rows count District all 24602 16:33:38,240 --> 16:33:41,000 rows Etc we start with a simple example 24603 16:33:41,000 --> 16:33:43,116 we'll say we want to sum here and what I 24604 16:33:43,116 --> 16:33:45,080 would like to sum I want to sum actually 24605 16:33:45,080 --> 16:33:49,240 quantity here now here I'll say sum uty 24606 16:33:49,240 --> 16:33:50,956 so this is the first kind of aggregation 24607 16:33:50,956 --> 16:33:53,240 I want to create now I would like to add 24608 16:33:53,240 --> 16:33:54,880 another then I can go ahead and do it 24609 16:33:54,880 --> 16:33:56,840 let's say I want average price now 24610 16:33:56,840 --> 16:33:58,476 average price is not the best thing to 24611 16:33:58,476 --> 16:34:00,476 have it here but let's go ahead and do 24612 16:34:00,476 --> 16:34:03,840 that so we say average and then we'll 24613 16:34:03,840 --> 16:34:07,200 use so you got a aggregated table now or 24614 16:34:07,200 --> 16:34:09,200 grouped by table now which is now giving 24615 16:34:09,200 --> 16:34:11,636 you g ID sum of quantity and average 24616 16:34:11,636 --> 16:34:14,040 price now you can see the code here 24617 16:34:14,040 --> 16:34:16,720 table. Group by at what it is 24618 16:34:16,720 --> 16:34:20,360 doing so C ID it is grouped on that and 24619 16:34:20,360 --> 16:34:22,720 based on that we have list. sum which is 24620 16:34:22,720 --> 16:34:25,116 used on the some of quantity has been 24621 16:34:25,116 --> 16:34:27,796 done and a of price I can click on the 24622 16:34:27,796 --> 16:34:30,476 setting icon back again here and I 24623 16:34:30,476 --> 16:34:32,360 reached back to the setting again and 24624 16:34:32,360 --> 16:34:33,880 what I can do here is I can say add 24625 16:34:33,880 --> 16:34:35,880 grouping and in this add grouping I can 24626 16:34:35,880 --> 16:34:38,360 let's say I add item ID I want two group 24627 16:34:38,360 --> 16:34:40,160 by is not one group I want aggregated 24628 16:34:40,160 --> 16:34:42,116 table which is based on city ID and Item 24629 16:34:42,116 --> 16:34:44,476 ID and how I'm getting my data based on 24630 16:34:44,476 --> 16:34:47,240 the city ID and Item ID in this manner I 24631 16:34:47,240 --> 16:34:48,956 can get it now there is one more option 24632 16:34:48,956 --> 16:34:50,596 which is there and that would be helpful 24633 16:34:50,596 --> 16:34:52,276 when you are going to do something like 24634 16:34:52,276 --> 16:34:54,880 you know sub index or sub rank that kind 24635 16:34:54,880 --> 16:34:56,560 of operation that would be helpful and 24636 16:34:56,560 --> 16:34:58,080 for that what you have to do let's go 24637 16:34:58,080 --> 16:34:59,840 back to the setting again now here in 24638 16:34:59,840 --> 16:35:02,796 the ad grouping let me remove this and 24639 16:35:02,796 --> 16:35:05,400 here I instead of some operation I'll 24640 16:35:05,400 --> 16:35:07,840 say all rules I can give it any name 24641 16:35:07,840 --> 16:35:11,560 whichever I want Let Me Call It All Pro 24642 16:35:11,560 --> 16:35:14,360 only when you go here so City ID and 24643 16:35:14,360 --> 16:35:17,276 item id the data is grouped and what 24644 16:35:17,276 --> 16:35:19,636 happens is is going to have a table here 24645 16:35:19,636 --> 16:35:21,476 so now there is a table which is at the 24646 16:35:21,476 --> 16:35:23,720 city ID and item id level and if you add 24647 16:35:23,720 --> 16:35:26,040 a column here let's say add index here 24648 16:35:26,040 --> 16:35:27,476 in this table and now we have to write 24649 16:35:27,476 --> 16:35:29,360 down the formula to do that not going to 24650 16:35:29,360 --> 16:35:31,276 be that I simply go ahead and write it 24651 16:35:31,276 --> 16:35:33,276 here add index for that we have to use 24652 16:35:33,276 --> 16:35:35,160 the M language and using the M language 24653 16:35:35,160 --> 16:35:36,596 we have to create a custom column and 24654 16:35:36,596 --> 16:35:38,596 there we in this table itself the table 24655 16:35:38,596 --> 16:35:40,720 which is inside we have to add a index 24656 16:35:40,720 --> 16:35:42,476 column and then you have to expand it 24657 16:35:42,476 --> 16:35:44,080 back again you can expand this table to 24658 16:35:44,080 --> 16:35:45,680 get all the data so you will expand and 24659 16:35:45,680 --> 16:35:47,276 then you'll get the complete sales table 24660 16:35:47,276 --> 16:35:49,040 again and then you will get the sub 24661 16:35:49,040 --> 16:35:50,756 index these kind of operations I have 24662 16:35:50,756 --> 16:35:52,000 explained on the channel so you can 24663 16:35:52,000 --> 16:35:54,240 check that out so in this manner you can 24664 16:35:54,240 --> 16:35:55,756 group all the rows and then you can do 24665 16:35:55,756 --> 16:35:57,756 operation inside the group to data so 24666 16:35:57,756 --> 16:35:59,476 this is Group by for you we I have shown 24667 16:35:59,476 --> 16:36:01,596 you a few options but there are further 24668 16:36:01,596 --> 16:36:03,240 more options which you can explore out 24669 16:36:03,240 --> 16:36:05,840 to create aggregated or what we call 24670 16:36:05,840 --> 16:36:07,840 summarized 24671 16:36:07,840 --> 16:36:11,520 tables we will come across a scenario in 24672 16:36:11,520 --> 16:36:13,560 power query where we would actually like 24673 16:36:13,560 --> 16:36:15,436 to split a column we have quite a few 24674 16:36:15,436 --> 16:36:17,560 option to split a column so we can split 24675 16:36:17,560 --> 16:36:19,756 by D limiter we can split by number of 24676 16:36:19,756 --> 16:36:22,276 character we can split by position lower 24677 16:36:22,276 --> 16:36:24,636 case upper case digit non-digit 24678 16:36:24,636 --> 16:36:26,880 non-digit and digit now I come up with 24679 16:36:26,880 --> 16:36:29,000 this one data where I'm going to show 24680 16:36:29,000 --> 16:36:31,240 you split by Del limiter but this data 24681 16:36:31,240 --> 16:36:32,756 is really interesting because it's 24682 16:36:32,756 --> 16:36:34,560 nquire double split and you will not 24683 16:36:34,560 --> 16:36:36,400 realize unless I do it so for first of 24684 16:36:36,400 --> 16:36:39,520 all even before I use do use first row 24685 16:36:39,520 --> 16:36:41,680 as header I need to split this data okay 24686 16:36:41,680 --> 16:36:43,720 because name and ranks are two different 24687 16:36:43,720 --> 16:36:45,756 column but I need to split this data and 24688 16:36:45,756 --> 16:36:48,200 how do I need to split it I need to use 24689 16:36:48,200 --> 16:36:50,916 under the Home tab split column and buy 24690 16:36:50,916 --> 16:36:53,476 delimiter and space is my dmit it is 24691 16:36:53,476 --> 16:36:55,000 automatically identified for each 24692 16:36:55,000 --> 16:36:57,080 occurrence in this case it is the left 24693 16:36:57,080 --> 16:36:59,276 most occurrence or that's the only 24694 16:36:59,276 --> 16:37:00,796 occurrence but you can decide if you 24695 16:37:00,796 --> 16:37:02,720 have more than one occurrence leftmost 24696 16:37:02,720 --> 16:37:04,916 or rightmost or each occurrence and then 24697 16:37:04,916 --> 16:37:06,560 you can go to the advance and decide 24698 16:37:06,560 --> 16:37:08,200 whether you want columns or rows in this 24699 16:37:08,200 --> 16:37:09,916 case I want two columns and that's 24700 16:37:09,916 --> 16:37:11,680 correct it has automatically identified 24701 16:37:11,680 --> 16:37:13,720 that but in case you want to check you 24702 16:37:13,720 --> 16:37:15,636 go ahead and check that out in case of 24703 16:37:15,636 --> 16:37:17,916 rows there's no limitation it can split 24704 16:37:17,916 --> 16:37:19,596 and give any number of rows but 24705 16:37:19,596 --> 16:37:21,680 definitely columns we have to specify 24706 16:37:21,680 --> 16:37:23,520 let's press okay now we got the two 24707 16:37:23,520 --> 16:37:25,880 columns so now at this stage I can use 24708 16:37:25,880 --> 16:37:27,596 first row as header so the moment I do 24709 16:37:27,596 --> 16:37:29,116 first row as header you might have 24710 16:37:29,116 --> 16:37:30,880 realized that this change type has 24711 16:37:30,880 --> 16:37:32,756 changed the game for us it actually has 24712 16:37:32,756 --> 16:37:34,756 detected it as integer and removal of 24713 16:37:34,756 --> 16:37:36,476 comma that's what we don't want so what 24714 16:37:36,476 --> 16:37:37,880 we have to do is we have to go to this 24715 16:37:37,880 --> 16:37:40,116 step transform columns either we remove 24716 16:37:40,116 --> 16:37:43,160 it or go and copy this type text and in 24717 16:37:43,160 --> 16:37:45,756 the rank also you use type text so that 24718 16:37:45,756 --> 16:37:47,796 it remains as a text now it is a text 24719 16:37:47,796 --> 16:37:49,796 now we can continue to use it now the 24720 16:37:49,796 --> 16:37:51,560 rank column is something which we 24721 16:37:51,560 --> 16:37:53,916 further wanted to split we again go to 24722 16:37:53,916 --> 16:37:56,560 split column split by D limiter and this 24723 16:37:56,560 --> 16:37:58,956 time for each occurrences of the D 24724 16:37:58,956 --> 16:38:01,160 limiter it has correctly detected that 24725 16:38:01,160 --> 16:38:03,000 in the advance option I'm going to use 24726 16:38:03,000 --> 16:38:05,560 rows no more columns I want multiple 24727 16:38:05,560 --> 16:38:07,596 rows for that I don't want columns this 24728 16:38:07,596 --> 16:38:09,680 time and in the rows it is not going to 24729 16:38:09,680 --> 16:38:11,560 ask you how many rows create that many 24730 16:38:11,560 --> 16:38:13,400 rows which is required columns the 24731 16:38:13,400 --> 16:38:15,476 number is limited and let's press on 24732 16:38:15,476 --> 16:38:18,916 okay and now the data is in the shape 24733 16:38:18,916 --> 16:38:21,596 where we can use it for analysis we've 24734 16:38:21,596 --> 16:38:24,200 taken a case where we actually applied 24735 16:38:24,200 --> 16:38:26,360 the same function twice in two different 24736 16:38:26,360 --> 16:38:28,520 Manner and get the data into the shape 24737 16:38:28,520 --> 16:38:31,000 now there are other ways to split also 24738 16:38:31,000 --> 16:38:33,520 and for that what I've done is I have 24739 16:38:33,520 --> 16:38:35,756 this table text operation which you can 24740 16:38:35,756 --> 16:38:38,080 use I can show you some of those 24741 16:38:38,080 --> 16:38:40,680 operations so let's say you click on 24742 16:38:40,680 --> 16:38:43,160 this key one and you can say split by 24743 16:38:43,160 --> 16:38:45,360 number of characters I can split I can 24744 16:38:45,360 --> 16:38:47,636 get the ear first four are ear so by 24745 16:38:47,636 --> 16:38:50,956 number of characters I can say once far 24746 16:38:50,956 --> 16:38:52,956 as left I only want the first four 24747 16:38:52,956 --> 16:38:54,840 characters and rest I want into the 24748 16:38:54,840 --> 16:38:56,436 second column I don't want the 24749 16:38:56,436 --> 16:38:58,240 repetition number of columns here is 24750 16:38:58,240 --> 16:39:00,116 going to be two because I only want once 24751 16:39:00,116 --> 16:39:02,200 if it repeatedly you need to tell how 24752 16:39:02,200 --> 16:39:04,520 many columns I only wanted once I'll go 24753 16:39:04,520 --> 16:39:08,080 ahead and press I'll select once as far 24754 16:39:08,080 --> 16:39:10,596 left as possible the left hand side and 24755 16:39:10,596 --> 16:39:12,240 multiple columns and there going to be 24756 16:39:12,240 --> 16:39:14,200 two columns this time so we are able to 24757 16:39:14,200 --> 16:39:17,200 split and take out the ear from this one 24758 16:39:17,200 --> 16:39:19,796 so this is split by number of character 24759 16:39:19,796 --> 16:39:21,956 now then there is a split by position so 24760 16:39:21,956 --> 16:39:25,040 split by position position from 0 to 6 24761 16:39:25,040 --> 16:39:27,240 so power query start with indexing start 24762 16:39:27,240 --> 16:39:28,796 with zero and then there are Advanced 24763 16:39:28,796 --> 16:39:30,756 option columns or rows you say okay fine 24764 16:39:30,756 --> 16:39:33,240 0 to 6 let's split that so now you got 24765 16:39:33,240 --> 16:39:35,400 another split based on that and now this 24766 16:39:35,400 --> 16:39:37,476 change data type on the First Column we 24767 16:39:37,476 --> 16:39:39,320 don't need actually we need type text 24768 16:39:39,320 --> 16:39:41,560 only and because of that only it's not 24769 16:39:41,560 --> 16:39:43,680 showing what value we actually got this 24770 16:39:43,680 --> 16:39:45,520 is the value we actually got then you 24771 16:39:45,520 --> 16:39:48,116 have the upper case lower case and all 24772 16:39:48,116 --> 16:39:50,116 those combination I will just show you 24773 16:39:50,116 --> 16:39:52,596 one of them so this is uppercase and 24774 16:39:52,596 --> 16:39:54,560 lower case so you can go and split by 24775 16:39:54,560 --> 16:39:56,560 column by lower case to uppercase or 24776 16:39:56,560 --> 16:39:58,436 uppercase to lower case so let's execute 24777 16:39:58,436 --> 16:40:00,320 one of them lower case to upper case so 24778 16:40:00,320 --> 16:40:02,000 when the things change from lower case 24779 16:40:02,000 --> 16:40:04,080 to upper case at that time we will split 24780 16:40:04,080 --> 16:40:05,916 so this was lower case and post that 24781 16:40:05,916 --> 16:40:07,840 there was an upper case so it got split 24782 16:40:07,840 --> 16:40:09,400 there is upper case and after that 24783 16:40:09,400 --> 16:40:10,916 there's a lower case there's nothing got 24784 16:40:10,916 --> 16:40:12,360 split this is these were three were 24785 16:40:12,360 --> 16:40:14,040 lower case and after that we got upper 24786 16:40:14,040 --> 16:40:16,596 case so it got splitted similarly digit 24787 16:40:16,596 --> 16:40:19,080 and no digit split you can go ahead and 24788 16:40:19,080 --> 16:40:21,720 use by non-digit and digit or by digit 24789 16:40:21,720 --> 16:40:23,840 and non-digit so let me use one of them 24790 16:40:23,840 --> 16:40:25,916 let's use the second option non-digit to 24791 16:40:25,916 --> 16:40:27,916 digit so you will only see split where 24792 16:40:27,916 --> 16:40:29,796 first there was a non-digit and then 24793 16:40:29,796 --> 16:40:31,796 digit in this manner there are multiple 24794 16:40:31,796 --> 16:40:33,436 things which we can do there are next 24795 16:40:33,436 --> 16:40:35,720 set of operations basically here we have 24796 16:40:35,720 --> 16:40:38,400 lower case upper case capitalize the 24797 16:40:38,400 --> 16:40:41,720 word trim clean add prefix add suffix 24798 16:40:41,720 --> 16:40:44,040 now let me go to this table and I'll go 24799 16:40:44,040 --> 16:40:47,720 to column two and let me try to now to 24800 16:40:47,720 --> 16:40:50,360 understand this format options now very 24801 16:40:50,360 --> 16:40:52,080 easy to understand this lowercase and 24802 16:40:52,080 --> 16:40:53,596 uppercase you click on any any of the 24803 16:40:53,596 --> 16:40:55,880 column you go here and say lower case I 24804 16:40:55,880 --> 16:40:57,956 go to this column everything is already 24805 16:40:57,956 --> 16:41:00,040 in uppercase so I can go here and say 24806 16:41:00,040 --> 16:41:02,520 format capitalize each word so first 24807 16:41:02,520 --> 16:41:05,000 letter would be Capital now this is all 24808 16:41:05,000 --> 16:41:07,476 in lower if you see here the the column 24809 16:41:07,476 --> 16:41:09,320 name the first row is in the lower case 24810 16:41:09,320 --> 16:41:11,160 I can go and click on the format and 24811 16:41:11,160 --> 16:41:13,320 uppercase it will do an uppercase now 24812 16:41:13,320 --> 16:41:15,720 let me use first row as header and then 24813 16:41:15,720 --> 16:41:18,000 do other operations now I can go here 24814 16:41:18,000 --> 16:41:20,560 again and under the transform format I 24815 16:41:20,560 --> 16:41:22,916 can use add prefix it will add a prefix 24816 16:41:22,916 --> 16:41:25,720 to the column let me add Hy and in case 24817 16:41:25,720 --> 16:41:27,560 I want to add a suffix I can go to the 24818 16:41:27,560 --> 16:41:29,756 format and I can add a suffix also let 24819 16:41:29,756 --> 16:41:32,200 me add at theate here and it's not doing 24820 16:41:32,200 --> 16:41:33,840 that operation on the null value please 24821 16:41:33,840 --> 16:41:35,596 remember that now what is this clean and 24822 16:41:35,596 --> 16:41:37,320 trim trim you might have understand what 24823 16:41:37,320 --> 16:41:38,756 what is this clean to understand the 24824 16:41:38,756 --> 16:41:41,160 clean let me go to the Home tab and 24825 16:41:41,160 --> 16:41:43,796 create one enter data script and here 24826 16:41:43,796 --> 16:41:46,880 let me and a shift enter enter enter a 24827 16:41:46,880 --> 16:41:50,720 SP b space c d d d enter enter enter B A 24828 16:41:50,720 --> 16:41:53,596 FG now next one I'll go here and space 24829 16:41:53,596 --> 16:41:56,080 space space a space space space next one 24830 16:41:56,080 --> 16:42:00,360 I'll space space space b c v VC and then 24831 16:42:00,360 --> 16:42:03,360 here no space b and space space space 24832 16:42:03,360 --> 16:42:05,636 space and let me say let me rename this 24833 16:42:05,636 --> 16:42:08,840 now and edit I got some data you can see 24834 16:42:08,840 --> 16:42:11,560 the values here lying here and there now 24835 16:42:11,560 --> 16:42:13,276 there is cleaning required so first 24836 16:42:13,276 --> 16:42:14,956 operation which I want to do here is 24837 16:42:14,956 --> 16:42:17,720 basically I'll go to transform format 24838 16:42:17,720 --> 16:42:19,756 and I'll do clean operation the clean 24839 16:42:19,756 --> 16:42:22,160 operation removes the non-printable 24840 16:42:22,160 --> 16:42:23,840 character especially the the enter you 24841 16:42:23,840 --> 16:42:25,400 can see now the data has come into the 24842 16:42:25,400 --> 16:42:27,276 one row but it has not removed the white 24843 16:42:27,276 --> 16:42:29,116 spaces before and after it they are 24844 16:42:29,116 --> 16:42:31,476 still white spaces like here if you go B 24845 16:42:31,476 --> 16:42:34,320 and do have white spaces okay vbb do 24846 16:42:34,320 --> 16:42:36,116 have white spaces in the beginning now 24847 16:42:36,116 --> 16:42:38,680 I'll go on this column and I'll use the 24848 16:42:38,680 --> 16:42:41,040 format trim operation and once I do the 24849 16:42:41,040 --> 16:42:43,276 trim it removes the white spaces from 24850 16:42:43,276 --> 16:42:45,796 left and right and I'll get the trimmed 24851 16:42:45,796 --> 16:42:47,956 version of this one now you see there's 24852 16:42:47,956 --> 16:42:50,200 no nothing before and after it's only B 24853 16:42:50,200 --> 16:42:52,520 and only vbb so these are the operation 24854 16:42:52,520 --> 16:42:54,956 which allow ows you to improve the data 24855 16:42:54,956 --> 16:42:57,200 quality so the transformation the data 24856 16:42:57,200 --> 16:42:59,240 quality improvement all these can be 24857 16:42:59,240 --> 16:43:01,080 done after that you have some operations 24858 16:43:01,080 --> 16:43:03,240 to take out the date part and all those 24859 16:43:03,240 --> 16:43:05,560 if you go to this date time table and 24860 16:43:05,560 --> 16:43:08,400 you want to take out the time only it 24861 16:43:08,400 --> 16:43:10,200 will give you time only you want to take 24862 16:43:10,200 --> 16:43:12,160 out the date only you will get the date 24863 16:43:12,160 --> 16:43:13,796 only you want to take out part of the 24864 16:43:13,796 --> 16:43:15,756 day year month quarter you will get 24865 16:43:15,756 --> 16:43:17,636 those also you can extract the date 24866 16:43:17,636 --> 16:43:19,756 Parts again these kind of transformation 24867 16:43:19,756 --> 16:43:21,880 you can do here so these are the various 24868 16:43:21,880 --> 16:43:23,636 kind of transformation you can do in 24869 16:43:23,636 --> 16:43:25,400 power query once you are done with all 24870 16:43:25,400 --> 16:43:27,680 your transformation or maybe don't 24871 16:43:27,680 --> 16:43:29,476 always wait for all the transformation 24872 16:43:29,476 --> 16:43:31,360 to happen you should keep on doing this 24873 16:43:31,360 --> 16:43:33,040 in between you should keep on applying 24874 16:43:33,040 --> 16:43:34,956 the changes so that it doesn't take too 24875 16:43:34,956 --> 16:43:37,160 much of time at the end to do it but 24876 16:43:37,160 --> 16:43:38,756 right now the time has come that I'll 24877 16:43:38,756 --> 16:43:41,116 you use close and apply and once I do 24878 16:43:41,116 --> 16:43:43,116 close and apply what it's going to do is 24879 16:43:43,116 --> 16:43:45,200 all the tables is going to process again 24880 16:43:45,200 --> 16:43:48,400 the complete data will be loaded and 24881 16:43:48,400 --> 16:43:50,360 processed again and that is something 24882 16:43:50,360 --> 16:43:53,160 which power query does it basically 24883 16:43:53,160 --> 16:43:55,400 actually go to load the data model and 24884 16:43:55,400 --> 16:43:57,720 go to process by each step by step and 24885 16:43:57,720 --> 16:44:01,080 go to do it and it has processed 24886 16:44:01,080 --> 16:44:02,916 everything now the tables are now 24887 16:44:02,916 --> 16:44:05,200 available for analysis and if you go to 24888 16:44:05,200 --> 16:44:07,560 the table view you will see the data 24889 16:44:07,560 --> 16:44:09,756 into the final shape so if you go to the 24890 16:44:09,756 --> 16:44:12,400 pyot table or unpivot table you will not 24891 16:44:12,400 --> 16:44:14,520 see the data in the initial shape what 24892 16:44:14,520 --> 16:44:17,000 you had you see the data into the final 24893 16:44:17,000 --> 16:44:20,080 shape so power query helps us in 24894 16:44:20,080 --> 16:44:23,636 creating transformed cleaned data data 24895 16:44:23,636 --> 16:44:26,840 which can be used for data analysis so 24896 16:44:26,840 --> 16:44:29,080 the next set of transformation which we 24897 16:44:29,080 --> 16:44:31,160 actually wanted to learn is basically 24898 16:44:31,160 --> 16:44:33,956 how to do multiple unpivot or double 24899 16:44:33,956 --> 16:44:36,240 unpivot here what happens is you don't 24900 16:44:36,240 --> 16:44:38,040 have a single column which is repeating 24901 16:44:38,040 --> 16:44:39,636 actually there are more than one column 24902 16:44:39,636 --> 16:44:41,116 which are repeating so let's say there 24903 16:44:41,116 --> 16:44:44,476 is a set A1 A2 then there is a set B1 B2 24904 16:44:44,476 --> 16:44:46,436 then there is a set C1 C2 but that is 24905 16:44:46,436 --> 16:44:48,796 the set which is repeating it is not 24906 16:44:48,796 --> 16:44:51,436 that I have A1 A2 A3 A4 A5 A6 and I just 24907 16:44:51,436 --> 16:44:54,476 want I that such scenario how we are 24908 16:44:54,476 --> 16:44:56,720 going to unpivot that is what we have to 24909 16:44:56,720 --> 16:44:59,360 learn so let's look into this example 24910 16:44:59,360 --> 16:45:02,756 and see how can we do double and pyot or 24911 16:45:02,756 --> 16:45:05,560 multiple and pyot so let me showcase you 24912 16:45:05,560 --> 16:45:08,320 my data which I'm plan to use for today 24913 16:45:08,320 --> 16:45:10,636 uh so I have added this to the P data 24914 16:45:10,636 --> 16:45:12,680 file and I will been loading this file 24915 16:45:12,680 --> 16:45:15,916 to the GitHub so here as you can see I 24916 16:45:15,916 --> 16:45:20,276 have item on My First Column and then I 24917 16:45:20,276 --> 16:45:23,596 have state and value combination 24918 16:45:23,596 --> 16:45:26,320 in the column so I have state one value 24919 16:45:26,320 --> 16:45:28,276 one state two value two state three 24920 16:45:28,276 --> 16:45:30,756 value three state four value four state 24921 16:45:30,756 --> 16:45:32,880 5 value five this is the combination 24922 16:45:32,880 --> 16:45:36,000 which I have now this is not a simple 24923 16:45:36,000 --> 16:45:39,080 unpivot user case where I have the stage 24924 16:45:39,080 --> 16:45:41,596 and I simply unpivot it and then I can 24925 16:45:41,596 --> 16:45:45,436 use the data so this require a special 24926 16:45:45,436 --> 16:45:48,116 treatment or maybe I first unpivot the 24927 16:45:48,116 --> 16:45:51,476 data and then P it so let's go ahead and 24928 16:45:51,476 --> 16:45:54,636 see how we convert this data into the 24929 16:45:54,636 --> 16:45:58,436 best suitable data for data analytics or 24930 16:45:58,436 --> 16:46:01,720 for powerbi so I have already open 24931 16:46:01,720 --> 16:46:04,360 powerbi and let me jump out of the that 24932 16:46:04,360 --> 16:46:06,636 and I'll say get data and inside the get 24933 16:46:06,636 --> 16:46:10,080 data I'll bring my Exel sheet and that 24934 16:46:10,080 --> 16:46:12,276 Excel sheet is nothing other than pyot 24935 16:46:12,276 --> 16:46:16,000 data and you will be getting this on my 24936 16:46:16,000 --> 16:46:19,476 GitHub account 24937 16:46:24,956 --> 16:46:28,000 and here you see that I got this unpivot 24938 16:46:28,000 --> 16:46:30,956 pyot data so just take this sheet 24939 16:46:30,956 --> 16:46:34,040 unpivot pyot data sheet and that instead 24940 16:46:34,040 --> 16:46:36,116 of loading use transform data why would 24941 16:46:36,116 --> 16:46:38,720 use transform data because this data is 24942 16:46:38,720 --> 16:46:41,040 not in a shape where we wanted to use so 24943 16:46:41,040 --> 16:46:43,116 why to load and then go to the transform 24944 16:46:43,116 --> 16:46:44,840 data and do the transformation why don't 24945 16:46:44,840 --> 16:46:47,680 we directly go to the transform data so 24946 16:46:47,680 --> 16:46:49,880 so I'll click on the transform data at 24947 16:46:49,880 --> 16:46:51,956 the bottom of the popup and it will 24948 16:46:51,956 --> 16:46:54,476 directly take me me to Power 24949 16:46:54,476 --> 16:46:57,080 query let me bring in power query window 24950 16:46:57,080 --> 16:47:00,040 on this screen so the power query window 24951 16:47:00,040 --> 16:47:02,720 has opened and now we have this data in 24952 16:47:02,720 --> 16:47:05,000 front of us so what action we wanted to 24953 16:47:05,000 --> 16:47:08,560 do so first of all I'll select item and 24954 16:47:08,560 --> 16:47:11,160 I'll go to transform and inside the 24955 16:47:11,160 --> 16:47:14,160 transform I'll use unpivot columns and 24956 16:47:14,160 --> 16:47:17,596 I'll see unpivot other columns once I do 24957 16:47:17,596 --> 16:47:20,436 you can see I have state value in rows 24958 16:47:20,436 --> 16:47:22,116 but I don't want like this the best way 24959 16:47:22,116 --> 16:47:23,276 is state 24960 16:47:23,276 --> 16:47:25,756 as a column and value as a column now to 24961 16:47:25,756 --> 16:47:28,116 do that I need to do a next step in the 24962 16:47:28,116 --> 16:47:30,116 next step I would use one more 24963 16:47:30,116 --> 16:47:32,000 transformation and the transformation 24964 16:47:32,000 --> 16:47:36,956 which I plan to use is split column and 24965 16:47:36,956 --> 16:47:38,276 in the split 24966 16:47:38,276 --> 16:47:40,796 column split column is again available 24967 16:47:40,796 --> 16:47:43,276 under the transform tab I want to use 24968 16:47:43,276 --> 16:47:46,520 split by dor in this case you may have 24969 16:47:46,520 --> 16:47:48,160 little bit complex case so you have to 24970 16:47:48,160 --> 16:47:49,796 find out how you would plan to split 24971 16:47:49,796 --> 16:47:51,916 that and here I'll click on the advance 24972 16:47:51,916 --> 16:47:53,916 option and I'll say I want to split into 24973 16:47:53,916 --> 16:47:56,040 two columns that's the most appropriate 24974 16:47:56,040 --> 16:47:57,880 for this 24975 16:47:57,880 --> 16:48:01,276 data for each occurrence yes or sometime 24976 16:48:01,276 --> 16:48:03,840 may you may have to use leftmost 24977 16:48:03,840 --> 16:48:06,040 delimiter so first delimiter which it 24978 16:48:06,040 --> 16:48:09,400 gets on that and you have to say okay 24979 16:48:09,400 --> 16:48:12,680 now what you see here is state number 24980 16:48:12,680 --> 16:48:15,400 has been separated out now you can give 24981 16:48:15,400 --> 16:48:17,276 it as a separate name there but that we 24982 16:48:17,276 --> 16:48:19,360 will do later but you can click on now 24983 16:48:19,360 --> 16:48:21,360 attribute and 24984 16:48:21,360 --> 16:48:25,080 value and you you can go to P what 24985 16:48:25,080 --> 16:48:27,840 column again under the transform 24986 16:48:27,840 --> 16:48:30,360 data and which column is the value 24987 16:48:30,360 --> 16:48:33,636 column yes value column is the value 24988 16:48:33,636 --> 16:48:36,840 column Advance option what I wanted to 24989 16:48:36,840 --> 16:48:40,880 do is I'll say don't agregate but I 24990 16:48:40,880 --> 16:48:44,560 would prefer to do max if required so 24991 16:48:44,560 --> 16:48:47,720 you can take a count 24992 16:48:48,880 --> 16:48:51,956 here and once you load this data instead 24993 16:48:51,956 --> 16:48:54,796 of list count you click on 24994 16:48:54,796 --> 16:48:59,000 the the bar where we are seeing this 24995 16:48:59,000 --> 16:49:03,080 formula you send this. Max and now you 24996 16:49:03,080 --> 16:49:05,000 can see State and value we could we 24997 16:49:05,000 --> 16:49:07,080 could have used to aggregate but in case 24998 16:49:07,080 --> 16:49:08,796 don't aggregate doesn't work you can use 24999 16:49:08,796 --> 16:49:11,636 max like this so I got State I got value 25000 16:49:11,636 --> 16:49:14,116 and this could be state number or type 25001 16:49:14,116 --> 16:49:17,200 let me call it type now this data is in 25002 16:49:17,200 --> 16:49:20,400 a proper shape for analysis now so this 25003 16:49:20,400 --> 16:49:23,360 is how you deal with the data where you 25004 16:49:23,360 --> 16:49:27,320 think it require multiple 25005 16:49:27,320 --> 16:49:29,360 unpivot now what we would like to do 25006 16:49:29,360 --> 16:49:31,116 here is we like to understand how can we 25007 16:49:31,116 --> 16:49:33,596 do cross join in power query now you 25008 16:49:33,596 --> 16:49:35,596 have seen an example where we have 25009 16:49:35,596 --> 16:49:39,116 actually done cross join in Dex now how 25010 16:49:39,116 --> 16:49:41,476 do we do cross join in our query because 25011 16:49:41,476 --> 16:49:44,080 there's no function cross join if you 25012 16:49:44,080 --> 16:49:45,916 remember we had merge which can do 25013 16:49:45,916 --> 16:49:48,400 different kind of join like Left Right 25014 16:49:48,400 --> 16:49:51,116 full and full is not cross join and then 25015 16:49:51,116 --> 16:49:54,636 we have and joins also but how do we do 25016 16:49:54,636 --> 16:49:57,000 cross joint cross join means every row 25017 16:49:57,000 --> 16:49:59,476 of a table will get populated against 25018 16:49:59,476 --> 16:50:01,916 every row of another table one has three 25019 16:50:01,916 --> 16:50:03,956 rows and table two has three rows end up 25020 16:50:03,956 --> 16:50:06,240 getting nine rows so this is what the 25021 16:50:06,240 --> 16:50:08,040 cross join is and we would like to 25022 16:50:08,040 --> 16:50:09,680 understand how can we do that in our 25023 16:50:09,680 --> 16:50:12,756 query so let me take you through powerbi 25024 16:50:12,756 --> 16:50:15,796 and let me explain you the function the 25025 16:50:15,796 --> 16:50:17,240 cross joint function which is there in 25026 16:50:17,240 --> 16:50:20,360 the DXs and then the question is how do 25027 16:50:20,360 --> 16:50:24,080 we do that in power query so let me do 25028 16:50:24,080 --> 16:50:26,840 one thing is basically in 25029 16:50:26,840 --> 16:50:30,436 powerbi desktop I'm going to use enter 25030 16:50:30,436 --> 16:50:33,680 data which is under the Home 25031 16:50:33,796 --> 16:50:37,756 tab and I'm going to create two 25032 16:50:38,160 --> 16:50:40,916 tables and in the table one let me have 25033 16:50:40,916 --> 16:50:42,956 that say number I'm going to have some 25034 16:50:42,956 --> 16:50:47,040 numbers let's say 1 25035 16:50:47,040 --> 16:50:51,720 2 3 and four and let me call it D1 the 25036 16:50:51,720 --> 16:50:54,400 table D1 I'm renaming it and I'm going 25037 16:50:54,400 --> 16:50:56,360 to say 25038 16:50:56,360 --> 16:50:59,796 load very a simple table once this table 25039 16:50:59,796 --> 16:51:03,636 get loaded we will load another 25040 16:51:05,040 --> 16:51:08,720 table so now let me add another table 25041 16:51:08,720 --> 16:51:10,680 now the table which I'm going to add is 25042 16:51:10,680 --> 16:51:14,476 basically having the let's say text so 25043 16:51:14,476 --> 16:51:17,400 let me call it 25044 16:51:17,400 --> 16:51:20,436 value and let me add value let's say 25045 16:51:20,436 --> 16:51:23,680 a b 25046 16:51:23,680 --> 16:51:27,040 and see only three values and let me 25047 16:51:27,040 --> 16:51:30,080 call this table as D2 and let me a load 25048 16:51:30,080 --> 16:51:32,116 very simple stuff two tables having one 25049 16:51:32,116 --> 16:51:33,636 one 25050 16:51:33,636 --> 16:51:36,040 column now I go to the table View and 25051 16:51:36,040 --> 16:51:38,956 I'll show you these tables so D1 as 1 2 25052 16:51:38,956 --> 16:51:42,040 3 4 D2 as a BC now how do we do a cross 25053 16:51:42,040 --> 16:51:44,400 joint so in the Dax in we go to the 25054 16:51:44,400 --> 16:51:46,080 table tools when we click on any of the 25055 16:51:46,080 --> 16:51:48,636 table we'll get the table tool and in 25056 16:51:48,636 --> 16:51:50,476 the table tool you have new table click 25057 16:51:50,476 --> 16:51:53,756 on the new table 25058 16:51:53,756 --> 16:51:56,720 and say cross the name left hand side is 25059 16:51:56,720 --> 16:51:58,596 the name and then we have function cross 25060 16:51:58,596 --> 16:52:02,680 join we can give tables so I give D1 25061 16:52:02,680 --> 16:52:06,560 comma D2 two tables and I just press 25062 16:52:06,560 --> 16:52:10,160 enter now what you see is uh 1 2 3 4 A A 25063 16:52:10,160 --> 16:52:15,360 A A 1 3 4 bb bb 1 3 4 c c c c now I want 25064 16:52:15,360 --> 16:52:17,956 same thing in power query how do I do 25065 16:52:17,956 --> 16:52:20,560 that so I go to my report view or I 25066 16:52:20,560 --> 16:52:22,796 could have done from there also and I go 25067 16:52:22,796 --> 16:52:25,436 to transform data which is in the middle 25068 16:52:25,436 --> 16:52:28,080 of the Home 25069 16:52:29,200 --> 16:52:31,360 tab and there I have another option 25070 16:52:31,360 --> 16:52:32,796 transform data which will take me to 25071 16:52:32,796 --> 16:52:33,680 Power 25072 16:52:33,680 --> 16:52:35,956 query let me bring in the power query 25073 16:52:35,956 --> 16:52:38,320 window 25074 16:52:40,080 --> 16:52:43,080 here now how do I do it in power query 25075 16:52:43,080 --> 16:52:44,360 so if you remember we have something 25076 16:52:44,360 --> 16:52:46,116 known as merge queries under the Home 25077 16:52:46,116 --> 16:52:49,560 tab of power query on the right but here 25078 16:52:49,560 --> 16:52:53,360 when you go to the merge queries 25079 16:52:53,360 --> 16:52:56,636 you don't have any option for cutan and 25080 16:52:56,636 --> 16:52:59,880 even if you do full outer join it's not 25081 16:52:59,880 --> 16:53:02,320 going to serve a purpose especially 25082 16:53:02,320 --> 16:53:04,680 there is no joint column here so how do 25083 16:53:04,680 --> 16:53:07,520 I do that but to do that what I can do 25084 16:53:07,520 --> 16:53:09,436 is I can take any one of these 25085 16:53:09,436 --> 16:53:11,636 table and go ahead and create a new 25086 16:53:11,636 --> 16:53:14,360 column add column I call it custom 25087 16:53:14,360 --> 16:53:18,636 column and let me call it tab two and 25088 16:53:18,636 --> 16:53:22,476 let me simply give here D2 25089 16:53:22,476 --> 16:53:25,040 D2 is a 25090 16:53:26,240 --> 16:53:29,000 table so it starts showing me the 25091 16:53:29,000 --> 16:53:32,520 table my once I get a table in a column 25092 16:53:32,520 --> 16:53:35,520 it start giving me an expand 25093 16:53:35,520 --> 16:53:38,000 icon I'll expand 25094 16:53:38,000 --> 16:53:41,040 this and it ask what all column I say I 25095 16:53:41,040 --> 16:53:43,560 will say value column I need and I'll 25096 16:53:43,560 --> 16:53:46,720 uncheck this use original column name as 25097 16:53:46,720 --> 16:53:49,720 prefix 25098 16:53:52,476 --> 16:53:55,240 then we press okay now as you can see 25099 16:53:55,240 --> 16:53:59,160 the moment I expand it gives me AB C ABC 25100 16:53:59,160 --> 16:54:02,360 ABC ABC because I done it with D1 that's 25101 16:54:02,360 --> 16:54:04,200 how it's going to happen so for Value 25102 16:54:04,200 --> 16:54:07,360 one A B C or then if you see for a it is 25103 16:54:07,360 --> 16:54:08,880 1 25104 16:54:08,880 --> 16:54:12,520 2 3 and four anyways I I could have done 25105 16:54:12,520 --> 16:54:14,160 the same thing in D2 it would have given 25106 16:54:14,160 --> 16:54:19,436 me uh a 1 2 3 4 b 1 2 3 4 c 1 2 3 4 so 25107 16:54:19,436 --> 16:54:21,636 this is how you do a cartisian product 25108 16:54:21,636 --> 16:54:24,680 across join in power query so when I was 25109 16:54:24,680 --> 16:54:26,636 trying to save this it given me some 25110 16:54:26,636 --> 16:54:28,360 error so what I've done is basically I 25111 16:54:28,360 --> 16:54:31,000 change it to Value one the reason it is 25112 16:54:31,000 --> 16:54:32,956 giving error because D1 and D2 we are 25113 16:54:32,956 --> 16:54:34,840 again using in the cross joint they the 25114 16:54:34,840 --> 16:54:38,436 value column and so because of that it 25115 16:54:38,436 --> 16:54:40,956 was giving errors in power query it is 25116 16:54:40,956 --> 16:54:42,880 possible to do much more complex 25117 16:54:42,880 --> 16:54:45,596 operation than what we have done so far 25118 16:54:45,596 --> 16:54:47,160 right now what we are doing is we are 25119 16:54:47,160 --> 16:54:49,040 combining certain set of operation and 25120 16:54:49,040 --> 16:54:51,596 try to achieve the complex operation but 25121 16:54:51,596 --> 16:54:53,360 once we are able ble to understand all 25122 16:54:53,360 --> 16:54:55,956 the complex M function we can do much 25123 16:54:55,956 --> 16:54:58,080 more powerful operations than what we 25124 16:54:58,080 --> 16:55:00,436 have done so far so let's understand 25125 16:55:00,436 --> 16:55:03,000 basics of M for now m is a case 25126 16:55:03,000 --> 16:55:05,040 sensitive language what do you mean by 25127 16:55:05,040 --> 16:55:06,796 case sensitive language in case 25128 16:55:06,796 --> 16:55:08,756 sensitivity what happens let's say you 25129 16:55:08,756 --> 16:55:10,636 write down sales and in one of the sales 25130 16:55:10,636 --> 16:55:12,916 you write down S capital that is 25131 16:55:12,916 --> 16:55:15,040 different from the sales where s is 25132 16:55:15,040 --> 16:55:18,160 small as m is case sensitive so your 25133 16:55:18,160 --> 16:55:20,320 column names with the title case or 25134 16:55:20,320 --> 16:55:22,040 small case or upper case are different 25135 16:55:22,040 --> 16:55:23,916 from each other same is true for the 25136 16:55:23,916 --> 16:55:26,680 tables so when you are using them into 25137 16:55:26,680 --> 16:55:29,000 your formulas or into your calculation 25138 16:55:29,000 --> 16:55:30,796 you need to take care of them what is 25139 16:55:30,796 --> 16:55:33,200 the process of working on M language 25140 16:55:33,200 --> 16:55:35,680 what is the syntax every language has a 25141 16:55:35,680 --> 16:55:37,680 syntax let's say you are working with C 25142 16:55:37,680 --> 16:55:40,276 or Java in case of C you create a main 25143 16:55:40,276 --> 16:55:42,436 function where you write down the code 25144 16:55:42,436 --> 16:55:45,080 in case of java you start with a class 25145 16:55:45,080 --> 16:55:47,596 and then you have the main function so 25146 16:55:47,596 --> 16:55:49,796 every language has a particular kind of 25147 16:55:49,796 --> 16:55:51,916 syntax so what is the syntax we have for 25148 16:55:51,916 --> 16:55:54,720 m to create an M query in the query 25149 16:55:54,720 --> 16:55:56,956 editor you have to follow these basic 25150 16:55:56,956 --> 16:55:59,240 process first is create a series of 25151 16:55:59,240 --> 16:56:01,436 query formula steps that start with let 25152 16:56:01,436 --> 16:56:03,596 statement so let is the first statement 25153 16:56:03,596 --> 16:56:05,476 each step is defined by a variable name 25154 16:56:05,476 --> 16:56:07,160 so every step you will have a variable 25155 16:56:07,160 --> 16:56:10,680 name and L variable can be included by 25156 16:56:10,680 --> 16:56:13,560 space using hash character as HH double 25157 16:56:13,560 --> 16:56:15,476 codes step name so basically what 25158 16:56:15,476 --> 16:56:17,520 happens if you don't have the space in 25159 16:56:17,520 --> 16:56:19,400 your variable names it could be simply a 25160 16:56:19,400 --> 16:56:20,916 name but if you want to give a space 25161 16:56:20,916 --> 16:56:23,276 then you have to use has hash and in the 25162 16:56:23,276 --> 16:56:25,000 double codes you to give the name with 25163 16:56:25,000 --> 16:56:27,560 the space so let's say my name of the 25164 16:56:27,560 --> 16:56:30,360 step is rename columns so I'll give hash 25165 16:56:30,360 --> 16:56:33,240 double code rename space columns this is 25166 16:56:33,240 --> 16:56:35,520 how I will give the variable name if it 25167 16:56:35,520 --> 16:56:38,240 requires space a formula step can be a 25168 16:56:38,240 --> 16:56:40,436 custom formula please note that the 25169 16:56:40,436 --> 16:56:42,160 power query formula language is case 25170 16:56:42,160 --> 16:56:43,916 sensitive so power for query formula 25171 16:56:43,916 --> 16:56:45,720 language is case sensitive it means if 25172 16:56:45,720 --> 16:56:48,200 you write down let's say rename column r 25173 16:56:48,200 --> 16:56:50,116 capital c capital is different from R 25174 16:56:50,116 --> 16:56:52,520 small and C Small in case of M query 25175 16:56:52,520 --> 16:56:55,200 each formula steps buil upon a previous 25176 16:56:55,200 --> 16:56:57,916 step by referring the step by its 25177 16:56:57,916 --> 16:56:59,400 variable name so what happens when you 25178 16:56:59,400 --> 16:57:01,720 look at the code which is automatically 25179 16:57:01,720 --> 16:57:03,680 generated by power query you will find 25180 16:57:03,680 --> 16:57:05,240 that each step is referring to the 25181 16:57:05,240 --> 16:57:07,360 previous step that is not necessary when 25182 16:57:07,360 --> 16:57:09,560 we start the coding I'll showcase you 25183 16:57:09,560 --> 16:57:11,840 that it is not necessary you refer it to 25184 16:57:11,840 --> 16:57:13,200 the immediate step you can do some 25185 16:57:13,200 --> 16:57:14,756 calculation and post that you can also 25186 16:57:14,756 --> 16:57:17,040 refer it but typically what happens in 25187 16:57:17,040 --> 16:57:18,720 power query when we are autogenerating 25188 16:57:18,720 --> 16:57:20,756 most of the steps are generating tables 25189 16:57:20,756 --> 16:57:22,476 and the table in the step one is getting 25190 16:57:22,476 --> 16:57:24,680 referred by the step two and so on 25191 16:57:24,680 --> 16:57:27,400 finally what we do is we output a query 25192 16:57:27,400 --> 16:57:30,560 formula step using the instatement so 25193 16:57:30,560 --> 16:57:33,000 basically you will give a variable name 25194 16:57:33,000 --> 16:57:35,116 finally after the in generally the last 25195 16:57:35,116 --> 16:57:38,080 step in used in the final data set 25196 16:57:38,080 --> 16:57:39,436 result so what happens whatever is the 25197 16:57:39,436 --> 16:57:41,636 last step you actually try to return the 25198 16:57:41,636 --> 16:57:43,636 result of the last step however it is 25199 16:57:43,636 --> 16:57:46,560 not compulsory but in a logical flow 25200 16:57:46,560 --> 16:57:49,200 that would actually happen so let's take 25201 16:57:49,200 --> 16:57:51,436 an example code in this example code you 25202 16:57:51,436 --> 16:57:53,916 can see the code start with the let 25203 16:57:53,916 --> 16:57:55,796 statement and in the next line you have 25204 16:57:55,796 --> 16:57:58,320 variable name equals to expression means 25205 16:57:58,320 --> 16:57:59,756 you are assigning the expression to the 25206 16:57:59,756 --> 16:58:01,636 variable name in the next one you have 25207 16:58:01,636 --> 16:58:03,436 hash variable name equal to expression 25208 16:58:03,436 --> 16:58:05,276 two which you are assigning to a 25209 16:58:05,276 --> 16:58:07,160 variable name which is basically having 25210 16:58:07,160 --> 16:58:09,040 the space and finally you end up 25211 16:58:09,040 --> 16:58:11,040 returning the variable name here see we 25212 16:58:11,040 --> 16:58:13,116 are not returning the last step we are 25213 16:58:13,116 --> 16:58:15,160 returning a step before so that is also 25214 16:58:15,160 --> 16:58:17,840 possible just like every other language 25215 16:58:17,840 --> 16:58:19,840 we have the data types here we call it 25216 16:58:19,840 --> 16:58:22,476 primitive values A Primitive value is a 25217 16:58:22,476 --> 16:58:24,956 single part value such as number logical 25218 16:58:24,956 --> 16:58:28,320 text or null a null can be used to 25219 16:58:28,320 --> 16:58:30,436 indicate the absence of any data me if 25220 16:58:30,436 --> 16:58:32,040 the value is not present that's what we 25221 16:58:32,040 --> 16:58:34,116 call null so let's say binary is 25222 16:58:34,116 --> 16:58:35,880 something like 0 0 and something like 25223 16:58:35,880 --> 16:58:38,680 that date is your all your dates date 25224 16:58:38,680 --> 16:58:41,916 and time date along with the time date 25225 16:58:41,916 --> 16:58:44,720 time zone it will also include date time 25226 16:58:44,720 --> 16:58:46,916 as well as time zone duration now 25227 16:58:46,916 --> 16:58:48,840 duration is not same as time duration 25228 16:58:48,840 --> 16:58:53,240 will have Day hours minutes and seconds 25229 16:58:53,240 --> 16:58:54,680 then you have logical which is true and 25230 16:58:54,680 --> 16:58:57,116 false null means you have null value 25231 16:58:57,116 --> 16:58:59,320 number you can have 1 2 3 4 or you can 25232 16:58:59,320 --> 16:59:01,596 have decimal numbers text you can have 25233 16:59:01,596 --> 16:59:03,840 ABC or any kind of text which you want 25234 16:59:03,840 --> 16:59:06,636 text can have numbers also and then time 25235 16:59:06,636 --> 16:59:08,436 and time is different from dur time will 25236 16:59:08,436 --> 16:59:11,000 have only time for of 24 hours it will 25237 16:59:11,000 --> 16:59:12,400 not have the day component which 25238 16:59:12,400 --> 16:59:14,916 duration 25239 16:59:15,596 --> 16:59:19,160 has in power query we can use functions 25240 16:59:19,160 --> 16:59:22,116 a function is a value that when invol 25241 16:59:22,116 --> 16:59:24,436 with argument produces a new value means 25242 16:59:24,436 --> 16:59:25,796 you have to give the argument and when 25243 16:59:25,796 --> 16:59:27,636 you invoke it it will produce a new 25244 16:59:27,636 --> 16:59:30,276 value functions are written by listing 25245 16:59:30,276 --> 16:59:31,756 the functions parameter in the 25246 16:59:31,756 --> 16:59:33,160 parenthesis so in the parenthesis you 25247 16:59:33,160 --> 16:59:35,476 have to give the parameters followed by 25248 16:59:35,476 --> 16:59:38,080 goes to symbol means this equal to an 25249 16:59:38,080 --> 16:59:40,000 arrow is known as goes to symbol 25250 16:59:40,000 --> 16:59:42,040 followed by the expression defining the 25251 16:59:42,040 --> 16:59:44,160 function for example to create a 25252 16:59:44,160 --> 16:59:47,000 function called my function that has two 25253 16:59:47,000 --> 16:59:49,400 parameter and perform a calculation on 25254 16:59:49,400 --> 16:59:51,520 parameter 1 plus parameter 2 so this is 25255 16:59:51,520 --> 16:59:53,400 an example which has been given so first 25256 16:59:53,400 --> 16:59:55,840 statement is let my function equals to 25257 16:59:55,840 --> 16:59:58,080 the parameters parameter 1 and parameter 25258 16:59:58,080 --> 17:00:00,116 2 you can have more than two parameters 25259 17:00:00,116 --> 17:00:01,636 that's not limitation that's just an 25260 17:00:01,636 --> 17:00:03,596 example and then the goes by or the 25261 17:00:03,596 --> 17:00:06,116 arrow symbol then you have in the 25262 17:00:06,116 --> 17:00:08,040 parenthesis parameter 1 plus parameter 25263 17:00:08,040 --> 17:00:10,000 two means we are first adding them and 25264 17:00:10,000 --> 17:00:11,756 then dividing it by two so this function 25265 17:00:11,756 --> 17:00:14,360 is going to return the combined half 25266 17:00:14,360 --> 17:00:17,436 value if when we invoke it and then in 25267 17:00:17,436 --> 17:00:19,160 my function you are returning the value 25268 17:00:19,160 --> 17:00:19,916 which 25269 17:00:19,916 --> 17:00:22,476 is finally returned by my 25270 17:00:22,476 --> 17:00:24,956 function we have some structure data 25271 17:00:24,956 --> 17:00:27,636 values that include list record table 25272 17:00:27,636 --> 17:00:30,040 and some additional structure Now list 25273 17:00:30,040 --> 17:00:32,880 is something which is uh like a column 25274 17:00:32,880 --> 17:00:35,160 so basically a set of values is known as 25275 17:00:35,160 --> 17:00:36,880 list so a table column is also 25276 17:00:36,880 --> 17:00:39,520 considered as a list record is a record 25277 17:00:39,520 --> 17:00:41,080 which where we have a column name and a 25278 17:00:41,080 --> 17:00:42,520 value column name and a value it's 25279 17:00:42,520 --> 17:00:44,636 basically like a row so you can consider 25280 17:00:44,636 --> 17:00:47,200 a table row as a record and a table 25281 17:00:47,200 --> 17:00:50,436 column fully qualified table column name 25282 17:00:50,436 --> 17:00:52,596 is considered as a list now there are 25283 17:00:52,596 --> 17:00:54,436 differences we cannot always use the 25284 17:00:54,436 --> 17:00:56,796 same term but this is just an example 25285 17:00:56,796 --> 17:00:58,360 what we will do when we actually go 25286 17:00:58,360 --> 17:01:02,276 ahead and do the coding we will use the 25287 17:01:02,276 --> 17:01:04,476 table column as a list also and we'll do 25288 17:01:04,476 --> 17:01:06,636 the list operation on that so these are 25289 17:01:06,636 --> 17:01:08,160 the few data types which are really 25290 17:01:08,160 --> 17:01:09,720 important and there are tons of 25291 17:01:09,720 --> 17:01:12,276 operations around list record text 25292 17:01:12,276 --> 17:01:15,000 number and dates and if you are able to 25293 17:01:15,000 --> 17:01:17,040 practice those functions you will be 25294 17:01:17,040 --> 17:01:19,276 able to solve many complex Logics and 25295 17:01:19,276 --> 17:01:20,840 most of these functions are already 25296 17:01:20,840 --> 17:01:22,756 discussed on my YouTu YouTube channel so 25297 17:01:22,756 --> 17:01:24,796 you can take advantage of that in this 25298 17:01:24,796 --> 17:01:26,756 series and video we are going to 25299 17:01:26,756 --> 17:01:28,796 consider some of them so that you can 25300 17:01:28,796 --> 17:01:33,360 create foundation for using other 25301 17:01:35,276 --> 17:01:37,520 functions let's jump on to the new Power 25302 17:01:37,520 --> 17:01:39,636 ba file I already opened a new power v 25303 17:01:39,636 --> 17:01:41,756 file and how do we reach power query so 25304 17:01:41,756 --> 17:01:43,916 we click on the transform data and under 25305 17:01:43,916 --> 17:01:46,400 that we again have the transform data 25306 17:01:46,400 --> 17:01:48,240 and from there we will reach the power 25307 17:01:48,240 --> 17:01:50,680 query once we open the power query you 25308 17:01:50,680 --> 17:01:53,040 will find nothing is there it is empty 25309 17:01:53,040 --> 17:01:55,160 what we have to do is we have to add a 25310 17:01:55,160 --> 17:01:57,276 new source for that we are going to use 25311 17:01:57,276 --> 17:01:59,720 the new source option under the Home tab 25312 17:01:59,720 --> 17:02:02,400 and from there we will go to blank query 25313 17:02:02,400 --> 17:02:04,916 and add a blank query what happens when 25314 17:02:04,916 --> 17:02:06,596 you create the blank query it creates it 25315 17:02:06,596 --> 17:02:09,116 with default steps and we have to modify 25316 17:02:09,116 --> 17:02:11,796 those default step how do we reach there 25317 17:02:11,796 --> 17:02:13,756 reach either you can use right click 25318 17:02:13,756 --> 17:02:16,040 Advance editor or there is an advanc 25319 17:02:16,040 --> 17:02:18,680 editor option in the Home tab also I 25320 17:02:18,680 --> 17:02:21,560 will use the right click advanc editor 25321 17:02:21,560 --> 17:02:23,840 Let me open that now here in the source 25322 17:02:23,840 --> 17:02:25,400 let's say I can write down an integer 25323 17:02:25,400 --> 17:02:28,000 one then we click on done now you can 25324 17:02:28,000 --> 17:02:30,720 see it is returning one every time you 25325 17:02:30,720 --> 17:02:32,000 return return anything other than table 25326 17:02:32,000 --> 17:02:33,476 it gives you an option to convert that 25327 17:02:33,476 --> 17:02:35,476 to a table if it is not a list it can 25328 17:02:35,476 --> 17:02:37,880 give you convert to a list or to a table 25329 17:02:37,880 --> 17:02:39,160 but the list it will only give you 25330 17:02:39,160 --> 17:02:41,476 convert to a table it is returning right 25331 17:02:41,476 --> 17:02:43,360 now one which is of number data type 25332 17:02:43,360 --> 17:02:46,400 every time you do an operation based on 25333 17:02:46,400 --> 17:02:48,400 that operation's return type it is going 25334 17:02:48,400 --> 17:02:50,720 to return that particular data type I 25335 17:02:50,720 --> 17:02:53,360 can go here Advance editor again and I 25336 17:02:53,360 --> 17:02:55,360 can make it let's say double 25337 17:02:55,360 --> 17:02:59,680 codes a b c and if I return now now it 25338 17:02:59,680 --> 17:03:01,636 is rning a string and the moment I 25339 17:03:01,636 --> 17:03:03,200 return the string I have different 25340 17:03:03,200 --> 17:03:06,000 option like format it identifies the 25341 17:03:06,000 --> 17:03:08,116 written type and based on that it gives 25342 17:03:08,116 --> 17:03:10,320 the different options to us same way we 25343 17:03:10,320 --> 17:03:12,840 can perform some operation right click 25344 17:03:12,840 --> 17:03:14,756 go to advance editor and this and it is 25345 17:03:14,756 --> 17:03:16,520 not necessar the name need to be source 25346 17:03:16,520 --> 17:03:19,276 so let's create a variable a = to 1 25347 17:03:19,276 --> 17:03:24,200 comma next line B = to 2 comma e = to a 25348 17:03:24,200 --> 17:03:27,160 + b and let's return return C let me 25349 17:03:27,160 --> 17:03:29,040 click on done to close the Advan editor 25350 17:03:29,040 --> 17:03:31,476 and get the results just like any other 25351 17:03:31,476 --> 17:03:32,880 programming language I'm getting the 25352 17:03:32,880 --> 17:03:35,400 results of C which is a plus b equals to 25353 17:03:35,400 --> 17:03:38,040 3 same way again we can go ahead right 25354 17:03:38,040 --> 17:03:40,240 click advance editer and we can modify 25355 17:03:40,240 --> 17:03:42,276 it let's say to multiply this but for 25356 17:03:42,276 --> 17:03:43,680 multiplication let's take little bit 25357 17:03:43,680 --> 17:03:45,320 different numbers let's take a is equal 25358 17:03:45,320 --> 17:03:49,160 to 3 balal to a mtip by B and let's 25359 17:03:49,160 --> 17:03:50,756 click on the done and we are getting the 25360 17:03:50,756 --> 17:03:52,200 expected result 6 25361 17:03:52,200 --> 17:03:54,436 it is not that we can do the operations 25362 17:03:54,436 --> 17:03:56,796 on number only we can do it on text also 25363 17:03:56,796 --> 17:03:59,276 so let's go back again using the Advan 25364 17:03:59,276 --> 17:04:01,756 editor let's change these two strings 25365 17:04:01,756 --> 17:04:03,840 now hey I'm going to give in double 25366 17:04:03,840 --> 17:04:06,916 codes Microsoft without space second one 25367 17:04:06,916 --> 17:04:09,476 we'll call this power B turn on let's 25368 17:04:09,476 --> 17:04:14,916 try to add them so a m% base m% B let's 25369 17:04:14,916 --> 17:04:17,680 written P so C is appending Microsoft 25370 17:04:17,680 --> 17:04:19,436 and power B in the space click on the 25371 17:04:19,436 --> 17:04:21,116 done and let's check the result the 25372 17:04:21,116 --> 17:04:23,636 result is Microsoft powerbi and it is a 25373 17:04:23,636 --> 17:04:25,840 text and we are getting option to edit 25374 17:04:25,840 --> 17:04:28,560 the text in this manner you can do some 25375 17:04:28,560 --> 17:04:30,520 basic operation so let's name this right 25376 17:04:30,520 --> 17:04:33,636 now as q1 query one I can double click 25377 17:04:33,636 --> 17:04:35,596 or rename right click or rename these 25378 17:04:35,596 --> 17:04:37,276 are various options are there and as you 25379 17:04:37,276 --> 17:04:40,160 see every step has been given here 25380 17:04:40,160 --> 17:04:42,636 applied steps and these steps can be 25381 17:04:42,636 --> 17:04:45,080 deleted or added between steps can be 25382 17:04:45,080 --> 17:04:47,436 added as per right let's understand in 25383 17:04:47,436 --> 17:04:48,956 more detail what all steps we have 25384 17:04:48,956 --> 17:04:50,956 created so let's go back to the Advance 25385 17:04:50,956 --> 17:04:53,320 editor again and in advanced editor you 25386 17:04:53,320 --> 17:04:55,680 can see in the step one we have assigned 25387 17:04:55,680 --> 17:04:57,596 a value step two we assigned a value and 25388 17:04:57,596 --> 17:04:59,320 step three we appended this value and 25389 17:04:59,320 --> 17:05:01,596 finally in the end we have given back 25390 17:05:01,596 --> 17:05:04,240 that value so how we have done it let 25391 17:05:04,240 --> 17:05:06,880 variable and the data variable and the 25392 17:05:06,880 --> 17:05:09,080 data variable and the operation and then 25393 17:05:09,080 --> 17:05:11,040 finally in the in we have the variable 25394 17:05:11,040 --> 17:05:13,160 which we plan to return so this is what 25395 17:05:13,160 --> 17:05:15,596 we have done let variable variable 25396 17:05:15,596 --> 17:05:17,796 operation and R and then finally press 25397 17:05:17,796 --> 17:05:20,320 done now let's go ahead and try more 25398 17:05:20,320 --> 17:05:22,160 stuff so what I would like to now here 25399 17:05:22,160 --> 17:05:25,080 is let me try to create list so for list 25400 17:05:25,080 --> 17:05:27,116 let's start again by creating a new 25401 17:05:27,116 --> 17:05:29,320 query we go to the open 25402 17:05:29,320 --> 17:05:33,680 tab we'll take a blank query right click 25403 17:05:33,680 --> 17:05:36,596 and want editor let me create a list 25404 17:05:36,596 --> 17:05:38,240 list is something where we give data 25405 17:05:38,240 --> 17:05:40,276 into the angular brackets now it's a 25406 17:05:40,276 --> 17:05:44,116 list of mix 1 2 3 a that's a mixed list 25407 17:05:44,116 --> 17:05:46,080 I wanted to create I to return the same 25408 17:05:46,080 --> 17:05:48,476 but you can see list of mix which have 25409 17:05:48,476 --> 17:05:50,436 created create one more list go back to 25410 17:05:50,436 --> 17:05:54,756 the tab new source BL 25411 17:05:54,756 --> 17:05:57,476 query again right click 25412 17:05:57,476 --> 17:06:00,116 adance and let's create list of 25413 17:06:00,116 --> 17:06:03,360 numbers so Source equals to list of 25414 17:06:03,360 --> 17:06:04,840 numbers how do we give a list in the 25415 17:06:04,840 --> 17:06:06,880 angular bracket if you give the comma 25416 17:06:06,880 --> 17:06:08,476 separated value that is list if you are 25417 17:06:08,476 --> 17:06:10,240 giving numbers read of double code if 25418 17:06:10,240 --> 17:06:11,596 you want to give the text then you have 25419 17:06:11,596 --> 17:06:13,360 to give them in double code we creating 25420 17:06:13,360 --> 17:06:15,636 a list angular brackets when we use it 25421 17:06:15,636 --> 17:06:19,476 creates a list press on done and let's 25422 17:06:19,476 --> 17:06:22,240 return this we got a list 1 2 3 again 25423 17:06:22,240 --> 17:06:24,200 now this time if you look at here you 25424 17:06:24,200 --> 17:06:26,276 have option as it is a list there is 25425 17:06:26,276 --> 17:06:28,116 only one option two table there is no 25426 17:06:28,116 --> 17:06:30,436 option to list here let's take one more 25427 17:06:30,436 --> 17:06:32,276 example this time we are going to create 25428 17:06:32,276 --> 17:06:34,796 a list of list again new source lank 25429 17:06:34,796 --> 17:06:37,720 query right click Advance editor and 25430 17:06:37,720 --> 17:06:39,956 here inside the angular bracket what I'm 25431 17:06:39,956 --> 17:06:42,880 doing is angular bracket 1 2 3 angular 25432 17:06:42,880 --> 17:06:45,756 bracket 4 5 6 and then again angular 25433 17:06:45,756 --> 17:06:48,596 bracket list of list I'm creating click 25434 17:06:48,596 --> 17:06:51,160 on done and you can see there's a list 25435 17:06:51,160 --> 17:06:53,360 if you click on that look at below you 25436 17:06:53,360 --> 17:06:55,840 will get the data and this do allow you 25437 17:06:55,840 --> 17:06:57,880 to expand so once you convert it into a 25438 17:06:57,880 --> 17:06:59,720 table this will allow you to expand the 25439 17:06:59,720 --> 17:07:01,680 list and further do more operations 25440 17:07:01,680 --> 17:07:04,040 let's create list of text also new 25441 17:07:04,040 --> 17:07:06,756 source land query right click Advance 25442 17:07:06,756 --> 17:07:10,520 editor in the envelope brackets a b c e 25443 17:07:10,520 --> 17:07:14,560 e fi and let's click on now we got a 25444 17:07:14,560 --> 17:07:17,080 list of text now we would like to create 25445 17:07:17,080 --> 17:07:18,756 something which is little bit more 25446 17:07:18,756 --> 17:07:20,476 interesting we want to create a how do 25447 17:07:20,476 --> 17:07:21,796 we create a record let's go go to the 25448 17:07:21,796 --> 17:07:24,476 Home tab new source blank query let's 25449 17:07:24,476 --> 17:07:27,916 right click andan enter now in the 25450 17:07:27,916 --> 17:07:29,636 square bracket we to write down the 25451 17:07:29,636 --> 17:07:31,840 record the square bracket you can write 25452 17:07:31,840 --> 17:07:34,116 down the record and the record what you 25453 17:07:34,116 --> 17:07:36,160 name of the column and the value name of 25454 17:07:36,160 --> 17:07:38,200 the column and the value name of the and 25455 17:07:38,200 --> 17:07:39,796 the value this is how you write down in 25456 17:07:39,796 --> 17:07:41,360 the square bracket now there is no 25457 17:07:41,360 --> 17:07:43,560 currently here give square bracket click 25458 17:07:43,560 --> 17:07:45,916 on done how you going to record Now 25459 17:07:45,916 --> 17:07:47,476 record when we convert to a table it 25460 17:07:47,476 --> 17:07:49,276 let's take example here actually 25461 17:07:49,276 --> 17:07:51,000 converts it into like four record we 25462 17:07:51,000 --> 17:07:53,596 have to actually ask whoose it now who 25463 17:07:53,596 --> 17:07:55,080 knows 25464 17:07:55,080 --> 17:07:57,160 it and this is the step which is 25465 17:07:57,160 --> 17:07:58,796 automatically added and let's look at 25466 17:07:58,796 --> 17:08:01,320 here advanc editor and now you will 25467 17:08:01,320 --> 17:08:02,436 understand that you know how the 25468 17:08:02,436 --> 17:08:03,956 previous step is refer this was the 25469 17:08:03,956 --> 17:08:06,400 previous step and when we convert it to 25470 17:08:06,400 --> 17:08:08,360 the table here if you look record to 25471 17:08:08,360 --> 17:08:10,476 table this step has been referred here 25472 17:08:10,476 --> 17:08:12,560 we have referring source is refering to 25473 17:08:12,560 --> 17:08:14,880 the source of the last step and then in 25474 17:08:14,880 --> 17:08:17,160 is referring to the last step name this 25475 17:08:17,160 --> 17:08:19,720 is how we refer steps in subsequent 25476 17:08:19,720 --> 17:08:21,796 steps now let's take one more example 25477 17:08:21,796 --> 17:08:23,400 and this time what we are going to 25478 17:08:23,400 --> 17:08:26,320 create is list of record new sports 25479 17:08:26,320 --> 17:08:29,116 blank query right click Advanced editor 25480 17:08:29,116 --> 17:08:32,520 here now square ones are the records and 25481 17:08:32,520 --> 17:08:34,756 comma separated list of Records inside 25482 17:08:34,756 --> 17:08:37,080 the angular bracket creating the list 25483 17:08:37,080 --> 17:08:40,000 click on done you got records you can 25484 17:08:40,000 --> 17:08:42,476 see your records here let's convert it 25485 17:08:42,476 --> 17:08:45,756 into two table okay you select the 25486 17:08:45,756 --> 17:08:47,560 option then you can see you got two 25487 17:08:47,560 --> 17:08:49,240 records and now you can expand the 25488 17:08:49,240 --> 17:08:51,476 record expand the record and you will 25489 17:08:51,476 --> 17:08:54,400 get a table like this in this manner 25490 17:08:54,400 --> 17:08:56,880 these are the steps so now remember 25491 17:08:56,880 --> 17:08:58,476 these functions are automatically added 25492 17:08:58,476 --> 17:09:01,476 by menu let me show you those into the 25493 17:09:01,476 --> 17:09:03,636 advanced editor but you can also 25494 17:09:03,636 --> 17:09:06,116 manually write down these steps if you 25495 17:09:06,116 --> 17:09:08,240 know the function like table from list 25496 17:09:08,240 --> 17:09:10,796 table from expand record you will be 25497 17:09:10,796 --> 17:09:12,756 able to write down all these and in the 25498 17:09:12,756 --> 17:09:14,756 beginner tutorial series I covered most 25499 17:09:14,756 --> 17:09:16,596 of these then go ahead and try that out 25500 17:09:16,596 --> 17:09:18,160 now everywhere you see the reference of 25501 17:09:18,160 --> 17:09:20,320 the last 25502 17:09:20,320 --> 17:09:23,400 step returning the last step in this 25503 17:09:23,400 --> 17:09:26,276 manner the entire flow is happening now 25504 17:09:26,276 --> 17:09:27,840 let's take an example how do we create a 25505 17:09:27,840 --> 17:09:29,436 table now there are multiple ways to 25506 17:09:29,436 --> 17:09:31,240 create table table from record table 25507 17:09:31,240 --> 17:09:33,796 from list but let's take one of the 25508 17:09:33,796 --> 17:09:36,560 example when you wanted to create table 25509 17:09:36,560 --> 17:09:38,000 and the function which we are going to 25510 17:09:38,000 --> 17:09:41,436 use is Hash table the new source blank 25511 17:09:41,436 --> 17:09:44,080 query right click Advance editor and 25512 17:09:44,080 --> 17:09:45,476 here we are going to write down hash 25513 17:09:45,476 --> 17:09:47,276 table now after the hash table what is 25514 17:09:47,276 --> 17:09:50,160 the syntax you need to give first a list 25515 17:09:50,160 --> 17:09:51,956 a list which will contain the column 25516 17:09:51,956 --> 17:09:54,756 names and then you get need give a list 25517 17:09:54,756 --> 17:09:57,116 of lists which will contain your each 25518 17:09:57,116 --> 17:09:59,840 row the list then list of list the two 25519 17:09:59,840 --> 17:10:02,160 arguments one is list and then list of 25520 17:10:02,160 --> 17:10:03,596 list these are the two argument hash 25521 17:10:03,596 --> 17:10:05,276 table requires putting his hash table 25522 17:10:05,276 --> 17:10:07,520 into the SCE and we are rning click on 25523 17:10:07,520 --> 17:10:10,276 done and you will get your table and you 25524 17:10:10,276 --> 17:10:12,796 got a table directly we got a table 25525 17:10:12,796 --> 17:10:15,080 let's try one more example this example 25526 17:10:15,080 --> 17:10:16,596 again we are going to use hash table but 25527 17:10:16,596 --> 17:10:18,596 with a little bit different again blank 25528 17:10:18,596 --> 17:10:21,476 query new source blank query right click 25529 17:10:21,476 --> 17:10:24,160 editor here in the hash table first we 25530 17:10:24,160 --> 17:10:27,000 say type table then we give a record the 25531 17:10:27,000 --> 17:10:30,116 record contains the data type also now 25532 17:10:30,116 --> 17:10:31,796 here previously we have not mentioned 25533 17:10:31,796 --> 17:10:33,040 the data type here we are mentioning 25534 17:10:33,040 --> 17:10:35,360 order ID is number customer ID is number 25535 17:10:35,360 --> 17:10:37,560 item is text price is number and then 25536 17:10:37,560 --> 17:10:40,200 giving list of list so the only thing is 25537 17:10:40,200 --> 17:10:42,276 first argument we have changed and the 25538 17:10:42,276 --> 17:10:44,400 first argument we giving type table we 25539 17:10:44,400 --> 17:10:46,680 are telling the record where we are 25540 17:10:46,680 --> 17:10:48,160 telling the column name and the data 25541 17:10:48,160 --> 17:10:50,080 type and then we are giving list of list 25542 17:10:50,080 --> 17:10:52,476 let's click on that again you got the 25543 17:10:52,476 --> 17:10:55,276 table let me add one more query here 25544 17:10:55,276 --> 17:10:57,636 land query in this query let's take an 25545 17:10:57,636 --> 17:11:00,956 example of list of Records so new source 25546 17:11:00,956 --> 17:11:03,916 blank query right click Advance editor 25547 17:11:03,916 --> 17:11:07,040 The Source equals to 25548 17:11:07,040 --> 17:11:09,520 list and inside the list we have records 25549 17:11:09,520 --> 17:11:11,240 so list of Records what we are trying 25550 17:11:11,240 --> 17:11:13,636 and inside the record as usual the 25551 17:11:13,636 --> 17:11:15,956 column name the value column name and 25552 17:11:15,956 --> 17:11:18,756 value let's click on done we got list of 25553 17:11:18,756 --> 17:11:21,240 Records we can convert this into table 25554 17:11:21,240 --> 17:11:23,756 will expand the records and can get our 25555 17:11:23,756 --> 17:11:24,680 full 25556 17:11:24,680 --> 17:11:27,360 table now we will look at example where 25557 17:11:27,360 --> 17:11:30,596 we wanted to create table from Recon so 25558 17:11:30,596 --> 17:11:33,520 let's create one more query home new 25559 17:11:33,520 --> 17:11:36,560 sources L query right click Advan editor 25560 17:11:36,560 --> 17:11:38,520 and so here what we are doing is in the 25561 17:11:38,520 --> 17:11:41,200 source we are getting table from records 25562 17:11:41,200 --> 17:11:43,116 this is the function and inside this 25563 17:11:43,116 --> 17:11:45,040 function we are giving a list of Records 25564 17:11:45,040 --> 17:11:47,400 that's what we have to give every list 25565 17:11:47,400 --> 17:11:49,880 has records every record has columns and 25566 17:11:49,880 --> 17:11:51,720 the values different data type and 25567 17:11:51,720 --> 17:11:53,200 different names can be there then 25568 17:11:53,200 --> 17:11:55,276 another record then one more record we 25569 17:11:55,276 --> 17:11:57,880 can have as many records as we want then 25570 17:11:57,880 --> 17:11:59,636 you click on that now you have learned 25571 17:11:59,636 --> 17:12:03,320 how can we create numbers text list 25572 17:12:03,320 --> 17:12:06,636 records table table from records table 25573 17:12:06,636 --> 17:12:09,436 from list and so many things now we have 25574 17:12:09,436 --> 17:12:12,596 to learn few more things for few things 25575 17:12:12,596 --> 17:12:14,680 you cannot simply write down a value let 25576 17:12:14,680 --> 17:12:16,560 let's take an example of date how are 25577 17:12:16,560 --> 17:12:18,840 you going to write down dates let's add 25578 17:12:18,840 --> 17:12:21,400 a blank query and right click advance 25579 17:12:21,400 --> 17:12:23,436 editor for some of those we have 25580 17:12:23,436 --> 17:12:26,160 shortcut hash functions like for date we 25581 17:12:26,160 --> 17:12:28,276 have hash 25582 17:12:28,276 --> 17:12:31,116 date you seen hash table we have hash 25583 17:12:31,116 --> 17:12:32,360 date here 25584 17:12:32,360 --> 17:12:36,240 2024 0101 click on 25585 17:12:36,240 --> 17:12:39,596 done you got a date similarly right 25586 17:12:39,596 --> 17:12:42,796 click Advance editor you can date time 25587 17:12:42,796 --> 17:12:46,040 are you going have six argument 14 Z 25588 17:12:46,040 --> 17:12:48,080 click on 25589 17:12:48,080 --> 17:12:50,880 done you have date time and you can see 25590 17:12:50,880 --> 17:12:52,360 check the data type it is showing now 25591 17:12:52,360 --> 17:12:53,756 date 25592 17:12:53,756 --> 17:12:56,520 time and then it is giving option for 25593 17:12:56,520 --> 17:12:58,956 date separation time separation now 25594 17:12:58,956 --> 17:13:01,636 let's create duration 25595 17:13:01,636 --> 17:13:03,840 also new 25596 17:13:03,840 --> 17:13:07,720 query right click Advance editor as 25597 17:13:07,720 --> 17:13:09,756 duration and these are all small 25598 17:13:09,756 --> 17:13:11,200 typically it is case sensitive and you 25599 17:13:11,200 --> 17:13:13,360 will always find the functions names are 25600 17:13:13,360 --> 17:13:15,276 in title case like table do record and 25601 17:13:15,276 --> 17:13:18,320 all those but here is all small when it 25602 17:13:18,320 --> 17:13:20,756 is coming with hash hash table hash date 25603 17:13:20,756 --> 17:13:22,320 hash date time hash duration and 25604 17:13:22,320 --> 17:13:24,320 duration you can give first day then 25605 17:13:24,320 --> 17:13:27,000 hour minutes 25606 17:13:27,000 --> 17:13:30,476 seconds click on done and you got a 25607 17:13:30,476 --> 17:13:32,956 duration now you before to create a list 25608 17:13:32,956 --> 17:13:34,560 of duration or list of time you can 25609 17:13:34,560 --> 17:13:37,840 right click do Advance editor if angular 25610 17:13:37,840 --> 17:13:40,636 bracket and in the angular bracket one 25611 17:13:40,636 --> 17:13:44,320 of that click on done get the list of 25612 17:13:44,320 --> 17:13:47,276 duration we can create table from it 25613 17:13:47,276 --> 17:13:49,040 these are some of the basic functions 25614 17:13:49,040 --> 17:13:52,596 and operation you must remember 25615 17:13:52,596 --> 17:13:55,436 now before I tell you little bit more 25616 17:13:55,436 --> 17:13:57,436 about some of the functions which could 25617 17:13:57,436 --> 17:13:59,956 be really useful I would like to import 25618 17:13:59,956 --> 17:14:02,840 one file again and show you what are the 25619 17:14:02,840 --> 17:14:05,476 steps which file creates and again for 25620 17:14:05,476 --> 17:14:07,636 that I'm going to take out our favorite 25621 17:14:07,636 --> 17:14:11,400 file T data used in videos by bringing 25622 17:14:11,400 --> 17:14:13,116 this file we would like to understand 25623 17:14:13,116 --> 17:14:15,560 what all steps is going to create I'll 25624 17:14:15,560 --> 17:14:17,596 bring in the sales data us video again 25625 17:14:17,596 --> 17:14:21,400 so new source B give the URL click on 25626 17:14:21,400 --> 17:14:23,400 okay and we don't need to bring in all 25627 17:14:23,400 --> 17:14:26,200 the sheet can bring in one sheet let's 25628 17:14:26,200 --> 17:14:29,240 bring in customer click on 25629 17:14:29,240 --> 17:14:31,796 okay and there was no load button or 25630 17:14:31,796 --> 17:14:33,080 transform button this time because we 25631 17:14:33,080 --> 17:14:34,720 are in power query so we are going to 25632 17:14:34,720 --> 17:14:36,520 each here only we are not interested in 25633 17:14:36,520 --> 17:14:39,360 what is coming here on the table view we 25634 17:14:39,360 --> 17:14:41,160 are more interested in right click 25635 17:14:41,160 --> 17:14:43,080 Advance editor and what is happening 25636 17:14:43,080 --> 17:14:45,400 here is basically there is a let this is 25637 17:14:45,400 --> 17:14:47,160 the first step where we are getting the 25638 17:14:47,160 --> 17:14:49,796 Excel sheet now from the Excel sheet 25639 17:14:49,796 --> 17:14:51,560 these ports we are getting the 25640 17:14:51,560 --> 17:14:54,276 data of sheet customer sheet item 25641 17:14:54,276 --> 17:14:56,520 customer kinda sheet data so we are 25642 17:14:56,520 --> 17:14:58,436 getting the sheets data after that 25643 17:14:58,436 --> 17:15:00,276 promote header and look for what promote 25644 17:15:00,276 --> 17:15:02,040 header is refering it is referring to 25645 17:15:02,040 --> 17:15:04,320 the customer sheet what customer sheet 25646 17:15:04,320 --> 17:15:06,596 is referring is refering to for the 25647 17:15:06,596 --> 17:15:08,080 function which has been used on for then 25648 17:15:08,080 --> 17:15:10,796 we have change type change type if you 25649 17:15:10,796 --> 17:15:12,520 see it is referring to the promoted 25650 17:15:12,520 --> 17:15:14,560 address which is the last and finally 25651 17:15:14,560 --> 17:15:16,080 the page type is the one which is 25652 17:15:16,080 --> 17:15:18,360 getting R in this matter what is 25653 17:15:18,360 --> 17:15:21,040 happening is basically each step you 25654 17:15:21,040 --> 17:15:23,520 getting a data and next step is that 25655 17:15:23,520 --> 17:15:25,276 transformation to the next level what we 25656 17:15:25,276 --> 17:15:27,080 think in such cases that every time it 25657 17:15:27,080 --> 17:15:29,240 is referring to the last step but if 25658 17:15:29,240 --> 17:15:31,680 that is not completely true sometime it 25659 17:15:31,680 --> 17:15:33,320 may happen just like we have done in our 25660 17:15:33,320 --> 17:15:36,636 older example that it can refer to the 25661 17:15:36,636 --> 17:15:38,520 previous step or previous to previous 25662 17:15:38,520 --> 17:15:40,476 step we might have a couple of step and 25663 17:15:40,476 --> 17:15:42,520 after that the output will be used in 25664 17:15:42,520 --> 17:15:44,560 another step so those combinations are 25665 17:15:44,560 --> 17:15:46,560 also possible most of the time what 25666 17:15:46,560 --> 17:15:48,636 happens it is T table at the each step 25667 17:15:48,636 --> 17:15:50,436 so what we think is it is table in the 25668 17:15:50,436 --> 17:15:51,956 first step it is table which is carrying 25669 17:15:51,956 --> 17:15:53,596 on the next step next step it is table 25670 17:15:53,596 --> 17:15:55,116 and then further more table table is 25671 17:15:55,116 --> 17:15:56,400 referring to the last step which is 25672 17:15:56,400 --> 17:15:59,116 table and again giving us table but that 25673 17:15:59,116 --> 17:16:01,116 is not completely true just like any 25674 17:16:01,116 --> 17:16:02,756 other programming language we can have 25675 17:16:02,756 --> 17:16:04,320 steps which can have different kind of 25676 17:16:04,320 --> 17:16:07,200 variables and those can be combined to 25677 17:16:07,200 --> 17:16:11,000 create a result T and because finally we 25678 17:16:11,000 --> 17:16:13,040 want a table for analysis that is why 25679 17:16:13,040 --> 17:16:16,636 most of our power query final output 25680 17:16:16,636 --> 17:16:19,160 would be a table now there are functions 25681 17:16:19,160 --> 17:16:20,560 where we will be able to Loop the 25682 17:16:20,560 --> 17:16:22,720 function funs which will allow you to 25683 17:16:22,720 --> 17:16:24,680 Loop through each row of the table there 25684 17:16:24,680 --> 17:16:26,436 are functions which allow you to Loop 25685 17:16:26,436 --> 17:16:28,880 through the each element of the list and 25686 17:16:28,880 --> 17:16:31,200 using those functions you will be able 25687 17:16:31,200 --> 17:16:33,636 to create Loops or able to process row 25688 17:16:33,636 --> 17:16:35,560 by row data so just like any other 25689 17:16:35,560 --> 17:16:37,000 programming language we have lot of 25690 17:16:37,000 --> 17:16:39,720 things which we can use here but in this 25691 17:16:39,720 --> 17:16:41,756 series and video we'll might not be able 25692 17:16:41,756 --> 17:16:43,560 to cover everything but we'll try to 25693 17:16:43,560 --> 17:16:46,160 give you a overview which would help you 25694 17:16:46,160 --> 17:16:49,476 to use other functions let's also 25695 17:16:49,476 --> 17:16:50,520 understand what are Power query 25696 17:16:50,520 --> 17:16:51,360 functions 25697 17:16:51,360 --> 17:16:53,520 so to understand that let's go back to 25698 17:16:53,520 --> 17:16:55,596 the file which we are right now already 25699 17:16:55,596 --> 17:16:57,956 in progress and in this file what I'm 25700 17:16:57,956 --> 17:16:59,636 going to do here is I'm going to go to 25701 17:16:59,636 --> 17:17:02,596 the Home tab new query blank query and 25702 17:17:02,596 --> 17:17:04,320 inside that blank query let me create a 25703 17:17:04,320 --> 17:17:06,840 function let me do go ahead and do right 25704 17:17:06,840 --> 17:17:09,040 click Advance editor you want to create 25705 17:17:09,040 --> 17:17:10,596 a simple function function which is 25706 17:17:10,596 --> 17:17:12,520 going to do is my function or I can give 25707 17:17:12,520 --> 17:17:14,720 it as any name I don't need Source in 25708 17:17:14,720 --> 17:17:16,240 that case I need to return this my 25709 17:17:16,240 --> 17:17:20,956 function so let me call it addition FN 25710 17:17:20,956 --> 17:17:23,080 addition function what addition function 25711 17:17:23,080 --> 17:17:25,436 equals to the parameters X and Y and 25712 17:17:25,436 --> 17:17:27,476 what the operation they should do X and 25713 17:17:27,476 --> 17:17:29,400 Y are actually summing up this can do 25714 17:17:29,400 --> 17:17:31,276 any other complex operation now let's 25715 17:17:31,276 --> 17:17:34,320 return return this addition function 25716 17:17:34,320 --> 17:17:37,840 done let's rename this query also now if 25717 17:17:37,840 --> 17:17:39,840 you want to test you can give here let's 25718 17:17:39,840 --> 17:17:42,796 say three and four and those invoke and 25719 17:17:42,796 --> 17:17:46,080 it will give you answer as s and it has 25720 17:17:46,080 --> 17:17:48,080 actually created a new query if you see 25721 17:17:48,080 --> 17:17:50,200 when you use invoke right click advance 25722 17:17:50,200 --> 17:17:53,276 and return it has actually created Force 25723 17:17:53,276 --> 17:17:54,916 addition function this is the query name 25724 17:17:54,916 --> 17:17:56,916 please remember if your query name is 25725 17:17:56,916 --> 17:17:58,240 different from your function name you 25726 17:17:58,240 --> 17:18:00,080 have to use the query name query name 25727 17:18:00,080 --> 17:18:01,400 not the function name so whenever you're 25728 17:18:01,400 --> 17:18:03,160 creating the function make sure your 25729 17:18:03,160 --> 17:18:04,720 function name and query name is same so 25730 17:18:04,720 --> 17:18:07,360 that you don't get confused with two so 25731 17:18:07,360 --> 17:18:09,720 addition function T comma 4 and integ 25732 17:18:09,720 --> 17:18:12,840 instead of I go ahead and doing that it 25733 17:18:12,840 --> 17:18:15,276 has created that so in could have done 25734 17:18:15,276 --> 17:18:17,116 that bland query tested it or you can 25735 17:18:17,116 --> 17:18:19,080 use this function now in any other query 25736 17:18:19,080 --> 17:18:20,880 which you are doing so in this this 25737 17:18:20,880 --> 17:18:22,796 manner you can create functions which 25738 17:18:22,796 --> 17:18:25,476 you can actually use in your other 25739 17:18:25,476 --> 17:18:27,436 operations so let's take one more 25740 17:18:27,436 --> 17:18:29,596 example of the function go to BL tab 25741 17:18:29,596 --> 17:18:31,720 Force blank query and in this blank 25742 17:18:31,720 --> 17:18:34,040 query advanc editor let's use source as 25743 17:18:34,040 --> 17:18:39,596 a function equals to a comma 25744 17:18:39,596 --> 17:18:46,116 B goes to a m per p m per B so if you 25745 17:18:46,116 --> 17:18:47,360 remember what we have written in the 25746 17:18:47,360 --> 17:18:49,956 past and let's call this aend function 25747 17:18:49,956 --> 17:18:52,916 aend a Capital fnend function let's 25748 17:18:52,916 --> 17:18:55,240 create an append function c contr v WR 25749 17:18:55,240 --> 17:18:58,720 append in the in now we got an append 25750 17:18:58,720 --> 17:19:00,956 function we name this query as a pan 25751 17:19:00,956 --> 17:19:06,116 function let's give a as Microsoft b as 25752 17:19:06,116 --> 17:19:09,276 power B let's use it the Microsoft 25753 17:19:09,276 --> 17:19:11,160 powerbi it has it has created a query 25754 17:19:11,160 --> 17:19:13,000 for us and which is giving us the result 25755 17:19:13,000 --> 17:19:14,840 in this manner you can create power 25756 17:19:14,840 --> 17:19:17,040 query function which can do some complex 25757 17:19:17,040 --> 17:19:19,240 transformation and or solve some kind of 25758 17:19:19,240 --> 17:19:21,680 operation and you can you call those 25759 17:19:21,680 --> 17:19:24,276 functions into other queries this is a 25760 17:19:24,276 --> 17:19:26,476 brief overview of power query functions 25761 17:19:26,476 --> 17:19:29,916 power query offers you tons of functions 25762 17:19:29,916 --> 17:19:33,080 which you can use to improve your 25763 17:19:33,080 --> 17:19:35,360 transformation these functions include 25764 17:19:35,360 --> 17:19:38,400 list function table function record 25765 17:19:38,400 --> 17:19:42,880 function text function number function 25766 17:19:42,880 --> 17:19:46,080 Etc now it is not possible to cover all 25767 17:19:46,080 --> 17:19:49,476 of these functions in this series and 25768 17:19:49,476 --> 17:19:51,476 video so what I'm I'm going to do is I'm 25769 17:19:51,476 --> 17:19:53,880 going to cover some of these functions 25770 17:19:53,880 --> 17:19:56,000 uh in this particular video I will cover 25771 17:19:56,000 --> 17:19:58,596 some basic list function which can help 25772 17:19:58,596 --> 17:20:01,436 you understand how to perform list 25773 17:20:01,436 --> 17:20:04,880 operation and based on that you can go 25774 17:20:04,880 --> 17:20:08,276 ahead and perform more operations by 25775 17:20:08,276 --> 17:20:10,520 looking at the documentation of 25776 17:20:10,520 --> 17:20:11,436 different 25777 17:20:11,436 --> 17:20:14,080 functions most of these functions are 25778 17:20:14,080 --> 17:20:16,240 covered on my channels in the beginner 25779 17:20:16,240 --> 17:20:19,320 tutorial series you can go ahead and 25780 17:20:19,320 --> 17:20:21,240 learn from there 25781 17:20:21,240 --> 17:20:23,796 every function is fit for a purpose and 25782 17:20:23,796 --> 17:20:26,436 if you are able to learn most of these 25783 17:20:26,436 --> 17:20:29,040 functions you will be able to perform 25784 17:20:29,040 --> 17:20:31,400 many transformation with 25785 17:20:31,400 --> 17:20:35,160 ease let's jump back to the powerbi and 25786 17:20:35,160 --> 17:20:37,000 the first thing which I would like to do 25787 17:20:37,000 --> 17:20:39,320 here in power ba file is I would like to 25788 17:20:39,320 --> 17:20:41,880 click on close and apply and once that 25789 17:20:41,880 --> 17:20:44,080 is done means the data is loaded I will 25790 17:20:44,080 --> 17:20:46,880 save this file and once this file is 25791 17:20:46,880 --> 17:20:49,040 saved we will go back to the power query 25792 17:20:49,040 --> 17:20:52,436 and start doing some list 25793 17:20:52,436 --> 17:20:55,080 Transformations data loading is done now 25794 17:20:55,080 --> 17:20:57,080 time has come that we save this file let 25795 17:20:57,080 --> 17:20:59,040 me click on the save icon on the left 25796 17:20:59,040 --> 17:21:02,756 top give this file name as N2 25797 17:21:02,756 --> 17:21:06,116 n14 and click on the save button to save 25798 17:21:06,116 --> 17:21:08,840 this file so let's go back to the power 25799 17:21:08,840 --> 17:21:11,160 query using transform data transform 25800 17:21:11,160 --> 17:21:13,880 data and here now we will try to learn 25801 17:21:13,880 --> 17:21:18,000 some list operations Home tab new source 25802 17:21:18,000 --> 17:21:21,360 blank query right click on the new query 25803 17:21:21,360 --> 17:21:23,756 open Advance editor and in advance 25804 17:21:23,756 --> 17:21:25,636 editor we are going to create a list 25805 17:21:25,636 --> 17:21:27,756 inside the angular brackets let me 25806 17:21:27,756 --> 17:21:31,680 create list of numbers by giving 1 2 25807 17:21:31,680 --> 17:21:36,560 5 6 7 3 and 4 don't want to give it in 25808 17:21:36,560 --> 17:21:38,360 the order so that later on I can 25809 17:21:38,360 --> 17:21:41,956 showcase you list. sort let's click on 25810 17:21:41,956 --> 17:21:45,080 done I got a list what I can do is I can 25811 17:21:45,080 --> 17:21:48,000 open this Advanced editor again here on 25812 17:21:48,000 --> 17:21:49,956 this step or on the next step I can do 25813 17:21:49,956 --> 17:21:52,436 this list 25814 17:21:52,916 --> 17:21:55,400 dot there are so many operations this 25815 17:21:55,400 --> 17:21:59,756 dot I have sum I have count I have min 25816 17:21:59,756 --> 17:22:02,160 max all those functions are there let me 25817 17:22:02,160 --> 17:22:05,916 use list. sort to sort this 25818 17:22:05,916 --> 17:22:09,520 list first let's try list. sort and in 25819 17:22:09,520 --> 17:22:11,436 this function I have to give list only 25820 17:22:11,436 --> 17:22:13,756 one argument it takes that's a list list 25821 17:22:13,756 --> 17:22:14,840 is something which we have in the 25822 17:22:14,840 --> 17:22:17,436 envelope bracket let's click on done and 25823 17:22:17,436 --> 17:22:19,520 as you can see the list is sorted in a 25824 17:22:19,520 --> 17:22:21,720 proper order now instead of going back 25825 17:22:21,720 --> 17:22:23,916 here I'm seeing the list I can use list. 25826 17:22:23,916 --> 17:22:26,240 sum and you will see I get a sum now it 25827 17:22:26,240 --> 17:22:28,040 is wring a number it's not no more a 25828 17:22:28,040 --> 17:22:31,756 list similarly I can try list dot Max 25829 17:22:31,756 --> 17:22:34,840 here will give me maximum of the is 25830 17:22:34,840 --> 17:22:39,080 7even in Max you Dy Min list do Min Min 25831 17:22:39,080 --> 17:22:41,400 function you come 25832 17:22:41,400 --> 17:22:45,160 here the list. Min it is list IFA as any 25833 17:22:45,160 --> 17:22:47,320 comparison criteria all those arguments 25834 17:22:47,320 --> 17:22:50,200 you can give we will get the minimum 25835 17:22:50,200 --> 17:22:52,436 value from the list that is one so we 25836 17:22:52,436 --> 17:22:54,756 are getting one so if we have something 25837 17:22:54,756 --> 17:22:57,320 known as count also we can use count 25838 17:22:57,320 --> 17:22:58,880 list. count let's see what all 25839 17:22:58,880 --> 17:23:01,476 argumented need the list argument and it 25840 17:23:01,476 --> 17:23:03,840 will return return us seven now let's go 25841 17:23:03,840 --> 17:23:06,596 ahead and add one more list item so that 25842 17:23:06,596 --> 17:23:08,116 it gives us eight and we are able to 25843 17:23:08,116 --> 17:23:10,436 differentiate between the Max and the 25844 17:23:10,436 --> 17:23:12,636 count now we are interested in couple 25845 17:23:12,636 --> 17:23:15,360 more operations and those operations are 25846 17:23:15,360 --> 17:23:17,680 one which will allow us to Loop through 25847 17:23:17,680 --> 17:23:20,116 the list and do additional operations 25848 17:23:20,116 --> 17:23:22,160 let we add blank query for that new 25849 17:23:22,160 --> 17:23:24,040 source blank 25850 17:23:24,040 --> 17:23:27,240 query right click open Advance editor 25851 17:23:27,240 --> 17:23:28,956 and we are now going to learn the 25852 17:23:28,956 --> 17:23:33,476 function list. number list. number needs 25853 17:23:33,476 --> 17:23:35,520 three argument first argument is 25854 17:23:35,520 --> 17:23:38,160 basically start so from where you want 25855 17:23:38,160 --> 17:23:40,360 to start so I want to start with one how 25856 17:23:40,360 --> 17:23:42,560 many numbers you need 100 and increment 25857 17:23:42,560 --> 17:23:44,916 by which is I want one in this case so 25858 17:23:44,916 --> 17:23:48,636 it will give me 1 to 100 numbers so this 25859 17:23:48,636 --> 17:23:50,916 is a continuous number series in case 25860 17:23:50,916 --> 17:23:53,000 you want a odd number series what you 25861 17:23:53,000 --> 17:23:55,360 can do is you can increment by two and 25862 17:23:55,360 --> 17:23:57,636 it will become a odd number series and 25863 17:23:57,636 --> 17:24:00,240 it is going to give you 100 number it is 25864 17:24:00,240 --> 17:24:03,000 Count total numbers you need not like 25865 17:24:03,000 --> 17:24:06,360 your generate Series where 1 to 100 is 25866 17:24:06,360 --> 17:24:08,116 start and end limit this is not the 25867 17:24:08,116 --> 17:24:10,636 limit this is the count now in case you 25868 17:24:10,636 --> 17:24:13,200 want even number series then you can 25869 17:24:13,200 --> 17:24:16,040 start with two for odd number series you 25870 17:24:16,040 --> 17:24:18,040 can start with one let's start with the 25871 17:24:18,040 --> 17:24:20,636 first argument two comma 100 100 numbers 25872 17:24:20,636 --> 17:24:24,116 I need and then increment by two and 25873 17:24:24,116 --> 17:24:27,116 this will give me now even number series 25874 17:24:27,116 --> 17:24:30,276 a list of 100 even num starting from two 25875 17:24:30,276 --> 17:24:31,840 there are more such functions so let's 25876 17:24:31,840 --> 17:24:34,720 go to the new source blank query 25877 17:24:34,720 --> 17:24:38,276 rightclick Advan editor and here we are 25878 17:24:38,276 --> 17:24:41,520 going to now use list. dates it can 25879 17:24:41,520 --> 17:24:44,436 generate list of dates that will help us 25880 17:24:44,436 --> 17:24:47,160 to create calendar but we do have the 25881 17:24:47,160 --> 17:24:50,436 functions like list. dat time we do have 25882 17:24:50,436 --> 17:24:52,276 list. duration that can give us 25883 17:24:52,276 --> 17:24:54,680 continuous duration but at this time we 25884 17:24:54,680 --> 17:24:58,360 will focus at list. dates so list. dates 25885 17:24:58,360 --> 17:25:00,276 would require three arguments the first 25886 17:25:00,276 --> 17:25:02,200 argument is date for that I'm going to 25887 17:25:02,200 --> 17:25:04,240 use shortcut hash date it again required 25888 17:25:04,240 --> 17:25:08,320 three argument here which is 2022 month 25889 17:25:08,320 --> 17:25:11,916 01 and day 01 comma the count of dates I 25890 17:25:11,916 --> 17:25:14,520 need 365 dates almost for an Year and 25891 17:25:14,520 --> 17:25:16,560 that the duration again I'll use the 25892 17:25:16,560 --> 17:25:19,000 shortcut function hex duration and in 25893 17:25:19,000 --> 17:25:20,916 the duration the first argument is day 25894 17:25:20,916 --> 17:25:22,476 and because I require a date table I'll 25895 17:25:22,476 --> 17:25:25,000 use one then hour minutes and second I'm 25896 17:25:25,000 --> 17:25:28,756 going to use zero and I'll click on done 25897 17:25:28,756 --> 17:25:32,360 and this will give me a series of dates 25898 17:25:32,360 --> 17:25:35,320 which will help me in creating the date 25899 17:25:35,320 --> 17:25:38,636 table so I am now getting continuous 25900 17:25:38,636 --> 17:25:41,360 dates to create a date table we also 25901 17:25:41,360 --> 17:25:43,720 have another powerful function list. 25902 17:25:43,720 --> 17:25:46,680 generate which we can also use so let's 25903 17:25:46,680 --> 17:25:49,160 start again with a new query Home tab 25904 17:25:49,160 --> 17:25:53,360 new source blank query right click Advan 25905 17:25:53,360 --> 17:25:55,476 editor and here we are going to use the 25906 17:25:55,476 --> 17:25:59,240 powerful function list. generate list 25907 17:25:59,240 --> 17:26:00,796 dot 25908 17:26:00,796 --> 17:26:03,680 generate and it requires three arguments 25909 17:26:03,680 --> 17:26:05,680 and all three are functions the initial 25910 17:26:05,680 --> 17:26:07,436 function the condition function and the 25911 17:26:07,436 --> 17:26:09,200 next function so what is the first 25912 17:26:09,200 --> 17:26:10,636 argument the first argument is a 25913 17:26:10,636 --> 17:26:14,596 function without any parameters goes by 25914 17:26:14,596 --> 17:26:16,880 means the arrow and the value which I 25915 17:26:16,880 --> 17:26:18,720 want to give to this function is a 25916 17:26:18,720 --> 17:26:22,680 static value of t to start with the next 25917 17:26:22,680 --> 17:26:24,956 argument is condition and the condition 25918 17:26:24,956 --> 17:26:29,116 is each underscore greater than zero 25919 17:26:29,116 --> 17:26:31,560 here generate is creating a loop and 25920 17:26:31,560 --> 17:26:34,756 each is giving us each value to compare 25921 17:26:34,756 --> 17:26:37,476 and take a decision third argument is 25922 17:26:37,476 --> 17:26:40,276 increased and how we will give it each 25923 17:26:40,276 --> 17:26:43,880 underscore minus one means from each row 25924 17:26:43,880 --> 17:26:47,160 supp the one one value it will give us 25925 17:26:47,160 --> 17:26:48,756 reducing 25926 17:26:48,756 --> 17:26:51,756 list so generate function generate a 25927 17:26:51,756 --> 17:26:54,160 list of values using provided function 25928 17:26:54,160 --> 17:26:56,596 the initial function generates the 25929 17:26:56,596 --> 17:26:58,560 starting candidate value which is then 25930 17:26:58,560 --> 17:27:01,040 tested by the condition if the candidate 25931 17:27:01,040 --> 17:27:03,320 value is approved then it's returned as 25932 17:27:03,320 --> 17:27:05,116 a part of the resulting list and the 25933 17:27:05,116 --> 17:27:07,080 next candidate value is generating by 25934 17:27:07,080 --> 17:27:10,116 passing the newly approved value to the 25935 17:27:10,116 --> 17:27:13,276 next so we have a initial value of 10 25936 17:27:13,276 --> 17:27:16,880 tested every time for greater than zero 25937 17:27:16,880 --> 17:27:20,796 and every value is reduced for minus1 to 25938 17:27:20,796 --> 17:27:24,680 generate a list of values and let me 25939 17:27:24,680 --> 17:27:26,596 click on done and now we are getting 25940 17:27:26,596 --> 17:27:29,636 values from 10 to 1 decreasing by one in 25941 17:27:29,636 --> 17:27:31,956 each row if you want a increasing number 25942 17:27:31,956 --> 17:27:34,880 list you can start with one and say 25943 17:27:34,880 --> 17:27:38,796 underscore less than 100 and then we can 25944 17:27:38,796 --> 17:27:41,560 change the increment by + one each 25945 17:27:41,560 --> 17:27:44,956 underscore + one here the underscore 25946 17:27:44,956 --> 17:27:49,040 represent the value in each time we are 25947 17:27:49,040 --> 17:27:51,680 calculating it each time we are looping 25948 17:27:51,680 --> 17:27:53,680 that value is the underscore value where 25949 17:27:53,680 --> 17:27:56,560 we are adding the one we got a list of 25950 17:27:56,560 --> 17:27:59,756 number using list. generate function 25951 17:27:59,756 --> 17:28:02,956 this time so we have understood few list 25952 17:28:02,956 --> 17:28:05,080 functions we have tons of list function 25953 17:28:05,080 --> 17:28:08,160 that include list. sum mean Max count 25954 17:28:08,160 --> 17:28:11,956 contains contains all distinct date date 25955 17:28:11,956 --> 17:28:16,116 time duration intersect distinct last 25956 17:28:16,116 --> 17:28:19,160 last 10 matches all there are so many 25957 17:28:19,160 --> 17:28:21,596 functions which we can discuss but it is 25958 17:28:21,596 --> 17:28:24,000 not possible to discuss all of them as 25959 17:28:24,000 --> 17:28:26,796 part of this video or series what you 25960 17:28:26,796 --> 17:28:28,636 can do is you can watch beginner 25961 17:28:28,636 --> 17:28:30,796 tutorial series on the channel and can 25962 17:28:30,796 --> 17:28:33,116 take advantage of all of these functions 25963 17:28:33,116 --> 17:28:35,320 discussed there there are other power 25964 17:28:35,320 --> 17:28:37,720 query functions which deal with date 25965 17:28:37,720 --> 17:28:42,916 number text table record 25966 17:28:44,160 --> 17:28:47,160 Etc let us learn some text function in 25967 17:28:47,160 --> 17:28:49,756 power query and to do that let's go back 25968 17:28:49,756 --> 17:28:52,116 to the the same file again the file N2 25969 17:28:52,116 --> 17:28:54,400 n14 and I have already opened power 25970 17:28:54,400 --> 17:28:56,596 query in that in that file we have 25971 17:28:56,596 --> 17:29:00,360 created the list of dates using the list 25972 17:29:00,360 --> 17:29:02,956 functions which I've explained in the 25973 17:29:02,956 --> 17:29:05,240 previous video already what I'm going to 25974 17:29:05,240 --> 17:29:07,596 do is first of all let me call it as 25975 17:29:07,596 --> 17:29:10,320 dates list 25976 17:29:10,320 --> 17:29:13,436 and now let me convert this into a table 25977 17:29:13,436 --> 17:29:15,680 to convert this into a table will 25978 17:29:15,680 --> 17:29:18,320 automatically add a step and that step 25979 17:29:18,320 --> 17:29:20,880 is nothing but list from table 25980 17:29:20,880 --> 17:29:22,400 this is the table function which use 25981 17:29:22,400 --> 17:29:24,200 source which is basically a list 25982 17:29:24,200 --> 17:29:27,276 splitter. split by nothing null null 25983 17:29:27,276 --> 17:29:29,796 extra values or error these are the 25984 17:29:29,796 --> 17:29:32,240 things which has to be provided table 25985 17:29:32,240 --> 17:29:35,320 from list power query function help us 25986 17:29:35,320 --> 17:29:38,240 to convert a list into table with 25987 17:29:38,240 --> 17:29:40,520 required arguments this list has been 25988 17:29:40,520 --> 17:29:42,360 converted into a table let me rename 25989 17:29:42,360 --> 17:29:45,400 this as dat also let me change data type 25990 17:29:45,400 --> 17:29:48,116 by clicking on the left top of the 25991 17:29:48,116 --> 17:29:51,080 column where ABC is written and change 25992 17:29:51,080 --> 17:29:54,240 it to date you can observe that the data 25993 17:29:54,240 --> 17:29:57,560 type is date now to start this journey 25994 17:29:57,560 --> 17:30:00,636 first of all I'll convert this date into 25995 17:30:00,636 --> 17:30:03,956 the text and we will use some text part 25996 17:30:03,956 --> 17:30:06,200 functions to get different parts of the 25997 17:30:06,200 --> 17:30:09,840 date we have text function which are 25998 17:30:09,840 --> 17:30:14,160 text.art text. middle and text. end to 25999 17:30:14,160 --> 17:30:17,636 take out different parts from a text so 26000 17:30:17,636 --> 17:30:19,956 let's start this journey by creat 26001 17:30:19,956 --> 17:30:23,080 creating a new column using the custom 26002 17:30:23,080 --> 17:30:26,200 column so add column new custom column 26003 17:30:26,200 --> 17:30:30,476 and let's create a text date column to 26004 17:30:30,476 --> 17:30:33,276 achieve this we are going to use the 26005 17:30:33,276 --> 17:30:38,240 function date. to text so that function 26006 17:30:38,240 --> 17:30:41,040 will convert the date into a text date 26007 17:30:41,040 --> 17:30:43,680 and the first argument which we supposed 26008 17:30:43,680 --> 17:30:46,916 to give is the date column comma and the 26009 17:30:46,916 --> 17:30:49,116 second argument is the format which we 26010 17:30:49,116 --> 17:30:51,080 are going to give into the double quotes 26011 17:30:51,080 --> 17:30:54,400 y y y y four times double M that would 26012 17:30:54,400 --> 17:30:57,400 be in the capital and DD in the small so 26013 17:30:57,400 --> 17:30:59,756 this is the format we supposed to give 26014 17:30:59,756 --> 17:31:02,040 our query is case sensitive so check out 26015 17:31:02,040 --> 17:31:04,080 the documentation when to give capital 26016 17:31:04,080 --> 17:31:06,200 letter and when to give small letters in 26017 17:31:06,200 --> 17:31:08,680 the format click on okay and check the 26018 17:31:08,680 --> 17:31:11,596 data so let's scroll down into the data 26019 17:31:11,596 --> 17:31:13,240 and check it out let's scroll down to 26020 17:31:13,240 --> 17:31:15,240 another month and check yes this format 26021 17:31:15,240 --> 17:31:17,436 is correct so the format which we have 26022 17:31:17,436 --> 17:31:21,000 used here is 4 y in the small 2 m in the 26023 17:31:21,000 --> 17:31:23,796 capital and 2D in the small and this has 26024 17:31:23,796 --> 17:31:26,320 worked for this use case data type is 26025 17:31:26,320 --> 17:31:28,880 any as of now and we need to change it 26026 17:31:28,880 --> 17:31:30,840 now to change what I'm going to do is 26027 17:31:30,840 --> 17:31:33,116 this add column function itself I will 26028 17:31:33,116 --> 17:31:35,680 go and give the third argument so comma 26029 17:31:35,680 --> 17:31:38,360 the third argument needs a type so here 26030 17:31:38,360 --> 17:31:42,596 I'm going to give text Dot type so it's 26031 17:31:42,596 --> 17:31:45,080 going to give the text data type and 26032 17:31:45,080 --> 17:31:47,560 once I give this argument I will press 26033 17:31:47,560 --> 17:31:50,276 enter this argument has corrected the 26034 17:31:50,276 --> 17:31:52,560 data type in the same manner you can 26035 17:31:52,560 --> 17:31:56,720 give number. type or in 64. type to 26036 17:31:56,720 --> 17:31:59,916 correct your data type as per the need 26037 17:31:59,916 --> 17:32:02,560 for the required column we will start 26038 17:32:02,560 --> 17:32:04,956 the process of converting this text into 26039 17:32:04,956 --> 17:32:07,116 date for that we will require a date 26040 17:32:07,116 --> 17:32:09,320 function and we will also require the 26041 17:32:09,320 --> 17:32:11,240 test function to take out the start 26042 17:32:11,240 --> 17:32:13,636 middle and the end part we might also 26043 17:32:13,636 --> 17:32:16,880 require conversion of text into integer 26044 17:32:16,880 --> 17:32:19,040 click on ADD column custom column to 26045 17:32:19,040 --> 17:32:21,476 create a new column and I'm going to 26046 17:32:21,476 --> 17:32:23,680 call this new column as date one so let 26047 17:32:23,680 --> 17:32:26,840 me replace the name with the date one in 26048 17:32:26,840 --> 17:32:29,160 this one I'll use hash date function 26049 17:32:29,160 --> 17:32:31,680 first of all which takes three argument 26050 17:32:31,680 --> 17:32:33,916 year month and 26051 17:32:33,916 --> 17:32:37,040 day first argument is here for that we 26052 17:32:37,040 --> 17:32:39,320 need the first four characters so for 26053 17:32:39,320 --> 17:32:42,200 that we are going to use the function 26054 17:32:42,200 --> 17:32:47,080 text Dot start now the first argument in 26055 17:32:47,080 --> 17:32:49,916 this function we need to give the text 26056 17:32:49,916 --> 17:32:52,320 date so we will give text date as the 26057 17:32:52,320 --> 17:32:54,476 first argument comma we need four 26058 17:32:54,476 --> 17:32:56,880 characters so we need to give four and 26059 17:32:56,880 --> 17:32:58,796 then we can close the parenthesis so the 26060 17:32:58,796 --> 17:33:00,680 next argument which we are going to use 26061 17:33:00,680 --> 17:33:04,680 is text. middle and in the text. middle 26062 17:33:04,680 --> 17:33:07,636 we need three argument so the first 26063 17:33:07,636 --> 17:33:09,636 argument which we need to use in the 26064 17:33:09,636 --> 17:33:13,400 text. middle is the text date then we 26065 17:33:13,400 --> 17:33:15,636 need the starting point which is five in 26066 17:33:15,636 --> 17:33:18,160 our case the four characters of ear and 26067 17:33:18,160 --> 17:33:20,476 hyphen and then the the next character 26068 17:33:20,476 --> 17:33:22,560 to start because it start from zero so 26069 17:33:22,560 --> 17:33:24,916 five we need two characters of month so 26070 17:33:24,916 --> 17:33:27,276 two close parenthesis comma need day in 26071 17:33:27,276 --> 17:33:29,520 the last argument so the function we are 26072 17:33:29,520 --> 17:33:33,560 going to use here is text Dot and to get 26073 17:33:33,560 --> 17:33:36,400 the last two character in the string so 26074 17:33:36,400 --> 17:33:38,400 the first argument here is going to be 26075 17:33:38,400 --> 17:33:40,916 the text date and then we need two 26076 17:33:40,916 --> 17:33:42,720 characters from the end so we are going 26077 17:33:42,720 --> 17:33:46,320 to give two and then we will close the 26078 17:33:46,320 --> 17:33:49,240 parenthesis and then we got the date now 26079 17:33:49,240 --> 17:33:51,756 we can click on okay to check it out it 26080 17:33:51,756 --> 17:33:54,080 is giving error the reason it is giving 26081 17:33:54,080 --> 17:33:56,636 error is because we need the three 26082 17:33:56,636 --> 17:33:59,040 arguments as whole number or integers 26083 17:33:59,040 --> 17:34:00,796 but all the three arguments what we have 26084 17:34:00,796 --> 17:34:03,320 given are the text so what we need to do 26085 17:34:03,320 --> 17:34:05,840 is we need to convert this text into the 26086 17:34:05,840 --> 17:34:08,880 number the start the middle and the end 26087 17:34:08,880 --> 17:34:12,956 for that we have function number from 26088 17:34:12,956 --> 17:34:16,160 text let's use the function number from 26089 17:34:16,160 --> 17:34:18,916 text on all the three arguments I have 26090 17:34:18,916 --> 17:34:20,916 knowingly given as space after the 26091 17:34:20,916 --> 17:34:23,320 parenthesis because when we try to 26092 17:34:23,320 --> 17:34:26,916 select the function sometime it replaces 26093 17:34:26,916 --> 17:34:28,916 the existing function if you don't give 26094 17:34:28,916 --> 17:34:31,916 the space so this function number from 26095 17:34:31,916 --> 17:34:34,400 text we need to use on all the three 26096 17:34:34,400 --> 17:34:36,520 arguments to convert them into the 26097 17:34:36,520 --> 17:34:40,000 number so that the date function can use 26098 17:34:40,000 --> 17:34:42,880 them once we completed our formula you 26099 17:34:42,880 --> 17:34:45,160 can see that we got all the dates 26100 17:34:45,160 --> 17:34:47,840 correctly now the dates are displayed 26101 17:34:47,840 --> 17:34:50,680 currently my format is the US date 26102 17:34:50,680 --> 17:34:52,880 formats and based on that format the 26103 17:34:52,880 --> 17:34:55,160 dates are displayed in case you are 26104 17:34:55,160 --> 17:34:58,680 using the UK or Australia format you 26105 17:34:58,680 --> 17:35:01,200 will get the date into that default 26106 17:35:01,200 --> 17:35:03,720 format are some of the basic text 26107 17:35:03,720 --> 17:35:06,360 function which we have used here but 26108 17:35:06,360 --> 17:35:08,880 there are lot many text function and I 26109 17:35:08,880 --> 17:35:11,916 have covered quite a few of them on my 26110 17:35:11,916 --> 17:35:14,400 channel in different videos which you 26111 17:35:14,400 --> 17:35:17,520 can go ahead and explore some of the 26112 17:35:17,520 --> 17:35:19,916 functions which were available at part 26113 17:35:19,916 --> 17:35:22,160 of the menus are also available as 26114 17:35:22,160 --> 17:35:25,116 function so that we can do complex 26115 17:35:25,116 --> 17:35:27,880 transformation by using those individual 26116 17:35:27,880 --> 17:35:30,276 functions and we will continue to 26117 17:35:30,276 --> 17:35:32,596 explore these functions in different 26118 17:35:32,596 --> 17:35:34,880 different 26119 17:35:34,880 --> 17:35:37,916 videos we have created a date table 26120 17:35:37,916 --> 17:35:40,956 index in the past now time has come that 26121 17:35:40,956 --> 17:35:44,040 we create the date table in power query 26122 17:35:44,040 --> 17:35:46,000 we have learned some of the power query 26123 17:35:46,000 --> 17:35:48,160 function and time to learn some new 26124 17:35:48,160 --> 17:35:51,400 functions to create the date table our 26125 17:35:51,400 --> 17:35:53,436 Dex power query table is pretty 26126 17:35:53,436 --> 17:35:56,116 comprehensive and we can create such a 26127 17:35:56,116 --> 17:35:58,400 comprehensive table using power query 26128 17:35:58,400 --> 17:36:01,400 also or even more comprehensive by using 26129 17:36:01,400 --> 17:36:03,756 additional functions so let's begin our 26130 17:36:03,756 --> 17:36:05,756 journey of creating the date table in 26131 17:36:05,756 --> 17:36:07,796 power query I'm going to jump on the 26132 17:36:07,796 --> 17:36:09,680 existing file which we have created and 26133 17:36:09,680 --> 17:36:12,956 to n and14 I'll go to the transform data 26134 17:36:12,956 --> 17:36:15,436 which will open the power query module I 26135 17:36:15,436 --> 17:36:17,880 would like to add a new query so I'll go 26136 17:36:17,880 --> 17:36:21,680 to Home tab new query blank query and 26137 17:36:21,680 --> 17:36:23,956 this will add a blank query I would now 26138 17:36:23,956 --> 17:36:26,720 like to rename this so right click and 26139 17:36:26,720 --> 17:36:29,320 rename is one option double click and 26140 17:36:29,320 --> 17:36:31,200 you will go inside the query and you can 26141 17:36:31,200 --> 17:36:34,320 rename it I will rename it as date table 26142 17:36:34,320 --> 17:36:36,680 and press enter and let me open the 26143 17:36:36,680 --> 17:36:39,200 advanced editor now first of all we will 26144 17:36:39,200 --> 17:36:41,400 Define two dates because we wanted to 26145 17:36:41,400 --> 17:36:43,796 have a calendar between two dates but 26146 17:36:43,796 --> 17:36:46,160 the function which we plan to use list. 26147 17:36:46,160 --> 17:36:49,240 dates does not take two date arguments 26148 17:36:49,240 --> 17:36:51,560 it take a date argument and number of 26149 17:36:51,560 --> 17:36:53,956 days so we need to learn how do we take 26150 17:36:53,956 --> 17:36:55,796 the difference between two dates to 26151 17:36:55,796 --> 17:36:58,116 provide to this particular function so 26152 17:36:58,116 --> 17:37:00,476 first let's start with the start date 26153 17:37:00,476 --> 17:37:03,400 start date as a variable equals to a 26154 17:37:03,400 --> 17:37:06,116 value this is how you define a variable 26155 17:37:06,116 --> 17:37:10,200 here so start date equals to Hash date 26156 17:37:10,200 --> 17:37:12,080 hash date function requires three 26157 17:37:12,080 --> 17:37:14,276 argument the first argument it require 26158 17:37:14,276 --> 17:37:17,476 is year second is month third is day so 26159 17:37:17,476 --> 17:37:19,476 first argument I'm going to give is 20 26160 17:37:19,476 --> 17:37:22,840 2018 which is year 01 is the month 01 is 26161 17:37:22,840 --> 17:37:25,476 the day close parenthesis give a comma 26162 17:37:25,476 --> 17:37:27,200 and go to next line to start new 26163 17:37:27,200 --> 17:37:30,116 variable now let's define underscore end 26164 17:37:30,116 --> 17:37:34,080 dat equals to HH date 26165 17:37:34,080 --> 17:37:40,240 2012 is the year comma 12 month comma 31 26166 17:37:40,240 --> 17:37:43,240 as a day the next step is to get the 26167 17:37:43,240 --> 17:37:46,276 list of dates for that we are going to 26168 17:37:46,276 --> 17:37:49,560 use list. dates function so let's define 26169 17:37:49,560 --> 17:37:53,200 variable underscore date equals to list. 26170 17:37:53,200 --> 17:37:56,080 dates now list. dates function requires 26171 17:37:56,080 --> 17:37:58,720 three argument first argument is the 26172 17:37:58,720 --> 17:38:01,080 start date second argument is Count 26173 17:38:01,080 --> 17:38:04,080 means number of days third argument is 26174 17:38:04,080 --> 17:38:07,360 Step means how many days it should jump 26175 17:38:07,360 --> 17:38:09,320 between each list 26176 17:38:09,320 --> 17:38:12,560 items I am going to give the start date 26177 17:38:12,560 --> 17:38:15,160 as the first argument which we have 26178 17:38:15,160 --> 17:38:17,720 created some time back so the first 26179 17:38:17,720 --> 17:38:20,796 argument is underscore St start date for 26180 17:38:20,796 --> 17:38:24,520 the second argument we need number of 26181 17:38:24,520 --> 17:38:27,636 days the count and that can come from 26182 17:38:27,636 --> 17:38:30,880 the difference of end date minus start 26183 17:38:30,880 --> 17:38:34,200 date which is pretty easy in power query 26184 17:38:34,200 --> 17:38:38,360 but that's returns as duration not dat 26185 17:38:38,360 --> 17:38:40,596 so let me Define a new variable 26186 17:38:40,596 --> 17:38:43,080 underscore diff which will contain the 26187 17:38:43,080 --> 17:38:45,520 difference of these two dates so 26188 17:38:45,520 --> 17:38:49,720 underscore diff equals to underscore and 26189 17:38:49,720 --> 17:38:54,080 date minus underscore start date and 26190 17:38:54,080 --> 17:38:57,596 this will return me the difference 26191 17:38:57,596 --> 17:39:01,040 between two days in duration now I need 26192 17:39:01,040 --> 17:39:05,116 to use a function duration. days to get 26193 17:39:05,116 --> 17:39:09,476 the days out of this duration now I will 26194 17:39:09,476 --> 17:39:12,360 get number of days between these two 26195 17:39:12,360 --> 17:39:15,200 dates using this function plus one to 26196 17:39:15,200 --> 17:39:17,956 cover up the subtraction difference to 26197 17:39:17,956 --> 17:39:20,680 get the exact days back to the list of 26198 17:39:20,680 --> 17:39:22,520 dates let's give the second argument 26199 17:39:22,520 --> 17:39:25,000 which is underscore diff number of days 26200 17:39:25,000 --> 17:39:27,596 or count third argument is the step 26201 17:39:27,596 --> 17:39:30,080 which is required in duration so we are 26202 17:39:30,080 --> 17:39:33,360 going to use a function hash duration 26203 17:39:33,360 --> 17:39:36,320 which can provide us the duration so 26204 17:39:36,320 --> 17:39:39,200 function hash duration require four 26205 17:39:39,200 --> 17:39:42,436 argument the first argument is day and 26206 17:39:42,436 --> 17:39:44,720 that is what is most important for us so 26207 17:39:44,720 --> 17:39:48,720 one day 0 hours 0 minutes and 0 seconds 26208 17:39:48,720 --> 17:39:50,636 and now we are done this is the last 26209 17:39:50,636 --> 17:39:53,000 step in our course so copy this and 26210 17:39:53,000 --> 17:39:56,680 return it using the in so inore date is 26211 17:39:56,680 --> 17:39:58,596 going to return return the list of dates 26212 17:39:58,596 --> 17:40:01,320 let's click on the create to complete 26213 17:40:01,320 --> 17:40:04,080 this query now we got the required list 26214 17:40:04,080 --> 17:40:06,680 of date we can scroll and check it out 26215 17:40:06,680 --> 17:40:09,240 all the dates are available here we can 26216 17:40:09,240 --> 17:40:12,240 sort it descending to see what is the 26217 17:40:12,240 --> 17:40:15,080 end date which we wanted but every time 26218 17:40:15,080 --> 17:40:18,080 we do anything it adds an step as we 26219 17:40:18,080 --> 17:40:20,436 don't need this step app I'm going to 26220 17:40:20,436 --> 17:40:22,520 remove it by pressing on the cross 26221 17:40:22,520 --> 17:40:24,956 button let's convert this list into the 26222 17:40:24,956 --> 17:40:27,956 table so right click Advan editor and 26223 17:40:27,956 --> 17:40:31,796 then we will enter here underscore date 26224 17:40:31,796 --> 17:40:34,720 table was the last step it was giving 26225 17:40:34,720 --> 17:40:37,560 error means last step was not closed so 26226 17:40:37,560 --> 17:40:40,720 now let's use table from list 26227 17:40:40,720 --> 17:40:42,796 function what I've done is actually 26228 17:40:42,796 --> 17:40:44,720 copied it from the last one so table 26229 17:40:44,720 --> 17:40:47,840 from list now last step is dates list of 26230 17:40:47,840 --> 17:40:51,160 dates which I need list of dates then 26231 17:40:51,160 --> 17:40:53,276 splitter do split by nothing that's 26232 17:40:53,276 --> 17:40:55,240 because we don't want to split null null 26233 17:40:55,240 --> 17:40:57,360 extra values. error there the argument 26234 17:40:57,360 --> 17:40:59,840 which need the main argument is list and 26235 17:40:59,840 --> 17:41:02,276 then splitter. split by nothing there is 26236 17:41:02,276 --> 17:41:04,200 a way we need to split this list we want 26237 17:41:04,200 --> 17:41:05,720 to give that we can use but here we 26238 17:41:05,720 --> 17:41:08,080 don't want to by anything we are giving 26239 17:41:08,080 --> 17:41:09,956 other two arguments we are giving 26240 17:41:09,956 --> 17:41:12,636 nothing and then exra value error and 26241 17:41:12,636 --> 17:41:14,436 let's return this now if I still return 26242 17:41:14,436 --> 17:41:16,040 the date it will not convert it into a 26243 17:41:16,040 --> 17:41:19,880 table let date table click on create few 26244 17:41:19,880 --> 17:41:21,796 things we have to change so first of all 26245 17:41:21,796 --> 17:41:24,276 using the left top Corner change the 26246 17:41:24,276 --> 17:41:27,320 data type to date so data type of this 26247 17:41:27,320 --> 17:41:29,116 column should be date so let's convert 26248 17:41:29,116 --> 17:41:31,320 that into date now double click inside 26249 17:41:31,320 --> 17:41:34,000 the column to rename it rename it to 26250 17:41:34,000 --> 17:41:37,116 date date table required many columns 26251 17:41:37,116 --> 17:41:40,320 which I'm going to add now one by one to 26252 17:41:40,320 --> 17:41:44,520 do that we can use the add colum tab 26253 17:41:44,520 --> 17:41:46,880 inside the add column we have custom 26254 17:41:46,880 --> 17:41:49,476 column that I'm going to use again and 26255 17:41:49,476 --> 17:41:52,840 again to add new columns whenever I need 26256 17:41:52,840 --> 17:41:56,720 a new column in this table so let me add 26257 17:41:56,720 --> 17:41:59,200 the First Column by clicking on custom 26258 17:41:59,200 --> 17:42:02,320 column the column I want to add is start 26259 17:42:02,320 --> 17:42:04,916 of month means I want to get the first 26260 17:42:04,916 --> 17:42:07,636 date of the month we have a function 26261 17:42:07,636 --> 17:42:10,596 available for that the function is date 26262 17:42:10,596 --> 17:42:15,916 do start of month and this function 26263 17:42:15,916 --> 17:42:19,520 start of month require only one argument 26264 17:42:19,520 --> 17:42:22,476 that is date and based on that it can 26265 17:42:22,476 --> 17:42:26,596 give us the start date of the month one 26266 17:42:26,596 --> 17:42:29,520 argument is needed to give us the start 26267 17:42:29,520 --> 17:42:31,320 of the month or the first date of the 26268 17:42:31,320 --> 17:42:34,400 month let's press okay so we got a new 26269 17:42:34,400 --> 17:42:36,636 column start of month which is giving us 26270 17:42:36,636 --> 17:42:39,080 the first date of the month we need to 26271 17:42:39,080 --> 17:42:41,160 correct the data type of this so we can 26272 17:42:41,160 --> 17:42:44,080 add the third argument to the add column 26273 17:42:44,080 --> 17:42:47,840 and there we can use date. type it 26274 17:42:47,840 --> 17:42:50,116 requires a type to convert it into the 26275 17:42:50,116 --> 17:42:52,756 correct type and let's press enter to 26276 17:42:52,756 --> 17:42:55,680 get the correct data type let's quickly 26277 17:42:55,680 --> 17:42:57,956 add one more column and the column this 26278 17:42:57,956 --> 17:43:00,880 time I would like to add is end of month 26279 17:43:00,880 --> 17:43:03,636 I want to get the last date of the month 26280 17:43:03,636 --> 17:43:08,400 very simple function date dot end of 26281 17:43:08,400 --> 17:43:12,000 month which requires only one argument 26282 17:43:12,000 --> 17:43:14,040 that is date which I'm going to provide 26283 17:43:14,040 --> 17:43:17,320 it close the parenthesis and now I can 26284 17:43:17,320 --> 17:43:20,360 get end of month date let's press okay 26285 17:43:20,360 --> 17:43:23,720 to get it the data type of this column 26286 17:43:23,720 --> 17:43:26,116 is also not correct and as you know we 26287 17:43:26,116 --> 17:43:28,400 need to add the third argument let me 26288 17:43:28,400 --> 17:43:31,000 copy it from the previous column and add 26289 17:43:31,000 --> 17:43:34,040 it as the third argument comma date. 26290 17:43:34,040 --> 17:43:37,040 type to get the correct data type so 26291 17:43:37,040 --> 17:43:39,200 data type is corrected time has come to 26292 17:43:39,200 --> 17:43:42,160 add more columns add the new column and 26293 17:43:42,160 --> 17:43:45,240 the new column is start of quarter means 26294 17:43:45,240 --> 17:43:47,476 the first date of quarter is what we 26295 17:43:47,476 --> 17:43:49,680 need here so function we are going to 26296 17:43:49,680 --> 17:43:53,360 use is date dot start of quarter very 26297 17:43:53,360 --> 17:43:55,956 simple function it also required only 26298 17:43:55,956 --> 17:43:59,436 one argument at that argument is date so 26299 17:43:59,436 --> 17:44:01,520 we'll provide the date argument close 26300 17:44:01,520 --> 17:44:03,880 the parenthesis and this function will 26301 17:44:03,880 --> 17:44:05,880 going to give us the start of the 26302 17:44:05,880 --> 17:44:09,116 quarter date click on done to get the 26303 17:44:09,116 --> 17:44:11,520 new column the new column is the start 26304 17:44:11,520 --> 17:44:14,596 of the quarter date and now I would like 26305 17:44:14,596 --> 17:44:17,080 to add one more column and the column 26306 17:44:17,080 --> 17:44:20,360 will be end of quarter means the last 26307 17:44:20,360 --> 17:44:23,240 date of quarter let's quickly add a new 26308 17:44:23,240 --> 17:44:27,160 column end of qtr means end of quarter 26309 17:44:27,160 --> 17:44:30,040 and we are going to use a function date 26310 17:44:30,040 --> 17:44:33,796 do and of quarter again this function 26311 17:44:33,796 --> 17:44:36,360 require only one argument and that 26312 17:44:36,360 --> 17:44:38,956 argument is date so let's provide the 26313 17:44:38,956 --> 17:44:41,916 date argument and click on okay to get 26314 17:44:41,916 --> 17:44:44,476 the new column so now let's look at the 26315 17:44:44,476 --> 17:44:46,840 data look at the very first row we are 26316 17:44:46,840 --> 17:44:49,320 getting the start of the month and end 26317 17:44:49,320 --> 17:44:51,436 of the month start of the quarter and 26318 17:44:51,436 --> 17:44:53,796 end of the quarter for that particular 26319 17:44:53,796 --> 17:44:56,520 given date we scroll down go to another 26320 17:44:56,520 --> 17:44:58,436 month we are getting different start of 26321 17:44:58,436 --> 17:45:00,476 the month and end of the month but as of 26322 17:45:00,476 --> 17:45:02,040 now we are getting the same quarter 26323 17:45:02,040 --> 17:45:04,436 start date and same quarter end date if 26324 17:45:04,436 --> 17:45:06,840 we scroll down further till the April 26325 17:45:06,840 --> 17:45:10,240 month we will be able to see a different 26326 17:45:10,240 --> 17:45:12,320 start of the quarter and end of the 26327 17:45:12,320 --> 17:45:14,276 quarter so for the two dayses you can 26328 17:45:14,276 --> 17:45:17,240 compare the quarter is also changing 26329 17:45:17,240 --> 17:45:19,240 let's go ahead and add start start of 26330 17:45:19,240 --> 17:45:21,436 year and end of year so first I'm going 26331 17:45:21,436 --> 17:45:24,680 to add start of year and the function 26332 17:45:24,680 --> 17:45:28,956 I'm going to use for that is date dot 26333 17:45:28,956 --> 17:45:32,200 start of year unlike the Dex function 26334 17:45:32,200 --> 17:45:34,400 which can take a second argument for the 26335 17:45:34,400 --> 17:45:37,476 financial start date the date do start 26336 17:45:37,476 --> 17:45:40,276 of year function only takes one argument 26337 17:45:40,276 --> 17:45:42,560 that is date and it always give you the 26338 17:45:42,560 --> 17:45:45,796 calender year start date it doesn't take 26339 17:45:45,796 --> 17:45:48,520 the second argument let's press okay to 26340 17:45:48,520 --> 17:45:52,400 get the new column you can scroll and 26341 17:45:52,400 --> 17:45:54,596 validate the different ears which you 26342 17:45:54,596 --> 17:45:56,956 have got but the easier way is the click 26343 17:45:56,956 --> 17:45:59,080 on the down arrow and see all the values 26344 17:45:59,080 --> 17:46:01,680 you can use press cancel to come out 26345 17:46:01,680 --> 17:46:03,796 let's add one more column and this time 26346 17:46:03,796 --> 17:46:07,040 we are going to add end of year the 26347 17:46:07,040 --> 17:46:09,320 function which I'm going use here is 26348 17:46:09,320 --> 17:46:13,520 date do end of year so date do start off 26349 17:46:13,520 --> 17:46:15,320 here I copied I'm going to change it to 26350 17:46:15,320 --> 17:46:18,116 end again this function also take only 26351 17:46:18,116 --> 17:46:19,400 one argument 26352 17:46:19,400 --> 17:46:21,720 it doesn't take end of year 26353 17:46:21,720 --> 17:46:25,560 argument so let's press okay to complete 26354 17:46:25,560 --> 17:46:27,160 what end of year you can just click on 26355 17:46:27,160 --> 17:46:30,116 the values and use load more all the end 26356 17:46:30,116 --> 17:46:30,840 of 26357 17:46:30,840 --> 17:46:33,436 year uh for financial year we have to 26358 17:46:33,436 --> 17:46:35,360 write down a manual code so can write 26359 17:46:35,360 --> 17:46:37,756 down final code so I will tell you how 26360 17:46:37,756 --> 17:46:40,796 to write down FY start want a financial 26361 17:46:40,796 --> 17:46:42,956 year that starts in April what does that 26362 17:46:42,956 --> 17:46:45,400 mean that means that if the date of the 26363 17:46:45,400 --> 17:46:48,116 month is less than four than the year is 26364 17:46:48,116 --> 17:46:50,680 started in the last year otherwise the 26365 17:46:50,680 --> 17:46:53,436 year has started in the current year and 26366 17:46:53,436 --> 17:46:55,756 I'm going to use all these things inside 26367 17:46:55,756 --> 17:46:58,116 the hash J function so in the first 26368 17:46:58,116 --> 17:47:00,040 argument I will have the logic for the 26369 17:47:00,040 --> 17:47:02,400 year the second argument would be month 26370 17:47:02,400 --> 17:47:04,560 which is four and the third argument day 26371 17:47:04,560 --> 17:47:07,240 which is one this means any date between 26372 17:47:07,240 --> 17:47:10,560 1st April and 31st March of the next 26373 17:47:10,560 --> 17:47:13,240 year will have the same start date of 26374 17:47:13,240 --> 17:47:17,240 first April of this year so let's start 26375 17:47:17,240 --> 17:47:19,796 coding the formula with if now after if 26376 17:47:19,796 --> 17:47:22,400 we don't record parenthesis date the 26377 17:47:22,400 --> 17:47:24,436 month I want a financial year which 26378 17:47:24,436 --> 17:47:26,200 start from April so if it is less than 26379 17:47:26,200 --> 17:47:28,436 four it means the year was started in 26380 17:47:28,436 --> 17:47:30,796 the last year then my year started in 26381 17:47:30,796 --> 17:47:34,200 the last year isn't it so date do year 26382 17:47:34,200 --> 17:47:36,596 of date only one argument it takes is 26383 17:47:36,596 --> 17:47:40,080 minus one as the date of year is the 26384 17:47:40,080 --> 17:47:41,880 date of year so if it is four months and 26385 17:47:41,880 --> 17:47:44,040 above it is the same year where the year 26386 17:47:44,040 --> 17:47:46,636 started only year logic how would I 26387 17:47:46,636 --> 17:47:48,916 convert this into date for that I'm 26388 17:47:48,916 --> 17:47:52,636 going to use the hash date function in 26389 17:47:52,636 --> 17:47:54,520 hash date the first argument is here 26390 17:47:54,520 --> 17:47:56,756 which we already sorted out form of four 26391 17:47:56,756 --> 17:48:00,796 fora one and we copy this and click on 26392 17:48:00,796 --> 17:48:03,680 okay now you got the year which is 26393 17:48:03,680 --> 17:48:05,956 starting Financial year how do you get 26394 17:48:05,956 --> 17:48:07,956 the end it almost similar formula go to 26395 17:48:07,956 --> 17:48:11,080 the custom column and 26396 17:48:11,080 --> 17:48:15,040 FY and date of the same formula but the 26397 17:48:15,040 --> 17:48:17,636 thing here is here if it is less than 26398 17:48:17,636 --> 17:48:20,476 four it is ending in the same year but 26399 17:48:20,476 --> 17:48:22,320 if it is greater than four or greater 26400 17:48:22,320 --> 17:48:25,116 than or equal to 4 + 1 it is going to 26401 17:48:25,116 --> 17:48:27,796 end in the next year and that is not 41 26402 17:48:27,796 --> 17:48:31,436 it is 331 so it is going to end in the 26403 17:48:31,436 --> 17:48:33,636 next year if it is 4 month or onwards if 26404 17:48:33,636 --> 17:48:35,320 it's April which is my start of year I'm 26405 17:48:35,320 --> 17:48:36,840 going get my financial year end in the 26406 17:48:36,840 --> 17:48:39,276 next year March before April whatever 26407 17:48:39,276 --> 17:48:40,916 months are there they are ending in the 26408 17:48:40,916 --> 17:48:44,240 this year only March of this year let's 26409 17:48:44,240 --> 17:48:47,400 click on okay to get the new column time 26410 17:48:47,400 --> 17:48:50,240 to focus on we columns we will create 26411 17:48:50,240 --> 17:48:52,756 start of week and for that we also have 26412 17:48:52,756 --> 17:48:55,400 a function let's start with a new column 26413 17:48:55,400 --> 17:48:59,240 start of week and we are going to use a 26414 17:48:59,240 --> 17:49:04,680 date function date do start of week it 26415 17:49:04,680 --> 17:49:07,720 takes two argument the first argument it 26416 17:49:07,720 --> 17:49:11,080 takes is a date column and the second 26417 17:49:11,080 --> 17:49:14,000 argument is how do you want to start 26418 17:49:14,000 --> 17:49:17,160 your week zero means Sunday one means 26419 17:49:17,160 --> 17:49:19,320 Monday and so on 26420 17:49:19,320 --> 17:49:21,956 click on okay to add the column so you 26421 17:49:21,956 --> 17:49:25,560 got the Sunday as the starting point 26422 17:49:25,560 --> 17:49:27,400 let's do Monday because first January 26423 17:49:27,400 --> 17:49:30,840 2018 is a Monday and when we go give one 26424 17:49:30,840 --> 17:49:32,880 it's for a Monday start I would like to 26425 17:49:32,880 --> 17:49:35,240 add another column and this colum should 26426 17:49:35,240 --> 17:49:38,400 provide me a week day number so let's 26427 17:49:38,400 --> 17:49:40,956 add a column and this column I'm going 26428 17:49:40,956 --> 17:49:44,796 to rename as day of week I'm going to 26429 17:49:44,796 --> 17:49:49,596 use the function date. day of week week 26430 17:49:49,596 --> 17:49:52,436 and this function can take up to two 26431 17:49:52,436 --> 17:49:56,000 argument the first argument it take is a 26432 17:49:56,000 --> 17:49:59,200 date as of now let me create this column 26433 17:49:59,200 --> 17:50:01,680 with only one argument so it is giving 26434 17:50:01,680 --> 17:50:05,320 me the values one means Monday and zero 26435 17:50:05,320 --> 17:50:08,756 means Sunday if needed I can go ahead 26436 17:50:08,756 --> 17:50:11,476 and change this by providing the 26437 17:50:11,476 --> 17:50:15,320 additional argument into this function 26438 17:50:15,320 --> 17:50:17,880 so it wrs as zero as Sunday one as 26439 17:50:17,880 --> 17:50:20,240 Monday and if you don't want you can 26440 17:50:20,240 --> 17:50:21,596 actually go ahead and change it by 26441 17:50:21,596 --> 17:50:23,476 providing another argument but I think 26442 17:50:23,476 --> 17:50:25,840 we have find it with that but what we 26443 17:50:25,840 --> 17:50:27,840 can do is we can gave the names also so 26444 17:50:27,840 --> 17:50:30,360 there is a function to get the name also 26445 17:50:30,360 --> 17:50:33,160 we'll go to add columns custom column 26446 17:50:33,160 --> 17:50:37,320 just create the column weekday name this 26447 17:50:37,320 --> 17:50:40,320 column is going to return us weekday 26448 17:50:40,320 --> 17:50:43,360 name the function which we are going to 26449 17:50:43,360 --> 17:50:50,596 use is date dot day of week name and day 26450 17:50:50,596 --> 17:50:54,476 of week name function takes one argument 26451 17:50:54,476 --> 17:50:57,360 that is date and using this argument it 26452 17:50:57,360 --> 17:51:00,476 is going to return the weekday name so 26453 17:51:00,476 --> 17:51:03,116 let's click on okay and now we are 26454 17:51:03,116 --> 17:51:04,880 getting the weekday name like Monday 26455 17:51:04,880 --> 17:51:07,916 Tuesday Wednesday and as you can see 1st 26456 17:51:07,916 --> 17:51:11,040 January 2018 is starting from Monday 26457 17:51:11,040 --> 17:51:13,476 same way end of week is also very simple 26458 17:51:13,476 --> 17:51:16,520 so let's add a new custom column for end 26459 17:51:16,520 --> 17:51:20,116 of week add column custom column and 26460 17:51:20,116 --> 17:51:23,956 let's rename this column as end of week 26461 17:51:23,956 --> 17:51:25,840 and the function which we are going to 26462 17:51:25,840 --> 17:51:32,956 use for this is date dot end of week and 26463 17:51:32,956 --> 17:51:35,596 this function can also take two argument 26464 17:51:35,596 --> 17:51:38,276 the first argument is date comma the 26465 17:51:38,276 --> 17:51:40,436 second argument is one means the week 26466 17:51:40,436 --> 17:51:43,560 will start on Monday and end on Sunday 26467 17:51:43,560 --> 17:51:46,680 so it is ending on the Sunday the 7th 26468 17:51:46,680 --> 17:51:50,436 January this means we have having a week 26469 17:51:50,436 --> 17:51:53,880 from Monday to Sunday this was little 26470 17:51:53,880 --> 17:51:55,880 difficult in Dex sometime back but now 26471 17:51:55,880 --> 17:51:58,240 we have arguments which is making it 26472 17:51:58,240 --> 17:52:00,000 simple index 26473 17:52:00,000 --> 17:52:03,436 also now we are all sorted on the start 26474 17:52:03,436 --> 17:52:06,596 dates and end date of month quarter and 26475 17:52:06,596 --> 17:52:09,436 year as well as week time has come that 26476 17:52:09,436 --> 17:52:11,560 we start creating the formatted column 26477 17:52:11,560 --> 17:52:13,756 and I'm going to start with a column 26478 17:52:13,756 --> 17:52:15,840 which is going to give me month year in 26479 17:52:15,840 --> 17:52:18,956 the text format so month year 26480 17:52:18,956 --> 17:52:24,116 and I'm going to use date dot two text 26481 17:52:24,116 --> 17:52:26,880 function and it can take two arguments 26482 17:52:26,880 --> 17:52:29,080 the first argument is date and the 26483 17:52:29,080 --> 17:52:31,400 second argument is the format and here 26484 17:52:31,400 --> 17:52:34,476 the format is going to be mmm in capital 26485 17:52:34,476 --> 17:52:39,160 3M and then 4 y y y y y this is going to 26486 17:52:39,160 --> 17:52:42,476 give me a format like J hyphen 26487 17:52:42,476 --> 17:52:46,360 2018 so let me click on okay and we got 26488 17:52:46,360 --> 17:52:48,476 January February March April this will 26489 17:52:48,476 --> 17:52:50,840 lot sort because as we know we need a 26490 17:52:50,840 --> 17:52:53,796 sort column if you have a month year in 26491 17:52:53,796 --> 17:52:55,840 a format gen from March it doesn't 26492 17:52:55,840 --> 17:52:57,080 understand that so we always need 26493 17:52:57,080 --> 17:52:58,520 sortable format so we'll go to the 26494 17:52:58,520 --> 17:53:00,840 custom column again we month year sort 26495 17:53:00,840 --> 17:53:05,240 also so month year sort how do we get 26496 17:53:05,240 --> 17:53:08,520 that now we need date do year we'll get 26497 17:53:08,520 --> 17:53:11,520 the year of the date we multiply it by 26498 17:53:11,520 --> 17:53:15,680 100 to that we add date dot month again 26499 17:53:15,680 --> 17:53:18,436 this one takes one argument that is date 26500 17:53:18,436 --> 17:53:20,200 and it's going to provide me the month 26501 17:53:20,200 --> 17:53:22,360 number this combination is going to 26502 17:53:22,360 --> 17:53:25,276 create a sortable month year which can 26503 17:53:25,276 --> 17:53:28,040 be used as a sort column for the month 26504 17:53:28,040 --> 17:53:31,000 year name which is in text format the 26505 17:53:31,000 --> 17:53:33,840 same manner you can also add the quarter 26506 17:53:33,840 --> 17:53:36,840 details using the functions available 26507 17:53:36,840 --> 17:53:40,880 for the quarter in power query so you 26508 17:53:40,880 --> 17:53:43,520 have seen you know how easy it is also 26509 17:53:43,520 --> 17:53:45,796 in power query if you know these date 26510 17:53:45,796 --> 17:53:47,956 functions you can simply go ahead and 26511 17:53:47,956 --> 17:53:50,080 create it table now there are many other 26512 17:53:50,080 --> 17:53:52,320 things which are available in date 26513 17:53:52,320 --> 17:53:54,756 functions like is current day is current 26514 17:53:54,756 --> 17:53:56,880 month is current quarter and those can 26515 17:53:56,880 --> 17:53:59,520 help you in creating this quarter this 26516 17:53:59,520 --> 17:54:02,360 month this year those help you to create 26517 17:54:02,360 --> 17:54:05,596 the columns which help you in defaulting 26518 17:54:05,596 --> 17:54:07,520 the current month qur quarter and 26519 17:54:07,520 --> 17:54:11,116 current year into the slicer now you 26520 17:54:11,116 --> 17:54:13,916 have learned some basic date functions 26521 17:54:13,916 --> 17:54:15,880 using which you can create the date 26522 17:54:15,880 --> 17:54:18,040 table but the date function does not 26523 17:54:18,040 --> 17:54:21,116 stop top here power query provides you a 26524 17:54:21,116 --> 17:54:23,400 lot of date functions which you can use 26525 17:54:23,400 --> 17:54:26,320 to enrich your date table and do many 26526 17:54:26,320 --> 17:54:28,756 other operations which are required I 26527 17:54:28,756 --> 17:54:31,720 have discussed quite few of them on my 26528 17:54:31,720 --> 17:54:34,160 channel in different different videos so 26529 17:54:34,160 --> 17:54:37,040 you can go ahead and watch those videos 26530 17:54:37,040 --> 17:54:40,160 and enhance your skills around the date 26531 17:54:40,160 --> 17:54:42,560 functions and solve many other power 26532 17:54:42,560 --> 17:54:46,276 query problems using the date functions 26533 17:54:46,276 --> 17:54:48,040 we had a lot of formulas with deck and 26534 17:54:48,040 --> 17:54:49,240 one of the things which we have 26535 17:54:49,240 --> 17:54:50,636 discussed in the past is there are 26536 17:54:50,636 --> 17:54:53,200 scenarios where you will not be able to 26537 17:54:53,200 --> 17:54:54,956 achieve few things using the connected 26538 17:54:54,956 --> 17:54:57,320 table especially when you want to go 26539 17:54:57,320 --> 17:54:58,916 beyond the boundary of what you have 26540 17:54:58,916 --> 17:55:02,000 selected what happens in case of power 26541 17:55:02,000 --> 17:55:03,756 ba what you selected becomes your 26542 17:55:03,756 --> 17:55:05,320 boundary these if you have filtered 26543 17:55:05,320 --> 17:55:07,880 something from slicer or filter that's 26544 17:55:07,880 --> 17:55:09,880 your boundary and you are not able to go 26545 17:55:09,880 --> 17:55:11,320 beyond that boundary within that 26546 17:55:11,320 --> 17:55:12,756 boundary you can get all the value so 26547 17:55:12,756 --> 17:55:14,756 let's say if I select a month I can't 26548 17:55:14,756 --> 17:55:17,040 get 12 months as a trend I can get 26549 17:55:17,040 --> 17:55:18,756 within the same month the 12 month value 26550 17:55:18,756 --> 17:55:20,720 but I can't get a TR of a 12 month so 26551 17:55:20,720 --> 17:55:23,000 how to handle that now to handle that we 26552 17:55:23,000 --> 17:55:24,400 have something known as disconnected 26553 17:55:24,400 --> 17:55:26,040 table now the disconnected table can 26554 17:55:26,040 --> 17:55:28,360 give you a solution and also the table 26555 17:55:28,360 --> 17:55:30,240 with the inactive joint can also give 26556 17:55:30,240 --> 17:55:31,796 you a solution so there are two ways you 26557 17:55:31,796 --> 17:55:35,080 can achieve this problem one where the 26558 17:55:35,080 --> 17:55:37,116 slicer is on disconnected table and 26559 17:55:37,116 --> 17:55:39,360 second where the AIS or the group by is 26560 17:55:39,360 --> 17:55:42,040 on on a table which is disconnected or a 26561 17:55:42,040 --> 17:55:43,680 table which is joined on an inactive 26562 17:55:43,680 --> 17:55:45,360 joint means definitely you require two 26563 17:55:45,360 --> 17:55:47,520 tables in a scenario so what I've done 26564 17:55:47,520 --> 17:55:50,520 here is basically to do this I would use 26565 17:55:50,520 --> 17:55:52,956 this file which we are using in end to 26566 17:55:52,956 --> 17:55:55,476 end and the 12r with visual calculation 26567 17:55:55,476 --> 17:55:57,200 is something which I want to use now in 26568 17:55:57,200 --> 17:55:59,560 this model if you remember we have 26569 17:55:59,560 --> 17:56:01,596 connected our date table the date table 26570 17:56:01,596 --> 17:56:03,080 is already connected with the sales 26571 17:56:03,080 --> 17:56:05,520 table but date Auto is not connected and 26572 17:56:05,520 --> 17:56:07,116 what I've also done here is in the date 26573 17:56:07,116 --> 17:56:09,080 Auto I added the monthier column and 26574 17:56:09,080 --> 17:56:11,240 monthier S column and I also sorted the 26575 17:56:11,240 --> 17:56:12,756 month year correctly I made sure the 26576 17:56:12,756 --> 17:56:14,360 monthier is sorted in the date table 26577 17:56:14,360 --> 17:56:15,956 also because monthier is a text column 26578 17:56:15,956 --> 17:56:17,560 the Sorting need to let me add a new 26579 17:56:17,560 --> 17:56:19,360 page and tell you what I need is I'll 26580 17:56:19,360 --> 17:56:22,436 take a slicer from month year I'll also 26581 17:56:22,436 --> 17:56:24,080 create a visual on month year let me 26582 17:56:24,080 --> 17:56:27,240 create a line visual on month year and 26583 17:56:27,240 --> 17:56:30,200 let me bring a measure net now you can 26584 17:56:30,200 --> 17:56:32,360 see I'm getting all the month if I go to 26585 17:56:32,360 --> 17:56:34,240 the slicer and select any particular 26586 17:56:34,240 --> 17:56:35,956 month let's say December 19 I'm not 26587 17:56:35,956 --> 17:56:37,840 getting 12 months after November 19 I'm 26588 17:56:37,840 --> 17:56:39,596 not getting 12 so you say okay why don't 26589 17:56:39,596 --> 17:56:40,756 you go ahead and create the rolling 26590 17:56:40,756 --> 17:56:42,520 formula you'll get it so let me do one 26591 17:56:42,520 --> 17:56:43,880 thing I have already have a rolling 26592 17:56:43,880 --> 17:56:46,080 formula so rolling two is there let me 26593 17:56:46,080 --> 17:56:47,756 copy the rolling two and create it into 26594 17:56:47,756 --> 17:56:49,360 rolling well for dates and period we 26595 17:56:49,360 --> 17:56:50,956 have learned this in time intelligence 26596 17:56:50,956 --> 17:56:52,636 how can we do that oh I have only two 26597 17:56:52,636 --> 17:56:55,596 formula I copied that and let me past it 26598 17:56:55,596 --> 17:56:57,916 into a new Maj and call it rolling 12 26599 17:56:57,916 --> 17:57:00,320 and what I'm doing here is net dates in 26600 17:57:00,320 --> 17:57:02,560 Period date of date the first argument 26601 17:57:02,560 --> 17:57:04,400 Max date of date is the second argument 26602 17:57:04,400 --> 17:57:05,956 from where should I start how many 26603 17:57:05,956 --> 17:57:07,680 period I should go I'm saying minus 12 26604 17:57:07,680 --> 17:57:09,200 because I'm starting with the Max 12 26605 17:57:09,200 --> 17:57:10,756 months this is 12 months of formula 26606 17:57:10,756 --> 17:57:12,756 rolling 12 but rolling 12 what it is 26607 17:57:12,756 --> 17:57:15,436 going to do here is when I add it here 26608 17:57:15,436 --> 17:57:17,080 it is not going to give me 12 months of 26609 17:57:17,080 --> 17:57:18,840 track for that particular month it is 26610 17:57:18,840 --> 17:57:20,596 going to give me 12 months of values and 26611 17:57:20,596 --> 17:57:22,080 you as you can see this value is pretty 26612 17:57:22,080 --> 17:57:23,240 high compared to n you might have 26613 17:57:23,240 --> 17:57:25,240 understood it is summing up the past 26614 17:57:25,240 --> 17:57:26,916 this is the 12 months of TR so one of 26615 17:57:26,916 --> 17:57:28,796 the solution which we tell for this one 26616 17:57:28,796 --> 17:57:30,916 is basic you don't have this slicer on 26617 17:57:30,916 --> 17:57:33,200 the connected table so let me remove 26618 17:57:33,200 --> 17:57:34,680 this you have this slicer or a 26619 17:57:34,680 --> 17:57:36,796 disconnected table so disconnected or 26620 17:57:36,796 --> 17:57:38,276 independent table we also call it 26621 17:57:38,276 --> 17:57:39,756 sometime independent I'll go to the 26622 17:57:39,756 --> 17:57:42,476 disconnected table date AO and in that 26623 17:57:42,476 --> 17:57:44,880 auto I'll again bring in this slicer 26624 17:57:44,880 --> 17:57:47,756 monthier and this monthier slicer let we 26625 17:57:47,756 --> 17:57:49,756 select any value as of now when I select 26626 17:57:49,756 --> 17:57:52,436 any value let's say December 2019 you 26627 17:57:52,436 --> 17:57:53,880 don't see any impact because it is not 26628 17:57:53,880 --> 17:57:55,276 connected with the table so it's not 26629 17:57:55,276 --> 17:57:57,000 going to impact let me duplicate this 26630 17:57:57,000 --> 17:58:00,040 visual let me remove the majors now what 26631 17:58:00,040 --> 17:58:02,880 I want here is I want this lier to be 26632 17:58:02,880 --> 17:58:04,840 considered by this visual but for that I 26633 17:58:04,840 --> 17:58:06,476 need to create a new major so I'm going 26634 17:58:06,476 --> 17:58:09,596 to click on new major from the Home tab 26635 17:58:09,596 --> 17:58:11,200 and in this new major what I'm going to 26636 17:58:11,200 --> 17:58:13,240 do is I'm going to consider the range of 26637 17:58:13,240 --> 17:58:15,320 this slicer now this slicer is not 26638 17:58:15,320 --> 17:58:17,320 connected so it's not going to impact so 26639 17:58:17,320 --> 17:58:19,320 it's not going to restrict my date range 26640 17:58:19,320 --> 17:58:21,116 because it is disconnected so I can take 26641 17:58:21,116 --> 17:58:23,200 a date of reference from it and it is 26642 17:58:23,200 --> 17:58:25,360 not going to restrict me 1 month or 2 26643 17:58:25,360 --> 17:58:27,000 month or 12 months because it is not 26644 17:58:27,000 --> 17:58:28,840 joined with my sales table so it is 26645 17:58:28,840 --> 17:58:30,560 having no impact there so let me do one 26646 17:58:30,560 --> 17:58:33,436 thing let me create a formula red 12 and 26647 17:58:33,436 --> 17:58:34,916 first thing which I want to do is I want 26648 17:58:34,916 --> 17:58:37,400 the date which has been selected here so 26649 17:58:37,400 --> 17:58:41,240 beore max equals to Maxx all selected 26650 17:58:41,240 --> 17:58:43,160 this is how we got the max date of date 26651 17:58:43,160 --> 17:58:45,636 Auto table all selected date Auto and I 26652 17:58:45,636 --> 17:58:47,400 need date of date Auto I get the date 26653 17:58:47,400 --> 17:58:49,476 Auto date so I got this into a variable 26654 17:58:49,476 --> 17:58:51,160 now what I'm going to do is based on 26655 17:58:51,160 --> 17:58:53,360 this date I want to create 12 months Str 26656 17:58:53,360 --> 17:58:55,636 so I need a state which is also a 26657 17:58:55,636 --> 17:58:57,320 minimum date so I got a Max date how do 26658 17:58:57,320 --> 17:58:59,240 I get minimum date EO month is a 26659 17:58:59,240 --> 17:59:03,080 function EO month and I can take Max uh 26660 17:59:03,080 --> 17:59:05,476 1 minus one will take one month Backus 26661 17:59:05,476 --> 17:59:07,436 12 minut should take me 12 months back 26662 17:59:07,436 --> 17:59:09,596 and plus one it should give me 12 months 26663 17:59:09,596 --> 17:59:11,596 of trend or so we got a minimum value we 26664 17:59:11,596 --> 17:59:13,240 got a maximum value now this date range 26665 17:59:13,240 --> 17:59:15,276 is having no impact on my calculations 26666 17:59:15,276 --> 17:59:17,320 right now so what I want to do is return 26667 17:59:17,320 --> 17:59:19,880 calculate net and remember there is no 26668 17:59:19,880 --> 17:59:21,436 other filter required on the date table 26669 17:59:21,436 --> 17:59:22,560 right now so we assume there is no 26670 17:59:22,560 --> 17:59:24,116 filter and we don't need to ignore any 26671 17:59:24,116 --> 17:59:26,276 filter right now so now what I will to 26672 17:59:26,276 --> 17:59:27,916 do is I will push my fter on the date 26673 17:59:27,916 --> 17:59:30,840 table date of date is greater than 26674 17:59:30,840 --> 17:59:34,240 equals to underscore minimum and date of 26675 17:59:34,240 --> 17:59:37,880 date is less than equals toore Max so 26676 17:59:37,880 --> 17:59:39,520 date of date is greater than equal to 26677 17:59:39,520 --> 17:59:41,476 Min and date of date is less than equal 26678 17:59:41,476 --> 17:59:42,756 to and we are filtering we are not 26679 17:59:42,756 --> 17:59:44,240 putting any all or something which is 26680 17:59:44,240 --> 17:59:46,680 restricting so trend of 12 so let's get 26681 17:59:46,680 --> 17:59:48,956 this trend of 12 I have pressed enter so 26682 17:59:48,956 --> 17:59:50,796 that the formula get committed I could 26683 17:59:50,796 --> 17:59:52,916 have also pressed the commit button so 26684 17:59:52,916 --> 17:59:54,720 let me drag this trend 12 into the 26685 17:59:54,720 --> 17:59:57,116 second visual now I'm getting a 12 month 26686 17:59:57,116 --> 17:59:58,520 Str as you can see I'm getting a 12 26687 17:59:58,520 --> 18:00:00,756 month Str this is going to work only 26688 18:00:00,756 --> 18:00:02,756 when you filter from the Independent the 26689 18:00:02,756 --> 18:00:04,200 moment you filter something from 26690 18:00:04,200 --> 18:00:05,956 connected table it will not give you the 26691 18:00:05,956 --> 18:00:08,756 12 months Trend but you always L us one 26692 18:00:08,756 --> 18:00:10,916 challenge the rest of the visuals and 26693 18:00:10,916 --> 18:00:12,796 the majors are getting filtered from the 26694 18:00:12,796 --> 18:00:14,956 connected table and this one is only 26695 18:00:14,956 --> 18:00:16,560 getting filtered from the disconnected 26696 18:00:16,560 --> 18:00:18,560 table so it is really difficult to 26697 18:00:18,560 --> 18:00:20,596 manage it on the page so how can we get 26698 18:00:20,596 --> 18:00:23,436 it filtered from the connected 26699 18:00:23,436 --> 18:00:26,160 table and if I make this in sync then 26700 18:00:26,160 --> 18:00:27,916 this visual is not going to obey so then 26701 18:00:27,916 --> 18:00:29,680 I will again have a problem so then how 26702 18:00:29,680 --> 18:00:31,276 do we do that so to do that what we are 26703 18:00:31,276 --> 18:00:33,520 going to do here is basically so we need 26704 18:00:33,520 --> 18:00:36,880 to make sure that the slicer is on the 26705 18:00:36,880 --> 18:00:39,360 connected table and axis is on the 26706 18:00:39,360 --> 18:00:41,560 disconnected table right now it is 26707 18:00:41,560 --> 18:00:43,596 reverse the slicer is on the 26708 18:00:43,596 --> 18:00:46,320 disconnected and the AIS is on the 26709 18:00:46,320 --> 18:00:48,756 connected table 26710 18:00:48,756 --> 18:00:51,116 to make this happen we will add an 26711 18:00:51,116 --> 18:00:53,720 additional inactive join in our data 26712 18:00:53,720 --> 18:00:56,240 model so let me do one thing let me join 26713 18:00:56,240 --> 18:00:58,636 the sales date of the date table with 26714 18:00:58,636 --> 18:01:00,720 the date Auto and this will to create a 26715 18:01:00,720 --> 18:01:02,720 join we are going to create a single 26716 18:01:02,720 --> 18:01:04,720 directional join the date table many to 26717 18:01:04,720 --> 18:01:06,720 one join with the Dat Auto table but 26718 18:01:06,720 --> 18:01:08,240 that is 26719 18:01:08,240 --> 18:01:10,680 inactive there is a join but that join 26720 18:01:10,680 --> 18:01:12,880 is not filtering right now that was the 26721 18:01:12,880 --> 18:01:14,956 inactive join means and it should be 26722 18:01:14,956 --> 18:01:17,000 shown as dotted dotted means the join is 26723 18:01:17,000 --> 18:01:18,520 inactive 26724 18:01:18,520 --> 18:01:20,596 now we come back we don't see any issues 26725 18:01:20,596 --> 18:01:23,596 so it means that I can keep my 26726 18:01:23,596 --> 18:01:26,000 disconnected table with an inactive join 26727 18:01:26,000 --> 18:01:28,320 also now what we want we want this 26728 18:01:28,320 --> 18:01:30,796 slicer the above slicer the month year 26729 18:01:30,796 --> 18:01:34,116 slicer to work and to just to understand 26730 18:01:34,116 --> 18:01:36,596 this better let me go back to the date 26731 18:01:36,596 --> 18:01:40,040 Auto and rename this column month year 26732 18:01:40,040 --> 18:01:42,400 indd double click rename and enter let 26733 18:01:42,400 --> 18:01:44,000 me come back to the realation so right 26734 18:01:44,000 --> 18:01:46,720 now things are working let's rename the 26735 18:01:46,720 --> 18:01:49,200 page as disconnect Ed slicer as we are 26736 18:01:49,200 --> 18:01:52,040 using a disconnected slicer here and Poe 26737 18:01:52,040 --> 18:01:54,756 that I'll duplicate a page to take the 26738 18:01:54,756 --> 18:01:58,320 next case so now we have disconnected 26739 18:01:58,320 --> 18:02:00,160 slicer page on which the disconnected 26740 18:02:00,160 --> 18:02:02,116 slicer is working let's duplicate this 26741 18:02:02,116 --> 18:02:04,240 and now we want the connected slicer now 26742 18:02:04,240 --> 18:02:06,000 we don't want disconnected slicer so 26743 18:02:06,000 --> 18:02:08,080 what I want here is basically on this 26744 18:02:08,080 --> 18:02:10,360 page a connected date slicer I don't 26745 18:02:10,360 --> 18:02:12,476 want disconnected date slicer so I can 26746 18:02:12,476 --> 18:02:14,276 delete it and only keep the connected 26747 18:02:14,276 --> 18:02:15,916 one okay so what I'm going to do is 26748 18:02:15,916 --> 18:02:17,840 because you want a connected slicer and 26749 18:02:17,840 --> 18:02:19,756 in the connected slicer you SEL let's 26750 18:02:19,756 --> 18:02:21,360 say November and you need a 12 months of 26751 18:02:21,360 --> 18:02:23,116 trend which is not coming on the visual 26752 18:02:23,116 --> 18:02:24,840 let me first of all remove this major 26753 18:02:24,840 --> 18:02:27,000 and also remove this AIS now what I'm 26754 18:02:27,000 --> 18:02:28,680 going to do is I'm going to bring this 26755 18:02:28,680 --> 18:02:30,360 AIS from the Independent table so 26756 18:02:30,360 --> 18:02:32,560 monthier independ now when I bring this 26757 18:02:32,560 --> 18:02:34,200 AIS from the Independent table and let's 26758 18:02:34,200 --> 18:02:36,720 say if I try to bring in net the major 26759 18:02:36,720 --> 18:02:39,400 which we have here on the y- axis you 26760 18:02:39,400 --> 18:02:40,880 see a flat line the reason for that 26761 18:02:40,880 --> 18:02:43,720 because joinor is not going to work so 26762 18:02:43,720 --> 18:02:46,116 now let's we do go ahead and create one 26763 18:02:46,116 --> 18:02:48,040 more measure from the home t I'm going 26764 18:02:48,040 --> 18:02:50,400 to create one more major very similar to 26765 18:02:50,400 --> 18:02:52,680 what we have created few minutes back 26766 18:02:52,680 --> 18:02:55,116 but this time we are going to calculate 26767 18:02:55,116 --> 18:02:58,436 our date ranges based on the connected 26768 18:02:58,436 --> 18:03:00,796 date table not based on the disconnected 26769 18:03:00,796 --> 18:03:02,320 date 26770 18:03:02,320 --> 18:03:05,720 table I'm going to create friend well 26771 18:03:05,720 --> 18:03:07,916 disconnected the AIS is disconnected let 26772 18:03:07,916 --> 18:03:09,956 me be very clear on that now again I'm 26773 18:03:09,956 --> 18:03:12,000 going to create variable Max and the 26774 18:03:12,000 --> 18:03:15,880 variable Max is going to be Max X all 26775 18:03:15,880 --> 18:03:20,360 selected date date of date I'm going to 26776 18:03:20,360 --> 18:03:22,680 again have a variable where underscore 26777 18:03:22,680 --> 18:03:25,916 Min and Min is going to be EO month 26778 18:03:25,916 --> 18:03:31,320 uncore Max -2 + 1 return I going to 26779 18:03:31,320 --> 18:03:34,200 return I'll use calculate net how I want 26780 18:03:34,200 --> 18:03:38,520 to filter filter let me filter date Auto 26781 18:03:38,520 --> 18:03:42,400 date Autos date of date is less than 26782 18:03:42,400 --> 18:03:47,756 equals to underscore Max and dat autos 26783 18:03:47,756 --> 18:03:49,436 date should be greater than equal to 26784 18:03:49,436 --> 18:03:52,080 underscore Min let's try this out there 26785 18:03:52,080 --> 18:03:53,360 is still one problem you might have 26786 18:03:53,360 --> 18:03:55,560 identified that where is the joint 26787 18:03:55,560 --> 18:03:57,956 disconnected isn't it so date Autos date 26788 18:03:57,956 --> 18:04:00,880 of date is less than equal to Max and N 26789 18:04:00,880 --> 18:04:03,560 double M perc date of Auto is greater 26790 18:04:03,560 --> 18:04:05,840 than equal to minimum okay let's Commit 26791 18:04:05,840 --> 18:04:08,160 This formula and let's bring this inside 26792 18:04:08,160 --> 18:04:10,436 the visualization now still it is giving 26793 18:04:10,436 --> 18:04:12,880 us a flat line how to get rid of that 26794 18:04:12,880 --> 18:04:15,200 Flat Line we have not activated the 26795 18:04:15,200 --> 18:04:17,080 relationship so that it can work on the 26796 18:04:17,080 --> 18:04:19,116 axis so let's try to use use 26797 18:04:19,116 --> 18:04:21,040 relationship use relationship is a 26798 18:04:21,040 --> 18:04:24,000 function which can help us in activating 26799 18:04:24,000 --> 18:04:26,560 an inactive relationship so let's take 26800 18:04:26,560 --> 18:04:29,320 use relationship the table date Autos 26801 18:04:29,320 --> 18:04:33,720 date date Autos date with the sales date 26802 18:04:33,720 --> 18:04:36,680 of sales table should get activated we 26803 18:04:36,680 --> 18:04:38,240 are asking it to activate the 26804 18:04:38,240 --> 18:04:40,956 relationship now and the moment we do we 26805 18:04:40,956 --> 18:04:43,720 are seeing only one dot why so this 26806 18:04:43,720 --> 18:04:45,160 formula needs modification the what 26807 18:04:45,160 --> 18:04:47,000 modification this formula need is that 26808 18:04:47,000 --> 18:04:49,116 this date table is still need to give me 26809 18:04:49,116 --> 18:04:50,840 the 12 months of value the date table is 26810 18:04:50,840 --> 18:04:52,200 still giving me one month of value so 26811 18:04:52,200 --> 18:04:54,360 there is no benefit of you know putting 26812 18:04:54,360 --> 18:04:56,560 this used relationship in action what I 26813 18:04:56,560 --> 18:04:59,000 need here is basically rolling 12 months 26814 18:04:59,000 --> 18:05:00,680 when I rolling 12 months do I really 26815 18:05:00,680 --> 18:05:02,116 need because now I'm getting 12 months 26816 18:05:02,116 --> 18:05:03,916 of data do I need need this filter so 26817 18:05:03,916 --> 18:05:06,000 let's check it out without this filter 26818 18:05:06,000 --> 18:05:07,796 so now we have a rolling 12 which is 26819 18:05:07,796 --> 18:05:09,596 based on 12 months of rolling and then 26820 18:05:09,596 --> 18:05:11,400 we are saying activate the relationship 26821 18:05:11,400 --> 18:05:14,756 of independent table and now if you can 26822 18:05:14,756 --> 18:05:16,880 see we are getting the 12 months of data 26823 18:05:16,880 --> 18:05:18,720 let's move it to December and we are 26824 18:05:18,720 --> 18:05:20,200 getting data of December let's move it 26825 18:05:20,200 --> 18:05:23,116 to August September we have data from 26826 18:05:23,116 --> 18:05:26,240 October so as now you can see the AIS 26827 18:05:26,240 --> 18:05:28,360 which is coming from disconnected or 26828 18:05:28,360 --> 18:05:30,080 independent table is getting so you need 26829 18:05:30,080 --> 18:05:31,840 a rolling formula now that rolling 26830 18:05:31,840 --> 18:05:33,240 formula you just create a use 26831 18:05:33,240 --> 18:05:35,636 relationship with a disconnected table 26832 18:05:35,636 --> 18:05:37,320 and use that disconnected table on the 26833 18:05:37,320 --> 18:05:39,116 axis and then you can have the 26834 18:05:39,116 --> 18:05:40,680 relationship so disconnected is 26835 18:05:40,680 --> 18:05:42,360 basically inative disconnected it's not 26836 18:05:42,360 --> 18:05:44,040 completely disconnected so inactive 26837 18:05:44,040 --> 18:05:46,240 disconnected table you activate that 26838 18:05:46,240 --> 18:05:48,080 relationship and then your rolling will 26839 18:05:48,080 --> 18:05:50,840 become your 12 months of trend and in 26840 18:05:50,840 --> 18:05:52,720 this case what would happen basically is 26841 18:05:52,720 --> 18:05:54,636 that you have the exis which is on 26842 18:05:54,636 --> 18:05:56,476 disconnected table so it is your same 26843 18:05:56,476 --> 18:05:59,276 slicer your connected slicer or your 26844 18:05:59,276 --> 18:06:01,680 joined table slicer which is working so 26845 18:06:01,680 --> 18:06:03,000 you don't have to change everything on 26846 18:06:03,000 --> 18:06:04,680 your page you order to create many major 26847 18:06:04,680 --> 18:06:07,040 it is only for the visual where you need 26848 18:06:07,040 --> 18:06:08,956 this 12 months you can use the 26849 18:06:08,956 --> 18:06:11,320 disconnected or the independent table in 26850 18:06:11,320 --> 18:06:14,240 the axis with with such a small formula 26851 18:06:14,240 --> 18:06:15,720 and this formula is going to help you 26852 18:06:15,720 --> 18:06:18,116 out just to compare the the values of 26853 18:06:18,116 --> 18:06:21,200 the September it is 245k and the value 26854 18:06:21,200 --> 18:06:23,840 of September is 245k the numbers are 26855 18:06:23,840 --> 18:06:25,476 matching it means it is displaying the 26856 18:06:25,476 --> 18:06:27,276 correct values so you can go ahead and 26857 18:06:27,276 --> 18:06:28,756 try this out and there are different 26858 18:06:28,756 --> 18:06:30,596 permutations and combination which are 26859 18:06:30,596 --> 18:06:33,240 possible because of disconnected tables 26860 18:06:33,240 --> 18:06:36,200 like accept is one of them whenever we 26861 18:06:36,200 --> 18:06:38,276 have a value and we don't want to use 26862 18:06:38,276 --> 18:06:40,080 that value want values other than that 26863 18:06:40,080 --> 18:06:42,040 there are so many use cases around that 26864 18:06:42,040 --> 18:06:44,080 which can be done because of this 26865 18:06:44,080 --> 18:06:45,956 disconnected or independent table you 26866 18:06:45,956 --> 18:06:48,040 can watch all of those in the previous 26867 18:06:48,040 --> 18:06:49,720 video of the channel just search for 26868 18:06:49,720 --> 18:06:51,840 independent or disconnected keywords on 26869 18:06:51,840 --> 18:06:53,956 the Channel videos and you will get the 26870 18:06:53,956 --> 18:06:56,596 list of the videos which are talking 26871 18:06:56,596 --> 18:06:58,476 about disconnected table or independent 26872 18:06:58,476 --> 18:07:02,080 table how can we convert a single table 26873 18:07:02,080 --> 18:07:04,916 into a star schema now this single table 26874 18:07:04,916 --> 18:07:06,596 is the very common file which is 26875 18:07:06,596 --> 18:07:08,400 available on my GitHub account which is 26876 18:07:08,400 --> 18:07:11,240 beginner tutorial series file which I 26877 18:07:11,240 --> 18:07:13,560 also used in my beginner tutorial this 26878 18:07:13,560 --> 18:07:16,276 is the retail file which is having the 26879 18:07:16,276 --> 18:07:18,880 entire data in one single file and you 26880 18:07:18,880 --> 18:07:21,160 wanted to know how can we convert into a 26881 18:07:21,160 --> 18:07:23,400 star scha in this video what I'm going 26882 18:07:23,400 --> 18:07:25,956 to do is I'm going to give you the video 26883 18:07:25,956 --> 18:07:28,116 which I've recorded for that particular 26884 18:07:28,116 --> 18:07:29,720 Series so that you can take the 26885 18:07:29,720 --> 18:07:32,560 advantage here also on the YouTube the 26886 18:07:32,560 --> 18:07:35,436 purpose of this video is to convert the 26887 18:07:35,436 --> 18:07:38,000 single file into a star schema so first 26888 18:07:38,000 --> 18:07:40,360 of all Let Me Explain you that Excel 26889 18:07:40,360 --> 18:07:43,040 file which we have so this is the file 26890 18:07:43,040 --> 18:07:45,000 which is known as retail data on 26891 18:07:45,000 --> 18:07:47,000 beginner tutorial file this file 26892 18:07:47,000 --> 18:07:49,360 contains order ID order number order 26893 18:07:49,360 --> 18:07:52,000 date which are the order attributes then 26894 18:07:52,000 --> 18:07:54,040 it has a dimension which is a part of 26895 18:07:54,040 --> 18:07:56,116 this table only which is item id item 26896 18:07:56,116 --> 18:07:58,000 number category subcategory sub 26897 18:07:58,000 --> 18:08:00,796 subcategory and brand then I have unit 26898 18:08:00,796 --> 18:08:03,520 price which is the sales price quantity 26899 18:08:03,520 --> 18:08:05,160 how much we have sold discount 26900 18:08:05,160 --> 18:08:06,916 percentage it is actual discount 26901 18:08:06,916 --> 18:08:09,116 percentage so we don't have to divide it 26902 18:08:09,116 --> 18:08:12,520 by 100 then we have gross sales discount 26903 18:08:12,520 --> 18:08:14,916 net sales which is known as sales unit 26904 18:08:14,916 --> 18:08:16,520 cost the cost which you are paying for 26905 18:08:16,520 --> 18:08:19,080 this item then we have requested date 26906 18:08:19,080 --> 18:08:21,200 delivery date this also contain the 26907 18:08:21,200 --> 18:08:23,320 geography item attribute which is city 26908 18:08:23,320 --> 18:08:25,916 state region and location ID but not all 26909 18:08:25,916 --> 18:08:28,116 four can be a part of a single Dimension 26910 18:08:28,116 --> 18:08:29,560 it also have some single column 26911 18:08:29,560 --> 18:08:31,360 Dimensions like order type payment 26912 18:08:31,360 --> 18:08:34,320 method and customer ID so using this 26913 18:08:34,320 --> 18:08:36,596 single Excel sheet we can do the 26914 18:08:36,596 --> 18:08:39,200 complete analysis on powerbi but we know 26915 18:08:39,200 --> 18:08:42,080 the star schema works best on powerbi so 26916 18:08:42,080 --> 18:08:43,560 what we are going to do is we are going 26917 18:08:43,560 --> 18:08:46,520 to convert this single file into a star 26918 18:08:46,520 --> 18:08:49,276 schema and I'm going to Showcase you all 26919 18:08:49,276 --> 18:08:52,000 the steps for that what we have done so 26920 18:08:52,000 --> 18:08:54,276 far is we have learned some basic power 26921 18:08:54,276 --> 18:08:56,720 query transformation now time has come 26922 18:08:56,720 --> 18:08:59,796 that we apply those transformation onto 26923 18:08:59,796 --> 18:09:02,240 a data set and this data set is 26924 18:09:02,240 --> 18:09:05,040 basically a single table and this single 26925 18:09:05,040 --> 18:09:07,276 table we wanted to break into a star 26926 18:09:07,276 --> 18:09:10,040 schema so how to do the various 26927 18:09:10,040 --> 18:09:12,200 transformation to convert this table 26928 18:09:12,200 --> 18:09:13,840 into a star 26929 18:09:13,840 --> 18:09:16,276 schema and to do that what I'm going to 26930 18:09:16,276 --> 18:09:19,000 do is I'm going to go back to the GitHub 26931 18:09:19,000 --> 18:09:20,436 and from the GitHub I'm going to take 26932 18:09:20,436 --> 18:09:23,200 this file for Winer tutorial series 26933 18:09:23,200 --> 18:09:26,360 youtube. XLS again I already opened that 26934 18:09:26,360 --> 18:09:28,560 file and I'm now going to right click on 26935 18:09:28,560 --> 18:09:30,916 the raw copy link I'll take this link 26936 18:09:30,916 --> 18:09:34,320 and I'll go back to Power VI power ba I 26937 18:09:34,320 --> 18:09:38,360 click on get data web H this URL click 26938 18:09:38,360 --> 18:09:41,080 on okay it will show me only one sheet 26939 18:09:41,080 --> 18:09:42,476 and I'm going to pick up that particular 26940 18:09:42,476 --> 18:09:44,956 sheet and after that I will click on 26941 18:09:44,956 --> 18:09:47,320 transform data this will open the data 26942 18:09:47,320 --> 18:09:49,636 onto the power query mode and we can 26943 18:09:49,636 --> 18:09:52,320 directly transform it without loading it 26944 18:09:52,320 --> 18:09:54,720 this data is a very special data because 26945 18:09:54,720 --> 18:09:56,240 all the attributes whether they 26946 18:09:56,240 --> 18:09:58,756 Dimension or measures are available in 26947 18:09:58,756 --> 18:10:02,320 one single table I want to create fact 26948 18:10:02,320 --> 18:10:04,916 and dimension out of this single table 26949 18:10:04,916 --> 18:10:06,200 I'll tell you what all this table 26950 18:10:06,200 --> 18:10:08,240 contains this particular data is having 26951 18:10:08,240 --> 18:10:11,276 order ID order date item id category 26952 18:10:11,276 --> 18:10:13,840 subcategory sub subcategory brand unit 26953 18:10:13,840 --> 18:10:16,636 price quantity discount percentage unit 26954 18:10:16,636 --> 18:10:17,880 cost 26955 18:10:17,880 --> 18:10:20,596 state region location ID order type 26956 18:10:20,596 --> 18:10:22,756 payment me and customer I want to create 26957 18:10:22,756 --> 18:10:25,276 multiple Dimension tables out of it but 26958 18:10:25,276 --> 18:10:27,476 how can I do that what happens when I 26959 18:10:27,476 --> 18:10:29,636 want to create a dimension on a single 26960 18:10:29,636 --> 18:10:32,000 stuff like order type or payment method 26961 18:10:32,000 --> 18:10:33,720 then I do have options like you know add 26962 18:10:33,720 --> 18:10:36,436 as a new query or a single column but I 26963 18:10:36,436 --> 18:10:38,636 do not have similar option for multiple 26964 18:10:38,636 --> 18:10:41,040 columns for that we need to explore the 26965 18:10:41,040 --> 18:10:43,756 option of duplicating the table to do 26966 18:10:43,756 --> 18:10:46,080 that I can right click on the sheet and 26967 18:10:46,080 --> 18:10:47,796 I have two option duplic D at and 26968 18:10:47,796 --> 18:10:49,680 reference duplicate will duplicate and 26969 18:10:49,680 --> 18:10:51,400 it will take whatever steps have been 26970 18:10:51,400 --> 18:10:53,476 performed till now it is just duplicate 26971 18:10:53,476 --> 18:10:55,276 this code and after that there is no 26972 18:10:55,276 --> 18:10:57,000 connection between the two table but 26973 18:10:57,000 --> 18:10:58,240 what would happen in case of reference 26974 18:10:58,240 --> 18:11:00,000 it's going to create a reference but it 26975 18:11:00,000 --> 18:11:01,756 will add the reference to this table 26976 18:11:01,756 --> 18:11:03,320 which sheet one whatever it is the 26977 18:11:03,320 --> 18:11:05,436 advantage of referen is to not the data 26978 18:11:05,436 --> 18:11:07,200 for once and then it's going to process 26979 18:11:07,200 --> 18:11:09,240 rest of the things but in case of toate 26980 18:11:09,240 --> 18:11:10,560 because it's going to not the data again 26981 18:11:10,560 --> 18:11:12,636 and again so every time you take it it 26982 18:11:12,636 --> 18:11:14,116 will lower the data for all the 26983 18:11:14,116 --> 18:11:15,756 duplication you have created so if you 26984 18:11:15,756 --> 18:11:17,596 have created four duplicated is going to 26985 18:11:17,596 --> 18:11:20,000 load the data four times let me show you 26986 18:11:20,000 --> 18:11:21,400 what happens when I created a duplicate 26987 18:11:21,400 --> 18:11:23,360 copy so if you see the duplicate copy if 26988 18:11:23,360 --> 18:11:25,320 you see in the sheet one look at the 26989 18:11:25,320 --> 18:11:27,400 steps in the sheet one and go and look 26990 18:11:27,400 --> 18:11:29,116 at the steps in the sheet two also they 26991 18:11:29,116 --> 18:11:30,796 are save and if you click in the source 26992 18:11:30,796 --> 18:11:32,360 you will see it is getting data from the 26993 18:11:32,360 --> 18:11:35,000 same place but now if I right click and 26994 18:11:35,000 --> 18:11:37,436 use reference you will see that it is 26995 18:11:37,436 --> 18:11:39,040 reference in the sheet one but the 26996 18:11:39,040 --> 18:11:40,756 disadvantage with that is if I go ahead 26997 18:11:40,756 --> 18:11:42,956 and do let's say one operation here 26998 18:11:42,956 --> 18:11:44,400 let's say if I go back and create the 26999 18:11:44,400 --> 18:11:46,840 gross column which we always creating so 27000 18:11:46,840 --> 18:11:49,116 I go and create a custom column and let 27001 18:11:49,116 --> 18:11:52,596 me call it as gross amount for this 27002 18:11:52,596 --> 18:11:56,040 gross amount equals quantity multiply by 27003 18:11:56,040 --> 18:11:58,720 unit price click on okay to add gross 27004 18:11:58,720 --> 18:12:00,200 mode is available here in the sheet one 27005 18:12:00,200 --> 18:12:02,080 but if I go to sheet three and you 27006 18:12:02,080 --> 18:12:04,360 scroll you also see gross am it's a 27007 18:12:04,360 --> 18:12:05,560 reference table it's going to get 27008 18:12:05,560 --> 18:12:07,720 everything so to avoid this what I'm 27009 18:12:07,720 --> 18:12:09,596 going to do is I'm not going to do 27010 18:12:09,596 --> 18:12:11,720 anything with the sheet one so let me 27011 18:12:11,720 --> 18:12:14,596 delete whatever I've 27012 18:12:14,596 --> 18:12:17,600 created so I'm deleting the queries I go 27013 18:12:17,600 --> 18:12:18,960 to the sheet one I'll also delete the 27014 18:12:18,960 --> 18:12:21,720 edit column let me rename it as sales 27015 18:12:21,720 --> 18:12:24,400 undor base I'm not going to do anything 27016 18:12:24,400 --> 18:12:26,476 with this table I want to create item 27017 18:12:26,476 --> 18:12:27,876 table so but for that what I'm going to 27018 18:12:27,876 --> 18:12:30,116 do is I need this field item category 27019 18:12:30,116 --> 18:12:31,836 subcategory sub subcategory and brand 27020 18:12:31,836 --> 18:12:33,720 that constitute my item table what I'm 27021 18:12:33,720 --> 18:12:35,556 going to do is I'm going to cck a 27022 18:12:35,556 --> 18:12:37,244 reference table our reference table is 27023 18:12:37,244 --> 18:12:39,756 created now let me rename it as item 27024 18:12:39,756 --> 18:12:41,280 item query has been created which is 27025 18:12:41,280 --> 18:12:43,080 going to become item table I'll select 27026 18:12:43,080 --> 18:12:45,360 item id category id subcategory id sub 27027 18:12:45,360 --> 18:12:48,476 category ID and BR if and click all 27028 18:12:48,476 --> 18:12:50,280 these columns are selected I'll right 27029 18:12:50,280 --> 18:12:52,920 click and I'll use remove other columns 27030 18:12:52,920 --> 18:12:54,600 remove whatever other columns are there 27031 18:12:54,600 --> 18:12:56,600 other than what I've selected po that I 27032 18:12:56,600 --> 18:12:58,476 click on Item ID or I click here on the 27033 18:12:58,476 --> 18:13:02,244 corner and after that I can use remove 27034 18:13:02,244 --> 18:13:04,360 duplicates now it will remove duplicates 27035 18:13:04,360 --> 18:13:06,436 for the table and now I need to check 27036 18:13:06,436 --> 18:13:09,080 here is am I getting the listing item 27037 18:13:09,080 --> 18:13:10,796 IDs or not because if Item ID is not 27038 18:13:10,796 --> 18:13:12,680 disting then it's not going to become my 27039 18:13:12,680 --> 18:13:14,516 primary key so what I'm going to do here 27040 18:13:14,516 --> 18:13:16,476 is I'll go here to The View and here let 27041 18:13:16,476 --> 18:13:19,360 me add colum distribution and you see 27042 18:13:19,360 --> 18:13:22,360 thousand distinct and th unique let me 27043 18:13:22,360 --> 18:13:24,756 click on the bottom and use entire data 27044 18:13:24,756 --> 18:13:28,436 set and you can see 264 264 is unique 27045 18:13:28,436 --> 18:13:30,836 and distinct it means Item ID is my 27046 18:13:30,836 --> 18:13:33,280 primary key or unique key I don't need 27047 18:13:33,280 --> 18:13:36,000 index column for uniqueness I can use 27048 18:13:36,000 --> 18:13:39,196 item ID to join with my fact table let's 27049 18:13:39,196 --> 18:13:41,756 add another dimension now again I go 27050 18:13:41,756 --> 18:13:43,920 back I duplicate this using reference 27051 18:13:43,920 --> 18:13:47,400 and let me call it as geography and inph 27052 18:13:47,400 --> 18:13:49,680 I want to bring the column city state 27053 18:13:49,680 --> 18:13:51,640 region and location I selected all of 27054 18:13:51,640 --> 18:13:54,040 them right click remove other column I 27055 18:13:54,040 --> 18:13:56,280 click on the top col and I'll use the 27056 18:13:56,280 --> 18:13:59,400 option R duplicates and let's wait for 27057 18:13:59,400 --> 18:14:02,280 the location ID stats here you see there 27058 18:14:02,280 --> 18:14:04,400 is a problem and the problem is see 27059 18:14:04,400 --> 18:14:06,600 there are only 75 unique but there are 27060 18:14:06,600 --> 18:14:08,960 299 distinct it means not a primary the 27061 18:14:08,960 --> 18:14:11,796 cities are 71 unique there is some 27062 18:14:11,796 --> 18:14:13,720 problem and the problem is caused by the 27063 18:14:13,720 --> 18:14:15,836 region column it is not allowing us to 27064 18:14:15,836 --> 18:14:18,320 get the location as unique column let's 27065 18:14:18,320 --> 18:14:20,476 go to the remove other columns Tab and 27066 18:14:20,476 --> 18:14:23,156 from there we will remove region as a 27067 18:14:23,156 --> 18:14:25,244 column and once we remove this region as 27068 18:14:25,244 --> 18:14:27,756 a column we can press enter and check 27069 18:14:27,756 --> 18:14:30,360 for the results and once we go to the 27070 18:14:30,360 --> 18:14:33,244 remove duplicate step we will see that 27071 18:14:33,244 --> 18:14:36,436 now location ID will become a primary 27072 18:14:36,436 --> 18:14:38,360 key or a unique key and now you can see 27073 18:14:38,360 --> 18:14:41,116 299 distinct and 299 unique it means 27074 18:14:41,116 --> 18:14:43,600 location ID can be used as a primary key 27075 18:14:43,600 --> 18:14:46,400 or unique key and it can also be used as 27076 18:14:46,400 --> 18:14:48,920 a joint column to join with the fact 27077 18:14:48,920 --> 18:14:52,244 table two Dimension tables are done and 27078 18:14:52,244 --> 18:14:54,320 now I can go back and look at the data 27079 18:14:54,320 --> 18:14:56,476 now I'm not B bothered about order ID 27080 18:14:56,476 --> 18:14:58,836 and Order date but I would like to 27081 18:14:58,836 --> 18:15:01,040 create some single column Dimension so 27082 18:15:01,040 --> 18:15:02,556 let's go ahead I'll tell you how to 27083 18:15:02,556 --> 18:15:04,156 create dimension for order type and 27084 18:15:04,156 --> 18:15:06,000 payment method for order type and 27085 18:15:06,000 --> 18:15:08,000 payment method now these tables don't 27086 18:15:08,000 --> 18:15:10,640 have their own IDs also so I need ID ALS 27087 18:15:10,640 --> 18:15:12,756 and region also one of the contender is 27088 18:15:12,756 --> 18:15:14,720 region so right click on this add add as 27089 18:15:14,720 --> 18:15:16,600 a new query now again when I add as a 27090 18:15:16,600 --> 18:15:18,476 new quer query is going to take all 27091 18:15:18,476 --> 18:15:20,516 these steps so this is what I don't want 27092 18:15:20,516 --> 18:15:22,080 I don't want this this is one of the 27093 18:15:22,080 --> 18:15:24,040 best method to do it but again you see 27094 18:15:24,040 --> 18:15:25,640 that all the steps are repeating this is 27095 18:15:25,640 --> 18:15:28,436 what we don't want so we go ahead and 27096 18:15:28,436 --> 18:15:30,876 remove this and instead of that we will 27097 18:15:30,876 --> 18:15:33,600 only go to the reference and there we'll 27098 18:15:33,600 --> 18:15:35,476 select one column let's say region in 27099 18:15:35,476 --> 18:15:37,400 this case remove other columns and then 27100 18:15:37,400 --> 18:15:39,116 simply because it's only one column we 27101 18:15:39,116 --> 18:15:41,196 can remove duplicates by clicking on the 27102 18:15:41,196 --> 18:15:44,320 column duplicates are removed now here I 27103 18:15:44,320 --> 18:15:46,400 want to have an ID column and that idid 27104 18:15:46,400 --> 18:15:49,040 column I again want back in my fact 27105 18:15:49,040 --> 18:15:51,080 table when I going to create a fact so 27106 18:15:51,080 --> 18:15:53,436 what I'm going to do for that so I'm 27107 18:15:53,436 --> 18:15:55,720 going to add index column go to add 27108 18:15:55,720 --> 18:15:58,040 column and there index column starting 27109 18:15:58,040 --> 18:15:59,920 from one I added an index the same 27110 18:15:59,920 --> 18:16:01,756 exercise I need to repeat for order type 27111 18:16:01,756 --> 18:16:03,556 and payment method but right now I'll 27112 18:16:03,556 --> 18:16:05,244 just keep it till this example let me 27113 18:16:05,244 --> 18:16:07,156 call this table as region so now what I 27114 18:16:07,156 --> 18:16:09,680 wanted to do is now this region has a 27115 18:16:09,680 --> 18:16:11,920 new ID and I would like populating back 27116 18:16:11,920 --> 18:16:13,476 and then I'll get the payment ID then 27117 18:16:13,476 --> 18:16:15,400 I'll get the order type ID I would like 27118 18:16:15,400 --> 18:16:17,400 to populate those all let let's start 27119 18:16:17,400 --> 18:16:19,556 working on the fat table so first of all 27120 18:16:19,556 --> 18:16:21,960 let's go to the sales base you click on 27121 18:16:21,960 --> 18:16:24,080 the sales base you go to the Home tab 27122 18:16:24,080 --> 18:16:26,040 you'll use much queries much queries is 27123 18:16:26,040 --> 18:16:27,680 new and I'm going to create a fact table 27124 18:16:27,680 --> 18:16:29,600 now and here I'm going to join with the 27125 18:16:29,600 --> 18:16:31,600 region base join would be the region 27126 18:16:31,600 --> 18:16:33,920 column region to region it would be a 27127 18:16:33,920 --> 18:16:35,680 left outer joint always prefer outer 27128 18:16:35,680 --> 18:16:37,960 joint in the favor of the base table 27129 18:16:37,960 --> 18:16:39,196 ideally it should match everything 27130 18:16:39,196 --> 18:16:41,360 unless we have null values so let me go 27131 18:16:41,360 --> 18:16:43,680 ahead and click on okay now when you 27132 18:16:43,680 --> 18:16:45,556 scroll on the right you see there is a 27133 18:16:45,556 --> 18:16:48,000 table now expand that uncheck this use 27134 18:16:48,000 --> 18:16:49,796 original column and we should have 27135 18:16:49,796 --> 18:16:51,280 renamed this index column we have not 27136 18:16:51,280 --> 18:16:52,720 renamed so we are going to rename it 27137 18:16:52,720 --> 18:16:54,920 here now so let me add this index column 27138 18:16:54,920 --> 18:16:56,556 and let me call this index column as 27139 18:16:56,556 --> 18:16:59,556 region ID now this I can use to join 27140 18:16:59,556 --> 18:17:02,040 back with my region table I will go back 27141 18:17:02,040 --> 18:17:04,156 into the region table and also try to 27142 18:17:04,156 --> 18:17:06,836 rename index as region ID now once I 27143 18:17:06,836 --> 18:17:08,960 rename it as a region ID the step which 27144 18:17:08,960 --> 18:17:10,836 you have already added into the merge 27145 18:17:10,836 --> 18:17:13,400 table might not work as expected so we 27146 18:17:13,400 --> 18:17:16,196 might have to edit the merge step I 27147 18:17:16,196 --> 18:17:17,960 click on the setting and I replace it 27148 18:17:17,960 --> 18:17:19,320 with region ID it is giving me a 27149 18:17:19,320 --> 18:17:20,720 question mark so I don't want that 27150 18:17:20,720 --> 18:17:22,360 question mark to continue here and I'll 27151 18:17:22,360 --> 18:17:24,040 delete this rename column and now you 27152 18:17:24,040 --> 18:17:25,360 can see the question mark has been 27153 18:17:25,360 --> 18:17:27,680 removed I got the correct name region ID 27154 18:17:27,680 --> 18:17:29,516 now I would like to rename this merge 27155 18:17:29,516 --> 18:17:32,756 one table as my sales fact table how do 27156 18:17:32,756 --> 18:17:34,244 I add the other things let's say if I 27157 18:17:34,244 --> 18:17:35,756 want to have payment how do I'm going to 27158 18:17:35,756 --> 18:17:37,244 add the payment ID here am I going to 27159 18:17:37,244 --> 18:17:38,836 create another version of this table or 27160 18:17:38,836 --> 18:17:40,080 I'm going to merge with this so I'm 27161 18:17:40,080 --> 18:17:41,436 going to merge with this so let's take 27162 18:17:41,436 --> 18:17:43,400 one example I will go back to the sales 27163 18:17:43,400 --> 18:17:46,040 based table right click and create one 27164 18:17:46,040 --> 18:17:47,836 more reference of it you go to the 27165 18:17:47,836 --> 18:17:49,960 payment method right click remove other 27166 18:17:49,960 --> 18:17:51,756 columns then again right click remove 27167 18:17:51,756 --> 18:17:54,436 duplicates then go to add columns add 27168 18:17:54,436 --> 18:17:56,876 index column from one and let's call it 27169 18:17:56,876 --> 18:17:58,476 payment method 27170 18:17:58,476 --> 18:18:02,000 ID now I need this ID in my T fact 27171 18:18:02,000 --> 18:18:03,756 before that let's call this table as 27172 18:18:03,756 --> 18:18:06,920 payment method now we want to merch the 27173 18:18:06,920 --> 18:18:08,360 payment method with sales fact so what 27174 18:18:08,360 --> 18:18:10,080 we are going to do here is we'll click 27175 18:18:10,080 --> 18:18:12,516 on the sales fact go to the one tab now 27176 18:18:12,516 --> 18:18:14,116 instead of much queries is you I'm going 27177 18:18:14,116 --> 18:18:16,156 to use merch queries inside the merch 27178 18:18:16,156 --> 18:18:17,920 queries you we will bring in the payment 27179 18:18:17,920 --> 18:18:20,244 method query also and we'll click on 27180 18:18:20,244 --> 18:18:22,836 payment method payment method and this 27181 18:18:22,836 --> 18:18:24,476 again is going to be left join click on 27182 18:18:24,476 --> 18:18:26,920 okay scroll to the right now you can see 27183 18:18:26,920 --> 18:18:29,196 payment method uh appearing as a column 27184 18:18:29,196 --> 18:18:30,920 and the column C is table which we need 27185 18:18:30,920 --> 18:18:33,796 to expand expand that we only need the 27186 18:18:33,796 --> 18:18:35,476 payment method ID we're going to take 27187 18:18:35,476 --> 18:18:38,476 that click on okay our fact is ready now 27188 18:18:38,476 --> 18:18:40,000 our facts and dimensions are ready and 27189 18:18:40,000 --> 18:18:42,000 I'm going to click on close and 27190 18:18:42,000 --> 18:18:44,640 apply and it is evaluating all the 27191 18:18:44,640 --> 18:18:46,960 tables so you can see it started on the 27192 18:18:46,960 --> 18:18:49,516 query for sales base item geography 27193 18:18:49,516 --> 18:18:51,920 rating connections loading data to the 27194 18:18:51,920 --> 18:18:53,920 model and the sales base table is 27195 18:18:53,920 --> 18:18:56,680 loading and respective other tables 27196 18:18:56,680 --> 18:18:58,400 which are dependent on that are also 27197 18:18:58,400 --> 18:19:00,600 getting the data the sales fact is still 27198 18:19:00,600 --> 18:19:02,280 not loaded because it is dependent on 27199 18:19:02,280 --> 18:19:04,400 all other tables like payment method 27200 18:19:04,400 --> 18:19:06,876 region now it started loading and you 27201 18:19:06,876 --> 18:19:08,476 might have seen that you know sales base 27202 18:19:08,476 --> 18:19:10,680 is not moving at all and dependent fact 27203 18:19:10,680 --> 18:19:12,756 table can load you might have also seen 27204 18:19:12,756 --> 18:19:14,796 that other tables were not loading as 27205 18:19:14,796 --> 18:19:17,280 many rows as the sales based table 27206 18:19:17,280 --> 18:19:19,156 and this is the advantage of taking the 27207 18:19:19,156 --> 18:19:21,640 reference now we'll go to the model view 27208 18:19:21,640 --> 18:19:23,400 I would like to show you how to create a 27209 18:19:23,400 --> 18:19:25,756 model in such scenario so because we 27210 18:19:25,756 --> 18:19:27,436 have the setting of detecting the 27211 18:19:27,436 --> 18:19:28,836 relationship it has detected the 27212 18:19:28,836 --> 18:19:30,476 relationship but those relationships are 27213 18:19:30,476 --> 18:19:32,516 not correct what I'm going to do here is 27214 18:19:32,516 --> 18:19:34,244 I'm going to delete those relationships 27215 18:19:34,244 --> 18:19:36,436 and going to create all the relationship 27216 18:19:36,436 --> 18:19:38,836 again one thing which I'm also going to 27217 18:19:38,836 --> 18:19:40,960 do here is I'm going to hide the sales 27218 18:19:40,960 --> 18:19:42,920 base I don't want to see that table now 27219 18:19:42,920 --> 18:19:45,244 I'm not needing that so I close the eye 27220 18:19:45,244 --> 18:19:47,556 here so it will be hidden now sales fact 27221 18:19:47,556 --> 18:19:49,600 is my main table payment method 27222 18:19:49,600 --> 18:19:52,876 geography item are around it so how do 27223 18:19:52,876 --> 18:19:55,040 we want to connect Item ID with item id 27224 18:19:55,040 --> 18:19:57,436 where is our item table so item id Item 27225 18:19:57,436 --> 18:20:00,000 ID on the item ID is is fact item id 27226 18:20:00,000 --> 18:20:01,796 equal to item id many to one single 27227 18:20:01,796 --> 18:20:03,040 directional join it is already 27228 18:20:03,040 --> 18:20:05,244 suggesting that so let's do that then we 27229 18:20:05,244 --> 18:20:08,320 will create region ID to region ID again 27230 18:20:08,320 --> 18:20:10,196 man to one single directional then we 27231 18:20:10,196 --> 18:20:11,756 have payment method payment method to 27232 18:20:11,756 --> 18:20:13,876 payment method this should be one to 27233 18:20:13,876 --> 18:20:15,244 many single Direction because we direct 27234 18:20:15,244 --> 18:20:17,116 from the payment method site 27235 18:20:17,116 --> 18:20:18,960 and now we want to connect with location 27236 18:20:18,960 --> 18:20:22,196 ID so location ID to location ID one too 27237 18:20:22,196 --> 18:20:24,280 many single directional click on save so 27238 18:20:24,280 --> 18:20:26,516 now we got all of our joints sorted out 27239 18:20:26,516 --> 18:20:27,960 this is the schema which has been 27240 18:20:27,960 --> 18:20:30,756 created let's save this file so this is 27241 18:20:30,756 --> 18:20:33,436 the star schema we have created from a 27242 18:20:33,436 --> 18:20:36,680 single file and this is very similar to 27243 18:20:36,680 --> 18:20:39,116 what we were creating using sales data 27244 18:20:39,116 --> 18:20:41,196 used in video or sales data used in 27245 18:20:41,196 --> 18:20:43,680 fabric file that was a perfect star 27246 18:20:43,680 --> 18:20:46,244 schema and the four tables were given 27247 18:20:46,244 --> 18:20:48,960 but here we have transformed to create a 27248 18:20:48,960 --> 18:20:51,040 star schema it has almost similar kind 27249 18:20:51,040 --> 18:20:52,920 of column the discount percentage here 27250 18:20:52,920 --> 18:20:54,680 is actual discount percentage so you 27251 18:20:54,680 --> 18:20:56,280 don't need to divide it by 100 you can 27252 18:20:56,280 --> 18:20:57,920 create column in power query you can 27253 18:20:57,920 --> 18:20:59,476 create column index you have the 27254 18:20:59,476 --> 18:21:01,000 additional Dimension which are coming in 27255 18:21:01,000 --> 18:21:03,720 order type customer you can also enhance 27256 18:21:03,720 --> 18:21:06,040 those like in customer you can add the 27257 18:21:06,040 --> 18:21:08,640 customer name as appending of customer 27258 18:21:08,640 --> 18:21:11,400 ID like customer space the ID that what 27259 18:21:11,400 --> 18:21:13,156 you can create either index or power 27260 18:21:13,156 --> 18:21:14,196 these are few of the things which you 27261 18:21:14,196 --> 18:21:16,156 can do and create the schema and try out 27262 18:21:16,156 --> 18:21:18,516 everything which we have done during the 27263 18:21:18,516 --> 18:21:21,436 this series or video and repeat that on 27264 18:21:21,436 --> 18:21:23,476 this particular data model and this data 27265 18:21:23,476 --> 18:21:25,476 is much better data and just to give an 27266 18:21:25,476 --> 18:21:28,080 example in visualization if you go here 27267 18:21:28,080 --> 18:21:30,516 and bring it from the item brand you see 27268 18:21:30,516 --> 18:21:33,116 some of the actual brand names which has 27269 18:21:33,116 --> 18:21:35,516 been created in this data and that is 27270 18:21:35,516 --> 18:21:37,040 why I always say this data is much 27271 18:21:37,040 --> 18:21:39,116 better data than the data which we have 27272 18:21:39,116 --> 18:21:41,436 it do have lot of variety I do have a 27273 18:21:41,436 --> 18:21:42,836 better version of this data which 27274 18:21:42,836 --> 18:21:44,876 contain little bit of more data and for 27275 18:21:44,876 --> 18:21:46,516 that you can ping me in the comments I 27276 18:21:46,516 --> 18:21:48,156 can give you a Dropbox link from there 27277 18:21:48,156 --> 18:21:50,156 you can take this file and load so this 27278 18:21:50,156 --> 18:21:52,320 is the way you use the power query 27279 18:21:52,320 --> 18:21:55,640 transformation to create a star schema 27280 18:21:55,640 --> 18:21:57,476 we had one table and from there we 27281 18:21:57,476 --> 18:21:59,244 created star schema there are scenarios 27282 18:21:59,244 --> 18:22:01,116 where you might have a snowflake schema 27283 18:22:01,116 --> 18:22:03,116 or a relational schema and from there 27284 18:22:03,116 --> 18:22:05,040 also you can merge and create star 27285 18:22:05,040 --> 18:22:06,960 schema so go ahead and try out those 27286 18:22:06,960 --> 18:22:09,796 different combination in this video we 27287 18:22:09,796 --> 18:22:12,040 are going to discuss how can you append 27288 18:22:12,040 --> 18:22:14,876 all the Excel sheets available into one 27289 18:22:14,876 --> 18:22:17,320 table so the case here is that I have 27290 18:22:17,320 --> 18:22:19,360 Excel where I have multiple sheets and 27291 18:22:19,360 --> 18:22:21,436 all these sheets I want to append into 27292 18:22:21,436 --> 18:22:24,080 one single table even if a new sheet 27293 18:22:24,080 --> 18:22:27,436 comes in I would like to put it into the 27294 18:22:27,436 --> 18:22:30,156 same table now how to get data for this 27295 18:22:30,156 --> 18:22:33,040 one so data for this example which I'm 27296 18:22:33,040 --> 18:22:35,244 going to discuss is available at my 27297 18:22:35,244 --> 18:22:38,400 GitHub account github.com Amit chander 27298 18:22:38,400 --> 18:22:43,876 pv/ powerb you can get the upend sheet. 27299 18:22:43,876 --> 18:22:46,476 XLS in this video I'm going to use the 27300 18:22:46,476 --> 18:22:48,320 download version of this file but I have 27301 18:22:48,320 --> 18:22:51,400 told you many times how can you directly 27302 18:22:51,400 --> 18:22:53,680 connect to this Excel sheet without 27303 18:22:53,680 --> 18:22:55,960 downloading it what you have to do is 27304 18:22:55,960 --> 18:22:58,640 you to click on this upend sheet. 27305 18:22:58,640 --> 18:23:01,600 XLS and I'm going to give this URL to 27306 18:23:01,600 --> 18:23:04,244 you which is the raw URL not the on the 27307 18:23:04,244 --> 18:23:07,156 top so I'm going to post the URL which 27308 18:23:07,156 --> 18:23:10,156 is right click on this copy link address 27309 18:23:10,156 --> 18:23:11,720 so in case you're directly reaching to 27310 18:23:11,720 --> 18:23:14,360 my GitHub account you have to open this 27311 18:23:14,360 --> 18:23:17,556 file and on the ra right click and copy 27312 18:23:17,556 --> 18:23:19,600 the link and this is the link you can 27313 18:23:19,600 --> 18:23:22,756 directly use as the web link in your 27314 18:23:22,756 --> 18:23:26,196 powerb desktop or web API Link in that 27315 18:23:26,196 --> 18:23:28,156 manner you will be able to directly get 27316 18:23:28,156 --> 18:23:30,836 this data onto the powerbi without 27317 18:23:30,836 --> 18:23:32,600 downloading it into your 27318 18:23:32,600 --> 18:23:36,720 desktop so let's understand the use case 27319 18:23:36,720 --> 18:23:38,960 with an example in the Excel sheet and 27320 18:23:38,960 --> 18:23:42,080 then we will try it out on the powerbi 27321 18:23:42,080 --> 18:23:44,600 desktop so basically what I have I have 27322 18:23:44,600 --> 18:23:46,960 these three item sheet and I want to 27323 18:23:46,960 --> 18:23:48,920 combine them and tomorrow there could be 27324 18:23:48,920 --> 18:23:50,720 a fourth one and if there is a fourth 27325 18:23:50,720 --> 18:23:52,400 one my requirement is that fourth one 27326 18:23:52,400 --> 18:23:54,280 should also get combined so in this case 27327 18:23:54,280 --> 18:23:56,080 what happen is if I try to get the 27328 18:23:56,080 --> 18:23:58,244 append idea the normal append idea where 27329 18:23:58,244 --> 18:23:59,796 I append the table how do I add the 27330 18:23:59,796 --> 18:24:01,516 fourth table do I need to modify the 27331 18:24:01,516 --> 18:24:03,920 code again and again so I need to have 27332 18:24:03,920 --> 18:24:05,960 some generic solution which can actually 27333 18:24:05,960 --> 18:24:08,436 help me so let's go and try out what 27334 18:24:08,436 --> 18:24:11,640 actually we do in powerbi so I came to 27335 18:24:11,640 --> 18:24:13,556 powerbi and powerbi what I would like to 27336 18:24:13,556 --> 18:24:15,040 do is basically I want to import this 27337 18:24:15,040 --> 18:24:16,640 exess sheet so in the center of the 27338 18:24:16,640 --> 18:24:19,080 power VI screen I have this option 27339 18:24:19,080 --> 18:24:21,244 import Excel I do have import Excel 27340 18:24:21,244 --> 18:24:23,156 option here also in the Home tab and 27341 18:24:23,156 --> 18:24:24,960 under the get data also again I will get 27342 18:24:24,960 --> 18:24:27,640 it the option I will use this import 27343 18:24:27,640 --> 18:24:29,476 option from the middle and select the 27344 18:24:29,476 --> 18:24:32,476 sheet upend queries and click on open 27345 18:24:32,476 --> 18:24:34,320 now once I do that I'll get all the 27346 18:24:34,320 --> 18:24:36,080 sheets and what is the usual ways that 27347 18:24:36,080 --> 18:24:38,156 click on all these three check check 27348 18:24:38,156 --> 18:24:41,040 check so when you check you get the you 27349 18:24:41,040 --> 18:24:43,360 are taking that inside the system and 27350 18:24:43,360 --> 18:24:45,000 when you simply click you just R the 27351 18:24:45,000 --> 18:24:48,280 data in instead of using the load data 27352 18:24:48,280 --> 18:24:50,116 or load I'll use the transform data 27353 18:24:50,116 --> 18:24:51,600 because I want to go to Power query and 27354 18:24:51,600 --> 18:24:53,360 combine this data isn't it that's what I 27355 18:24:53,360 --> 18:24:55,876 wanted so let me go to transform data if 27356 18:24:55,876 --> 18:24:58,196 I go to transform data and what usual 27357 18:24:58,196 --> 18:25:00,516 apparent method is there and let me 27358 18:25:00,516 --> 18:25:03,080 bring the power query on this screen if 27359 18:25:03,080 --> 18:25:04,720 I want to combine these three I need to 27360 18:25:04,720 --> 18:25:06,756 take that usual append method isn't it 27361 18:25:06,756 --> 18:25:08,796 so I need to go to you know append 27362 18:25:08,796 --> 18:25:11,040 queries append queries as new or upend 27363 18:25:11,040 --> 18:25:13,556 queries and then I need to say two or 27364 18:25:13,556 --> 18:25:15,600 more table and then I say item two and 27365 18:25:15,600 --> 18:25:17,640 item three 27366 18:25:17,640 --> 18:25:20,244 I click on the ADD and I do that and it 27367 18:25:20,244 --> 18:25:23,196 is going to append all three sheets SL 27368 18:25:23,196 --> 18:25:27,040 queries into the item one query or table 27369 18:25:27,040 --> 18:25:29,040 that's not something which I wanted 27370 18:25:29,040 --> 18:25:31,080 because let's go ahead and add something 27371 18:25:31,080 --> 18:25:34,720 here let's go ahead and add a new sheet 27372 18:25:34,720 --> 18:25:37,680 here I also want the header so let me go 27373 18:25:37,680 --> 18:25:40,040 back and take the row from the top and 27374 18:25:40,040 --> 18:25:42,116 paste it here on this sheet now I have 27375 18:25:42,116 --> 18:25:44,836 the header let me change the values 41 27376 18:25:44,836 --> 18:25:48,156 to 56 and 40 47 to 27377 18:25:48,156 --> 18:25:51,556 57 we can use this sheet let's keep 27378 18:25:51,556 --> 18:25:54,080 everything as same now I got one 27379 18:25:54,080 --> 18:25:57,196 additional sheet now if I go and refresh 27380 18:25:57,196 --> 18:25:58,400 this 27381 18:25:58,400 --> 18:26:02,196 data I don't get the sheet for so it 27382 18:26:02,196 --> 18:26:04,116 means there is no benefit of this so let 27383 18:26:04,116 --> 18:26:06,600 me do one thing let me discard all these 27384 18:26:06,600 --> 18:26:09,436 changes and do it again so I discard all 27385 18:26:09,436 --> 18:26:10,476 the 27386 18:26:10,476 --> 18:26:12,836 changes I come out I say discard all the 27387 18:26:12,836 --> 18:26:14,556 changes and I'll do it 27388 18:26:14,556 --> 18:26:16,960 again and now also so what I need to do 27389 18:26:16,960 --> 18:26:18,960 is I also need to delete the sheet let 27390 18:26:18,960 --> 18:26:20,196 me delete this 27391 18:26:20,196 --> 18:26:24,516 sheet and save it let me go back and 27392 18:26:24,516 --> 18:26:27,600 import the upend sheets Excel workbook 27393 18:26:27,600 --> 18:26:30,720 again and this time I'm only going to 27394 18:26:30,720 --> 18:26:32,960 select item one and I'm going to leave 27395 18:26:32,960 --> 18:26:36,920 out the other sheets with only sheet one 27396 18:26:36,920 --> 18:26:39,360 I'll click on transform data to reach 27397 18:26:39,360 --> 18:26:42,476 power query and start the transformation 27398 18:26:42,476 --> 18:26:44,836 again because I press transform data I 27399 18:26:44,836 --> 18:26:47,400 reach power query in power query I also 27400 18:26:47,400 --> 18:26:50,516 remove these steps now you can observe 27401 18:26:50,516 --> 18:26:53,156 that I'm seeing all the three sheets as 27402 18:26:53,156 --> 18:26:56,000 my source and the data is available 27403 18:26:56,000 --> 18:26:58,920 inside the data column if I go here you 27404 18:26:58,920 --> 18:27:00,876 can see that I see a table and that the 27405 18:27:00,876 --> 18:27:02,516 challenge with this table here is 27406 18:27:02,516 --> 18:27:05,320 basically the headers are not 27407 18:27:05,320 --> 18:27:07,960 promoted so I have the table which is 27408 18:27:07,960 --> 18:27:10,196 having the data but headers are not 27409 18:27:10,196 --> 18:27:12,756 promoted I can expand it I I can expand 27410 18:27:12,756 --> 18:27:14,156 it here and you will be very happy to 27411 18:27:14,156 --> 18:27:15,600 see that all the data is together but 27412 18:27:15,600 --> 18:27:17,280 what is happening here is this headers 27413 18:27:17,280 --> 18:27:19,080 are NSC then you will say okay we can 27414 18:27:19,080 --> 18:27:21,476 search the column name and then they 27415 18:27:21,476 --> 18:27:23,720 remove those rows and then do it but 27416 18:27:23,720 --> 18:27:25,320 what happens sometime you might have a 27417 18:27:25,320 --> 18:27:27,156 scenario where the column name which you 27418 18:27:27,156 --> 18:27:29,476 are taking might also exist in data so 27419 18:27:29,476 --> 18:27:31,320 for that what we are going to do is if 27420 18:27:31,320 --> 18:27:32,920 you are follower of the beginner series 27421 18:27:32,920 --> 18:27:34,756 you might have remembered we learned 27422 18:27:34,756 --> 18:27:36,400 function promote 27423 18:27:36,400 --> 18:27:39,400 headers and using that function promote 27424 18:27:39,400 --> 18:27:41,400 header we can actually do a promote 27425 18:27:41,400 --> 18:27:43,876 header in a table we are going to do is 27426 18:27:43,876 --> 18:27:45,400 today we are going to use that power quy 27427 18:27:45,400 --> 18:27:47,244 function so to do that what I'm going to 27428 18:27:47,244 --> 18:27:49,516 do is I'm going to go to the add columns 27429 18:27:49,516 --> 18:27:52,080 and I'm going to add a new column 27430 18:27:52,080 --> 18:27:54,156 remember here my complete data is 27431 18:27:54,156 --> 18:27:56,400 available as a table in the data column 27432 18:27:56,400 --> 18:27:59,280 in each row and if I click on the empty 27433 18:27:59,280 --> 18:28:01,360 space I can preview the 27434 18:28:01,360 --> 18:28:04,000 data always click on the empty space 27435 18:28:04,000 --> 18:28:05,640 don't click on the name otherwise it 27436 18:28:05,640 --> 18:28:09,244 will add an step let me add a new column 27437 18:28:09,244 --> 18:28:12,476 data 1 and inside this data one column I 27438 18:28:12,476 --> 18:28:17,080 will use the function table do promote 27439 18:28:17,080 --> 18:28:19,796 headers this function require one 27440 18:28:19,796 --> 18:28:23,196 argument and that argument is the table 27441 18:28:23,196 --> 18:28:25,436 for which it is going to promote the 27442 18:28:25,436 --> 18:28:28,080 headers means going to make the first 27443 18:28:28,080 --> 18:28:31,720 row as the header let me add data column 27444 18:28:31,720 --> 18:28:35,516 as the argument for this function I 27445 18:28:35,516 --> 18:28:37,436 double clicked on the name so once I 27446 18:28:37,436 --> 18:28:38,640 double clicked on the name it also 27447 18:28:38,640 --> 18:28:40,640 appear I can also type it will also come 27448 18:28:40,640 --> 18:28:42,360 in that case either I type I double 27449 18:28:42,360 --> 18:28:44,556 click in both the cases it will work so 27450 18:28:44,556 --> 18:28:46,040 now it's going to create one more Colum 27451 18:28:46,040 --> 18:28:47,836 column I created one more column now 27452 18:28:47,836 --> 18:28:50,116 look at this column for this column 27453 18:28:50,116 --> 18:28:52,680 headers are already promoted for each of 27454 18:28:52,680 --> 18:28:55,516 the row as of now there are too many 27455 18:28:55,516 --> 18:28:57,836 columns here and I can delete them I can 27456 18:28:57,836 --> 18:29:00,320 even delete the data column so let me 27457 18:29:00,320 --> 18:29:02,556 select the column which I doesn't requir 27458 18:29:02,556 --> 18:29:05,000 other than the name of the sheet which I 27459 18:29:05,000 --> 18:29:07,436 might require for the future references 27460 18:29:07,436 --> 18:29:09,680 I have selected all the columns which I 27461 18:29:09,680 --> 18:29:12,796 don't need and now I can use the option 27462 18:29:12,796 --> 18:29:15,556 remove column and remove all these 27463 18:29:15,556 --> 18:29:17,320 columns from the 27464 18:29:17,320 --> 18:29:20,156 table now I'll go and expand it is 27465 18:29:20,156 --> 18:29:21,720 suggesting me all these columns and I 27466 18:29:21,720 --> 18:29:24,360 say okay and then I can detect the data 27467 18:29:24,360 --> 18:29:27,116 type and change it so now I'm able to 27468 18:29:27,116 --> 18:29:29,920 expand and get the data together and my 27469 18:29:29,920 --> 18:29:32,680 all data is now lying together the 27470 18:29:32,680 --> 18:29:35,280 question arise will it take a new sheet 27471 18:29:35,280 --> 18:29:38,360 when we add it into the Excel so let's 27472 18:29:38,360 --> 18:29:41,556 go back to the Excel and try to add a 27473 18:29:41,556 --> 18:29:44,600 sheet and see what happens let me copy 27474 18:29:44,600 --> 18:29:48,476 couple of rows for the new Excel sheet 27475 18:29:48,476 --> 18:29:51,280 and click on the plus button and I will 27476 18:29:51,280 --> 18:29:54,796 call this as item 4 sheet and this item 27477 18:29:54,796 --> 18:29:57,116 four sheet I will add those couple of 27478 18:29:57,116 --> 18:30:01,080 rows and modify the data so item id 56 27479 18:30:01,080 --> 18:30:04,516 and item id 57 I'm adding here in the 27480 18:30:04,516 --> 18:30:08,640 sheet 4 save it and go back to the power 27481 18:30:08,640 --> 18:30:11,080 query and now we need to refresh this 27482 18:30:11,080 --> 18:30:14,116 data so let me click on refresh preview 27483 18:30:14,116 --> 18:30:16,796 you can observe immediately that item 27484 18:30:16,796 --> 18:30:19,876 four and its related data has come let's 27485 18:30:19,876 --> 18:30:22,244 go to the source and now we can see item 27486 18:30:22,244 --> 18:30:25,436 four there item 4 is getting processed 27487 18:30:25,436 --> 18:30:28,640 in each step after that it means the 27488 18:30:28,640 --> 18:30:31,920 data of the item four is carried forward 27489 18:30:31,920 --> 18:30:35,400 without doing any changes in the code of 27490 18:30:35,400 --> 18:30:37,836 power query if needed I can correct the 27491 18:30:37,836 --> 18:30:40,920 data types or I can simply go ahead and 27492 18:30:40,920 --> 18:30:43,556 click on close and apply and I will now 27493 18:30:43,556 --> 18:30:48,156 get this data into my powerbi desktop 27494 18:30:48,156 --> 18:30:51,556 and I can save the file and move on in 27495 18:30:51,556 --> 18:30:55,244 our journey to learn power query let's 27496 18:30:55,244 --> 18:30:58,516 learn power query by taking an example 27497 18:30:58,516 --> 18:31:00,400 and in this process we are going to 27498 18:31:00,400 --> 18:31:03,280 learn few power query functions so what 27499 18:31:03,280 --> 18:31:06,280 we wanted to do here is we have a text 27500 18:31:06,280 --> 18:31:08,476 which has certain number comma separated 27501 18:31:08,476 --> 18:31:11,320 and we want to create another text where 27502 18:31:11,320 --> 18:31:13,280 these numbers are sorted so let me take 27503 18:31:13,280 --> 18:31:16,244 you through an example so I have this 27504 18:31:16,244 --> 18:31:21,640 string where I have 7A 5A 6A 10A 11a 2A 27505 18:31:21,640 --> 18:31:26,360 4A 3A 8A 9 one so these are just 27506 18:31:26,360 --> 18:31:28,720 randomly placed here but I want 27507 18:31:28,720 --> 18:31:33,360 ascending sorted text 1 comma 2A 3 comma 27508 18:31:33,360 --> 18:31:40,436 4A 5A 6A 7A 8A 9A 10A 11 in a sorted 27509 18:31:40,436 --> 18:31:44,400 ascending order but it is a text in the 27510 18:31:44,400 --> 18:31:48,080 given order I want want these numbers so 27511 18:31:48,080 --> 18:31:50,720 how can I do that and to do that what we 27512 18:31:50,720 --> 18:31:52,920 are going to do is we are going to go to 27513 18:31:52,920 --> 18:31:55,876 Power query and solve this problem now 27514 18:31:55,876 --> 18:31:58,280 to solve this problem again from this 27515 18:31:58,280 --> 18:32:01,476 series learn powerbi I'm going to take n 27516 18:32:01,476 --> 18:32:05,116 to n14 bbx file and I am here on the 27517 18:32:05,116 --> 18:32:08,080 powerbi in that file in that file I'll 27518 18:32:08,080 --> 18:32:10,600 go to the Home tab then I'll go to 27519 18:32:10,600 --> 18:32:13,476 transform data transform data I have 27520 18:32:13,476 --> 18:32:16,116 reached transform data and in inside 27521 18:32:16,116 --> 18:32:19,400 transform data I want to add those 27522 18:32:19,400 --> 18:32:20,796 numbers which I have told you so I 27523 18:32:20,796 --> 18:32:23,796 already copied those number to get those 27524 18:32:23,796 --> 18:32:26,000 number inside a table I'm going to take 27525 18:32:26,000 --> 18:32:28,720 help from enter data now enter data is 27526 18:32:28,720 --> 18:32:30,836 something which is also available 27527 18:32:30,836 --> 18:32:33,400 outside power query you might have seen 27528 18:32:33,400 --> 18:32:36,796 that inside the reporting view 27529 18:32:36,796 --> 18:32:39,796 also let me click on the enter data 27530 18:32:39,796 --> 18:32:43,280 inside the Home tab it opens up a popup 27531 18:32:43,280 --> 18:32:44,680 inside that I'm going to give that 27532 18:32:44,680 --> 18:32:48,000 string and I'm going to name this column 27533 18:32:48,000 --> 18:32:52,556 text one and the table is thought 27534 18:32:52,556 --> 18:32:56,320 text I'll click on okay now this table 27535 18:32:56,320 --> 18:32:59,756 will get loaded inside the power query 27536 18:32:59,756 --> 18:33:02,000 and will be shown on the left hand side 27537 18:33:02,000 --> 18:33:05,680 as a query now the moment it get loaded 27538 18:33:05,680 --> 18:33:08,876 you can see it is showing a number and 27539 18:33:08,876 --> 18:33:10,836 we were never expecting a number and 27540 18:33:10,836 --> 18:33:13,400 this is because there is a change data 27541 18:33:13,400 --> 18:33:16,244 type step which has been added by power 27542 18:33:16,244 --> 18:33:18,796 query thinking that it's a number but 27543 18:33:18,796 --> 18:33:21,116 it's not a number we know it's a text we 27544 18:33:21,116 --> 18:33:23,196 don't want to perform this change data 27545 18:33:23,196 --> 18:33:25,756 type step I'm going to delete this step 27546 18:33:25,756 --> 18:33:29,040 from the right hand side and now I got 27547 18:33:29,040 --> 18:33:32,116 the way I wanted the number without a 27548 18:33:32,116 --> 18:33:34,436 data type number so it's a text data 27549 18:33:34,436 --> 18:33:36,720 type and this is the correct thing I 27550 18:33:36,720 --> 18:33:39,756 have what I wanted to do first of all to 27551 18:33:39,756 --> 18:33:44,156 sort this text into a string I need it 27552 18:33:44,156 --> 18:33:47,000 into a list format because in list I 27553 18:33:47,000 --> 18:33:50,000 have a function list. sort maybe in a 27554 18:33:50,000 --> 18:33:52,556 table format but here it is easy to do 27555 18:33:52,556 --> 18:33:55,320 all the operations in the list what I'm 27556 18:33:55,320 --> 18:33:57,436 going to do is first of all I'm going to 27557 18:33:57,436 --> 18:33:58,556 add a 27558 18:33:58,556 --> 18:34:02,156 column in the tab add column I click on 27559 18:34:02,156 --> 18:34:05,516 custom column to add a new column and in 27560 18:34:05,516 --> 18:34:08,040 this column I will first of all convert 27561 18:34:08,040 --> 18:34:09,600 this into a 27562 18:34:09,600 --> 18:34:13,244 list so I need the sorted text column as 27563 18:34:13,244 --> 18:34:16,156 a first step I will do this op operation 27564 18:34:16,156 --> 18:34:19,640 which is text. split text. split 27565 18:34:19,640 --> 18:34:22,320 function can take two argument and 27566 18:34:22,320 --> 18:34:26,600 convert a text into a list by splitting 27567 18:34:26,600 --> 18:34:29,040 it based on the separator so argument 27568 18:34:29,040 --> 18:34:31,080 one is a text argument two is a 27569 18:34:31,080 --> 18:34:34,320 separator and the outcome is a list so 27570 18:34:34,320 --> 18:34:37,920 what is my first argument text one and 27571 18:34:37,920 --> 18:34:40,516 the second argument is comma which I'm 27572 18:34:40,516 --> 18:34:43,116 going to give inside the double Cotes 27573 18:34:43,116 --> 18:34:45,400 and let me click on okay to get the 27574 18:34:45,400 --> 18:34:48,000 result results now you will see that I 27575 18:34:48,000 --> 18:34:49,196 got a 27576 18:34:49,196 --> 18:34:52,876 list and you can see this is the list 27577 18:34:52,876 --> 18:34:54,960 which I wanted and always remember 27578 18:34:54,960 --> 18:34:57,556 whenever you get these list or table and 27579 18:34:57,556 --> 18:35:00,000 you want to view them or preview them 27580 18:35:00,000 --> 18:35:02,196 into the bottom always click on the 27581 18:35:02,196 --> 18:35:04,600 empty space don't click on the list 27582 18:35:04,600 --> 18:35:06,116 because if you click on the list it will 27583 18:35:06,116 --> 18:35:08,476 add a step and it will become part of 27584 18:35:08,476 --> 18:35:10,920 your query and then you have to revert 27585 18:35:10,920 --> 18:35:13,640 it to come back so now it's created that 27586 18:35:13,640 --> 18:35:16,600 list so let me delete so I'm back to the 27587 18:35:16,600 --> 18:35:18,436 same place this is my list now I can 27588 18:35:18,436 --> 18:35:21,516 sort it using list. sort and once I sort 27589 18:35:21,516 --> 18:35:24,156 it you will realize I have one problem 27590 18:35:24,156 --> 18:35:26,600 now onwards I will keep on putting a 27591 18:35:26,600 --> 18:35:29,080 function on top of another function to 27592 18:35:29,080 --> 18:35:32,600 get the nire output so let's put on top 27593 18:35:32,600 --> 18:35:36,320 of it the function list dot sort I got 27594 18:35:36,320 --> 18:35:38,516 the function list do sort it requires 27595 18:35:38,516 --> 18:35:40,960 two argument the first argument is the 27596 18:35:40,960 --> 18:35:43,400 list and the second argument is the 27597 18:35:43,400 --> 18:35:46,436 optional comparison criteria 27598 18:35:46,436 --> 18:35:48,320 and you might have realized I have given 27599 18:35:48,320 --> 18:35:50,640 a space the reason for giving a space 27600 18:35:50,640 --> 18:35:53,876 before I selected list. sort is that it 27601 18:35:53,876 --> 18:35:56,436 should not replace the text. splits and 27602 18:35:56,436 --> 18:35:59,360 let me click on okay so we got a sorted 27603 18:35:59,360 --> 18:36:02,000 list let's have a look at 27604 18:36:02,000 --> 18:36:04,556 it so now what we have done is we have 27605 18:36:04,556 --> 18:36:06,600 used this list. sort function which can 27606 18:36:06,600 --> 18:36:09,600 take a list and it can sort it but you 27607 18:36:09,600 --> 18:36:11,756 can see this list is sorted in a text 27608 18:36:11,756 --> 18:36:14,516 format it is not being sorted as a 27609 18:36:14,516 --> 18:36:17,640 number because the list which you have 27610 18:36:17,640 --> 18:36:22,516 inside is actually a list of x x. split 27611 18:36:22,516 --> 18:36:26,436 converts into a list of text then how do 27612 18:36:26,436 --> 18:36:28,796 I convert them into the number so it 27613 18:36:28,796 --> 18:36:31,476 means before I sort it I need to convert 27614 18:36:31,476 --> 18:36:34,680 them into a number how do I do that 27615 18:36:34,680 --> 18:36:37,600 let's open the formula using the right 27616 18:36:37,600 --> 18:36:41,080 hand side setting icon to do that I need 27617 18:36:41,080 --> 18:36:43,244 to use another function and the function 27618 18:36:43,244 --> 18:36:47,516 I need to use is list dot transform 27619 18:36:47,516 --> 18:36:50,000 list. transform function and transform 27620 18:36:50,000 --> 18:36:53,680 the list based on a function the first 27621 18:36:53,680 --> 18:36:55,960 argument of this. transform is a list 27622 18:36:55,960 --> 18:36:58,360 and second argument is transform 27623 18:36:58,360 --> 18:37:01,116 function so what I need to do is I need 27624 18:37:01,116 --> 18:37:02,960 to use this transform function and for 27625 18:37:02,960 --> 18:37:05,280 that I need to Loop and for to loop I 27626 18:37:05,280 --> 18:37:08,196 need to use a keyword which is each and 27627 18:37:08,196 --> 18:37:11,280 I can use this each on underscore but 27628 18:37:11,280 --> 18:37:13,556 what I want on this underscore I want to 27629 18:37:13,556 --> 18:37:16,756 convert this text each text which is 27630 18:37:16,756 --> 18:37:19,876 underscore into a number so we have 27631 18:37:19,876 --> 18:37:23,960 function number from text and inside 27632 18:37:23,960 --> 18:37:25,680 that I can use this 27633 18:37:25,680 --> 18:37:28,360 underscore which will get converted into 27634 18:37:28,360 --> 18:37:30,876 the number now so let's look at it what 27635 18:37:30,876 --> 18:37:34,556 we got now so we got list. transform the 27636 18:37:34,556 --> 18:37:36,516 first argument is a list which we 27637 18:37:36,516 --> 18:37:39,680 created so the second argument is each 27638 18:37:39,680 --> 18:37:41,680 mean which is the looping function 27639 18:37:41,680 --> 18:37:44,476 number from text so from the text I'm 27640 18:37:44,476 --> 18:37:46,516 going to get the number and what is that 27641 18:37:46,516 --> 18:37:49,600 text which is underscore which is the 27642 18:37:49,600 --> 18:37:52,080 each element of the list we are closing 27643 18:37:52,080 --> 18:37:54,280 the list and let's try to close the 27644 18:37:54,280 --> 18:37:58,156 list. sort also no syntax error let's 27645 18:37:58,156 --> 18:38:01,196 click on okay now we got the list again 27646 18:38:01,196 --> 18:38:03,920 there's no error so let's click here now 27647 18:38:03,920 --> 18:38:08,280 you can see it is 1 2 3 4 5 6 7 8 9 10 27648 18:38:08,280 --> 18:38:11,796 so now the list is properly sorted in 27649 18:38:11,796 --> 18:38:15,836 the numeric order now we got a list so 27650 18:38:15,836 --> 18:38:18,080 we need to create a comma separated text 27651 18:38:18,080 --> 18:38:21,040 from that so now we need a function 27652 18:38:21,040 --> 18:38:24,400 which can concatenate this list let's 27653 18:38:24,400 --> 18:38:26,876 edit the formula once 27654 18:38:26,876 --> 18:38:31,360 again so let's look at one function text 27655 18:38:31,360 --> 18:38:35,192 do combine what does it do text. combine 27656 18:38:35,192 --> 18:38:38,320 can take two arguments first argument is 27657 18:38:38,320 --> 18:38:40,872 a list which is a text list and the 27658 18:38:40,872 --> 18:38:44,400 second argument is a nullable separator 27659 18:38:44,400 --> 18:38:46,552 it means the sep operator which is going 27660 18:38:46,552 --> 18:38:50,160 to be used when we combine and create a 27661 18:38:50,160 --> 18:38:54,240 concatenated text this function returns 27662 18:38:54,240 --> 18:38:57,360 text but there is a challenge it need a 27663 18:38:57,360 --> 18:39:00,040 list of text let me showcase you what 27664 18:39:00,040 --> 18:39:02,920 happened if I don't transform this list 27665 18:39:02,920 --> 18:39:06,872 as of now for first argument is a list 27666 18:39:06,872 --> 18:39:08,680 which is right now a number list and 27667 18:39:08,680 --> 18:39:11,960 second argument is a separator comma 27668 18:39:11,960 --> 18:39:14,280 which I have given here and let's try 27669 18:39:14,280 --> 18:39:17,040 out does it work does text. combine work 27670 18:39:17,040 --> 18:39:21,280 on the number list click on okay and it 27671 18:39:21,280 --> 18:39:23,192 start giving error and the reason for 27672 18:39:23,192 --> 18:39:25,760 the error is the type is not correct 27673 18:39:25,760 --> 18:39:28,440 right now it's a list of numbers so we 27674 18:39:28,440 --> 18:39:30,832 need to do the same operation in the 27675 18:39:30,832 --> 18:39:32,480 reverse manner which we have done some 27676 18:39:32,480 --> 18:39:35,080 time back the list. transform previously 27677 18:39:35,080 --> 18:39:37,872 has transformed this list into a number 27678 18:39:37,872 --> 18:39:39,720 list now the same operation need to 27679 18:39:39,720 --> 18:39:43,120 transform it into the XT so I have moved 27680 18:39:43,120 --> 18:39:45,320 down a code little bit so that I can 27681 18:39:45,320 --> 18:39:48,360 only understand this function so now 27682 18:39:48,360 --> 18:39:51,440 here I need list. transform again so I'm 27683 18:39:51,440 --> 18:39:54,720 going to use list. transform and on 27684 18:39:54,720 --> 18:39:57,800 list. transform now I need to do 27685 18:39:57,800 --> 18:40:00,440 operation which is basically again this 27686 18:40:00,440 --> 18:40:01,680 each 27687 18:40:01,680 --> 18:40:04,600 operation but not from text I now need 27688 18:40:04,600 --> 18:40:08,400 to convert into two text so number two 27689 18:40:08,400 --> 18:40:12,120 text is the operation I want to perform 27690 18:40:12,120 --> 18:40:14,600 and that should close my transform after 27691 18:40:14,600 --> 18:40:17,320 transform comma so that I give the 27692 18:40:17,320 --> 18:40:19,640 second argument of text. combine so what 27693 18:40:19,640 --> 18:40:22,320 is happening here is now this list. 27694 18:40:22,320 --> 18:40:25,512 transform is going to convert my list 27695 18:40:25,512 --> 18:40:27,720 which is already sorted which is coming 27696 18:40:27,720 --> 18:40:31,760 from list. sort into a list of text 27697 18:40:31,760 --> 18:40:34,640 elements and then the text. combine can 27698 18:40:34,640 --> 18:40:37,832 combine it into a comma separated string 27699 18:40:37,832 --> 18:40:40,120 let's click on okay and check it out 27700 18:40:40,120 --> 18:40:41,360 does it 27701 18:40:41,360 --> 18:40:45,400 work so now what has happened is we got 27702 18:40:45,400 --> 18:40:50,440 a comma separated text in which the 27703 18:40:50,440 --> 18:40:53,512 previous text Elements which were comma 27704 18:40:53,512 --> 18:40:56,920 separated are now sorted you can see I'm 27705 18:40:56,920 --> 18:41:01,872 getting 1 2 3 4 5 6 7 8 9 10 11 as a 27706 18:41:01,872 --> 18:41:04,320 text which is a comma separated number 27707 18:41:04,320 --> 18:41:07,192 text but it is sorted version of the 27708 18:41:07,192 --> 18:41:09,600 text one so this is what exactly we 27709 18:41:09,600 --> 18:41:11,832 wanted to achieve but while doing this 27710 18:41:11,832 --> 18:41:15,192 example we have learned text function 27711 18:41:15,192 --> 18:41:17,920 and list function which we can use we 27712 18:41:17,920 --> 18:41:21,440 also learned how to take advantage of 27713 18:41:21,440 --> 18:41:24,192 list. transform function which is very 27714 18:41:24,192 --> 18:41:26,832 powerful function which allows you to do 27715 18:41:26,832 --> 18:41:28,960 many transformation and this is just one 27716 18:41:28,960 --> 18:41:30,800 example of the transformation where I 27717 18:41:30,800 --> 18:41:34,000 want to transform each element into a 27718 18:41:34,000 --> 18:41:36,192 different data type but you can do many 27719 18:41:36,192 --> 18:41:39,680 other operations using list. transform 27720 18:41:39,680 --> 18:41:43,000 and I have covered these functions as 27721 18:41:43,000 --> 18:41:45,640 part of my beginner tutorial series 27722 18:41:45,640 --> 18:41:48,440 with some other examples also so you can 27723 18:41:48,440 --> 18:41:51,512 learn more about all these functions 27724 18:41:51,512 --> 18:41:54,640 using that particular series try out 27725 18:41:54,640 --> 18:41:57,080 this exciting example how do we make 27726 18:41:57,080 --> 18:41:59,120 sure that these changes are saved so we 27727 18:41:59,120 --> 18:42:02,552 can go to home close and apply so that 27728 18:42:02,552 --> 18:42:06,192 all our changes are part of now powerbi 27729 18:42:06,192 --> 18:42:09,400 and we can save this file by pressing 27730 18:42:09,400 --> 18:42:12,640 control s or by clicking on the save 27731 18:42:12,640 --> 18:42:16,760 button so let it load the data of the 27732 18:42:16,760 --> 18:42:19,800 sort text table and post that we can 27733 18:42:19,800 --> 18:42:23,192 save it so I'm saving it and you have to 27734 18:42:23,192 --> 18:42:27,120 try this example out you can create any 27735 18:42:27,120 --> 18:42:30,720 comma separated text for this video and 27736 18:42:30,720 --> 18:42:31,960 try it 27737 18:42:31,960 --> 18:42:35,640 out one of the best way to learn powerbi 27738 18:42:35,640 --> 18:42:37,720 or power query is to take up some 27739 18:42:37,720 --> 18:42:40,320 examples and try to solve them we are 27740 18:42:40,320 --> 18:42:42,512 going to take one example in this video 27741 18:42:42,512 --> 18:42:45,552 which is split and distinct why the 27742 18:42:45,552 --> 18:42:48,000 example will look very simple to you but 27743 18:42:48,000 --> 18:42:51,040 most of the time I found when people try 27744 18:42:51,040 --> 18:42:53,360 to solve this problem they take one 27745 18:42:53,360 --> 18:42:56,320 small step wrong and then they try to 27746 18:42:56,320 --> 18:42:58,680 solve it by a little different way which 27747 18:42:58,680 --> 18:43:02,400 is not so effective so let me first of 27748 18:43:02,400 --> 18:43:05,320 all tell you the problem the problem is 27749 18:43:05,320 --> 18:43:07,720 basically I have these comma separated 27750 18:43:07,720 --> 18:43:12,320 text like a comma B comma c a comma B 27751 18:43:12,320 --> 18:43:14,832 comma C comma D and so on I have many 27752 18:43:14,832 --> 18:43:16,120 like 27753 18:43:16,120 --> 18:43:19,080 what I want is across all these rows I 27754 18:43:19,080 --> 18:43:20,720 want the distinct codes which are 27755 18:43:20,720 --> 18:43:25,080 available like a b c d EF so basically 27756 18:43:25,080 --> 18:43:26,440 what is happening this is going to be 27757 18:43:26,440 --> 18:43:28,832 splitted and after splitting I need 27758 18:43:28,832 --> 18:43:31,640 distinct once I reach power ba I'll tell 27759 18:43:31,640 --> 18:43:33,832 you where when people answer this 27760 18:43:33,832 --> 18:43:35,600 question they commit the mistake so 27761 18:43:35,600 --> 18:43:37,320 let's try to solve this problem on 27762 18:43:37,320 --> 18:43:39,760 powerbi and to solve this problem I'm 27763 18:43:39,760 --> 18:43:42,640 going to use end to end4 file which we 27764 18:43:42,640 --> 18:43:46,640 are using for the learn power B series 27765 18:43:46,640 --> 18:43:48,720 and I am on that particular file right 27766 18:43:48,720 --> 18:43:51,760 now in the Home tab let me click on 27767 18:43:51,760 --> 18:43:54,360 transform data and inside the transform 27768 18:43:54,360 --> 18:43:57,360 data I will again click on transform 27769 18:43:57,360 --> 18:44:01,040 data and I'll reach to power query as 27770 18:44:01,040 --> 18:44:02,872 this is a very simple data this can be 27771 18:44:02,872 --> 18:44:05,360 created with enter data so let me enter 27772 18:44:05,360 --> 18:44:08,640 this data so I'll go to the Home tab and 27773 18:44:08,640 --> 18:44:11,552 click on enter data I will be able to 27774 18:44:11,552 --> 18:44:14,760 enter this data a popup is open and here 27775 18:44:14,760 --> 18:44:17,080 I'm I'm going to rename the column as 27776 18:44:17,080 --> 18:44:21,120 codes and I can call this table as codes 27777 18:44:21,120 --> 18:44:24,680 plate let me start creating the rows for 27778 18:44:24,680 --> 18:44:27,512 this table by entering the data let me 27779 18:44:27,512 --> 18:44:31,000 start typing a comma B comma C and in 27780 18:44:31,000 --> 18:44:34,512 the next row let me type a comma B comma 27781 18:44:34,512 --> 18:44:38,000 C comma D it is not necessary that you 27782 18:44:38,000 --> 18:44:40,552 type the same stuff what I given to you 27783 18:44:40,552 --> 18:44:41,872 you can have a little different version 27784 18:44:41,872 --> 18:44:45,080 that's absolutely fine 27785 18:44:45,080 --> 18:44:47,040 so this is the data I have and let me 27786 18:44:47,040 --> 18:44:50,832 now click on okay to get this data in 27787 18:44:50,832 --> 18:44:54,000 power query it will add a query which 27788 18:44:54,000 --> 18:44:55,872 I'll be able to see on the left hand 27789 18:44:55,872 --> 18:44:58,192 side the list of queries where I have 27790 18:44:58,192 --> 18:45:00,600 and I will explain you the 27791 18:45:00,600 --> 18:45:02,800 transformation needed to do that so I 27792 18:45:02,800 --> 18:45:05,552 got the table as soon as I told you this 27793 18:45:05,552 --> 18:45:07,960 problem the first answer comes to you 27794 18:45:07,960 --> 18:45:10,640 okay we will split it by delimiter yes 27795 18:45:10,640 --> 18:45:12,552 that's correct so you can right click 27796 18:45:12,552 --> 18:45:15,440 and do split by delimiter or inside the 27797 18:45:15,440 --> 18:45:18,280 transform tab you have the option split 27798 18:45:18,280 --> 18:45:21,400 column by Del limiter so from any of 27799 18:45:21,400 --> 18:45:24,000 these options click on that split column 27800 18:45:24,000 --> 18:45:26,320 by D limiter on this popup you have 27801 18:45:26,320 --> 18:45:28,280 various options the first option is how 27802 18:45:28,280 --> 18:45:30,552 you want to split it the default option 27803 18:45:30,552 --> 18:45:33,512 is comma and we have comma separated 27804 18:45:33,512 --> 18:45:35,720 string so we are going to use that but 27805 18:45:35,720 --> 18:45:37,720 you can change it you can even choose a 27806 18:45:37,720 --> 18:45:42,240 custom one second is split at leftmost 27807 18:45:42,240 --> 18:45:45,160 rightmost or each occurence in this case 27808 18:45:45,160 --> 18:45:47,760 we need each occurrence but depending on 27809 18:45:47,760 --> 18:45:51,160 the need you can choose next option is 27810 18:45:51,160 --> 18:45:54,440 Advanced options and inside the advanc 27811 18:45:54,440 --> 18:45:56,720 option there is a choice if we choose 27812 18:45:56,720 --> 18:46:00,192 the wrong one we may get little longer 27813 18:46:00,192 --> 18:46:02,600 solution we may still be able to achieve 27814 18:46:02,600 --> 18:46:05,480 it but that's not the optimal 27815 18:46:05,480 --> 18:46:07,832 solution in this Advanced option I have 27816 18:46:07,832 --> 18:46:11,080 option split into columns and rows but 27817 18:46:11,080 --> 18:46:13,160 usually people tell me that we'll split 27818 18:46:13,160 --> 18:46:15,720 by columns and then they tell you know 27819 18:46:15,720 --> 18:46:18,040 we will do unpivot and do that you don't 27820 18:46:18,040 --> 18:46:19,920 need to do that actually you have a 27821 18:46:19,920 --> 18:46:23,440 better option split into rows because 27822 18:46:23,440 --> 18:46:26,160 that will actually convert it into rows 27823 18:46:26,160 --> 18:46:28,360 and when you do split by column it do 27824 18:46:28,360 --> 18:46:30,000 ask you number of column so you're 27825 18:46:30,000 --> 18:46:32,280 limited by number of columns in case of 27826 18:46:32,280 --> 18:46:33,920 row you are not limited so if there are 27827 18:46:33,920 --> 18:46:36,760 four five six any number it will take 27828 18:46:36,760 --> 18:46:38,440 care of that split because it's going to 27829 18:46:38,440 --> 18:46:41,160 create new rows after you do that you to 27830 18:46:41,160 --> 18:46:44,872 click on okay now we got all the codes 27831 18:46:44,872 --> 18:46:47,120 into the rows and the next option is 27832 18:46:47,120 --> 18:46:50,080 very simple so I to right click and use 27833 18:46:50,080 --> 18:46:53,440 remove duplicates option let me click on 27834 18:46:53,440 --> 18:46:58,192 that and we got the desired outcome as 27835 18:46:58,192 --> 18:47:01,080 you can see this is the problem which we 27836 18:47:01,080 --> 18:47:04,080 can sort with what we have learned so 27837 18:47:04,080 --> 18:47:06,920 far there is nothing new but it is just 27838 18:47:06,920 --> 18:47:10,080 a use case to pay little attention how 27839 18:47:10,080 --> 18:47:13,552 are we going to achieve this I have kept 27840 18:47:13,552 --> 18:47:16,512 this use case for your reference you can 27841 18:47:16,512 --> 18:47:18,872 solve many other different Problems by 27842 18:47:18,872 --> 18:47:21,872 combining various power query operations 27843 18:47:21,872 --> 18:47:25,120 so try this out in this video we will 27844 18:47:25,120 --> 18:47:28,120 continue our journey of learning power 27845 18:47:28,120 --> 18:47:31,832 bi and power query with some examples 27846 18:47:31,832 --> 18:47:33,760 the example what we want to take here is 27847 18:47:33,760 --> 18:47:36,440 the split column but there is a Twist 27848 18:47:36,440 --> 18:47:39,360 The Twist here is that in the column I 27849 18:47:39,360 --> 18:47:41,760 have two set of values the one value is 27850 18:47:41,760 --> 18:47:43,680 a single value then there is a space and 27851 18:47:43,680 --> 18:47:46,160 then there's a comma separate value I 27852 18:47:46,160 --> 18:47:50,280 want to split them but the final answers 27853 18:47:50,280 --> 18:47:52,760 should contain them in Combined manner 27854 18:47:52,760 --> 18:47:56,320 so if you look here the best 1 comma 2 27855 18:47:56,320 --> 18:47:59,552 comma 4 is going to become best one best 27856 18:47:59,552 --> 18:48:02,480 two and best 4 similarly good one comma 27857 18:48:02,480 --> 18:48:06,760 4 will become good one and good four so 27858 18:48:06,760 --> 18:48:09,512 how can we achieve this again we are 27859 18:48:09,512 --> 18:48:12,000 going to use some of the things which we 27860 18:48:12,000 --> 18:48:14,832 have already learned in power query but 27861 18:48:14,832 --> 18:48:18,080 try to fit in this use case for this use 27862 18:48:18,080 --> 18:48:21,320 case also I'm going to use pyot data. 27863 18:48:21,320 --> 18:48:24,400 XLS which is available on my GitHub 27864 18:48:24,400 --> 18:48:26,832 account and that is the same file we 27865 18:48:26,832 --> 18:48:30,400 have already loaded in end to end 14 PB 27866 18:48:30,400 --> 18:48:32,512 so we can continue to use that 27867 18:48:32,512 --> 18:48:35,160 particular file those of you who are 27868 18:48:35,160 --> 18:48:37,000 directly jumping onto this part of the 27869 18:48:37,000 --> 18:48:39,512 video you have to go to my GitHub 27870 18:48:39,512 --> 18:48:44,000 account github.com amitchandak PBI 27871 18:48:44,000 --> 18:48:45,240 powerbi 27872 18:48:45,240 --> 18:48:47,832 you have to go down you will find a file 27873 18:48:47,832 --> 18:48:52,080 pyot data. XLS click on that one thing 27874 18:48:52,080 --> 18:48:54,832 is you can download this and use it or 27875 18:48:54,832 --> 18:48:57,040 the second thing is right click on the 27876 18:48:57,040 --> 18:48:59,832 raw don't take the URL from the top and 27877 18:48:59,832 --> 18:49:02,080 copy link and that is the link which you 27878 18:49:02,080 --> 18:49:05,512 can use as web URL in your powerbi to 27879 18:49:05,512 --> 18:49:08,680 load this data in this case I have tried 27880 18:49:08,680 --> 18:49:10,680 out this operation on a little different 27881 18:49:10,680 --> 18:49:13,800 file but you can continue with the file 27882 18:49:13,800 --> 18:49:16,680 you are already having the pyot data. 27883 18:49:16,680 --> 18:49:20,640 XLS file let's try this out on powerbi 27884 18:49:20,640 --> 18:49:23,800 desktop data. XLS has undergone many 27885 18:49:23,800 --> 18:49:26,832 changes over a period of time but for 27886 18:49:26,832 --> 18:49:29,000 this use case you should be able to get 27887 18:49:29,000 --> 18:49:31,640 the data inside the file but if you 27888 18:49:31,640 --> 18:49:33,832 don't get you should be able to create 27889 18:49:33,832 --> 18:49:36,760 this data easily using the enter data 27890 18:49:36,760 --> 18:49:38,480 option in power 27891 18:49:38,480 --> 18:49:41,000 query you should be able to get this 27892 18:49:41,000 --> 18:49:44,080 data inside the combined Split Sheet and 27893 18:49:44,080 --> 18:49:47,160 as we have discussed the best space one 27894 18:49:47,160 --> 18:49:50,960 2 and four I would like to split like 27895 18:49:50,960 --> 18:49:53,872 best space 27896 18:49:53,872 --> 18:49:59,240 one then I would like best space 27897 18:49:59,240 --> 18:50:02,240 two they would be in the continuous row 27898 18:50:02,240 --> 18:50:06,960 so let me move it up and best Space 4 27899 18:50:06,960 --> 18:50:08,960 same manner I'll get the data for nice 27900 18:50:08,960 --> 18:50:11,800 and good also so this is what the final 27901 18:50:11,800 --> 18:50:14,720 outcome I want but as of now let me 27902 18:50:14,720 --> 18:50:17,760 clean it up and let's keep this file as 27903 18:50:17,760 --> 18:50:19,320 is for our 27904 18:50:19,320 --> 18:50:22,040 uses this is not going to be a simple 27905 18:50:22,040 --> 18:50:24,400 split problem first of all we have to 27906 18:50:24,400 --> 18:50:27,120 split the name and the rank into 27907 18:50:27,120 --> 18:50:29,800 separate columns then we have to further 27908 18:50:29,800 --> 18:50:33,640 split the rank into multiple rows and 27909 18:50:33,640 --> 18:50:37,480 then we have to combine these again back 27910 18:50:37,480 --> 18:50:40,760 into one single column so two operations 27911 18:50:40,760 --> 18:50:44,080 going together split and combine let's 27912 18:50:44,080 --> 18:50:46,832 jump on the powerbi desktop I'm going to 27913 18:50:46,832 --> 18:50:49,192 load this data again but you can 27914 18:50:49,192 --> 18:50:50,872 continue with the file where you have 27915 18:50:50,872 --> 18:50:53,120 already loaded so I'm going to use 27916 18:50:53,120 --> 18:50:54,960 recent source and from there I'm going 27917 18:50:54,960 --> 18:50:58,720 to take pyot data. XLS and in the pyot 27918 18:50:58,720 --> 18:51:01,280 data. XLS I have all these sheets which 27919 18:51:01,280 --> 18:51:03,600 I have showcased you in the past from 27920 18:51:03,600 --> 18:51:05,440 here we would like to take the combined 27921 18:51:05,440 --> 18:51:08,192 Split Sheet which has the desired data 27922 18:51:08,192 --> 18:51:11,320 and directly go to transform data so we 27923 18:51:11,320 --> 18:51:14,512 will reach power query as our data is 27924 18:51:14,512 --> 18:51:17,000 complete text Data it might not detect 27925 18:51:17,000 --> 18:51:19,360 the first row as header so we have to 27926 18:51:19,360 --> 18:51:21,832 manually go and use first row as header 27927 18:51:21,832 --> 18:51:25,360 from the menu first step is to split the 27928 18:51:25,360 --> 18:51:29,400 column by space into two columns for 27929 18:51:29,400 --> 18:51:32,400 that we need the operation split column 27930 18:51:32,400 --> 18:51:34,480 by delimiter so split column is 27931 18:51:34,480 --> 18:51:37,040 available here I'm going to click on 27932 18:51:37,040 --> 18:51:39,800 that and in that we have many option I'm 27933 18:51:39,800 --> 18:51:43,160 going to use bu delimiter option let me 27934 18:51:43,160 --> 18:51:46,360 click on that it will open a popup in 27935 18:51:46,360 --> 18:51:48,960 the select delimiter it has correctly 27936 18:51:48,960 --> 18:51:51,120 detected the space as the delimiter 27937 18:51:51,120 --> 18:51:53,400 otherwise we can change it we have to go 27938 18:51:53,400 --> 18:51:55,400 to the Advance option and inside the 27939 18:51:55,400 --> 18:51:57,680 advance option we'll choose column and 27940 18:51:57,680 --> 18:51:59,960 we'll keep the value two which it has 27941 18:51:59,960 --> 18:52:03,040 detected correctly now we can click on 27942 18:52:03,040 --> 18:52:06,160 okay to complete this operation so we 27943 18:52:06,160 --> 18:52:08,680 got now two columns but when we look at 27944 18:52:08,680 --> 18:52:11,240 the second column we found that the text 27945 18:52:11,240 --> 18:52:13,512 which we are expecting is not correct it 27946 18:52:13,512 --> 18:52:16,192 is not comma separated value and the 27947 18:52:16,192 --> 18:52:19,120 reason for that is the auto conversion 27948 18:52:19,120 --> 18:52:21,872 you can see the data type is 1 2 3 there 27949 18:52:21,872 --> 18:52:25,480 is a step added change type two which is 27950 18:52:25,480 --> 18:52:28,760 converting it into the numbers previous 27951 18:52:28,760 --> 18:52:31,640 step has the comma separated value so we 27952 18:52:31,640 --> 18:52:34,360 need to delete this step once we delete 27953 18:52:34,360 --> 18:52:37,360 we'll reach to the last step where we 27954 18:52:37,360 --> 18:52:39,960 see the correct comma separated value 27955 18:52:39,960 --> 18:52:42,400 whenever you do power query operations 27956 18:52:42,400 --> 18:52:44,640 sometime the change type step is is 27957 18:52:44,640 --> 18:52:47,600 automatically added in such cases you 27958 18:52:47,600 --> 18:52:51,800 can delete such a step whenever you are 27959 18:52:51,800 --> 18:52:54,280 working on power query if something goes 27960 18:52:54,280 --> 18:52:57,680 wrong please check it step by step by 27961 18:52:57,680 --> 18:53:00,160 looking at what is happening on each of 27962 18:53:00,160 --> 18:53:01,440 the 27963 18:53:01,440 --> 18:53:04,480 step we need to split the second column 27964 18:53:04,480 --> 18:53:06,680 into the rows so again we are going to 27965 18:53:06,680 --> 18:53:09,920 use the split column option so let's 27966 18:53:09,920 --> 18:53:12,720 select this column and use the split 27967 18:53:12,720 --> 18:53:15,040 column by delimiting 27968 18:53:15,040 --> 18:53:17,480 and once we get the popup we can see 27969 18:53:17,480 --> 18:53:20,040 that it has correctly detected its comma 27970 18:53:20,040 --> 18:53:22,720 separated and in the advance we need to 27971 18:53:22,720 --> 18:53:27,160 use rows not columns for this time let's 27972 18:53:27,160 --> 18:53:30,280 click on okay to complete the operation 27973 18:53:30,280 --> 18:53:32,760 as you can observe that now we have the 27974 18:53:32,760 --> 18:53:35,440 values required but they are not in one 27975 18:53:35,440 --> 18:53:37,000 column they are in two column we are 27976 18:53:37,000 --> 18:53:40,080 getting best in one column one in second 27977 18:53:40,080 --> 18:53:43,440 column best and two in two different 27978 18:53:43,440 --> 18:53:45,920 different columns but what we need to do 27979 18:53:45,920 --> 18:53:48,240 is we need to combine them into one 27980 18:53:48,240 --> 18:53:50,720 single column so we need to perform 27981 18:53:50,720 --> 18:53:53,920 another operation for that now we need a 27982 18:53:53,920 --> 18:53:56,120 option merge column merge column is 27983 18:53:56,120 --> 18:53:59,000 available under the transform tab we 27984 18:53:59,000 --> 18:54:01,160 were on the Home tab that option is not 27985 18:54:01,160 --> 18:54:02,552 available in the Home tab that is 27986 18:54:02,552 --> 18:54:05,600 available under the transform Tab case 27987 18:54:05,600 --> 18:54:08,320 of merge columns the order of selection 27988 18:54:08,320 --> 18:54:10,600 is really important so first I'm going 27989 18:54:10,600 --> 18:54:12,960 to select the first column and then I'm 27990 18:54:12,960 --> 18:54:14,832 going to select the second column colum 27991 18:54:14,832 --> 18:54:17,320 if you change the order you may get a 27992 18:54:17,320 --> 18:54:18,320 different 27993 18:54:18,320 --> 18:54:21,280 result so let's select the first column 27994 18:54:21,280 --> 18:54:23,800 click and control and select the second 27995 18:54:23,800 --> 18:54:27,240 column from transform tab let's choose 27996 18:54:27,240 --> 18:54:30,600 merg columns a popup will open and here 27997 18:54:30,600 --> 18:54:33,640 we'll choose separator as space and we 27998 18:54:33,640 --> 18:54:36,480 will give a new column name which is 27999 18:54:36,480 --> 18:54:40,680 name rank and let's click on okay so now 28000 18:54:40,680 --> 18:54:43,720 we got the desired outcome the desired 28001 18:54:43,720 --> 18:54:47,280 outcome contains best space one best 28002 18:54:47,280 --> 18:54:52,040 space two best Space 4 and so on so this 28003 18:54:52,040 --> 18:54:54,960 is what we wanted and as you can see we 28004 18:54:54,960 --> 18:54:58,552 have used the standard power query menu 28005 18:54:58,552 --> 18:55:01,760 options only to achieve this power query 28006 18:55:01,760 --> 18:55:05,000 can solve many complex problem using 28007 18:55:05,000 --> 18:55:09,120 these menu options or the power query 28008 18:55:09,120 --> 18:55:11,960 functions the only thing is you need to 28009 18:55:11,960 --> 18:55:14,552 learn power query in details to achieve 28010 18:55:14,552 --> 18:55:17,800 that my advice would be to also look at 28011 18:55:17,800 --> 18:55:19,800 all the functions which we have 28012 18:55:19,800 --> 18:55:22,680 discussed in beginner tutorial series to 28013 18:55:22,680 --> 18:55:24,832 make sure that you are able to take full 28014 18:55:24,832 --> 18:55:28,480 advantage of power 28015 18:55:29,040 --> 18:55:32,000 query in this video we are going to 28016 18:55:32,000 --> 18:55:35,480 discuss subcategory index or subcategory 28017 18:55:35,480 --> 18:55:39,192 rank we call Ned rank or nexted index 28018 18:55:39,192 --> 18:55:41,800 there is a video from Kerbal on that 28019 18:55:41,800 --> 18:55:43,960 that is the inspiration for this video 28020 18:55:43,960 --> 18:55:46,040 yeah going to use the technique shown 28021 18:55:46,040 --> 18:55:48,512 there to get the subcategory index and 28022 18:55:48,512 --> 18:55:51,512 subcategory rank the function required 28023 18:55:51,512 --> 18:55:53,832 for subcategory index and subcategory 28024 18:55:53,832 --> 18:55:56,000 rank the rank and the index function I 28025 18:55:56,000 --> 18:55:57,920 have explained you already in the 28026 18:55:57,920 --> 18:56:00,480 beginner tutorial series you can watch 28027 18:56:00,480 --> 18:56:03,040 it there I will give you a brief 28028 18:56:03,040 --> 18:56:06,480 overview of those function here also let 28029 18:56:06,480 --> 18:56:08,080 me show you the two functions I'm 28030 18:56:08,080 --> 18:56:10,320 planning to use today the first one is 28031 18:56:10,320 --> 18:56:14,552 table do add rank column and the second 28032 18:56:14,552 --> 18:56:19,600 one is table. ADD index column both of 28033 18:56:19,600 --> 18:56:22,512 them we have already discussed inside 28034 18:56:22,512 --> 18:56:25,552 the beginner tutorial series now the 28035 18:56:25,552 --> 18:56:27,760 challenge which we are going to get here 28036 18:56:27,760 --> 18:56:31,280 is this function works at table level so 28037 18:56:31,280 --> 18:56:34,240 I cannot give a kind of a partition to 28038 18:56:34,240 --> 18:56:37,000 give me subcategory Rank and that is 28039 18:56:37,000 --> 18:56:40,440 what we have to learn how can we make 28040 18:56:40,440 --> 18:56:43,280 them to work for a particular portion of 28041 18:56:43,280 --> 18:56:45,600 the table or partion of the table or 28042 18:56:45,600 --> 18:56:48,680 category or subcategory for example 28043 18:56:48,680 --> 18:56:51,680 let's say my table has Brand I want 28044 18:56:51,680 --> 18:56:54,192 everything to rank inside a brand from 28045 18:56:54,192 --> 18:56:57,440 one to any for subcategory index and 28046 18:56:57,440 --> 18:56:59,240 rank what I'm going to use is I'm going 28047 18:56:59,240 --> 18:57:01,680 to use the pivot data XLS which is 28048 18:57:01,680 --> 18:57:04,512 available on my GitHub and that is the 28049 18:57:04,512 --> 18:57:06,600 same file we have already loaded in end 28050 18:57:06,600 --> 18:57:10,640 to end 14 PB so we can continue to use 28051 18:57:10,640 --> 18:57:13,280 that particular file those of you who 28052 18:57:13,280 --> 18:57:15,040 are directly jump jumping onto this part 28053 18:57:15,040 --> 18:57:17,832 of the video you have to go to my GitHub 28054 18:57:17,832 --> 18:57:22,552 account github.com amitchandak PBI 28055 18:57:22,552 --> 18:57:25,280 powerbi you have to go down you will 28056 18:57:25,280 --> 18:57:30,080 find a file pyot data. XLS click on that 28057 18:57:30,080 --> 18:57:31,960 one thing is you can download this and 28058 18:57:31,960 --> 18:57:34,872 use it or the second thing is right 28059 18:57:34,872 --> 18:57:36,832 click on the raw don't take the URL from 28060 18:57:36,832 --> 18:57:39,872 the top and copy link and that is the 28061 18:57:39,872 --> 18:57:42,680 link which you can use as web URL in 28062 18:57:42,680 --> 18:57:45,920 your powerbi to load this data in this 28063 18:57:45,920 --> 18:57:48,080 case I have tried out this operation on 28064 18:57:48,080 --> 18:57:50,440 a little different file but you can 28065 18:57:50,440 --> 18:57:53,120 continue with the file you are already 28066 18:57:53,120 --> 18:57:56,640 having the pwot data. XLS file let's try 28067 18:57:56,640 --> 18:57:58,872 this out on powerbi 28068 18:57:58,872 --> 18:58:01,680 desktop I'm on to the powerbi desktop 28069 18:58:01,680 --> 18:58:04,800 now let me go to the Home tab transform 28070 18:58:04,800 --> 18:58:08,120 data and transform data in power query I 28071 18:58:08,120 --> 18:58:10,440 already have multiple queries or tables 28072 18:58:10,440 --> 18:58:12,832 and one of the table I have is this pyot 28073 18:58:12,832 --> 18:58:15,720 data I have called name subject and 28074 18:58:15,720 --> 18:58:18,872 marks and here name can become that 28075 18:58:18,872 --> 18:58:22,000 logical division inside which I can rank 28076 18:58:22,000 --> 18:58:25,480 or index my subjects so let's first try 28077 18:58:25,480 --> 18:58:28,960 out to add the subcategory index by name 28078 18:58:28,960 --> 18:58:31,480 so for that we need to use the group by 28079 18:58:31,480 --> 18:58:34,120 function first to group this data so I 28080 18:58:34,120 --> 18:58:37,800 click on name and I'll go to transform 28081 18:58:37,800 --> 18:58:40,800 inside the transform I have option Group 28082 18:58:40,800 --> 18:58:44,480 by operation Group by and its functional 28083 18:58:44,480 --> 18:58:47,600 I have already explained in this series 28084 18:58:47,600 --> 18:58:51,640 and in this video also I have explained 28085 18:58:51,640 --> 18:58:54,600 same thing in beginner tutorial series 28086 18:58:54,600 --> 18:58:56,920 and I'm going to click on that option 28087 18:58:56,920 --> 18:59:00,480 Group by in the popup I will see name as 28088 18:59:00,480 --> 18:59:03,512 Group by also observe a new column name 28089 18:59:03,512 --> 18:59:05,832 as count and the operation as count 28090 18:59:05,832 --> 18:59:08,960 which I'm going to change to all rows 28091 18:59:08,960 --> 18:59:11,440 that will disable the column option 28092 18:59:11,440 --> 18:59:13,440 let's understand what we are trying here 28093 18:59:13,440 --> 18:59:16,600 we are trying to group this data by name 28094 18:59:16,600 --> 18:59:19,640 and we want a column which contain all 28095 18:59:19,640 --> 18:59:22,640 the rows so the operation is all rows 28096 18:59:22,640 --> 18:59:25,680 and now I would like to click on okay to 28097 18:59:25,680 --> 18:59:28,720 get this transformed table I do that I 28098 18:59:28,720 --> 18:59:32,080 see a column name and a column count 28099 18:59:32,080 --> 18:59:35,480 with the table inside each row if I 28100 18:59:35,480 --> 18:59:38,192 click on the empty space I can see what 28101 18:59:38,192 --> 18:59:41,480 data each table contains table has name 28102 18:59:41,480 --> 18:59:44,832 subject and marks for each name the next 28103 18:59:44,832 --> 18:59:47,512 step is to add column from add column 28104 18:59:47,512 --> 18:59:49,872 custom column so let me first of all 28105 18:59:49,872 --> 18:59:52,680 name this column as index the function 28106 18:59:52,680 --> 18:59:55,280 which I'm going to use for this is 28107 18:59:55,280 --> 18:59:59,600 table. ADD index table. add index can 28108 18:59:59,600 --> 19:00:02,832 take table index column name start 28109 19:00:02,832 --> 19:00:06,160 position increment and the data type to 28110 19:00:06,160 --> 19:00:08,512 give us the index argument would be 28111 19:00:08,512 --> 19:00:10,720 count which is a table comma second 28112 19:00:10,720 --> 19:00:12,960 argument is the name of the column which 28113 19:00:12,960 --> 19:00:16,040 I wanted to give which is sub index 28114 19:00:16,040 --> 19:00:18,640 comma now it is not showing because 28115 19:00:18,640 --> 19:00:20,360 table is doubled out here so I'm going 28116 19:00:20,360 --> 19:00:23,000 to remove the table and now it will 28117 19:00:23,000 --> 19:00:25,400 suggest me after the comma so I want to 28118 19:00:25,400 --> 19:00:27,800 give the start position which is one 28119 19:00:27,800 --> 19:00:31,160 increment which is one and it is asking 28120 19:00:31,160 --> 19:00:33,360 for a data type as the last argument 28121 19:00:33,360 --> 19:00:37,360 which I can give index 64. type so we 28122 19:00:37,360 --> 19:00:39,360 have to return a type and here I'm 28123 19:00:39,360 --> 19:00:42,600 returning index 64 close parenthesis and 28124 19:00:42,600 --> 19:00:45,600 click on okay try to look into the data 28125 19:00:45,600 --> 19:00:48,480 of each table now I can see sub index 28126 19:00:48,480 --> 19:00:51,440 inside it and now what I can do is I can 28127 19:00:51,440 --> 19:00:54,040 delete this count column it is no more 28128 19:00:54,040 --> 19:00:57,120 required and then I can expand this 28129 19:00:57,120 --> 19:01:00,192 index column and I can uncheck the name 28130 19:01:00,192 --> 19:01:02,440 because I no more need that and let's 28131 19:01:02,440 --> 19:01:05,512 click on okay once we expand that you 28132 19:01:05,512 --> 19:01:08,360 can observe that the indexes are inside 28133 19:01:08,360 --> 19:01:10,120 the name and after that they are 28134 19:01:10,120 --> 19:01:12,800 repeating inside the second name and 28135 19:01:12,800 --> 19:01:15,512 that is what we want wanted to achieve 28136 19:01:15,512 --> 19:01:18,080 index is typically based on the order of 28137 19:01:18,080 --> 19:01:21,280 loading it is not based on the marks or 28138 19:01:21,280 --> 19:01:24,000 the subject or anything else and that is 28139 19:01:24,000 --> 19:01:26,600 where we need the rank column to Define 28140 19:01:26,600 --> 19:01:29,920 order based on a column to Showcase you 28141 19:01:29,920 --> 19:01:32,120 subcategory rank we are going to do a 28142 19:01:32,120 --> 19:01:34,040 little complex operation and I'm going 28143 19:01:34,040 --> 19:01:37,360 to Showcase you how can you add another 28144 19:01:37,360 --> 19:01:40,320 table inside the same code so first 28145 19:01:40,320 --> 19:01:42,832 let's delete these steps and reach till 28146 19:01:42,832 --> 19:01:45,160 the step we have edit column where we 28147 19:01:45,160 --> 19:01:47,872 have the table let's remove the steps 28148 19:01:47,872 --> 19:01:50,280 and reach to the table and we are going 28149 19:01:50,280 --> 19:01:53,400 to open that step Again by click on the 28150 19:01:53,400 --> 19:01:56,512 setting icon I will now showcase you how 28151 19:01:56,512 --> 19:01:59,480 to do complex operation in a column for 28152 19:01:59,480 --> 19:02:02,160 that first of all let's move this table 28153 19:02:02,160 --> 19:02:06,000 down and write down let and after that 28154 19:02:06,000 --> 19:02:08,480 we need to create variables for the 28155 19:02:08,480 --> 19:02:10,960 table so let me put this table inside 28156 19:02:10,960 --> 19:02:14,552 one variable and put comma after that in 28157 19:02:14,552 --> 19:02:16,440 next line I'm going to put another table 28158 19:02:16,440 --> 19:02:18,320 name and here I'm going to do the 28159 19:02:18,320 --> 19:02:23,760 operation table. add rank column so tab 28160 19:02:23,760 --> 19:02:26,552 one has index and in tab two I'm adding 28161 19:02:26,552 --> 19:02:29,160 rank to the same tab one which is having 28162 19:02:29,160 --> 19:02:32,640 index let's remove the duplicate table 28163 19:02:32,640 --> 19:02:35,640 and now understand the syntax of this 28164 19:02:35,640 --> 19:02:37,552 one so we require a table which we are 28165 19:02:37,552 --> 19:02:39,640 getting from the last step the next one 28166 19:02:39,640 --> 19:02:42,280 is the column name which we are going to 28167 19:02:42,280 --> 19:02:44,480 give the rank column name and the third 28168 19:02:44,480 --> 19:02:47,120 argument is the one by which we are 28169 19:02:47,120 --> 19:02:49,720 going to decide how we are going to rank 28170 19:02:49,720 --> 19:02:51,760 and to do that I Gove back to the 28171 19:02:51,760 --> 19:02:54,120 documentation and bring in what all 28172 19:02:54,120 --> 19:02:57,320 values I need to give so I'm going to 28173 19:02:57,320 --> 19:02:59,192 copy this and I'm going to change it 28174 19:02:59,192 --> 19:03:03,000 once we reach back to our code so let's 28175 19:03:03,000 --> 19:03:05,760 take this and put it inside our code 28176 19:03:05,760 --> 19:03:08,680 onto the power query we need to provide 28177 19:03:08,680 --> 19:03:11,720 our own column name in place of Revenue 28178 19:03:11,720 --> 19:03:14,160 which is the rank column and the column 28179 19:03:14,160 --> 19:03:16,680 which we plan to use here is the marks 28180 19:03:16,680 --> 19:03:19,040 that is what is available in our data in 28181 19:03:19,040 --> 19:03:22,600 the double quote then the order is fine 28182 19:03:22,600 --> 19:03:26,192 I can keep order. descending next thing 28183 19:03:26,192 --> 19:03:28,920 we need to Define is the rank kind and 28184 19:03:28,920 --> 19:03:31,280 we are going to keep the values what we 28185 19:03:31,280 --> 19:03:34,760 have got from the code so rank kind is 28186 19:03:34,760 --> 19:03:37,160 equal to rank kind. competition we are 28187 19:03:37,160 --> 19:03:39,360 going to keep it same what we got from 28188 19:03:39,360 --> 19:03:42,360 the documentation as of now now we need 28189 19:03:42,360 --> 19:03:44,920 to return it because we have used let so 28190 19:03:44,920 --> 19:03:47,832 we need to use in and we need to use in 28191 19:03:47,832 --> 19:03:50,192 in small and after that we need to 28192 19:03:50,192 --> 19:03:53,720 return the underscore tab two click on 28193 19:03:53,720 --> 19:03:56,080 okay to complete this custom 28194 19:03:56,080 --> 19:03:58,800 column now if You observe the table you 28195 19:03:58,800 --> 19:04:01,480 can see the index as well as rank 28196 19:04:01,480 --> 19:04:03,600 instead of adding the multiple step what 28197 19:04:03,600 --> 19:04:05,400 we have done in inside within the same 28198 19:04:05,400 --> 19:04:07,832 custom column we added both of them now 28199 19:04:07,832 --> 19:04:10,800 you can see rank is based on the marks 28200 19:04:10,800 --> 19:04:12,920 while index is based on the order we 28201 19:04:12,920 --> 19:04:14,480 loaded the dat 28202 19:04:14,480 --> 19:04:16,920 and when you do the rank column it does 28203 19:04:16,920 --> 19:04:19,960 change the sort order of the table so 28204 19:04:19,960 --> 19:04:21,872 that is why first you should do the 28205 19:04:21,872 --> 19:04:24,480 index operation and then you should use 28206 19:04:24,480 --> 19:04:26,960 the rank operation in case you need both 28207 19:04:26,960 --> 19:04:30,080 of them together in the rank we have few 28208 19:04:30,080 --> 19:04:32,192 more options which we can explore so 28209 19:04:32,192 --> 19:04:35,280 let's go back to the formula and here in 28210 19:04:35,280 --> 19:04:38,360 the rank kind I can choose different 28211 19:04:38,360 --> 19:04:41,760 options competition dance ordinal and 28212 19:04:41,760 --> 19:04:44,040 type so those of you who have already 28213 19:04:44,040 --> 19:04:46,160 worked on the rank knows that the dance 28214 19:04:46,160 --> 19:04:48,000 rank is little difference in case of the 28215 19:04:48,000 --> 19:04:51,000 dance rank we get the next rank whether 28216 19:04:51,000 --> 19:04:53,480 the rank repeats or not so if you look 28217 19:04:53,480 --> 19:04:56,120 below here you have a rank which is one 28218 19:04:56,120 --> 19:04:59,320 two and then we have the two again and 28219 19:04:59,320 --> 19:05:02,040 then we have four so basically it is 28220 19:05:02,040 --> 19:05:04,960 kind of a skip rank but what we want is 28221 19:05:04,960 --> 19:05:07,872 dance rank it means one two and three so 28222 19:05:07,872 --> 19:05:10,360 even if there is a skip we should be 28223 19:05:10,360 --> 19:05:14,280 able to get the next Rank and that is 28224 19:05:14,280 --> 19:05:16,800 what happens in case of Danse rank so 28225 19:05:16,800 --> 19:05:20,120 let's make it dense Rank and try it out 28226 19:05:20,120 --> 19:05:22,600 so now let's look at the data so we have 28227 19:05:22,600 --> 19:05:24,320 the different different kind of R let's 28228 19:05:24,320 --> 19:05:26,400 look at some different Row in this row 28229 19:05:26,400 --> 19:05:28,960 itself if you see one is repeating but 28230 19:05:28,960 --> 19:05:31,512 we still have two after that then in 28231 19:05:31,512 --> 19:05:33,832 this one also we have one two two but we 28232 19:05:33,832 --> 19:05:37,040 have next rank is three so basically 28233 19:05:37,040 --> 19:05:40,360 even if the rank is repeated the next 28234 19:05:40,360 --> 19:05:43,080 continuous rank is coming the count 28235 19:05:43,080 --> 19:05:45,680 column we created using the group by is 28236 19:05:45,680 --> 19:05:49,040 no more needed we can delete it now 28237 19:05:49,040 --> 19:05:51,280 let's expand the data by using the 28238 19:05:51,280 --> 19:05:53,552 expand icon on the right top we can 28239 19:05:53,552 --> 19:05:56,680 remove the name and click on okay and 28240 19:05:56,680 --> 19:06:00,192 now we are getting rank as well as index 28241 19:06:00,192 --> 19:06:03,600 inside our table the subcategory rank 28242 19:06:03,600 --> 19:06:05,920 and the subcategory 28243 19:06:05,920 --> 19:06:08,872 index so here we have used the table 28244 19:06:08,872 --> 19:06:10,640 operations and table operation is 28245 19:06:10,640 --> 19:06:12,800 something we have not discussed in this 28246 19:06:12,800 --> 19:06:15,960 video or series a lot but you can go 28247 19:06:15,960 --> 19:06:17,920 ahead and watch the beginner tutorial 28248 19:06:17,920 --> 19:06:21,120 series to understand in depth how to use 28249 19:06:21,120 --> 19:06:23,480 table operations and if you want to 28250 19:06:23,480 --> 19:06:26,440 execute those operation at the grouping 28251 19:06:26,440 --> 19:06:28,512 level or subcategory level you can 28252 19:06:28,512 --> 19:06:30,920 utilize the trick I have shown you in 28253 19:06:30,920 --> 19:06:32,040 this 28254 19:06:32,040 --> 19:06:35,720 video we have learned a lot of powerbi 28255 19:06:35,720 --> 19:06:38,232 stuff and now we are ready to create the 28256 19:06:38,232 --> 19:06:40,720 pages report pages on the powerbi 28257 19:06:40,720 --> 19:06:42,552 desktop which we want to share with 28258 19:06:42,552 --> 19:06:44,120 other user to sh share it with other 28259 19:06:44,120 --> 19:06:46,000 user we need to publish the file publish 28260 19:06:46,000 --> 19:06:47,960 the file to powerbi service powerbi 28261 19:06:47,960 --> 19:06:50,080 service is nothing but app. powerbi.com 28262 19:06:50,080 --> 19:06:52,360 and from there we are going to share it 28263 19:06:52,360 --> 19:06:53,800 with other user we'll have a quick 28264 19:06:53,800 --> 19:06:55,872 overview of powerbi service in powerbi 28265 19:06:55,872 --> 19:06:57,160 service the report has to go to a 28266 19:06:57,160 --> 19:06:59,000 workspace and that particular workspace 28267 19:06:59,000 --> 19:07:00,872 is something which we should create and 28268 19:07:00,872 --> 19:07:01,960 in that workspace we are going to 28269 19:07:01,960 --> 19:07:04,360 publish this file after we publish this 28270 19:07:04,360 --> 19:07:06,120 file the file will get divided into two 28271 19:07:06,120 --> 19:07:07,600 part right now it's a single file here 28272 19:07:07,600 --> 19:07:09,360 in the case of import mode there it will 28273 19:07:09,360 --> 19:07:11,400 be divided into data set semantic model 28274 19:07:11,400 --> 19:07:14,440 or data set and the visualization file 28275 19:07:14,440 --> 19:07:17,160 ideally speaking we don't want to create 28276 19:07:17,160 --> 19:07:19,360 any visualization in the file where we 28277 19:07:19,360 --> 19:07:21,192 have the data model and the measur we 28278 19:07:21,192 --> 19:07:23,232 want to publish it and use the data set 28279 19:07:23,232 --> 19:07:24,960 as a live connect and create the 28280 19:07:24,960 --> 19:07:26,320 visualization there and because of the 28281 19:07:26,320 --> 19:07:27,440 same reason what I've done is I've 28282 19:07:27,440 --> 19:07:28,800 deleted all the pages because I don't 28283 19:07:28,800 --> 19:07:30,280 want to create visualization on this 28284 19:07:30,280 --> 19:07:32,440 file I want to separate out my model 28285 19:07:32,440 --> 19:07:34,232 development from my visualization but 28286 19:07:34,232 --> 19:07:36,080 before even if I publish this empty file 28287 19:07:36,080 --> 19:07:37,920 and this empty file because it has one 28288 19:07:37,920 --> 19:07:39,480 page it's going to create a 28289 19:07:39,480 --> 19:07:41,512 visualization file which we may not want 28290 19:07:41,512 --> 19:07:43,680 it to use we can come back use the data 28291 19:07:43,680 --> 19:07:46,440 set and create a file now before I 28292 19:07:46,440 --> 19:07:48,120 publish this I need to make sure that my 28293 19:07:48,120 --> 19:07:50,080 Majors should get organized in proper 28294 19:07:50,080 --> 19:07:51,960 manner I should clean up unnecessary 28295 19:07:51,960 --> 19:07:54,320 stuff so definitely I don't have any 28296 19:07:54,320 --> 19:07:56,192 unnecessary table because what we have 28297 19:07:56,192 --> 19:07:58,280 done during this entire video we have 28298 19:07:58,280 --> 19:07:59,440 made sure that we Crea different 28299 19:07:59,440 --> 19:08:00,832 versions of the files and whatever is 28300 19:08:00,832 --> 19:08:02,600 not required we have not added to this 28301 19:08:02,600 --> 19:08:04,160 but we have different places where we 28302 19:08:04,160 --> 19:08:05,440 have Majors so some of the majors are 28303 19:08:05,440 --> 19:08:06,640 lying here and there in the customer 28304 19:08:06,640 --> 19:08:08,192 table we have so many majes so 28305 19:08:08,192 --> 19:08:10,960 definitely would like to restructure 28306 19:08:10,960 --> 19:08:12,920 that and to restructure we already 28307 19:08:12,920 --> 19:08:14,400 learned that you can go to the model 28308 19:08:14,400 --> 19:08:16,512 view and into the model view tables this 28309 19:08:16,512 --> 19:08:18,680 is the best place to move the majors 28310 19:08:18,680 --> 19:08:20,800 across so let's say I have these brand 28311 19:08:20,800 --> 19:08:23,872 gross brand net brand brand net to Brand 28312 19:08:23,872 --> 19:08:26,160 all these you can control and click or 28313 19:08:26,160 --> 19:08:29,640 shift and click you can do that isn't 28314 19:08:29,640 --> 19:08:32,080 it and I'll not collect the brand color 28315 19:08:32,080 --> 19:08:34,720 because color major I want separate so 28316 19:08:34,720 --> 19:08:36,440 all these brand color where should they 28317 19:08:36,440 --> 19:08:37,600 where they should go already there are 28318 19:08:37,600 --> 19:08:39,600 in the major folder these are my filter 28319 19:08:39,600 --> 19:08:41,872 measures I filter this so I can create a 28320 19:08:41,872 --> 19:08:45,680 folder filter I can add them there so 28321 19:08:45,680 --> 19:08:47,552 they will be moved to a sub folder now 28322 19:08:47,552 --> 19:08:49,512 brand color category color they are 28323 19:08:49,512 --> 19:08:51,080 color measures so I can put them into 28324 19:08:51,080 --> 19:08:52,800 color folder and whatever folder I 28325 19:08:52,800 --> 19:08:54,192 create I need to remember the name 28326 19:08:54,192 --> 19:08:55,872 because if a new thing come in I I need 28327 19:08:55,872 --> 19:08:58,800 to move that in now I have gross two 28328 19:08:58,800 --> 19:09:03,872 gross three gross this gross Max sales F 28329 19:09:03,872 --> 19:09:07,040 sales I need to move to others now what 28330 19:09:07,040 --> 19:09:08,640 I'll do I'll similarly create few 28331 19:09:08,640 --> 19:09:11,800 folders like time intelligence this that 28332 19:09:11,800 --> 19:09:14,232 and reorganize all my majors 28333 19:09:14,232 --> 19:09:15,552 also the majors which are in the 28334 19:09:15,552 --> 19:09:17,232 customer table I would like them to move 28335 19:09:17,232 --> 19:09:18,680 to the major table and put them 28336 19:09:18,680 --> 19:09:22,000 somewhere inside the 28337 19:09:22,600 --> 19:09:26,280 folder I moved them into the major 28338 19:09:26,280 --> 19:09:29,920 folder then I select all of 28339 19:09:29,920 --> 19:09:32,192 them and then I can move them into 28340 19:09:32,192 --> 19:09:35,080 display folder which is TI time 28341 19:09:35,080 --> 19:09:40,360 intelligence these can also move into pi 28342 19:10:12,832 --> 19:10:15,440 so I am almost done with CLE cleanup I 28343 19:10:15,440 --> 19:10:18,080 have mostly organized the labels inside 28344 19:10:18,080 --> 19:10:19,960 the major folder other than one or two 28345 19:10:19,960 --> 19:10:21,640 exception which I wanted to keep in 28346 19:10:21,640 --> 19:10:23,232 different tables now one of the 28347 19:10:23,232 --> 19:10:25,000 preparation which you also required on 28348 19:10:25,000 --> 19:10:27,120 the desktop is to install on promise 28349 19:10:27,120 --> 19:10:29,480 Gateway but what I've done is basically 28350 19:10:29,480 --> 19:10:30,960 I have used the files which are on 28351 19:10:30,960 --> 19:10:32,720 GitHub which is basically online so I 28352 19:10:32,720 --> 19:10:34,640 don't require on promise G but if you're 28353 19:10:34,640 --> 19:10:37,080 using sources like Excel sheet SQL 28354 19:10:37,080 --> 19:10:39,160 Server which is on promise you need to 28355 19:10:39,160 --> 19:10:41,872 install on promise Gateway and typically 28356 19:10:41,872 --> 19:10:43,600 on promise Gateway need to be installed 28357 19:10:43,600 --> 19:10:45,120 on a machine where it can be up and 28358 19:10:45,120 --> 19:10:46,832 running always and it should have access 28359 19:10:46,832 --> 19:10:49,000 to Excel files those local databases 28360 19:10:49,000 --> 19:10:51,360 which you have and that will help you to 28361 19:10:51,360 --> 19:10:53,600 refresh your data set on powerb service 28362 19:10:53,600 --> 19:10:55,440 which we'll understand in a short while 28363 19:10:55,440 --> 19:10:57,360 once everything is ready we are ready to 28364 19:10:57,360 --> 19:10:59,552 publish the file now but before we 28365 19:10:59,552 --> 19:11:01,832 publish the file let's understand what 28366 19:11:01,832 --> 19:11:04,000 is this powerbi service and how do we 28367 19:11:04,000 --> 19:11:06,320 create a workpace where we can actually 28368 19:11:06,320 --> 19:11:09,040 publish our data so we will go to 28369 19:11:09,040 --> 19:11:11,600 powerbi service understand its component 28370 19:11:11,600 --> 19:11:13,960 quickly create a works space where we 28371 19:11:13,960 --> 19:11:16,040 can publish this file after publishing 28372 19:11:16,040 --> 19:11:18,232 this file we have a data we will get the 28373 19:11:18,232 --> 19:11:20,160 data set back and create a report now we 28374 19:11:20,160 --> 19:11:22,280 can create a report on powerbi service 28375 19:11:22,280 --> 19:11:24,440 or we can create a report on powerbi 28376 19:11:24,440 --> 19:11:26,640 desktop both are possible once we do 28377 19:11:26,640 --> 19:11:29,760 that let's save this file go to powerbi 28378 19:11:29,760 --> 19:11:32,040 service understand it component create a 28379 19:11:32,040 --> 19:11:34,680 workspace come back and publish this I'm 28380 19:11:34,680 --> 19:11:37,232 on powerbi service powerbi service is 28381 19:11:37,232 --> 19:11:40,552 nothing but app. powerbi.com make sure 28382 19:11:40,552 --> 19:11:42,512 you have created your login as I 28383 19:11:42,512 --> 19:11:44,552 explained earlier either you have been 28384 19:11:44,552 --> 19:11:46,872 assigned a license by your admin and you 28385 19:11:46,872 --> 19:11:49,480 have got the login for app. powerbi.com 28386 19:11:49,480 --> 19:11:51,800 you're using that or you create the one 28387 19:11:51,800 --> 19:11:54,552 now app. powerbi.com which is also known 28388 19:11:54,552 --> 19:11:56,552 as powerbi service or the web version of 28389 19:11:56,552 --> 19:11:58,600 the powerbi is for collaboration it's 28390 19:11:58,600 --> 19:12:00,832 for sharing whatever content we create 28391 19:12:00,832 --> 19:12:03,160 we share that content using powerbi 28392 19:12:03,160 --> 19:12:05,360 service with other user now to share the 28393 19:12:05,360 --> 19:12:08,120 content of powerbi you need licenses you 28394 19:12:08,120 --> 19:12:10,680 need Pro licenses you need PPU licenses 28395 19:12:10,680 --> 19:12:12,872 or you need capacity Pro users can share 28396 19:12:12,872 --> 19:12:15,280 with Pro users PP users can share with 28397 19:12:15,280 --> 19:12:17,720 PP user so that is user based licenses 28398 19:12:17,720 --> 19:12:19,512 but if you buy a premium capacity which 28399 19:12:19,512 --> 19:12:21,960 is either P1 P2 or P3 in these 28400 19:12:21,960 --> 19:12:23,552 capacities first of all you get 28401 19:12:23,552 --> 19:12:25,800 exclusive capacity to run your powerbi 28402 19:12:25,800 --> 19:12:27,720 which is needed for large organization 28403 19:12:27,720 --> 19:12:30,192 application but in the premium capacity 28404 19:12:30,192 --> 19:12:32,920 only for designers you need license and 28405 19:12:32,920 --> 19:12:35,120 you can use Pro license for that before 28406 19:12:35,120 --> 19:12:37,320 premium capacity every user whether it 28407 19:12:37,320 --> 19:12:40,000 is a designer report designer or report 28408 19:12:40,000 --> 19:12:42,440 Creator or report viewer everyone 28409 19:12:42,440 --> 19:12:44,640 requires a license but after you get 28410 19:12:44,640 --> 19:12:46,832 premium capacity not everyone require 28411 19:12:46,832 --> 19:12:48,680 license viewer doesn't require license 28412 19:12:48,680 --> 19:12:50,600 in powerbi service workspace you can 28413 19:12:50,600 --> 19:12:52,440 create app and you can assign that to 28414 19:12:52,440 --> 19:12:54,120 unlimited number of users when you come 28415 19:12:54,120 --> 19:12:56,192 to powerbi service you will see few 28416 19:12:56,192 --> 19:12:57,760 sections and let's understand these 28417 19:12:57,760 --> 19:12:59,872 sections I'm right now at the Home tab 28418 19:12:59,872 --> 19:13:01,800 and where I'm seeing this recommended 28419 19:13:01,800 --> 19:13:04,480 recent favorites and my app on the left 28420 19:13:04,480 --> 19:13:06,720 hand pane I have create for new report 28421 19:13:06,720 --> 19:13:09,232 browsing the content one leg data Hub is 28422 19:13:09,232 --> 19:13:11,280 for the Microsoft fabric which is again 28423 19:13:11,280 --> 19:13:13,600 accessible using app. powerb 28424 19:13:13,600 --> 19:13:15,440 and I've enabled the trial so you will 28425 19:13:15,440 --> 19:13:17,960 see the content of Microsoft fabric then 28426 19:13:17,960 --> 19:13:20,000 app in case we create the service app we 28427 19:13:20,000 --> 19:13:21,512 will have the apps here in case you have 28428 19:13:21,512 --> 19:13:23,552 created matrices you will have them here 28429 19:13:23,552 --> 19:13:25,080 monitoring Hub in case you have access 28430 19:13:25,080 --> 19:13:26,280 to monitoring Hub you will have it 28431 19:13:26,280 --> 19:13:28,440 workspaces which are essential for data 28432 19:13:28,440 --> 19:13:30,192 sharing are available here and my 28433 19:13:30,192 --> 19:13:32,232 workspace my workspace is the workspace 28434 19:13:32,232 --> 19:13:33,800 even if you're a free user you will have 28435 19:13:33,800 --> 19:13:35,360 your own workspace that is known as bike 28436 19:13:35,360 --> 19:13:36,720 workspace Now to create your own 28437 19:13:36,720 --> 19:13:38,600 workspace you need to be a pro user and 28438 19:13:38,600 --> 19:13:40,120 you also need to have permissions from 28439 19:13:40,120 --> 19:13:42,120 your admin to create these workspace now 28440 19:13:42,120 --> 19:13:44,120 workspace in power powerbi world it's a 28441 19:13:44,120 --> 19:13:46,440 container of resources like report 28442 19:13:46,440 --> 19:13:49,160 paginated report dashboard we have 28443 19:13:49,160 --> 19:13:50,400 something known as powerbi service 28444 19:13:50,400 --> 19:13:51,920 dashboard which is different from report 28445 19:13:51,920 --> 19:13:54,040 most of the time for practical purpose 28446 19:13:54,040 --> 19:13:56,440 what we call report in powerbi is as 28447 19:13:56,440 --> 19:13:58,480 good as dashboard in the bi world but we 28448 19:13:58,480 --> 19:14:00,120 have a powerb service dashboard where we 28449 19:14:00,120 --> 19:14:01,872 can put in the content from various 28450 19:14:01,872 --> 19:14:04,120 other reports so all these components 28451 19:14:04,120 --> 19:14:06,120 can be put into one thing which is known 28452 19:14:06,120 --> 19:14:08,232 as workspace from workspace I can apply 28453 19:14:08,232 --> 19:14:10,800 Ro level security RLS I can distribute 28454 19:14:10,800 --> 19:14:12,640 the content to the selected set of users 28455 19:14:12,640 --> 19:14:14,000 all these is possible using the 28456 19:14:14,000 --> 19:14:15,440 workspace so first of all what you are 28457 19:14:15,440 --> 19:14:17,120 going to do Under This workspace there 28458 19:14:17,120 --> 19:14:19,080 is a button below new workspace I'm 28459 19:14:19,080 --> 19:14:21,000 going to create a new workspace I'm 28460 19:14:21,000 --> 19:14:22,552 going to give it as a name and because 28461 19:14:22,552 --> 19:14:24,080 we have created end to endend video so 28462 19:14:24,080 --> 19:14:25,512 we are going to give it as a name end to 28463 19:14:25,512 --> 19:14:28,600 end description is also end to end I 28464 19:14:28,600 --> 19:14:30,080 have not created any domain so I'm 28465 19:14:30,080 --> 19:14:32,080 leaving it I'm not also giving an image 28466 19:14:32,080 --> 19:14:34,120 under the advance instead of trial I'm 28467 19:14:34,120 --> 19:14:35,872 going to use it pro I have a pro license 28468 19:14:35,872 --> 19:14:38,160 or PPU license I can create that Pro is 28469 19:14:38,160 --> 19:14:39,640 basically minimum license required for 28470 19:14:39,640 --> 19:14:41,320 sharing or PPU so we can create a 28471 19:14:41,320 --> 19:14:43,232 premium per user workspace and and when 28472 19:14:43,232 --> 19:14:44,800 you create a premium per user you can 28473 19:14:44,800 --> 19:14:46,960 use large semantic model also format 28474 19:14:46,960 --> 19:14:48,920 also we are using the powerway reports 28475 19:14:48,920 --> 19:14:51,512 so PPU workspace or premium for user 28476 19:14:51,512 --> 19:14:53,120 workspace we are creating and now click 28477 19:14:53,120 --> 19:14:55,000 on apply the moment you click on apply 28478 19:14:55,000 --> 19:14:56,480 it will open your workspace which is 28479 19:14:56,480 --> 19:14:58,600 empty and when you click on the new it 28480 19:14:58,600 --> 19:15:00,232 will show what all components which you 28481 19:15:00,232 --> 19:15:02,640 can create in powerbi service report 28482 19:15:02,640 --> 19:15:05,040 pated report scorecard dashboard 28483 19:15:05,040 --> 19:15:07,280 semantic model data flow it is also 28484 19:15:07,280 --> 19:15:09,640 known as now data flow gen one data M 28485 19:15:09,640 --> 19:15:11,640 and streaming data sets the more options 28486 19:15:11,640 --> 19:15:13,760 contain these as as well as what you can 28487 19:15:13,760 --> 19:15:15,920 use in Microsoft fabric you can watch my 28488 19:15:15,920 --> 19:15:17,832 series on Microsoft fabric to know more 28489 19:15:17,832 --> 19:15:19,680 about these you have so many things I'm 28490 19:15:19,680 --> 19:15:21,512 leaving that explanation right now we 28491 19:15:21,512 --> 19:15:23,920 are only focused on the powerbi content 28492 19:15:23,920 --> 19:15:25,640 so Microsoft fabric you can watch the 28493 19:15:25,640 --> 19:15:27,440 videos on Microsoft fabric let's go back 28494 19:15:27,440 --> 19:15:29,440 to the workspace you can upload certain 28495 19:15:29,440 --> 19:15:31,360 content from one drive SharePoint on the 28496 19:15:31,360 --> 19:15:33,232 workspace you can create a app app is 28497 19:15:33,232 --> 19:15:34,872 for the sharing we will learn that you 28498 19:15:34,872 --> 19:15:36,480 can manage the access you can share this 28499 19:15:36,480 --> 19:15:38,000 workspace with the other people you can 28500 19:15:38,000 --> 19:15:39,920 give the name and share it and there are 28501 19:15:39,920 --> 19:15:41,800 four types of role admin having access 28502 19:15:41,800 --> 19:15:44,232 to everything member having access to 28503 19:15:44,232 --> 19:15:46,600 app but not having access to admin 28504 19:15:46,600 --> 19:15:48,920 whatas contributors having access till 28505 19:15:48,920 --> 19:15:51,000 reports but not having access to app and 28506 19:15:51,000 --> 19:15:53,080 viewers only have the viewer access you 28507 19:15:53,080 --> 19:15:57,080 can look for an article powerbi workpace 28508 19:15:57,080 --> 19:16:01,192 roles and always get the latest on what 28509 19:16:01,192 --> 19:16:03,360 a particular user can do and as you can 28510 19:16:03,360 --> 19:16:06,160 see here various capabilities has been 28511 19:16:06,160 --> 19:16:08,232 defined what each user type can do and 28512 19:16:08,232 --> 19:16:10,440 remember the RLS or the RO level 28513 19:16:10,440 --> 19:16:12,512 security only applies for viewers so all 28514 19:16:12,512 --> 19:16:15,000 the users mostly are going to be viewers 28515 19:16:15,000 --> 19:16:17,040 so then we have workspace settings we 28516 19:16:17,040 --> 19:16:19,080 are right now only interested in couple 28517 19:16:19,080 --> 19:16:21,280 of settings that are related to powerbi 28518 19:16:21,280 --> 19:16:23,120 general setting and in this one the 28519 19:16:23,120 --> 19:16:25,320 important setting which if you want to 28520 19:16:25,320 --> 19:16:28,040 allow your users to update the data set 28521 19:16:28,040 --> 19:16:29,360 then you need to allow this model 28522 19:16:29,360 --> 19:16:31,280 setting they will be able to update the 28523 19:16:31,280 --> 19:16:33,000 model online using this so you need to 28524 19:16:33,000 --> 19:16:34,872 check that and allow contributor to 28525 19:16:34,872 --> 19:16:36,600 update the app if there was a feature 28526 19:16:36,600 --> 19:16:38,512 where it was written if allowed this is 28527 19:16:38,512 --> 19:16:40,320 that if allowed you want to allow the 28528 19:16:40,320 --> 19:16:41,872 contributor to update the app then you 28529 19:16:41,872 --> 19:16:43,160 can allow that okay so now the 28530 19:16:43,160 --> 19:16:45,160 contributors can also update the then 28531 19:16:45,160 --> 19:16:47,720 data connectors no changes embed code 28532 19:16:47,720 --> 19:16:50,120 right now no changes rest I'm leaving as 28533 19:16:50,120 --> 19:16:52,800 is now we don't need for our initial 28534 19:16:52,800 --> 19:16:54,552 learning that one so these are the 28535 19:16:54,552 --> 19:16:56,360 setting for the workspace now if you are 28536 19:16:56,360 --> 19:16:58,440 a powerbi admin you will also be the 28537 19:16:58,440 --> 19:17:00,552 settings which are under admin portal 28538 19:17:00,552 --> 19:17:02,720 under the admin portal most important 28539 19:17:02,720 --> 19:17:04,280 settings are lying under the tenant 28540 19:17:04,280 --> 19:17:06,160 settings definitely if you have capacity 28541 19:17:06,160 --> 19:17:07,680 then you you would go to premium per 28542 19:17:07,680 --> 19:17:09,720 user and capacity settings also then 28543 19:17:09,720 --> 19:17:11,400 there are organizational visual settings 28544 19:17:11,400 --> 19:17:13,040 which are separately available if you go 28545 19:17:13,040 --> 19:17:14,600 there you have the visuals then you can 28546 19:17:14,600 --> 19:17:16,512 add them there workspaces and custom 28547 19:17:16,512 --> 19:17:18,680 branding Etc is there in the tant 28548 19:17:18,680 --> 19:17:21,080 everything which you do on power B 28549 19:17:21,080 --> 19:17:22,800 service can be controlled you want to 28550 19:17:22,800 --> 19:17:24,640 give the help information you can give 28551 19:17:24,640 --> 19:17:26,552 and most of the settings if you enable 28552 19:17:26,552 --> 19:17:28,920 them they have two to three options for 28553 19:17:28,920 --> 19:17:30,920 entire organization for specific 28554 19:17:30,920 --> 19:17:33,320 Security Group and these are emailed 28555 19:17:33,320 --> 19:17:35,280 enabled Security Group anything which 28556 19:17:35,280 --> 19:17:37,512 you want to use on powerb service it 28557 19:17:37,512 --> 19:17:40,832 should be emailed enabled and accept so 28558 19:17:40,832 --> 19:17:42,400 most of the time you will get these 28559 19:17:42,400 --> 19:17:44,192 three setting sometime you may get one 28560 19:17:44,192 --> 19:17:46,360 or two but that depends on that 28561 19:17:46,360 --> 19:17:48,320 particular setting this is basically to 28562 19:17:48,320 --> 19:17:50,680 get the help I disable it and cancel it 28563 19:17:50,680 --> 19:17:52,080 email notification if you want to 28564 19:17:52,080 --> 19:17:53,720 receive your custom messages now 28565 19:17:53,720 --> 19:17:55,720 workspace want to allow to use the 28566 19:17:55,720 --> 19:17:57,120 create workspace or not I have allowed 28567 19:17:57,120 --> 19:17:58,760 it for the entire organization use 28568 19:17:58,760 --> 19:18:00,832 cementing model across workspaces means 28569 19:18:00,832 --> 19:18:03,280 I create a workspace I create a model or 28570 19:18:03,280 --> 19:18:05,120 data set in one workspace and I want to 28571 19:18:05,120 --> 19:18:06,600 use it in another workspace so what 28572 19:18:06,600 --> 19:18:07,960 would we will do is we'll create the 28573 19:18:07,960 --> 19:18:09,552 data set in workspace and reports in 28574 19:18:09,552 --> 19:18:11,040 another workspace so that particular 28575 19:18:11,040 --> 19:18:13,000 users of that workspace will not see the 28576 19:18:13,000 --> 19:18:15,000 data set in that particular workspace so 28577 19:18:15,000 --> 19:18:17,280 these kind of stuff we can do block user 28578 19:18:17,280 --> 19:18:19,440 from reassigning personal workspace my 28579 19:18:19,440 --> 19:18:21,480 workspace so we have disabled that they 28580 19:18:21,480 --> 19:18:23,280 can't reassign the personal workspaces 28581 19:18:23,280 --> 19:18:25,160 Define workspace retention period you 28582 19:18:25,160 --> 19:18:27,512 can define a workspace retention period 28583 19:18:27,512 --> 19:18:29,440 so basically deleted workspace can be 28584 19:18:29,440 --> 19:18:31,160 recovered after that there you have n 28585 19:18:31,160 --> 19:18:33,280 number of feature like every export you 28586 19:18:33,280 --> 19:18:35,400 can do like publish to web is controlled 28587 19:18:35,400 --> 19:18:37,232 copy paste visual is control on service 28588 19:18:37,232 --> 19:18:39,000 export to excel from service is control 28589 19:18:39,000 --> 19:18:41,120 export to CSV is control download report 28590 19:18:41,120 --> 19:18:42,800 is control all the features which which 28591 19:18:42,800 --> 19:18:45,600 are available on powerbi service most of 28592 19:18:45,600 --> 19:18:48,440 those menu items are controlled from 28593 19:18:48,440 --> 19:18:51,360 here including which SSO is enabled 28594 19:18:51,360 --> 19:18:53,480 which is not enabled there are certain 28595 19:18:53,480 --> 19:18:55,600 visuals which are allowed or not allowed 28596 19:18:55,600 --> 19:18:57,600 including your map visuals all settings 28597 19:18:57,600 --> 19:18:59,480 are available here developer setting 28598 19:18:59,480 --> 19:19:02,320 admin API setting gen one data flow 28599 19:19:02,320 --> 19:19:04,512 people can create it or not template app 28600 19:19:04,512 --> 19:19:06,232 and you want to create the app Q&A 28601 19:19:06,232 --> 19:19:08,720 settings semantic model security block 28602 19:19:08,720 --> 19:19:10,832 republish and disable refresh package 28603 19:19:10,832 --> 19:19:12,640 that setting is available advanced 28604 19:19:12,640 --> 19:19:14,600 networking using a your private link 28605 19:19:14,600 --> 19:19:16,680 metries setting user experience 28606 19:19:16,680 --> 19:19:18,800 experiment share data settings inside 28607 19:19:18,800 --> 19:19:20,720 setting data Mar setting data model 28608 19:19:20,720 --> 19:19:22,640 setting quick major settings scaleout 28609 19:19:22,640 --> 19:19:24,760 setting one leg setting G integration 28610 19:19:24,760 --> 19:19:26,640 setting so many settings are there we 28611 19:19:26,640 --> 19:19:29,040 can spend days in explaining those but 28612 19:19:29,040 --> 19:19:30,832 this is all for admin user but right now 28613 19:19:30,832 --> 19:19:32,640 we are learning basics of powerbi so we 28614 19:19:32,640 --> 19:19:34,320 are more bothered about our workspace 28615 19:19:34,320 --> 19:19:35,832 and what we are going to do with that so 28616 19:19:35,832 --> 19:19:38,640 we have a workspace ready and once we 28617 19:19:38,640 --> 19:19:40,360 have the data set here we will be able 28618 19:19:40,360 --> 19:19:42,080 to create report online now we have 28619 19:19:42,080 --> 19:19:43,760 given in this workspace to edit the 28620 19:19:43,760 --> 19:19:45,512 model we will be able to edit the model 28621 19:19:45,512 --> 19:19:47,552 also the only thing as a pure play 28622 19:19:47,552 --> 19:19:49,832 powerbi user which you cannot do is you 28623 19:19:49,832 --> 19:19:51,400 can't create a data set on powerb 28624 19:19:51,400 --> 19:19:52,872 service most of the other thing you can 28625 19:19:52,872 --> 19:19:54,480 do you can create report you can modify 28626 19:19:54,480 --> 19:19:56,192 report you can edit data set but you 28627 19:19:56,192 --> 19:19:57,872 will not be able to create a model or 28628 19:19:57,872 --> 19:19:59,600 add new content here you can't create 28629 19:19:59,600 --> 19:20:01,160 connections and bring it so what we are 28630 19:20:01,160 --> 19:20:02,552 going to do here we going to publish a 28631 19:20:02,552 --> 19:20:04,400 report we will also learn data set 28632 19:20:04,400 --> 19:20:06,680 dashboard and app here in the powerbi 28633 19:20:06,680 --> 19:20:08,400 service which are basic feature one must 28634 19:20:08,400 --> 19:20:10,600 know so let's go back to the powerbi 28635 19:20:10,600 --> 19:20:12,800 desktop publish a report come back here 28636 19:20:12,800 --> 19:20:14,832 and see what we are able to 28637 19:20:14,832 --> 19:20:18,120 create we are back on powerbi desktop 28638 19:20:18,120 --> 19:20:20,760 and here we have a report where we don't 28639 19:20:20,760 --> 19:20:22,360 have any visualization we have just 28640 19:20:22,360 --> 19:20:24,800 created one page because we wanted to 28641 19:20:24,800 --> 19:20:28,440 implement the pattern of having 28642 19:20:28,440 --> 19:20:31,080 visualization only to be used on a data 28643 19:20:31,080 --> 19:20:33,040 set file after it has been published 28644 19:20:33,040 --> 19:20:35,920 this is a file which doesn't have any 28645 19:20:35,920 --> 19:20:38,360 local database all online database it 28646 19:20:38,360 --> 19:20:40,360 will not require on promise Gateway for 28647 19:20:40,360 --> 19:20:43,120 refresh I'll go to the Home tab of this 28648 19:20:43,120 --> 19:20:45,320 file and I'll press on 28649 19:20:45,320 --> 19:20:47,920 publish I have made sure that I have 28650 19:20:47,920 --> 19:20:49,720 logged in using the same user which I'm 28651 19:20:49,720 --> 19:20:52,080 using on app. power.com so let's click 28652 19:20:52,080 --> 19:20:54,832 on publish and it will ask me to save if 28653 19:20:54,832 --> 19:20:57,120 the report is not saved and post that it 28654 19:20:57,120 --> 19:20:58,960 will showcase me the 28655 19:20:58,960 --> 19:21:01,400 workspaces my workspace available for 28656 19:21:01,400 --> 19:21:03,192 everyone every kind of user even for 28657 19:21:03,192 --> 19:21:06,800 free user usually not used for sharing 28658 19:21:06,800 --> 19:21:08,720 so we should not keep a report into the 28659 19:21:08,720 --> 19:21:10,400 my workspace which we want to share it 28660 19:21:10,400 --> 19:21:12,720 is for personal content and we should 28661 19:21:12,720 --> 19:21:14,360 avoid using the content which you want 28662 19:21:14,360 --> 19:21:16,040 to share so we are going to put the 28663 19:21:16,040 --> 19:21:19,120 content into end to end which is the 28664 19:21:19,120 --> 19:21:21,600 workspace we have created for 28665 19:21:21,600 --> 19:21:25,640 sharing let me click on end to end and 28666 19:21:25,640 --> 19:21:28,720 click on select and this action will 28667 19:21:28,720 --> 19:21:30,160 publish the 28668 19:21:30,160 --> 19:21:32,680 file it's giving the message that it is 28669 19:21:32,680 --> 19:21:35,192 publishing end to end file to powerbi 28670 19:21:35,192 --> 19:21:37,360 which is nothing but powerbi service 28671 19:21:37,360 --> 19:21:39,280 meet or 28672 19:21:39,280 --> 19:21:42,040 collaboration so file has been published 28673 19:21:42,040 --> 19:21:44,512 success sucessfully onto the powerbi 28674 19:21:44,512 --> 19:21:47,920 service and now we can go and check out 28675 19:21:47,920 --> 19:21:50,720 our file on powerbi service I clicked on 28676 19:21:50,720 --> 19:21:53,512 got it and let me jump onto the powerbi 28677 19:21:53,512 --> 19:21:56,600 service quickly on the powerbi service 28678 19:21:56,600 --> 19:21:59,280 I'm able to now see after the page has 28679 19:21:59,280 --> 19:22:02,040 refreshed two things one is report which 28680 19:22:02,040 --> 19:22:03,760 is only have one page anytime you 28681 19:22:03,760 --> 19:22:05,960 publish a PBX you will get a report and 28682 19:22:05,960 --> 19:22:07,760 the semantic model or data set the 28683 19:22:07,760 --> 19:22:10,192 semantic model is a new name we usually 28684 19:22:10,192 --> 19:22:12,232 know it by the name data model or data 28685 19:22:12,232 --> 19:22:14,552 set in the case of import mode it will 28686 19:22:14,552 --> 19:22:17,720 contain both data and meta in case of 28687 19:22:17,720 --> 19:22:20,040 direct query it will only contain meta 28688 19:22:20,040 --> 19:22:21,800 in case of live mode we are going to use 28689 19:22:21,800 --> 19:22:24,040 the data set which is published already 28690 19:22:24,040 --> 19:22:26,000 so the report will contain the small 28691 19:22:26,000 --> 19:22:27,440 information about the majors which we 28692 19:22:27,440 --> 19:22:29,680 are going to create so now we have our 28693 19:22:29,680 --> 19:22:32,000 semantic model and using this semantic 28694 19:22:32,000 --> 19:22:34,160 model we can create the report either in 28695 19:22:34,160 --> 19:22:37,080 powerbi desktop or on powerbi service so 28696 19:22:37,080 --> 19:22:38,640 first of all what we are going to do 28697 19:22:38,640 --> 19:22:40,600 here is we will check this semantic 28698 19:22:40,600 --> 19:22:43,000 model what we can do out here if I click 28699 19:22:43,000 --> 19:22:45,552 on that it will open this UI for the 28700 19:22:45,552 --> 19:22:47,760 semantic model where I have file 28701 19:22:47,760 --> 19:22:49,480 download this file means I will be able 28702 19:22:49,480 --> 19:22:51,440 to download the data set manage 28703 19:22:51,440 --> 19:22:53,680 permissions on this data set who can do 28704 19:22:53,680 --> 19:22:56,120 what on this then I can refresh refresh 28705 19:22:56,120 --> 19:22:58,160 now schedule refresh history it means if 28706 19:22:58,160 --> 19:22:59,640 I want to refresh the data I can refresh 28707 19:22:59,640 --> 19:23:01,680 it from here I can share it I can 28708 19:23:01,680 --> 19:23:04,040 explore this data I can create a few 28709 19:23:04,040 --> 19:23:05,920 visualization here just exploring 28710 19:23:05,920 --> 19:23:08,960 without even creating a report then in 28711 19:23:08,960 --> 19:23:11,120 the explore data I do have option for 28712 19:23:11,120 --> 19:23:12,872 autocreate report create create blank 28713 19:23:12,872 --> 19:23:15,360 report create paginated report I can 28714 19:23:15,360 --> 19:23:17,960 analyze in Excel by clicking on this so 28715 19:23:17,960 --> 19:23:19,640 if I click on this it will create an 28716 19:23:19,640 --> 19:23:22,000 Excel file for me and there my data set 28717 19:23:22,000 --> 19:23:23,760 would be attached and using this data 28718 19:23:23,760 --> 19:23:26,160 set I will be able to create pyot tables 28719 19:23:26,160 --> 19:23:28,440 and analyze it you want to see lineage 28720 19:23:28,440 --> 19:23:30,600 lineage means from where this data is 28721 19:23:30,600 --> 19:23:32,600 coming on which report it is going all 28722 19:23:32,600 --> 19:23:34,120 this is going to you are seeing this 28723 19:23:34,120 --> 19:23:36,192 open data model button because we have 28724 19:23:36,192 --> 19:23:38,400 allowed data model editing on the 28725 19:23:38,400 --> 19:23:40,960 powerbi service in our workspace setting 28726 19:23:40,960 --> 19:23:43,360 and because of that it is showing this 28727 19:23:43,360 --> 19:23:45,280 option and if you click on that it will 28728 19:23:45,280 --> 19:23:47,360 open the data model and you can change 28729 19:23:47,360 --> 19:23:49,832 few things out here you can create new 28730 19:23:49,832 --> 19:23:53,720 major new column new table you can 28731 19:23:53,720 --> 19:23:55,360 create using the Dex formula you can 28732 19:23:55,360 --> 19:23:57,552 create new calculation groups you can 28733 19:23:57,552 --> 19:24:00,320 manage roles manage relationship and 28734 19:24:00,320 --> 19:24:02,512 create new report on powerbi service 28735 19:24:02,512 --> 19:24:05,040 that many things you can do in the 28736 19:24:05,040 --> 19:24:07,280 semantic model on the online version 28737 19:24:07,280 --> 19:24:09,680 once you allow to edit it calculation 28738 19:24:09,680 --> 19:24:12,080 groups has been added very recently on 28739 19:24:12,080 --> 19:24:14,480 power our bi service let's go back to 28740 19:24:14,480 --> 19:24:16,280 the UI so these are the things which we 28741 19:24:16,280 --> 19:24:17,872 can do so what we are going to do is we 28742 19:24:17,872 --> 19:24:19,872 will quickly now have a look at few of 28743 19:24:19,872 --> 19:24:22,080 these things like creating a report here 28744 19:24:22,080 --> 19:24:24,800 and desktop and creating a dashboard uh 28745 19:24:24,800 --> 19:24:26,720 we will avoid editing of data model we 28746 19:24:26,720 --> 19:24:28,552 have done a lot of work on the powerbi 28747 19:24:28,552 --> 19:24:32,320 desktop and things would remain same 28748 19:24:32,400 --> 19:24:36,360 here we have published our file without 28749 19:24:36,360 --> 19:24:39,400 any visualization on powerbi service and 28750 19:24:39,400 --> 19:24:41,680 we got a centic now we would like to use 28751 19:24:41,680 --> 19:24:43,512 that centic model and create the 28752 19:24:43,512 --> 19:24:45,552 visualization file and this is going to 28753 19:24:45,552 --> 19:24:47,512 the file which we are going to use for 28754 19:24:47,512 --> 19:24:50,872 creating the end user reports or Dash so 28755 19:24:50,872 --> 19:24:53,400 go to the Home tab and inside the Home 28756 19:24:53,400 --> 19:24:55,360 tab now you need to go and grab the 28757 19:24:55,360 --> 19:24:57,760 powerbi semantic model now this 28758 19:24:57,760 --> 19:24:59,080 connection which you are going to do 28759 19:24:59,080 --> 19:25:00,760 with the CCH model is known as live 28760 19:25:00,760 --> 19:25:02,160 connection and live doesn't mean it's 28761 19:25:02,160 --> 19:25:03,600 kind of a direct query on the database 28762 19:25:03,600 --> 19:25:05,280 it is as good as what you have refreshed 28763 19:25:05,280 --> 19:25:08,720 your data set but this particular file 28764 19:25:08,720 --> 19:25:11,552 is neither going to on the data or not 28765 19:25:11,552 --> 19:25:13,232 it is going to on on the model the model 28766 19:25:13,232 --> 19:25:15,960 is coming from the SCE so RLS and 28767 19:25:15,960 --> 19:25:17,480 everything is controlled at the 28768 19:25:17,480 --> 19:25:19,232 cementing model level so what I'm going 28769 19:25:19,232 --> 19:25:21,280 to do here is I'm going to take this end 28770 19:25:21,280 --> 19:25:23,120 to endend model and going to create a 28771 19:25:23,120 --> 19:25:25,320 report out here with the all the kind of 28772 19:25:25,320 --> 19:25:27,120 visualization I have taught to you till 28773 19:25:27,120 --> 19:25:29,400 now you have to click on semantic model 28774 19:25:29,400 --> 19:25:31,440 which you want to bring in and connect 28775 19:25:31,440 --> 19:25:33,480 and it will create a live connection 28776 19:25:33,480 --> 19:25:34,920 once you create the live connection you 28777 19:25:34,920 --> 19:25:36,960 will not be able to add new table new 28778 19:25:36,960 --> 19:25:39,160 columns all those are not allowed the 28779 19:25:39,160 --> 19:25:41,680 moment this model is loaded you will see 28780 19:25:41,680 --> 19:25:43,640 you only have have access to the report 28781 19:25:43,640 --> 19:25:45,440 View and model view the access for 28782 19:25:45,440 --> 19:25:47,000 everything else is gone the data View 28783 19:25:47,000 --> 19:25:48,832 and everything you can see the model 28784 19:25:48,832 --> 19:25:50,400 here but if you click on any of the 28785 19:25:50,400 --> 19:25:52,400 table you don't see option for new 28786 19:25:52,400 --> 19:25:55,160 column new table new calculation group 28787 19:25:55,160 --> 19:25:57,040 manage Ro view rooll everything is 28788 19:25:57,040 --> 19:25:58,960 disabled you can't do that so you are in 28789 19:25:58,960 --> 19:26:00,872 kind of a view only mode for this model 28790 19:26:00,872 --> 19:26:02,360 it means it's the best condition to 28791 19:26:02,360 --> 19:26:04,960 create the visualization so what I'll do 28792 19:26:04,960 --> 19:26:07,720 is I will create this report I will try 28793 19:26:07,720 --> 19:26:10,280 to have one or two pages in this one and 28794 19:26:10,280 --> 19:26:12,160 while I'm creating this report you just 28795 19:26:12,160 --> 19:26:13,832 observe you I have already taught you 28796 19:26:13,832 --> 19:26:15,832 all the features how to create different 28797 19:26:15,832 --> 19:26:19,440 kind of slicer Pages visualization Etc 28798 19:26:19,440 --> 19:26:21,720 what I have done uh which I realized 28799 19:26:21,720 --> 19:26:24,480 after starting this file is that uh the 28800 19:26:24,480 --> 19:26:27,600 images which I have used uh brand image 28801 19:26:27,600 --> 19:26:30,832 brand URL and image URL as columns has 28802 19:26:30,832 --> 19:26:33,552 not worked so I added measures for that 28803 19:26:33,552 --> 19:26:35,640 just by taking Max of those columns and 28804 19:26:35,640 --> 19:26:37,920 I'm going to use them here so I'll 28805 19:26:37,920 --> 19:26:40,640 quietly build it and I'll speed this up 28806 19:26:40,640 --> 19:26:43,760 when this video will get displayed what 28807 19:26:43,760 --> 19:26:46,192 you can do is you can build report of 28808 19:26:46,192 --> 19:26:48,000 your choice and later on those 28809 19:26:48,000 --> 19:26:50,512 visualization can be used inside your 28810 19:26:50,512 --> 19:26:54,120 dashboard on powerbi 28811 19:27:11,120 --> 19:27:14,120 service 28812 19:27:41,040 --> 19:27:44,040 e 28813 19:28:11,040 --> 19:28:15,080 e e 28814 19:28:47,552 --> 19:28:49,440 so what I've done is I've created a 28815 19:28:49,440 --> 19:28:51,320 single page and I'm going to publish 28816 19:28:51,320 --> 19:28:53,920 this uh and you can create a page which 28817 19:28:53,920 --> 19:28:55,512 you would like to have more details 28818 19:28:55,512 --> 19:28:57,192 usually we will have multiple pages and 28819 19:28:57,192 --> 19:28:58,720 communicating the message I just created 28820 19:28:58,720 --> 19:29:00,680 one example here how what kind of page 28821 19:29:00,680 --> 19:29:02,640 we can create uh but based on the design 28822 19:29:02,640 --> 19:29:04,360 and requirement you can create the page 28823 19:29:04,360 --> 19:29:05,760 and now what we are going to do is we 28824 19:29:05,760 --> 19:29:07,120 are going to publish this but before 28825 19:29:07,120 --> 19:29:09,232 publish it's going to ask us a name so 28826 19:29:09,232 --> 19:29:12,320 I'm going to save it and I'll call it 28827 19:29:12,320 --> 19:29:15,600 and to and visual file this is visual 28828 19:29:15,600 --> 19:29:17,512 file you can give a name of your choice 28829 19:29:17,512 --> 19:29:19,440 or as per your organization standard I'm 28830 19:29:19,440 --> 19:29:21,080 right now giving this name because I 28831 19:29:21,080 --> 19:29:22,640 want to just differentiate that it's a 28832 19:29:22,640 --> 19:29:23,720 visual 28833 19:29:23,720 --> 19:29:26,000 file and we going to publish it to the 28834 19:29:26,000 --> 19:29:28,232 end to endend workspace only we are not 28835 19:29:28,232 --> 19:29:29,512 going to create a different workspace 28836 19:29:29,512 --> 19:29:32,680 for this the file is published now we 28837 19:29:32,680 --> 19:29:34,872 will go on powerbi service and check 28838 19:29:34,872 --> 19:29:37,000 this file we would also like to create a 28839 19:29:37,000 --> 19:29:39,360 new report there and let us see how 28840 19:29:39,360 --> 19:29:42,120 things are different in powerbi service 28841 19:29:42,120 --> 19:29:45,232 compared to powerb 28842 19:29:46,832 --> 19:29:49,800 desktop I'm back on powerbi service and 28843 19:29:49,800 --> 19:29:51,512 let's go to end to end to check the 28844 19:29:51,512 --> 19:29:53,600 newly published report end to endend 28845 19:29:53,600 --> 19:29:56,320 visual the report has opened and as you 28846 19:29:56,320 --> 19:29:58,720 can see in end to endend visual report 28847 19:29:58,720 --> 19:30:00,760 we got our report which we have created 28848 19:30:00,760 --> 19:30:03,680 on the dashboard we got the slicer which 28849 19:30:03,680 --> 19:30:06,040 we can click and filter the 28850 19:30:06,040 --> 19:30:08,600 data so this is the viewer View and this 28851 19:30:08,600 --> 19:30:10,640 is how viewer is going to use it 28852 19:30:10,640 --> 19:30:12,720 remember I am an admin admin viewer 28853 19:30:12,720 --> 19:30:14,680 means I have the admin privilege on this 28854 19:30:14,680 --> 19:30:17,040 workspace so what I'm getting in my 28855 19:30:17,040 --> 19:30:18,552 menus could be a little bit more than 28856 19:30:18,552 --> 19:30:21,120 what and user is going to get here so 28857 19:30:21,120 --> 19:30:23,160 I'm able to filter then same way like 28858 19:30:23,160 --> 19:30:26,120 desktop we can slice and dice using the 28859 19:30:26,120 --> 19:30:28,400 visual interactions and data will get 28860 19:30:28,400 --> 19:30:30,760 filtered across as I have a single page 28861 19:30:30,760 --> 19:30:32,800 as of now I'm not seeing the page menu 28862 19:30:32,800 --> 19:30:34,680 but here once you have more than one 28863 19:30:34,680 --> 19:30:36,640 page you will be able to see a small 28864 19:30:36,640 --> 19:30:38,480 Arrow icon to take you to the different 28865 19:30:38,480 --> 19:30:40,720 pages if you click on the file you have 28866 19:30:40,720 --> 19:30:42,680 option save as a copy again I'm admin 28867 19:30:42,680 --> 19:30:44,232 because of which I'm getting but viewers 28868 19:30:44,232 --> 19:30:45,832 might not get it depends on the 28869 19:30:45,832 --> 19:30:47,192 permission which we are providing to 28870 19:30:47,192 --> 19:30:49,680 them download this file manage 28871 19:30:49,680 --> 19:30:53,080 permissions print this page embed report 28872 19:30:53,080 --> 19:30:55,552 generate QR code settings these 28873 19:30:55,552 --> 19:30:58,600 permission all depends on which kind of 28874 19:30:58,600 --> 19:31:00,832 access we have given to the end user I'm 28875 19:31:00,832 --> 19:31:02,800 admin viewer so I'm getting all these 28876 19:31:02,800 --> 19:31:04,800 again export option analyze in Excel 28877 19:31:04,800 --> 19:31:07,280 PowerPoint PDF depending on the viewer 28878 19:31:07,280 --> 19:31:09,920 access now if you go to the visual there 28879 19:31:09,920 --> 19:31:12,400 are these filters which are available 28880 19:31:12,400 --> 19:31:14,480 then there is a set aler option then 28881 19:31:14,480 --> 19:31:16,480 copy this as an image again copy this as 28882 19:31:16,480 --> 19:31:18,960 image if you remember we have this 28883 19:31:18,960 --> 19:31:21,192 option control which all users can do 28884 19:31:21,192 --> 19:31:22,920 and then you have this pin visual which 28885 19:31:22,920 --> 19:31:24,320 we will be using while creating the 28886 19:31:24,320 --> 19:31:26,552 dashboard you have option to share on 28887 19:31:26,552 --> 19:31:30,040 the top you have chat in the teams 28888 19:31:30,040 --> 19:31:33,280 explore this data get inside subscribe 28889 19:31:33,280 --> 19:31:35,920 to the report set alerts and edit and as 28890 19:31:35,920 --> 19:31:37,512 I'm having permission on this workspace 28891 19:31:37,512 --> 19:31:39,040 to edit the report I will be able to 28892 19:31:39,040 --> 19:31:42,040 edit that report and again these are 28893 19:31:42,040 --> 19:31:43,960 some additional permissions which I can 28894 19:31:43,960 --> 19:31:46,080 see here now as a viewer you will also 28895 19:31:46,080 --> 19:31:47,512 be able to see filter pane now the 28896 19:31:47,512 --> 19:31:49,040 filter pane you will only be able to see 28897 19:31:49,040 --> 19:31:51,360 if the filter pan is enabled we can hide 28898 19:31:51,360 --> 19:31:53,480 the filter pan while creating the report 28899 19:31:53,480 --> 19:31:55,600 then users will not see once user click 28900 19:31:55,600 --> 19:31:56,832 on any of the visual just like I've 28901 19:31:56,832 --> 19:31:59,160 created on this tag bar visual they will 28902 19:31:59,160 --> 19:32:00,872 be able to see the visual level filters 28903 19:32:00,872 --> 19:32:03,280 also few more things which they can do 28904 19:32:03,280 --> 19:32:06,480 is view we they can view as a full 28905 19:32:06,480 --> 19:32:09,360 screen cape and come back then they have 28906 19:32:09,360 --> 19:32:12,280 this fit to page 28907 19:32:12,280 --> 19:32:14,760 fit to 28908 19:32:15,480 --> 19:32:18,320 width and actual size all these option 28909 19:32:18,320 --> 19:32:20,360 they can also explore then there's a 28910 19:32:20,360 --> 19:32:22,440 comment users can give give a comment 28911 19:32:22,440 --> 19:32:26,280 out here you can click on got it and 28912 19:32:26,280 --> 19:32:27,680 then you can start writing down the 28913 19:32:27,680 --> 19:32:30,120 comments this is for the 28914 19:32:30,120 --> 19:32:32,680 collaboration we close the comments then 28915 19:32:32,680 --> 19:32:34,400 you have this Mark as a favorite if you 28916 19:32:34,400 --> 19:32:35,872 click on this this report will be marked 28917 19:32:35,872 --> 19:32:37,872 as favorite so what I'm going to do here 28918 19:32:37,872 --> 19:32:39,600 is I'm going to click on edit and I will 28919 19:32:39,600 --> 19:32:42,440 try to modify this report what I'm going 28920 19:32:42,440 --> 19:32:43,600 to do here is I'm going to create a 28921 19:32:43,600 --> 19:32:45,000 little bit of space and for that I'm 28922 19:32:45,000 --> 19:32:47,640 going to delete this card Visual and 28923 19:32:47,640 --> 19:32:49,440 also let me do one thing I'm going to 28924 19:32:49,440 --> 19:32:52,552 make this slicer as a normal button 28925 19:32:52,552 --> 19:32:54,800 slicer so I'll create it as this kind of 28926 19:32:54,800 --> 19:32:58,160 a slicer and then I'll go ahead and go 28927 19:32:58,160 --> 19:33:00,760 to the slicer setting and I'll create it 28928 19:33:00,760 --> 19:33:03,680 as tiles now with these changes let me 28929 19:33:03,680 --> 19:33:06,480 go ahead and further do more changes in 28930 19:33:06,480 --> 19:33:09,000 this report in the edit mode and 28931 19:33:09,000 --> 19:33:10,920 showcase you what all we can do in the 28932 19:33:10,920 --> 19:33:13,160 edit mode I can even modify the model 28933 19:33:13,160 --> 19:33:15,040 because of my setting I can add a new 28934 19:33:15,040 --> 19:33:17,000 page and create additional visualization 28935 19:33:17,000 --> 19:33:19,232 here so let's I can plus a a page and I 28936 19:33:19,232 --> 19:33:22,360 can call it as detailed page and I can 28937 19:33:22,360 --> 19:33:24,120 add additional visual to that page let's 28938 19:33:24,120 --> 19:33:26,232 say I want to add a trend I can bring in 28939 19:33:26,232 --> 19:33:28,920 month year here and I can bring net and 28940 19:33:28,920 --> 19:33:31,400 then can I can convert this into a line 28941 19:33:31,400 --> 19:33:35,760 visual I can add additional visuals 28942 19:33:40,440 --> 19:33:43,512 here so so here I have added a page in 28943 19:33:43,512 --> 19:33:46,000 this manner you can edit a report on 28944 19:33:46,000 --> 19:33:48,760 powerbi service and you can save it now 28945 19:33:48,760 --> 19:33:51,080 there are various options in a powerbi 28946 19:33:51,080 --> 19:33:53,280 service report so if you go to the file 28947 19:33:53,280 --> 19:33:55,800 you can save save as new copy print if 28948 19:33:55,800 --> 19:33:57,360 you want to print the current batch you 28949 19:33:57,360 --> 19:33:59,400 want to embed this then you can generate 28950 19:33:59,400 --> 19:34:01,600 embed code this is the embedded code 28951 19:34:01,600 --> 19:34:03,552 which you can use then embed in 28952 19:34:03,552 --> 19:34:05,872 SharePoint online you can get the code 28953 19:34:05,872 --> 19:34:08,280 for embed SharePoint online publish to 28954 19:34:08,280 --> 19:34:11,232 web now publish to web is a permission 28955 19:34:11,232 --> 19:34:13,512 which we need to give and once we give 28956 19:34:13,512 --> 19:34:15,600 this content would be available publicly 28957 19:34:15,600 --> 19:34:18,232 now my content is basically learning 28958 19:34:18,232 --> 19:34:20,760 content so I can publish it to web but 28959 19:34:20,760 --> 19:34:22,640 your organizational content you should 28960 19:34:22,640 --> 19:34:24,920 not publish it to web you should instead 28961 19:34:24,920 --> 19:34:27,320 use uh the other secure ined method 28962 19:34:27,320 --> 19:34:29,600 export to PowerPoint you can export it 28963 19:34:29,600 --> 19:34:31,872 to PowerPoint with the current value or 28964 19:34:31,872 --> 19:34:33,920 with the default values two options 28965 19:34:33,920 --> 19:34:36,552 exclude hidden Pages only export current 28966 19:34:36,552 --> 19:34:38,480 pages and in that manner you can export 28967 19:34:38,480 --> 19:34:40,440 it to PowerPoint it will generate a 28968 19:34:40,440 --> 19:34:42,680 PowerPoint and you will be able to use 28969 19:34:42,680 --> 19:34:44,920 it also in PowerPoint we have a 28970 19:34:44,920 --> 19:34:47,480 connector for powerbi which can be used 28971 19:34:47,480 --> 19:34:50,400 to connect with the pages of the powerbi 28972 19:34:50,400 --> 19:34:52,800 report live then export to PDF and 28973 19:34:52,800 --> 19:34:54,360 download this file means it will 28974 19:34:54,360 --> 19:34:57,000 download PBX in the view we have fit to 28975 19:34:57,000 --> 19:34:59,320 page fit to width actual width and all 28976 19:34:59,320 --> 19:35:01,080 these options uh we can see different 28977 19:35:01,080 --> 19:35:03,040 page like if the selection pain is not 28978 19:35:03,040 --> 19:35:04,680 coming I can see that if the bookmark 28979 19:35:04,680 --> 19:35:06,832 pain is not coming I can use that if the 28980 19:35:06,832 --> 19:35:08,800 SN slicer pane is not coming I can 28981 19:35:08,800 --> 19:35:10,872 enable that insides pan I can enable 28982 19:35:10,872 --> 19:35:12,960 that so all these things I can enable 28983 19:35:12,960 --> 19:35:15,232 right now I'm disabling those reading 28984 19:35:15,232 --> 19:35:17,832 view we will come out of the edit view 28985 19:35:17,832 --> 19:35:19,680 let's go back to the edit View and then 28986 19:35:19,680 --> 19:35:21,680 open data model then you have options 28987 19:35:21,680 --> 19:35:25,040 for ask a question data drill text box 28988 19:35:25,040 --> 19:35:27,040 you can add shapes you can save this 28989 19:35:27,040 --> 19:35:30,800 report and chat in teams and generate QR 28990 19:35:30,800 --> 19:35:32,720 code analyze in Excel you can download 28991 19:35:32,720 --> 19:35:35,040 and analyze this report in Excel these 28992 19:35:35,040 --> 19:35:36,832 things you can do now let's go back to 28993 19:35:36,832 --> 19:35:38,320 the reading mode and check out more 28994 19:35:38,320 --> 19:35:40,760 options let me give you quick recap of 28995 19:35:40,760 --> 19:35:42,832 the menu items we have here so the file 28996 19:35:42,832 --> 19:35:45,160 options now has save a copy download 28997 19:35:45,160 --> 19:35:47,512 this file manage permissions embed 28998 19:35:47,512 --> 19:35:49,720 report QR code and settings so these are 28999 19:35:49,720 --> 19:35:51,512 the setting for the report the report 29000 19:35:51,512 --> 19:35:53,552 name the description if you want to 29001 19:35:53,552 --> 19:35:55,552 promote endorsement if you want to 29002 19:35:55,552 --> 19:35:57,360 promote this report to the users you can 29003 19:35:57,360 --> 19:35:59,280 use that and there are a few other 29004 19:35:59,280 --> 19:36:01,760 options which you can use export analyz 29005 19:36:01,760 --> 19:36:03,552 in Excel PowerPoint we have already 29006 19:36:03,552 --> 19:36:05,552 checked out PDF you can share this 29007 19:36:05,552 --> 19:36:07,280 report with the others user I can assign 29008 19:36:07,280 --> 19:36:08,640 it to the others users in the 29009 19:36:08,640 --> 19:36:11,512 organization I can share the link mail 29010 19:36:11,512 --> 19:36:13,832 or teams or PowerPoint I can chat with 29011 19:36:13,832 --> 19:36:16,280 the others user regarding this report in 29012 19:36:16,280 --> 19:36:18,960 teams I can further explore this data by 29013 19:36:18,960 --> 19:36:21,000 opening the explore data I can get 29014 19:36:21,000 --> 19:36:23,120 inside subscribe to the report I can 29015 19:36:23,120 --> 19:36:25,760 create a subscription for this report to 29016 19:36:25,760 --> 19:36:27,552 come to me on a given time I'm 29017 19:36:27,552 --> 19:36:30,080 discarding that I can set a alert alert 29018 19:36:30,080 --> 19:36:32,440 can be set on a major for a value high 29019 19:36:32,440 --> 19:36:35,400 or low so threshold greater than or less 29020 19:36:35,400 --> 19:36:37,872 than on which major I need that what 29021 19:36:37,872 --> 19:36:40,480 kind of notification I need and I can 29022 19:36:40,480 --> 19:36:43,280 start my alerts once that setup is done 29023 19:36:43,280 --> 19:36:45,360 and then we have C related contain 29024 19:36:45,360 --> 19:36:47,160 lineage view means from where this 29025 19:36:47,160 --> 19:36:49,640 report is coming pin to a dashboard so 29026 19:36:49,640 --> 19:36:51,640 pin a dashboard here will pin the 29027 19:36:51,640 --> 19:36:53,440 complete page on the dashboard on the 29028 19:36:53,440 --> 19:36:55,320 individual visuals we do have a option 29029 19:36:55,320 --> 19:36:58,120 to pin them to the dashboard that we can 29030 19:36:58,120 --> 19:37:00,120 use to pin the individual visual on the 29031 19:37:00,120 --> 19:37:02,512 dashboard other than that we have option 29032 19:37:02,512 --> 19:37:04,320 view semantic model which we have 29033 19:37:04,320 --> 19:37:06,040 already seen it will open the santic 29034 19:37:06,040 --> 19:37:08,720 model and then there we can go ahead and 29035 19:37:08,720 --> 19:37:11,720 open the catic model again so means this 29036 19:37:11,720 --> 19:37:13,320 is going to led us to the first screen 29037 19:37:13,320 --> 19:37:14,600 of the semantic model then there is an 29038 19:37:14,600 --> 19:37:16,552 open semantic model after that we can go 29039 19:37:16,552 --> 19:37:19,232 ahead and edit that and as you have seen 29040 19:37:19,232 --> 19:37:21,192 we have enabled the option to edit it in 29041 19:37:21,192 --> 19:37:22,832 the powerbi service so we'll be able to 29042 19:37:22,832 --> 19:37:24,800 edit that now other than that in case 29043 19:37:24,800 --> 19:37:28,040 your organization have the f64 capacity 29044 19:37:28,040 --> 19:37:30,720 onwards or P1 capacity onwards you will 29045 19:37:30,720 --> 19:37:33,160 be able to use this co-pilot option to 29046 19:37:33,160 --> 19:37:35,192 ask various question both in the viewer 29047 19:37:35,192 --> 19:37:37,552 mode as well as in the edit mode and 29048 19:37:37,552 --> 19:37:39,120 then you have the bookmarks option you 29049 19:37:39,120 --> 19:37:41,512 can add the personal bookmarks or you 29050 19:37:41,512 --> 19:37:43,680 can click on the show more books marks 29051 19:37:43,680 --> 19:37:45,640 to see what all already existing 29052 19:37:45,640 --> 19:37:47,920 bookmarks are there so now what I've 29053 19:37:47,920 --> 19:37:49,760 done is I've covered basically most of 29054 19:37:49,760 --> 19:37:51,760 the options which you have in the 29055 19:37:51,760 --> 19:37:55,400 powerbi service report in the edit mode 29056 19:37:55,400 --> 19:37:57,400 as well as the viewer mode so you have 29057 19:37:57,400 --> 19:37:59,320 to go ahead and explore all these 29058 19:37:59,320 --> 19:38:01,320 options these option keep on changing 29059 19:38:01,320 --> 19:38:03,720 and they keep on increasing also as in 29060 19:38:03,720 --> 19:38:06,192 when we get new features so continue to 29061 19:38:06,192 --> 19:38:09,232 look towards what features are available 29062 19:38:09,232 --> 19:38:12,080 onto the release which is available at 29063 19:38:12,080 --> 19:38:14,872 at that particular moment of time now I 29064 19:38:14,872 --> 19:38:16,512 would like to create a dashboard 29065 19:38:16,512 --> 19:38:19,040 dashboard can only be created on powerbi 29066 19:38:19,040 --> 19:38:21,832 service remember powerbi report which we 29067 19:38:21,832 --> 19:38:24,640 created on the desktop is not the 29068 19:38:24,640 --> 19:38:27,400 dashboard in powerbi World dashboard is 29069 19:38:27,400 --> 19:38:29,232 something which we create on powerbi 29070 19:38:29,232 --> 19:38:31,320 service and to do that what I'm going to 29071 19:38:31,320 --> 19:38:33,400 do is I'm going to open my report which 29072 19:38:33,400 --> 19:38:35,552 I have recently published and in that 29073 19:38:35,552 --> 19:38:37,872 one I have pin icons and using those pin 29074 19:38:37,872 --> 19:38:40,080 icons I'm going to create my dashboard 29075 19:38:40,080 --> 19:38:42,800 remember powerbi dashboard cannot have 29076 19:38:42,800 --> 19:38:45,192 slicers unless we pin the complete page 29077 19:38:45,192 --> 19:38:47,280 so once we pin the complete page then 29078 19:38:47,280 --> 19:38:49,600 only we will have the slicers individual 29079 19:38:49,600 --> 19:38:51,920 visuals will not have slicer we cannot 29080 19:38:51,920 --> 19:38:54,720 pin the slicer and even if we pin the 29081 19:38:54,720 --> 19:38:57,680 complete page the slicer with that page 29082 19:38:57,680 --> 19:39:00,192 is going to impact the section in the 29083 19:39:00,192 --> 19:39:02,760 dashboard which is coming from that page 29084 19:39:02,760 --> 19:39:06,320 not the other visualization so remember 29085 19:39:06,320 --> 19:39:08,640 these difference between powerbi service 29086 19:39:08,640 --> 19:39:11,600 report and dashboard and take a call 29087 19:39:11,600 --> 19:39:12,872 whether you really want to create a 29088 19:39:12,872 --> 19:39:14,872 dashboard or you want to create a report 29089 19:39:14,872 --> 19:39:17,192 I'm back on powerbi service and let's go 29090 19:39:17,192 --> 19:39:20,280 to end to end to check the report has 29091 19:39:20,280 --> 19:39:23,000 opened let me go to the detailed page 29092 19:39:23,000 --> 19:39:25,000 and as you remember we have these three 29093 19:39:25,000 --> 19:39:27,280 dots on three dots we have this option P 29094 19:39:27,280 --> 19:39:30,000 to a dashboard that can pin the complete 29095 19:39:30,000 --> 19:39:31,920 page to the dashboard including the 29096 19:39:31,920 --> 19:39:34,832 slicers remember when in powerb service 29097 19:39:34,832 --> 19:39:36,920 dashboard you cannot add slicers so if 29098 19:39:36,920 --> 19:39:38,872 you go to the individual visuals if I go 29099 19:39:38,872 --> 19:39:41,552 to here on the main page if I go to this 29100 19:39:41,552 --> 19:39:44,040 visual you don't see a pin icon but in 29101 19:39:44,040 --> 19:39:45,920 this one you see a pin visual so pin 29102 19:39:45,920 --> 19:39:48,000 visual will add it to the powerbi 29103 19:39:48,000 --> 19:39:49,800 dashboard but powerbi dashboard cannot 29104 19:39:49,800 --> 19:39:51,552 have slicers you can't pin the slicers 29105 19:39:51,552 --> 19:39:53,232 so if you want the slicers you have to 29106 19:39:53,232 --> 19:39:55,160 pin the complete page so in this manner 29107 19:39:55,160 --> 19:39:57,000 you can pin the visuals to a dashboard 29108 19:39:57,000 --> 19:39:59,000 and create a powerbi service dashboard 29109 19:39:59,000 --> 19:40:00,720 you can pin the visuals from multiple 29110 19:40:00,720 --> 19:40:03,440 reports on powerbi service dashboard and 29111 19:40:03,440 --> 19:40:05,160 you can use that and instead of pinning 29112 19:40:05,160 --> 19:40:07,160 individual visual from the first page 29113 19:40:07,160 --> 19:40:10,232 I'll pin the complete dashboard and let 29114 19:40:10,232 --> 19:40:12,640 me give this dashboard as a new name is 29115 19:40:12,640 --> 19:40:15,920 main Dash Pin live so I have pinned this 29116 19:40:15,920 --> 19:40:17,552 it's giving me go to dashboard option 29117 19:40:17,552 --> 19:40:19,440 but I would like to pin a visual and 29118 19:40:19,440 --> 19:40:21,120 then we will go there then I go to the 29119 19:40:21,120 --> 19:40:22,960 detailed report and from there I'm going 29120 19:40:22,960 --> 19:40:26,040 pin this line visual main Dash as well 29121 19:40:26,040 --> 19:40:28,760 as I'll pin this P visual main Dash and 29122 19:40:28,760 --> 19:40:30,832 now I'll go to the dashboard now when I 29123 19:40:30,832 --> 19:40:32,600 click and go to the dashboard you can 29124 19:40:32,600 --> 19:40:34,872 see that I have my page as well as my 29125 19:40:34,872 --> 19:40:37,080 two visuals which are coming here I can 29126 19:40:37,080 --> 19:40:39,760 change a little bit of layout if I want 29127 19:40:39,760 --> 19:40:41,720 then I can ask certain questions here 29128 19:40:41,720 --> 19:40:44,360 within Q&A it will generate the Q&A I 29129 19:40:44,360 --> 19:40:47,440 can ask top customers by Citys Nets and 29130 19:40:47,440 --> 19:40:49,320 it will generate a visual so that is the 29131 19:40:49,320 --> 19:40:52,080 advantage of giving a dashboard to the 29132 19:40:52,080 --> 19:40:54,280 end user that they can ask questions and 29133 19:40:54,280 --> 19:40:55,720 using those questions they can get 29134 19:40:55,720 --> 19:40:57,600 additional answers if I want to edit 29135 19:40:57,600 --> 19:40:59,680 this dashboard I can edit I can 29136 19:40:59,680 --> 19:41:02,160 subscribe to this dashboard I can chat I 29137 19:41:02,160 --> 19:41:04,232 can comment on this dashboard by adding 29138 19:41:04,232 --> 19:41:06,280 additional comments here I can click on 29139 19:41:06,280 --> 19:41:08,552 any of the visual and analyze the data 29140 19:41:08,552 --> 19:41:10,872 now because I bought a complete page it 29141 19:41:10,872 --> 19:41:12,920 is doing the interactions also now in 29142 19:41:12,920 --> 19:41:14,640 the case of the single visual the moment 29143 19:41:14,640 --> 19:41:17,320 I click on that visual it will take me 29144 19:41:17,320 --> 19:41:19,832 back to my report let's look at the edit 29145 19:41:19,832 --> 19:41:22,080 mode you can add the tile dashboard 29146 19:41:22,080 --> 19:41:24,080 theme mobile layout these things you can 29147 19:41:24,080 --> 19:41:26,480 do with the dashboard now subscribe to 29148 19:41:26,480 --> 19:41:28,600 dashboard I can create a subscription 29149 19:41:28,600 --> 19:41:31,192 for dashboard to deliver to me at a 29150 19:41:31,192 --> 19:41:33,040 particular 29151 19:41:33,040 --> 19:41:35,640 time and on the right hand side if you 29152 19:41:35,640 --> 19:41:37,280 pay attention whatever reports and 29153 19:41:37,280 --> 19:41:39,000 dashboard we have open you're getting 29154 19:41:39,000 --> 19:41:40,920 the icon for that and you can close it 29155 19:41:40,920 --> 19:41:42,920 so I close the dashboard my report is 29156 19:41:42,920 --> 19:41:45,192 open I can close my report my data set 29157 19:41:45,192 --> 19:41:47,120 details is open I can close those data 29158 19:41:47,120 --> 19:41:49,552 set details once you are done with this 29159 19:41:49,552 --> 19:41:51,720 entire exercise of you know creating a 29160 19:41:51,720 --> 19:41:53,680 powerbi report and dashboard and 29161 19:41:53,680 --> 19:41:55,160 everything the next thing which you need 29162 19:41:55,160 --> 19:41:57,552 to do is schedule your data refresh now 29163 19:41:57,552 --> 19:41:59,160 to schedule your data refresh what you 29164 19:41:59,160 --> 19:42:00,800 have to do is you have to go to the 29165 19:42:00,800 --> 19:42:03,832 setting of your semantic model and then 29166 19:42:03,832 --> 19:42:05,960 there you have option for scheduling the 29167 19:42:05,960 --> 19:42:08,192 refresh cementing model is available in 29168 19:42:08,192 --> 19:42:10,040 your workspace and using the three dots 29169 19:42:10,040 --> 19:42:11,960 you can go to the settings and there 29170 19:42:11,960 --> 19:42:13,400 from there you will be able to schedule 29171 19:42:13,400 --> 19:42:17,080 the refresh also in case you are using 29172 19:42:17,080 --> 19:42:20,600 the on premise data then there is an 29173 19:42:20,600 --> 19:42:23,872 option to configure your on promise 29174 19:42:23,872 --> 19:42:26,720 Gateway settings and connection settings 29175 19:42:26,720 --> 19:42:29,280 you can edit as per requirement inside 29176 19:42:29,280 --> 19:42:31,872 the semantic model settings only so 29177 19:42:31,872 --> 19:42:35,440 let's jump onto the workspace once again 29178 19:42:35,440 --> 19:42:38,400 and try to refresh the data set and see 29179 19:42:38,400 --> 19:42:42,872 what all things we can do in my case I 29180 19:42:42,872 --> 19:42:46,080 have a online data so I would not 29181 19:42:46,080 --> 19:42:47,800 require on promise Gateway simply 29182 19:42:47,800 --> 19:42:50,680 refresh should be able to refresh my 29183 19:42:50,680 --> 19:42:53,000 data and also I can schedule it in my 29184 19:42:53,000 --> 19:42:54,600 case because the data is static there is 29185 19:42:54,600 --> 19:42:56,720 no benefit of scheduling it but in real 29186 19:42:56,720 --> 19:42:58,512 time scenario you have to schedule a 29187 19:42:58,512 --> 19:43:02,120 refresh now in case of pro you can get 29188 19:43:02,120 --> 19:43:04,400 refresh as many as eight times in a day 29189 19:43:04,400 --> 19:43:06,552 in case of PPU and premium you will be 29190 19:43:06,552 --> 19:43:09,800 able to schedule refresh 48 times in a 29191 19:43:09,800 --> 19:43:12,760 day if if you want near realtime data 29192 19:43:12,760 --> 19:43:15,480 then you have to choose for direct query 29193 19:43:15,480 --> 19:43:18,040 mode I can go back to my workspace which 29194 19:43:18,040 --> 19:43:20,232 is already open and here what you can do 29195 19:43:20,232 --> 19:43:22,360 because it's a online version I can 29196 19:43:22,360 --> 19:43:24,400 actually refresh my data set to bring in 29197 19:43:24,400 --> 19:43:26,872 the data schedule refresh has been 29198 19:43:26,872 --> 19:43:29,232 disabled refresh as failed let's look 29199 19:43:29,232 --> 19:43:31,120 white as failed so first of all let's go 29200 19:43:31,120 --> 19:43:32,920 to the settings and check out everything 29201 19:43:32,920 --> 19:43:34,832 is fine here so I go to the setting here 29202 19:43:34,832 --> 19:43:37,080 when I scroll down and go to data set 29203 19:43:37,080 --> 19:43:38,800 setting there is error here edit 29204 19:43:38,800 --> 19:43:41,440 credentials and we will use anonymous 29205 19:43:41,440 --> 19:43:43,552 organizational and we'll say sign in 29206 19:43:43,552 --> 19:43:45,512 let's see does it work out yes it has 29207 19:43:45,512 --> 19:43:48,192 worked now let's go back again and see 29208 19:43:48,192 --> 19:43:49,920 do we require a permission or this time 29209 19:43:49,920 --> 19:43:52,040 it's going to refresh it's refreshing 29210 19:43:52,040 --> 19:43:53,800 right now if you see and to check the 29211 19:43:53,800 --> 19:43:55,360 refresh history you can go to the 29212 19:43:55,360 --> 19:43:57,232 settings again three dot settings 29213 19:43:57,232 --> 19:43:59,480 refresh history it will show you the 29214 19:43:59,480 --> 19:44:01,872 refresh is in progress and once it is 29215 19:44:01,872 --> 19:44:03,400 refreshed it will give you a message 29216 19:44:03,400 --> 19:44:04,872 that refresh is 29217 19:44:04,872 --> 19:44:07,680 completed and the refresh has completed 29218 19:44:07,680 --> 19:44:09,800 while we were checking that out and new 29219 19:44:09,800 --> 19:44:11,960 data has come so in this manner you can 29220 19:44:11,960 --> 19:44:14,280 refresh the data but before you refresh 29221 19:44:14,280 --> 19:44:16,832 the data what you have to do is because 29222 19:44:16,832 --> 19:44:19,872 I was only having up one data source and 29223 19:44:19,872 --> 19:44:22,280 my data source was online data source it 29224 19:44:22,280 --> 19:44:24,600 does not require Gateway otherwise you 29225 19:44:24,600 --> 19:44:26,512 have to configure on promise Gateway 29226 19:44:26,512 --> 19:44:28,320 right now it is the cloud connection but 29227 19:44:28,320 --> 19:44:30,512 you might have to configure on promise 29228 19:44:30,512 --> 19:44:31,960 Gateway if you're using on promise 29229 19:44:31,960 --> 19:44:33,600 sources once you configure your on 29230 19:44:33,600 --> 19:44:35,720 promise Gateway you have to configure 29231 19:44:35,720 --> 19:44:37,872 your data source credentials after doing 29232 19:44:37,872 --> 19:44:39,512 that if there are certain parameters 29233 19:44:39,512 --> 19:44:41,872 required M query parameter if you used 29234 19:44:41,872 --> 19:44:44,480 we can to set those query cacheing in 29235 19:44:44,480 --> 19:44:46,400 case you want so you can turn on the 29236 19:44:46,400 --> 19:44:48,160 query caching refresh this is the 29237 19:44:48,160 --> 19:44:50,192 scheduled refresh I can schedule it to 29238 19:44:50,192 --> 19:44:52,400 refresh daily on a particular time so 29239 19:44:52,400 --> 19:44:54,920 once I click on on I need to add a time 29240 19:44:54,920 --> 19:44:57,720 and then I can apply and now it will get 29241 19:44:57,720 --> 19:45:00,000 refresh daily at 1:00 a.m. right now I'm 29242 19:45:00,000 --> 19:45:02,160 disabling it because I don't want it to 29243 19:45:02,160 --> 19:45:04,512 happen server settings this is my server 29244 19:45:04,512 --> 19:45:07,480 data connections then Q&A features all 29245 19:45:07,480 --> 19:45:09,720 these are data settings which we can 29246 19:45:09,720 --> 19:45:11,832 change let me go back to my by workspace 29247 19:45:11,832 --> 19:45:13,920 so now you know how to refresh your data 29248 19:45:13,920 --> 19:45:16,192 set also now whatever Gateway and 29249 19:45:16,192 --> 19:45:18,440 connections we have where do we monitor 29250 19:45:18,440 --> 19:45:20,832 those so in the setting icon you can go 29251 19:45:20,832 --> 19:45:23,760 to manage gateways and connection and 29252 19:45:23,760 --> 19:45:25,512 here you will be able to see all your 29253 19:45:25,512 --> 19:45:27,552 connection under the connection if you 29254 19:45:27,552 --> 19:45:29,232 have set up on promise Gateway you will 29255 19:45:29,232 --> 19:45:31,080 be able to see on promise Gateway in the 29256 19:45:31,080 --> 19:45:33,192 past I have set up a on promise Gateway 29257 19:45:33,192 --> 19:45:35,160 that you are seeing if there are virtual 29258 19:45:35,160 --> 19:45:36,920 Network gateways you will be able to see 29259 19:45:36,920 --> 19:45:38,640 it here so in this manner you will be 29260 19:45:38,640 --> 19:45:40,400 able to see your connection details and 29261 19:45:40,400 --> 19:45:42,832 Gateway 29262 19:45:45,232 --> 19:45:47,000 now let's quickly understand how can we 29263 19:45:47,000 --> 19:45:50,160 create a allog together new report on 29264 19:45:50,160 --> 19:45:52,192 powerbi service using a data set so 29265 19:45:52,192 --> 19:45:53,760 there is an option on the Home tab or 29266 19:45:53,760 --> 19:45:56,160 there is a create button here on the 29267 19:45:56,160 --> 19:45:58,680 left hand side top once you click you 29268 19:45:58,680 --> 19:46:00,552 can paste data manually or you can pick 29269 19:46:00,552 --> 19:46:02,160 up a publish data set I'll pick up a 29270 19:46:02,160 --> 19:46:04,680 publish data 29271 19:46:04,680 --> 19:46:09,160 set end to end autocreate report or 29272 19:46:09,160 --> 19:46:11,320 create report from blank you can use 29273 19:46:11,320 --> 19:46:12,832 autocreate report and powerbi will 29274 19:46:12,832 --> 19:46:15,000 create a report for you I'll create a 29275 19:46:15,000 --> 19:46:17,400 blank report just to explain it to you 29276 19:46:17,400 --> 19:46:19,440 and I am on the very similar UI what saw 29277 19:46:19,440 --> 19:46:21,760 in the 29278 19:46:21,760 --> 19:46:25,680 edit report now here I can quickly 29279 19:46:25,680 --> 19:46:27,320 create a visual I'll just go to create 29280 19:46:27,320 --> 19:46:31,552 one visual for giving an 29281 19:46:33,040 --> 19:46:35,480 example I have created a visual and now 29282 19:46:35,480 --> 19:46:37,600 I can save it so when I save it for the 29283 19:46:37,600 --> 19:46:39,480 first time it will ask me a 29284 19:46:39,480 --> 19:46:43,800 name and let let me call it service 29285 19:46:47,280 --> 19:46:50,512 report and click on Save the moment I 29286 19:46:50,512 --> 19:46:52,680 save it for the first time it will take 29287 19:46:52,680 --> 19:46:55,232 me to the reading mode after that when I 29288 19:46:55,232 --> 19:46:57,320 go to the edit mode and now save it it 29289 19:46:57,320 --> 19:46:59,640 will remain in the edit mode so in this 29290 19:46:59,640 --> 19:47:03,320 manner you can edit your reports or 29291 19:47:03,320 --> 19:47:07,720 create new report on the powerbi 29292 19:47:08,192 --> 19:47:11,440 service service we have a version of 29293 19:47:11,440 --> 19:47:14,400 power query online where we can 29294 19:47:14,400 --> 19:47:17,832 actually transform our data centrally 29295 19:47:17,832 --> 19:47:19,640 that is known as data 29296 19:47:19,640 --> 19:47:22,440 flow now the reason why we have data 29297 19:47:22,440 --> 19:47:24,760 flow here on the powerbi services 29298 19:47:24,760 --> 19:47:27,600 basically what happens sometime multiple 29299 19:47:27,600 --> 19:47:31,920 teams use similar kind of power query 29300 19:47:31,920 --> 19:47:33,960 transformation and that is why we want 29301 19:47:33,960 --> 19:47:35,720 to centralize those transformation that 29302 19:47:35,720 --> 19:47:38,680 is why on powerbi service we can create 29303 19:47:38,680 --> 19:47:41,760 data flow data flow can centralize all 29304 19:47:41,760 --> 19:47:42,832 these 29305 19:47:42,832 --> 19:47:45,232 transformation in the fabric world we 29306 19:47:45,232 --> 19:47:47,832 also call it data flow gen one now data 29307 19:47:47,832 --> 19:47:51,040 flow are for data prep data cleaning and 29308 19:47:51,040 --> 19:47:53,232 data transformation you can use data 29309 19:47:53,232 --> 19:47:55,120 flow just like you use power query on 29310 19:47:55,120 --> 19:47:57,000 the desktop once you do the 29311 19:47:57,000 --> 19:47:59,360 transformation you can use it as a 29312 19:47:59,360 --> 19:48:01,760 source on power ba desktop to create 29313 19:48:01,760 --> 19:48:04,872 your new report in a Ideal World we will 29314 19:48:04,872 --> 19:48:07,552 create a data flow for our Dimensions 29315 19:48:07,552 --> 19:48:09,640 where we need lot of transformation or a 29316 19:48:09,640 --> 19:48:11,192 small table where we need need a lot of 29317 19:48:11,192 --> 19:48:13,000 transformation we can centralize all 29318 19:48:13,000 --> 19:48:16,040 those transformation in the data flow so 29319 19:48:16,040 --> 19:48:18,360 we can have a dimension in the data flow 29320 19:48:18,360 --> 19:48:20,872 then we will use this data flow along 29321 19:48:20,872 --> 19:48:23,192 with our facts directly coming from the 29322 19:48:23,192 --> 19:48:25,832 sources into a data set we will publish 29323 19:48:25,832 --> 19:48:28,040 that data set which is a powerb desktop 29324 19:48:28,040 --> 19:48:30,080 file we'll publish that data set without 29325 19:48:30,080 --> 19:48:32,400 creating a visualization and once that 29326 19:48:32,400 --> 19:48:34,440 data set is published we'll use it again 29327 19:48:34,440 --> 19:48:37,640 and would create a visual file I'll just 29328 19:48:37,640 --> 19:48:39,640 go to give you how do you create a data 29329 19:48:39,640 --> 19:48:43,320 set so press new and data set you will 29330 19:48:43,320 --> 19:48:46,280 be landed on powerbi data set here you 29331 19:48:46,280 --> 19:48:48,400 can define a new table link table from 29332 19:48:48,400 --> 19:48:50,800 other data flows import mode means you 29333 19:48:50,800 --> 19:48:53,040 can import a model attach common data 29334 19:48:53,040 --> 19:48:56,400 model folder okay so I'll use this add a 29335 19:48:56,400 --> 19:48:58,760 new table it will L me to the UI to 29336 19:48:58,760 --> 19:49:01,600 bring in the data and here I will use 29337 19:49:01,600 --> 19:49:05,000 this web API in the web API I will bring 29338 19:49:05,000 --> 19:49:08,040 in my data from GitHub so let me go to 29339 19:49:08,040 --> 19:49:08,720 the 29340 19:49:08,720 --> 19:49:12,040 GitHub and bring in my file says data 29341 19:49:12,040 --> 19:49:15,120 used in video I click on that right 29342 19:49:15,120 --> 19:49:17,552 click on Raw copy link go back to the 29343 19:49:17,552 --> 19:49:20,080 powerbi service give this 29344 19:49:20,080 --> 19:49:22,760 URL I have already used it so it is not 29345 19:49:22,760 --> 19:49:26,640 asking for any further details press 29346 19:49:26,640 --> 19:49:29,512 next and I can add all of 29347 19:49:29,512 --> 19:49:32,280 them and then I can click on transform 29348 19:49:32,280 --> 19:49:34,960 data it it will add the data to the 29349 19:49:34,960 --> 19:49:38,120 power bi data flow and here I can do the 29350 19:49:38,120 --> 19:49:40,720 transformation clean data prep 29351 19:49:40,720 --> 19:49:42,680 everything now if you remember in the 29352 19:49:42,680 --> 19:49:45,192 sales table I added some column index 29353 19:49:45,192 --> 19:49:46,920 the same columns could have been added 29354 19:49:46,920 --> 19:49:49,800 to the powerbi data flow or power query 29355 19:49:49,800 --> 19:49:52,640 also I can go here and can use add 29356 19:49:52,640 --> 19:49:55,640 column and can add a custom column let's 29357 19:49:55,640 --> 19:49:57,960 call it 29358 19:49:57,960 --> 19:50:01,040 gross and gross is nothing but quantity 29359 19:50:01,040 --> 19:50:04,320 multiply by price and I can give it as a 29360 19:50:04,320 --> 19:50:07,080 data type decimal number okay in the 29361 19:50:07,080 --> 19:50:09,760 same manner I can use other columns and 29362 19:50:09,760 --> 19:50:12,400 then I will be able to complete my 29363 19:50:12,400 --> 19:50:15,160 transformation once I'm done with all my 29364 19:50:15,160 --> 19:50:17,960 transformation I can go ahead and use 29365 19:50:17,960 --> 19:50:20,800 Save and close to save the all the data 29366 19:50:20,800 --> 19:50:22,800 in my data 29367 19:50:22,800 --> 19:50:26,440 flow it's going to check and it will ask 29368 19:50:26,440 --> 19:50:29,480 for a name I'll will call it sales data 29369 19:50:29,480 --> 19:50:32,232 flow and I'll give the same 29370 19:50:32,232 --> 19:50:34,800 description I'll save it how it is 29371 19:50:34,800 --> 19:50:37,040 really important that the data flow by 29372 19:50:37,040 --> 19:50:39,480 default doesn't load data so the very 29373 19:50:39,480 --> 19:50:43,360 first time you need to refresh it now so 29374 19:50:43,360 --> 19:50:45,920 you have to click refresh now now 29375 19:50:45,920 --> 19:50:48,552 typically on D Gen 2 which is on 29376 19:50:48,552 --> 19:50:51,160 Microsoft fabric Auto refresh kick off 29377 19:50:51,160 --> 19:50:53,120 immediately after publish but this 29378 19:50:53,120 --> 19:50:56,080 doesn't happen in data flow gen one we 29379 19:50:56,080 --> 19:50:58,600 have to manually kick it on every time 29380 19:50:58,600 --> 19:51:00,760 you do changes you need to do a 29381 19:51:00,760 --> 19:51:03,960 refresh you can close it and when you 29382 19:51:03,960 --> 19:51:06,640 come here on your workspace you should 29383 19:51:06,640 --> 19:51:09,760 be able to see this data flow and you 29384 19:51:09,760 --> 19:51:12,400 can go to the refresh history to check 29385 19:51:12,400 --> 19:51:14,640 if the data is loaded or not in our case 29386 19:51:14,640 --> 19:51:17,320 the data is already loaded here now what 29387 19:51:17,320 --> 19:51:19,280 we need to do is we need to go to the 29388 19:51:19,280 --> 19:51:23,920 powerb desktop and use this data 29389 19:51:23,920 --> 19:51:27,480 flow so I'll open up a new 29390 19:51:27,480 --> 19:51:32,760 file on powerb desktop I'll open a new 29391 19:51:33,512 --> 19:51:36,600 file the new file is opened and here now 29392 19:51:36,600 --> 19:51:39,680 I want to bring in data from powerbi 29393 19:51:39,680 --> 19:51:43,440 data flow so I'll use get data more and 29394 19:51:43,440 --> 19:51:46,080 there I need to go to data flow I can 29395 19:51:46,080 --> 19:51:48,720 search for 29396 19:51:48,760 --> 19:51:52,232 that I got option for data flow power ba 29397 19:51:52,232 --> 19:51:55,600 data flow Legacy data 29398 19:51:55,640 --> 19:51:57,800 flows so they are coming from different 29399 19:51:57,800 --> 19:52:00,872 different places so let's use powerbi 29400 19:52:00,872 --> 19:52:04,480 data flu Legacy and use 29401 19:52:06,320 --> 19:52:11,232 connect let me try to sign in 29402 19:52:11,872 --> 19:52:14,512 let me use 29403 19:52:16,080 --> 19:52:19,232 connect and in the end to end I able to 29404 19:52:19,232 --> 19:52:21,760 get my data flow from here I can pick up 29405 19:52:21,760 --> 19:52:25,480 all the four tables and load the data 29406 19:52:25,480 --> 19:52:27,360 from here I have to do all the steps 29407 19:52:27,360 --> 19:52:29,552 which I've done during this exercise 29408 19:52:29,552 --> 19:52:33,552 creating the model measures all the 29409 19:52:33,552 --> 19:52:36,440 calculations field parameters 29410 19:52:36,440 --> 19:52:39,600 calculation group Etc and then finally 29411 19:52:39,600 --> 19:52:41,920 publish this and once I publish this 29412 19:52:41,920 --> 19:52:44,600 file I'll get a data set and I can use 29413 19:52:44,600 --> 19:52:46,440 that data set again to create my 29414 19:52:46,440 --> 19:52:48,360 visualization as you are already aware 29415 19:52:48,360 --> 19:52:50,760 of all those steps you can try that out 29416 19:52:50,760 --> 19:52:54,960 I will simply share it as a new and to 29417 19:52:54,960 --> 19:52:56,512 and 29418 19:52:56,512 --> 19:53:00,160 file in this manner you can use powerbi 29419 19:53:00,160 --> 19:53:02,640 data flow to centralize all your 29420 19:53:02,640 --> 19:53:05,280 transformation data preparation and data 29421 19:53:05,280 --> 19:53:08,280 cleaning 29422 19:53:10,960 --> 19:53:14,192 in powerbi workspace we have app this 29423 19:53:14,192 --> 19:53:16,480 app has a really important role when we 29424 19:53:16,480 --> 19:53:18,680 want to share the content with the users 29425 19:53:18,680 --> 19:53:19,920 and we don't want to give these 29426 19:53:19,920 --> 19:53:22,280 workspaces kind of a look to them so 29427 19:53:22,280 --> 19:53:24,040 what we typically prefer is we give them 29428 19:53:24,040 --> 19:53:27,040 an app access so what we going to do is 29429 19:53:27,040 --> 19:53:29,280 we are going to use this create 29430 19:53:29,280 --> 19:53:32,512 app and we can give it as a name let's 29431 19:53:32,512 --> 19:53:36,600 say bi app can give a 29432 19:53:36,600 --> 19:53:38,760 description we can choose a color for 29433 19:53:38,760 --> 19:53:42,232 our app and and we can upload a logo for 29434 19:53:42,232 --> 19:53:44,800 that then we can go to the content and 29435 19:53:44,800 --> 19:53:46,640 add a 29436 19:53:46,640 --> 19:53:49,040 Content so we can add the reports which 29437 19:53:49,040 --> 19:53:52,832 we have end to end and service report 29438 19:53:52,832 --> 19:53:54,120 okay all these reports we can add 29439 19:53:54,120 --> 19:53:55,600 multiple reports we have so we can add 29440 19:53:55,600 --> 19:53:56,440 those 29441 19:53:56,440 --> 19:53:58,872 reports now inside each report if there 29442 19:53:58,872 --> 19:54:00,720 are multiple Pages it's going to show 29443 19:54:00,720 --> 19:54:03,440 those pages and we can see those pages 29444 19:54:03,440 --> 19:54:05,480 so we have multiple content which 29445 19:54:05,480 --> 19:54:08,800 is now how do you differentiate content 29446 19:54:08,800 --> 19:54:10,680 for different people so when you go to 29447 19:54:10,680 --> 19:54:13,760 the audience actually you have these 29448 19:54:13,760 --> 19:54:16,080 show hiide buttons using these show 29449 19:54:16,080 --> 19:54:17,512 hiide buttons you can create different 29450 19:54:17,512 --> 19:54:20,600 kind of audiences so you can say new 29451 19:54:20,600 --> 19:54:23,280 audience you created a new audience now 29452 19:54:23,280 --> 19:54:27,192 see this is bi app this is new audience 29453 19:54:27,192 --> 19:54:31,232 now this new audience I can refer as 29454 19:54:31,232 --> 19:54:33,600 let's say service only I want to give a 29455 19:54:33,600 --> 19:54:34,760 service 29456 19:54:34,760 --> 19:54:37,160 report so I'll give a service report to 29457 19:54:37,160 --> 19:54:39,640 that audience and I can hide other 29458 19:54:39,640 --> 19:54:41,512 things let's say I can hide these only 29459 19:54:41,512 --> 19:54:44,232 will have service report then I can give 29460 19:54:44,232 --> 19:54:46,232 the users who will be audience of 29461 19:54:46,232 --> 19:54:48,512 service report in powerbi app I can give 29462 19:54:48,512 --> 19:54:51,000 the audience who will be audience of B 29463 19:54:51,000 --> 19:54:52,232 app if you want to give it to entire 29464 19:54:52,232 --> 19:54:53,552 organization you can choose entire 29465 19:54:53,552 --> 19:54:55,120 organization but there's no benefit of 29466 19:54:55,120 --> 19:54:56,512 creating multiple audience if you are 29467 19:54:56,512 --> 19:54:58,040 giving this report to entire 29468 19:54:58,040 --> 19:54:59,960 organization now there are Advanced 29469 19:54:59,960 --> 19:55:02,120 option like allow people to share the 29470 19:55:02,120 --> 19:55:04,640 data set in this app audience allow 29471 19:55:04,640 --> 19:55:06,192 people to build the content with this 29472 19:55:06,192 --> 19:55:08,552 data set in the app audience so you can 29473 19:55:08,552 --> 19:55:10,400 give those permission as per requ 29474 19:55:10,400 --> 19:55:12,640 requirement usually what we do is we 29475 19:55:12,640 --> 19:55:14,800 assign it to users or to the emailed 29476 19:55:14,800 --> 19:55:17,600 enabled list and then finally after we 29477 19:55:17,600 --> 19:55:19,760 decide our audience decide the reports 29478 19:55:19,760 --> 19:55:22,512 so in this workspace I can have n number 29479 19:55:22,512 --> 19:55:24,320 of reports out of those reports I can 29480 19:55:24,320 --> 19:55:26,280 decide which I want to add in app and 29481 19:55:26,280 --> 19:55:28,280 out of those reports I can decide which 29482 19:55:28,280 --> 19:55:29,920 reports will go to which audience so 29483 19:55:29,920 --> 19:55:31,680 once I'm done with that I can publish 29484 19:55:31,680 --> 19:55:33,400 this app and this will be shared with 29485 19:55:33,400 --> 19:55:36,080 users in the content I can add some 29486 19:55:36,080 --> 19:55:38,040 headers sections and all those I can 29487 19:55:38,040 --> 19:55:39,832 divide these reports inside the category 29488 19:55:39,832 --> 19:55:42,360 and all those I can do so I can create 29489 19:55:42,360 --> 19:55:44,832 different sections also so let me 29490 19:55:44,832 --> 19:55:48,360 finally publish this app and it will be 29491 19:55:48,360 --> 19:55:50,040 published it will show a URL which you 29492 19:55:50,040 --> 19:55:52,960 can copy or you can click on go to app 29493 19:55:52,960 --> 19:55:55,400 you can share this URL with the users 29494 19:55:55,400 --> 19:55:57,960 and this will now open powerbi Service 29495 19:55:57,960 --> 19:56:00,232 app and you can see with the chosen 29496 19:56:00,232 --> 19:56:02,800 color we are seeing the app and this is 29497 19:56:02,800 --> 19:56:04,320 the better way to give it to the end 29498 19:56:04,320 --> 19:56:06,192 users they can have access to multiple 29499 19:56:06,192 --> 19:56:08,480 reports at one place and we don't have 29500 19:56:08,480 --> 19:56:10,960 to share each and every report they have 29501 19:56:10,960 --> 19:56:13,920 very similar options what we had in the 29502 19:56:13,920 --> 19:56:15,872 powerbi service so they have print this 29503 19:56:15,872 --> 19:56:18,552 page embed report QR code 29504 19:56:18,552 --> 19:56:22,872 share export and remember all these are 29505 19:56:22,872 --> 19:56:25,800 controlled from the permission what we 29506 19:56:25,800 --> 19:56:27,800 have given at the tenant level so in 29507 19:56:27,800 --> 19:56:32,232 this manner you can create and share an 29508 19:56:33,160 --> 19:56:35,360 app if you remember when we were 29509 19:56:35,360 --> 19:56:38,040 analyzing the data on powerbi service we 29510 19:56:38,040 --> 19:56:39,920 have downloaded one Excel for analyzing 29511 19:56:39,920 --> 19:56:42,480 EX ex this is the same Excel I have 29512 19:56:42,480 --> 19:56:45,552 opened up and also enabled the content 29513 19:56:45,552 --> 19:56:48,800 and I'm getting now all my data which I 29514 19:56:48,800 --> 19:56:51,232 can analyze here and here also I can 29515 19:56:51,232 --> 19:56:53,192 create a pyot table you can already see 29516 19:56:53,192 --> 19:56:56,000 there is enablement of pyot table H so I 29517 19:56:56,000 --> 19:56:58,920 can go here and choose certain things 29518 19:56:58,920 --> 19:57:00,552 let's say I can bring in brand on the 29519 19:57:00,552 --> 19:57:02,760 row and then I can bring in certain 29520 19:57:02,760 --> 19:57:05,280 majors for 29521 19:57:05,280 --> 19:57:08,480 analysis and I can start my analysis in 29522 19:57:08,480 --> 19:57:10,552 this manner if you are a Excel user you 29523 19:57:10,552 --> 19:57:13,080 still like to be an Excel user but you 29524 19:57:13,080 --> 19:57:16,120 don't want to you know download the data 29525 19:57:16,120 --> 19:57:17,920 and analyze it you can simply connect to 29526 19:57:17,920 --> 19:57:19,320 this data set you need to have 29527 19:57:19,320 --> 19:57:21,480 permission to for that and once you have 29528 19:57:21,480 --> 19:57:23,400 permission you can do that it is not 29529 19:57:23,400 --> 19:57:25,600 that you can always have to do analyze 29530 19:57:25,600 --> 19:57:28,280 in Excel you can go to the data and in 29531 19:57:28,280 --> 19:57:30,360 the versions depending on what version 29532 19:57:30,360 --> 19:57:33,040 you have inside the get data you do have 29533 19:57:33,040 --> 19:57:36,040 option to connect Power Platform and 29534 19:57:36,040 --> 19:57:38,680 there you can connect with powerbi and 29535 19:57:38,680 --> 19:57:40,832 you can again create similar kind of 29536 19:57:40,832 --> 19:57:42,760 visualization so you can initiate 29537 19:57:42,760 --> 19:57:45,192 process from here also so now I can save 29538 19:57:45,192 --> 19:57:48,000 this and keep 29539 19:57:48,080 --> 19:57:50,552 it another thing which we have done is 29540 19:57:50,552 --> 19:57:52,960 we have downloaded this PowerPoint so as 29541 19:57:52,960 --> 19:57:55,040 you can see this PowerPoint has been 29542 19:57:55,040 --> 19:57:57,440 downloaded it has been created as 29543 19:57:57,440 --> 19:58:00,320 image so what we can do here is we can 29544 19:58:00,320 --> 19:58:02,512 add a new content and try to use the 29545 19:58:02,512 --> 19:58:05,080 powerbi plugin so we have a powerbi 29546 19:58:05,080 --> 19:58:08,000 plugin to connect live and get the data 29547 19:58:08,000 --> 19:58:10,512 from powerbi directly so I'll add a new 29548 19:58:10,512 --> 19:58:13,360 slide here a new blank slide and inside 29549 19:58:13,360 --> 19:58:15,320 that new slide let me add this powerb 29550 19:58:15,320 --> 19:58:17,000 plugin in the newer version which is by 29551 19:58:17,000 --> 19:58:18,600 default available in the older version 29552 19:58:18,600 --> 19:58:20,480 you can go ahead and add it from the 29553 19:58:20,480 --> 19:58:22,552 adding now it needs a URL to get this 29554 19:58:22,552 --> 19:58:25,280 URL I need to go to the powerbi service 29555 19:58:25,280 --> 19:58:27,872 report and in the powerbi service report 29556 19:58:27,872 --> 19:58:29,600 this is the report I have which is right 29557 19:58:29,600 --> 19:58:33,232 now open so I can go to share copy 29558 19:58:33,232 --> 19:58:36,552 link copy this link come back and paste 29559 19:58:36,552 --> 19:58:40,600 it inside our PowerPoint 29560 19:58:41,192 --> 19:58:44,800 click on insert and this is inserted now 29561 19:58:44,800 --> 19:58:47,600 into the PowerPoint and if you go here 29562 19:58:47,600 --> 19:58:49,680 in the data option you have the refresh 29563 19:58:49,680 --> 19:58:52,000 option you can get the new data you have 29564 19:58:52,000 --> 19:58:54,192 the Data Insights you have filter 29565 19:58:54,192 --> 19:58:56,040 section you can filter the data you can 29566 19:58:56,040 --> 19:58:57,720 hide the filter section you can enable 29567 19:58:57,720 --> 19:58:59,552 the filter section there are few more 29568 19:58:59,552 --> 19:59:02,800 options like clear data learn then 29569 19:59:02,800 --> 19:59:04,832 outline all these options are available 29570 19:59:04,832 --> 19:59:06,320 so basically you can connect live you 29571 19:59:06,320 --> 19:59:08,160 don't need images now when I downloaded 29572 19:59:08,160 --> 19:59:10,320 it came with images now I can have a 29573 19:59:10,320 --> 19:59:12,920 PowerPoint with the live connection and 29574 19:59:12,920 --> 19:59:14,800 in that one I can embed the my 29575 19:59:14,800 --> 19:59:16,832 visualization and I don't need to go 29576 19:59:16,832 --> 19:59:18,800 back to powerb service while doing the 29577 19:59:18,800 --> 19:59:20,832 presentation itself I can slice and dice 29578 19:59:20,832 --> 19:59:22,400 the data so let's look at this first 29579 19:59:22,400 --> 19:59:24,120 page now it is a static image I can't 29580 19:59:24,120 --> 19:59:26,600 slice and dice isn't it but if I go 29581 19:59:26,600 --> 19:59:29,400 ahead and add this page let me bring in 29582 19:59:29,400 --> 19:59:32,040 that particular page so close this go to 29583 19:59:32,040 --> 19:59:36,320 the main page share copy link copy copy 29584 19:59:36,320 --> 19:59:38,760 this let's go back to the PowerPoint add 29585 19:59:38,760 --> 19:59:41,760 the power VI plugin give it a space 29586 19:59:41,760 --> 19:59:45,192 paste this URL insert and now I have my 29587 19:59:45,192 --> 19:59:47,640 page is it working look at this I 29588 19:59:47,640 --> 19:59:50,440 analyzing data here on 29589 19:59:50,440 --> 19:59:53,512 PowerPoint I'm no more going back to 29590 19:59:53,512 --> 19:59:56,040 Power I can go here filter the data here 29591 19:59:56,040 --> 19:59:57,960 the data is reflect changing based on 29592 19:59:57,960 --> 20:00:00,080 interactions I can go here and select 29593 20:00:00,080 --> 20:00:02,760 States whatever I 29594 20:00:02,760 --> 20:00:06,192 like and the data will keep on filtering 29595 20:00:06,192 --> 20:00:09,080 so in this manner I can have a dynamic 29596 20:00:09,080 --> 20:00:11,280 slide on on my PowerPoint and I can 29597 20:00:11,280 --> 20:00:13,640 analyze the data directly from powerbi 29598 20:00:13,640 --> 20:00:15,872 service page which is embedded here and 29599 20:00:15,872 --> 20:00:17,320 to give more space you can hide the 29600 20:00:17,320 --> 20:00:19,160 filters as I shown you you don't need 29601 20:00:19,160 --> 20:00:20,552 that section what happens when you're 29602 20:00:20,552 --> 20:00:21,960 doing the presentation you have lot of 29603 20:00:21,960 --> 20:00:23,680 content but your power ba content is 29604 20:00:23,680 --> 20:00:25,160 static now you can make that content 29605 20:00:25,160 --> 20:00:27,040 that Dynamic by using this powerb 29606 20:00:27,040 --> 20:00:28,832 plug-in in PowerPoint instead of 29607 20:00:28,832 --> 20:00:30,600 downloading this static image you can 29608 20:00:30,600 --> 20:00:33,400 use this and create Dynamic slides on 29609 20:00:33,400 --> 20:00:35,600 PowerPoint friends you have reached to 29610 20:00:35,600 --> 20:00:38,080 the end of this video you have covered 29611 20:00:38,080 --> 20:00:41,960 20 hour of detailed video along with me 29612 20:00:41,960 --> 20:00:45,832 in learn powerbi full course I'm hopeful 29613 20:00:45,832 --> 20:00:47,960 this video would have enhanced your 29614 20:00:47,960 --> 20:00:50,800 powerbi knowledge to the next level and 29615 20:00:50,800 --> 20:00:52,832 now you are a pro in 29616 20:00:52,832 --> 20:00:57,600 powerbi powerbi is a journey it's just a 29617 20:00:57,600 --> 20:01:00,080 beginning friends this is just a 29618 20:01:00,080 --> 20:01:03,280 beginning with this video you are now 29619 20:01:03,280 --> 20:01:06,600 appr pro powerbi professional to become 29620 20:01:06,600 --> 20:01:10,000 expert take full advantage of 600 29621 20:01:10,000 --> 20:01:13,552 another videos on my channel also go to 29622 20:01:13,552 --> 20:01:17,232 community. powerbi.com and try to solve 29623 20:01:17,232 --> 20:01:19,360 some of the problems by solving 29624 20:01:19,360 --> 20:01:21,800 Community problem and providing solution 29625 20:01:21,800 --> 20:01:24,800 is the best way to take your powerbi 29626 20:01:24,800 --> 20:01:27,040 journey to the next level this is the 29627 20:01:27,040 --> 20:01:30,872 same thing I have done for years serving 29628 20:01:30,872 --> 20:01:34,040 Community will help you in deep 29629 20:01:34,040 --> 20:01:36,512 understanding of the powerbi concept and 29630 20:01:36,512 --> 20:01:39,120 will help you to solve real time 29631 20:01:39,120 --> 20:01:41,832 problems there would be no lack of 29632 20:01:41,832 --> 20:01:44,320 realtime problems once you reach to 29633 20:01:44,320 --> 20:01:46,640 powerbi community so friends I would 29634 20:01:46,640 --> 20:01:48,760 like to thank you for your patience of 29635 20:01:48,760 --> 20:01:51,800 watching this 20 hour video please like 29636 20:01:51,800 --> 20:01:54,600 share and comment on this video share it 29637 20:01:54,600 --> 20:01:56,920 with your friends and relatives and 29638 20:01:56,920 --> 20:01:59,120 anyone who is looking to start the 29639 20:01:59,120 --> 20:02:01,800 powerbi journey thank you have a 29640 20:02:01,800 --> 20:02:05,320 wonderful 20252184667

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.