ã©ãããããããPower BIã®èšèªåæã®åé¡ã解決ãããšåæã«ã 以åã®èšäºã®äŸãæ¢ããŠãæ°å¹Žåã«Excelã§è§£æ±ºããããšããåé¡ãæãåºããŸããïŒå€æ°ã®ã¯ãšãªã®èšèªåæã®ããã«åæã·ã¹ãã ã«ãã·ã¢èªèŸæžãå®è£ ããå¿ èŠããããŸããèªç¶èšèªã§ã ãŸããæšæºã®ãªãã£ã¹ããŒã«ã䜿çšããããšãæãŸãããšãããŸããã 倧å€æ°ã®äººãããã«ãã®ã¿ã¹ã¯ãExcelã§åŠçãããã€ãŠåãæ¹æ³ã§äœæ¥ãè¡ããŸããã ãã·ã¢èªã®ãªãŒãã³ã³ãŒãã¹ïŒ http://opencorpora.org/ ïŒãèŸæžãšããŠäœ¿çšããŸããã
ãããã倱æã¯ç§ãåŸ ã£ãŠããŸãã-èŸæžã¯30äžèªã®åœ¢åŒã500äžä»¥äžã®ãšã³ããªã§æ§æãããŠããŸããããããŠãExcelã®ããã«ãããã¯ååãšããŠãäžå¯èœãªéã§ãã 100äžè¡ã ããæŒã蟌ãã ãšããŠããæ¥ãã§ããããšã®ãªãéåžžã«èŸæ±åŒ·ã人ã ããããããã®æäœãç¥ã®çŠããããèšç®ãè¡ãããšãã§ããŸãã ããããä»åã¯ãã¿ã¹ã¯ã«é©ããããŒã«-Power BIãèšå®ããããšã«ããŸããã
Power BIãšã¯äœã§ããïŒ
ãã®è£œåã¯ãå°é家ã³ãã¥ããã£ã«ãã£ãŠå€§ããéå°è©äŸ¡ãããŠããŸãã Power BIã¯ããåããšã«éé¡ãããã¯ããŠã³ããããããå°ãé«ãã¬ãã«ã§ExcelãææããŠãããŠãŒã¶ãŒåãã«äœæãããããžãã¹åæããŒã«ã®ã»ããã§ãã Excelã§äžçšåºŠã®è€éãã®æ°åŒãäœæã§ãã人ã¯ãæ°æ©ã§Power BIãç¿åŸããŸãã
ããã¯ãäœããã®å éšããã°ã©ãã³ã°ããžãã¯ãåããåäžã®è£œåã§ã¯ãªãã3ã€ã®ã³ã³ããŒãã³ãã®ã·ã¹ãã ã§ãã
- ãã¯ãŒã¯ãšãª ããã¯ETLã§ãããç¬èªã®å®å šã«æ©èœããããã°ã©ãã³ã°èšèªã䜿çšããŠã¯ãšãªãèšè¿°ããå¿ èŠããããŸã-M.å ¬å¹³ã«èšããšãã»ãšãã©ã®å Žåãéåžžã®ãŠãŒã¶ãŒãããã°ã©ã ããå¿ èŠã¯ã»ãšãã©ãªãããšã«æ³šæããŠãã ããïŒã»ãšãã©ã®æ©èœã¯ãã³ã³ããŒãã³ãã€ã³ã¿ãŒãã§ã€ã¹ã®ã¡ãã¥ãŒãŸãã¯ãŠã£ã¶ãŒãããçŽæ¥å©çšã§ããŸãã Mèšèªã¯ãDAXã¯ãšãªèšèªïŒPowerPivotïŒãšã¯ãŸã£ããç°ãªããŸãã ãã ããMicrosoftã¯ãããããŸãšããŸããã ããã¯ãéçºã®èŠ³ç¹ããã¯æå³ããããŸããETLã¯ãããŒã¿ã®åä¿¡ãšåæ飜åïŒé«éã§ã¯ãªãïŒãããã³DAX-ãã®ããŒã¿ã®èŠèŠåã«åœ¹ç«ã€èšç®ïŒé«éïŒåãã«èšèšãããŠããŸãã ã€ãŸããDAXã¯ããã³ããšã³ãçšã§ãPower Queryã¯ããã¯ãšã³ãçšã§ãããŒã¿ã®æœåºãšãã©ãŒãããã®ããã»ã¹ã§ãã
- PowerPivot xVelocityãšã³ãžã³ã«åºã¥ãã¡ã¢ãªå åŠçã¢ãžã¥ãŒã«ã Excelã®åŒèšèªã«éåžžã«ãã䌌ãDAXã¯ãšãªèšèªã䜿çšããŸãã
- èŠèŠåã³ã³ããŒãã³ã ã äŒæ¥ã®ãŠã§ããµã€ããæè¡ãµããŒãããŒã¿ã«ïŒãªã¯ãšã¹ãã¯ã©ãŠããªã©ïŒããŸãã¯ç€Ÿå ã®ãªãœãŒã¹ãªã©ãããŒã¿ãèŠèŠåããå¿ èŠãããã·ã¹ãã ã§ã®äœ¿çšã«éåžžã«äŸ¿å©ã§ãã Power BIã䜿çšããã«ãããå®è¡ã§ããããŒã«ã¯ãããŸããããããã®å€ãã¯ãã¬ã³ãŒãæ°ãæ°çŸäžåäœã§ãããããŒã¿ãäœããã®æ¹æ³ã§éçŽããå¿ èŠãããå Žåã«åœ¹ç«ã¡ãŸããã ãŸãããã®çš®ã®ä»ã®ããŒã«ã䜿çšãããšãPower BIã¯ãã®ã·ã³ãã«ããšäœã³ã¹ãã®ã¡ã¢ãªå åŠçã«ãã競åããŸãã ãã©ãã€ãã®ããŒã¿ã«ã€ããŠè©±ããŠããå Žåãå¥ã®ã¢ãããŒããå¿ èŠã«ãªãããšã¯æããã§ãã ãããŠããã®ãããªå Žåããã€ã¯ããœããã¯ãã§ã«æäŸãããã®ãæã£ãŠããŸãããããã¯å¥ã®èšäºã®ãããã¯ã§ãã
æåã®æ®µéã®åŠç¿æ²ç·ã¯éåžžã«æ¥æ¿ã«å¢å ããŸããExcelãåŸæã§ããã°ãPower BIã®æ©èœã®80ïŒ ãçæéã®ç 究ã§æããã«ãªããŸãã ããã¯éåžžã«åŒ·åãªããŒã«ã§ãããéåžžã«äœ¿ããããã§ãããç¹å®ã®ãã€ã³ããŸã§ã¯ã æ倧éã«æŽ»çšããã«ã¯ãMèšèªãšDAXèšèªã®çµéšãšæ·±ãç¥èããã§ã«å¿ èŠã§ãã
Power BI Desktopãšã¯äœã§ããïŒ
誰ã«åœ¹ç«ã€ã®ã§ããããïŒ ãŸããExcelã察å¿ã§ããªããªã£ãããéçã«éãããšãã«å€§éã®ããŒã¿ãåŠçããã³åæããå¿ èŠãããããžãã¹ãŠãŒã¶ãŒã Power BI Desktopã¯ãéåžžã«å€æ§ãªã¿ã¹ã¯ã解決ããå¹ åºããŠãŒã¶ãŒåãã«èšèšãããŠããŸã ã ããšãã°ãç§ã®å ŽåãããŒã¯ãŒãã®é »åºŠãåŸã§æ±ºå®ããããã«500äžã®ããã¹ããšã³ããªãæ£èŠåããããšã§ããã
ããã¯ãã¢ã³ã±ãŒããæ€çŽ¢ãšã³ãžã³ã¯ãšãªãåºåãå£è¿°/ãšãã»ã€ãããçš®ã®çµ±èšé åãªã©ãåŠçãããšãããŸãã¯ã¯ãã¹ã¯ãŒãã解決ããããã«å¿ èŠã§ã...
å¥ã®ã±ãŒã¹ãšå®è£ ãªãã·ã§ã³ã¯ãDmitry Tumaikinã®ãèªèã ã«é¢ããèšäºã§æ€èšãããŠããŸãã ã¯ã©ã·ãã¯Excelã«å®è£ ãããŠããŸããããã¯ãã䜿çšããŠããŸã...
Power BIã®ãã®ã¢ããªã±ãŒã·ã§ã³ã®ãã1ã€ã®äžè¬çãªã·ããªãªã¯ãçŸåšã®æéãšåã®æéã®ã€ã³ãžã±ãŒã¿ãŒã®æ¯çãèšç®ããããšã§ãã ããšãã°ãäºåã«éèšãããåçããŒã¿ããããããåã®ååæã幎ããŸãã¯åæ§ã®æéãšæ¥åäœã§æ¯èŒããå¿ èŠããããŸãã ãããŠãåŒã§ã¯ãªããå€ã®åœ¢åŒã§æ¬¡ã®åã«æ¯èŒã®çµæãæ¿å ¥ããå¿ èŠããããŸãã Excelã®æãåçŽãªã¿ã¹ã¯ã¯ãåçŽãªæ¯èŒåŒãèšè¿°ããåå ã®ãã¹ãŠã®ã»ã«ã«ãŸãããããšã§ãã ããããããŒãã«ã«æ°çŸäžè¡ããå Žåã¯ããã§ã¯ãããŸããã DAXèªäœã§ã¯ããã®ã¿ã¹ã¯ã¯Excelã®å Žåãããããã«ç°¡åã§ãããèšç®åŸã®å©ããå¿ èŠã§ãã
Power BIã䜿çšããããã®ä»ã®å€ãã®å®çšçãªã·ããªãªãæäŸã§ããŸãããããªãã¯ãã§ã«ãã®æ¬è³ªãç解ããŠãããšæããŸãã ãã¡ããããããã®ã¿ã¹ã¯ã¯ãã¹ãŠãããšãã°PythonãRãææããŠããããã°ã©ããŒã«ãšã£ãŠã¯åé¡ã§ã¯ãããŸãããããã®ãããªå°é家ã¯Excelã®å°é家ãããæ°æ¡å éšçã§ãã Excelã®å¯èœæ§ã¯éãããŠããŸãããPower BIã§ã¯ããã§ã¯ãããŸãããPowerBIã¯ãExcelåŒèšèªã«éåžžã«ãã䌌ãDAXåŒèšèªã䜿çšããäœçŸäžããã³äœåäžãã®ã¬ã³ãŒãããªã³ã¶ãã©ã€ã§åŠçã§ããŸãã 次ã«ãRAMãå¢ããå¿ èŠããããŸãïŒå°ãªããšãæ倧100ãå°ãªããšãæ倧300 GBïŒã
æè¡ãµããŒãããã»ã¹ã®ãªã¯ãšã¹ããæ¯æŽããŸã
ããããç§ã®ä»äºã«æ»ããŸãã ãã¯ãã«ã«ãµããŒããŒãã©ã€ã³ããŠãŒã¶ãŒèŠæ±ã®ãããã¯ãèªåçã«è©äŸ¡ããæ¹æ³ãèãåºãå¿ èŠããããŸããã ãŸããç¹å®ã®åèªåœ¢åŒãåé¢ãããŠãŒã¶ãŒãæãé »ç¹ã«åãäžããæãéèŠãªãããã¯ããã¡ãã»ãŒãžã«åºçŸããé »åºŠã«ãã£ãŠæ±ºå®ããããšã«ããŸããã
ãœãŒã¹èŸæžã¯ã次ã®ãããªèŠåçãªæ§é ãæã€åçŽãªããã¹ããã¡ã€ã«ã§ãã
çµ±èšç®çã®ããã«ãååèªåœ¢åŒã®åæ圢åŒã決å®ããå¿ èŠããããŸããïŒåè©-åè©æ Œã®åäžã®çªå·ãåè©-äžå®åœ¢ãªã© ããã°ã©ããŒã«ãšã£ãŠããã®ã¿ã¹ã¯ã¯åçŽã§ã¯ãããŸããã§ãããå·ŠåŽã®åã®ååèªã«ã€ããŠãèŸæžå ã®ãã®åèªã®çªå·ã®çŽåŸã«ç¶ããã©ãŒã ãžã®å¯Ÿå¿ãèŠã€ããŸãã
ããã¯ãPythonãç¹æ®ãªããŒã«ãéçºã¹ãã«ãææããŠããªãå¹³åçãªããžãã¹ãŠãŒã¶ãŒã§ãããèªå·±åæBIãŸãã¯åæ§ã®ãŠãŒã¶ãŒãã¬ã³ããªãŒãªããŒã«ã䜿çšããªããšãã®åé¡ã解決ã§ããŸããã ããã«ãå éšããŒãºã®ããã«ããŒã¿ãåŠçããå¿ èŠãããå ŽåããŸãã¯ä¿è·ãå¿ èŠãšããæ©å¯æ å ±ããªãå Žåããã®å Žåã®Power BIãç¡æã«ãªããŸã*ã
é衚瀺ã®ããã¹ã
*ïŒããã¯ãç¡æã¬ãŒãã§å人䜿çšããããã®Power BI DesktopããŒãžã§ã³ãšPower BI ServicesããŒãžã§ã³ãæããŸãã
ããŒã¿ãåæããã«ã¯ãPower Queryã§ã500äžä»¶ã®ã¬ã³ãŒãã®ããŒãã«ã«ã1åã·ããããæ°ããåãè¿œå ããå¿ èŠããããŸããã æåã«ãPower Queryã䜿çšããåŸæ¥ã®ã¢ãããŒããé©çšããããšããŸãããããã¯ãå ã®ãªã³ã©ã€ã³Power Queryãªã³ã©ã€ã³ãªãã¡ã¬ã³ã¹ïŒPower Queryã§ãäœæïŒã®èè ã§ããMarcel Beugã«ããPower BIã³ãã¥ããã£ããŒã¿ã«ã§èª¬æãããŠããŸãã ãã®èšäºã§ã¯ã2ã€ã®ç°ãªãã¢ã«ãŽãªãºã ãææ¡ãããŠããŸãã1ã€ã¯æåãªæå°è ã§ãããPower BIãã¬ãŒããŒã§ããMatt Elingtonã®ã¢ã€ãã¢ããçæ³ãåŸããã®ã§ãã çç£æ§ãé«ããããã«ãœãŒã¹ããŒã¿ãå®å šã«ãã£ãã·ã¥ãããšããäºå®ã«ãããããããã©ã¡ãã®ã¢ãããŒããèšå€§ãªæéãå¿ èŠãšããŸããããã§ã«8æ¥ç®ã§ãããããã»ã¹ã¯å®äºããŠããŸããã§ããã ãœãŒã¹ãã¡ã€ã«ã®ãµã€ãºã¯270 MBã§ãåŠçãããããŒã¿ã®çŸåšã®ãµã€ãºã¯17 TBã«è¿ãã£ãã ãã¡ã€ã«ãœãŒã¹ããããŒã¿ãããŒãããããã®ãŠã£ã³ããŠã§ãã®ãããªæ°å€ãèŠãPower BIãŠãŒã¶ãŒã¯ã»ãšãã©ããªããšæããŸãã
ãªãããªã¥ãŒã ãéåžžã«è «ããŠããã®ãã¯æããã§ã¯ãããŸããã ãã¹ãŠã®ã¬ã³ãŒãã®ãã«ã«ãç©ã§ãã16 Tbãã¯ããã«äžåã£ãŠããŸãã ããã§ãå éšãªããã£ãã€ã¶ãŒã¯æããã«æšæºä»¥äžã§ããã ãŸããããšãã°ãDAX-Studioã¯Power Queryã¯ãšãªã®ãã¬ãŒã¹ãèš±å¯ãããDAXã®ã¿ãèš±å¯ããŸãã 誰ããPQ Troubleshippingã§ã®çµéšãå ±æããã§ããããïŒ
æåã®ããã»ã¹ã®å®äºãåŸ ããã«ãå¥ã®ãã·ã³ã䜿çšããŠãèªå·±èšè¿°ã¯ãšãªãéããŠDAXã䜿çšããŠåé¡ã®è§£æ±ºãè©Šã¿ãããšã«ããŸããã ãªã¯ãšã¹ãã¯çŽ180ç§ã§å®äºããã¡ã¢ãªæ¶è²»ããããã«å¢å ããŸããã
DAXãªã¯ãšã¹ãã®ãœãŒã¹ã³ãŒãïŒ
KeyWord =
CALCULATE(
TOPN(1;
CALCULATETABLE(
VALUES(ShiftedList[Word])
;ALLEXCEPT(ShiftedList;ShiftedList[Word Nr])
)
)//TOPN
)//CALCULATE
ã€ãŸããæ°ãã[KeyWord]åã®åè¡ã«ã€ããŠãåãåºæ¬åèªåœ¢åŒçªå·ïŒ[Word Nr]åïŒãæã€åèªåœ¢åŒã®ãã¹ãŠã®ããªã¢ã³ããå«ã[Word]åã®æåã®å€ãæ€çŽ¢ãããŸãã ãœãŒã¹ãã¡ã€ã«ã®åœ¢åŒãå€æŽãããªãéããèŸæžã®åŸç¶ã®ãã¹ãŠã®ãªãªãŒã¹ã§ãªã¯ãšã¹ãã¯ãšã©ãŒãªãã§å®è¡ãããŸãã
å¿ èŠãªåœ¢åŒã§ãœãŒã¹ããŒãã«ã圢æããPower Queryã®ã¯ãšãªã³ãŒãã¯ãèªåçã«ãçæããã1å以å ã§å®äºããŸããã
PowerPivotã€ã³ã¿ãŒãã§ã€ã¹ã§3åéã§ããŒã¯ãŒãã®åã圢æãããåŸãPower BIã€ã³ã¿ãŒãã§ã€ã¹ã§åèªåœ¢åŒãæ€çŽ¢ããã®ã«å¿ èŠãªæéã¯4ç§ä»¥å ã§ãã ããã«ããæ°ã«å ¥ãã®Notepad ++ x64ã§åãããŒã¿ãã³ã³ãããŒã«æ€çŽ¢ããã«ã¯ã20ç§ä»¥äžããããŸãã ããããããã¯NPPã®åºã«ããç³ã§ã¯ãããŸãã-æ¢ã«ããŒã¯ã¢ãããããŠããããŒã¿ãããããŒã¿é åå šäœãæ€çŽ¢ããã®ã¯ããå°é£ã§ãïŒãããŠããé·ãã§ãïŒã
ã¡ãªã¿ã«ãäžèšã®DAXãªã¯ãšã¹ãã¯åããŠçãŸãããã®ã§ã¯ãªããäžéãªãã·ã§ã³ã¯äœ¿çšå¯èœãªã¡ã¢ãªããã¹ãŠæ¶è²»ããé·æéåäœããããŒã¿ãšã©ãŒãŸãã¯ç¡é¢ä¿ãªçµæã§çµäºããŸããã
ãã®çµæãä¿åãããPBIXãã¡ã€ã«ã®ãµã€ãºã¯å ã®ããã¹ãèŸæžãã60ïŒ å°ãããªããŸãããïŒ112 MbïŒãåãèŸæžã䜿çšããZIPã¢ãŒã«ã€ãã®ãµã€ãºã®4å以äžã«ãªããŸããã
Power QueryãšDAXã®æŠãã«æ»ããŸããããç°ãªãã³ã³ããŒãã³ãã§ã®åãæäœã®æéã®éãã¯ãPower BIãåä¿¡ããªãã¯ããŒããŒã§ã¯ãªãããšã瀺åããŠããŸãã 圌ã¯åœŒèªèº«ã®æ§æ Œãšã¢ããªã±ãŒã·ã§ã³ã®ç¹åŸŽãæã£ãŠããã®ã§ã圌ã®ä»äºã§ã¯ããããèæ ®ããªããã°ãªããŸããã å®éãä»ã®ããŒã«ãšåãã§ãã ãããŠãèªããããŠããã°ã«ã®æšå¥šããæ éã«æ±ãããã¹ãã§ãã
ããŒãã«è³åè³è ã®ãªãã£ãŒãã»ã¹ã¢ãŒãªãŒã¯ãã¯ã©ãŒã¯ã®æåã®æ³åãèšãæããŠèšã£ãŠããããã§ãããå°é家ãäœããå®è¡å¯èœã§ãããšèšã£ããšãã圌ãã¯ããããæ£ããïŒãã€åœŒãã¯ç¥ããªãïŒã ãããäžå¯èœã ãšèšããšããããã圌ãã¯ééã£ãŠããã§ããããã
è©Šéšæ©ã®ç¹æ§ïŒ
ããã»ããµãŒïŒIntel Core i7 4770 @ 3.4 GHzïŒ4ã³ã¢ïŒ
RAMïŒ16 GB
OSïŒWindows 7 Enterprise SP1 x64
Power BI圢åŒã®æ¢è£œã®èŸæžã¯ããã¡ãããããŠã³ããŒãã§ããŸã ã
ãããŠã ããã§ã¯èŸæžã®ä¿®æ£ããããªã³ã©ã€ã³çãå©çšå¯èœã§ãã ããã§ããªãã®äœæã«ã¯ãã¹ã¯ãŒãã解決ããããšãã§ããŸã:)
...ãšããã§ãæ°å¹Žåã«ãã¿ã¹ã¯ã¯100ïŒ ã§ã¯ãããŸããããããã§ãExcelã§è§£æ±ºãããŸããã ããã¹ãã®åæã®ããã«ããã·ã¢èªã®ã³ãŒãã¹å šäœã§ã¯ãªããé »åºŠèŸæžã䜿çšãããŸããã åºæ¬çãªããã¹ãã¯ãªãŒãã³ã°ã«ã¯ ãæ°åãããã€ãã®top100䜿çšå¯èœãªé »åºŠãªã¹ãã®ãããããéåžžã«é©ããŠããŸãã
ãŠãŒãªã»ã³ã«ãã³ããJet InfosystemsïŒMcCowïŒçµ±åããã³ããŒã¿å¯èŠåã·ã¹ãã åŠç§ããšãã¹ããŒã