{"id":370704,"date":"2024-05-21T04:31:27","date_gmt":"2024-05-21T04:31:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=370704"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=370704","title":{"rendered":"<span>\u041e\u0436\u0438\u0432\u043b\u044f\u0435\u043c SVG \u0432 POWER BI \u0447\u0430\u0441\u0442\u044c 1<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/90f\/51b\/c08\/90f51bc08491a1729dc3d23a8ab8119e.jpg\" width=\"1378\" height=\"547\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/90f\/51b\/c08\/90f51bc08491a1729dc3d23a8ab8119e.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 SVG \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0447\u0430\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0432 PBI. \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u0441\u0442\u043e\u043b\u0431\u0447\u0430\u0442\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044f\u0437\u044b\u043a DAX \u0438 \u043c\u0430\u043a\u0435\u0442\u044b \u0432 figma.<\/p>\n<h3>\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437 Figma<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f39\/d69\/793\/f39d69793c85df6f4ac4f59772fa1615.png\" width=\"680\" height=\"328\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f39\/d69\/793\/f39d69793c85df6f4ac4f59772fa1615.png\"\/><\/figure>\n<p>\u0412\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u0432\u0451\u0440\u0441\u0442\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 SVG \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u043d\u044f\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0441 Outine text \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0432 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u043c. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0440\u0443 \u043a\u0443\u0434\u0430 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u0434 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445(&#171;&#187;) <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/946\/500\/d5d\/946500d5d0aca639f357fb6108a52e4f.png\" width=\"1184\" height=\"166\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/946\/500\/d5d\/946500d5d0aca639f357fb6108a52e4f.png\"\/><\/figure>\n<p><\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0435\u0440\u0435\u0432\u043e\u043c<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0435\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u043a\u043e\u0434 \u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0436\u0438\u0432\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0434\u0435\u0440\u0435\u0432\u0430. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0440\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 var. \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u0437\u043d\u0430\u0447\u043e\u043a \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043a\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043d\u0430 DAX: <\/p>\n<p><code>var num_1 = 110<br \/> var num_2 = 111<br \/> var rez_1 = num_1 - num_2<br \/> var trian_1=IF(rez_1&lt;0, \"\u23f6\",\"\u23f7\")<br \/> var color_1=IF(rez_1&lt;0, \"#22A249\",\"#F97066\")<br \/> var color_2=IF(rez_1&lt;0, \"#E7FAEA\",\"#FEE4E2\")<br \/> return<\/code><\/p>\n<p>\u0413\u0434\u0435 num_1,_2 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<br \/> \u0412 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>var rez_1 &#8212; \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/p>\n<p>var trian_1=IF(rez_1&lt;0, &#171;\u23f6&#187;,&#187;\u23f7&#187;) &#8212; if \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 true \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f trian_1 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0435\u0431\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443 \u0432\u0432\u0435\u0440\u0445. \u041f\u0440\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 false \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<p>var color_1=IF(rez_1&lt;0, &#171;#22A249&#8243;,&#187;#F97066&#187;) &#8212; \u0446\u0432\u0435\u0442 \u043e\u043a\u0440\u0430\u0441\u043a\u0438 \u0447\u0438\u0441\u0435\u043b \u0438 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<p>var color_2=IF(rez_1&lt;0, &#171;#E7FAEA&#187;,&#187;#FEE4E2&#8243;) &#8212; \u0446\u0432\u0435\u0442 \u043e\u043a\u0440\u0430\u0441\u043a\u0438 \u0444\u043e\u043d\u0430 \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<h3> \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0434\u0435 SVG<br \/> \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u0435\u0440\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430:<\/p>\n<p><code>&lt;path d='M8 342C8 337.582 11.5817 334 16 334H75V369H16C11.5817 369 8 365.418 8 361V342Z' fill='white'\/><\/code><\/p>\n<p><code>&lt;text fill='#101828' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='12' font-weight='bold' letter-spacing='0em'>&lt;tspan x='42' y='355.56' text-anchor='middle'>\"&amp;_num_1&amp;\"&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p><code>&lt;path d='M75 334H134C138.418 334 142 337.582 142 342V361C142 365.418 138.418 369 134 369H75V334Z' fill=\"&amp;color_2&amp;\" \/><\/code><\/p>\n<p><code>&lt;text fill='#101828' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='12' font-weight='bold' letter-spacing='0em'>&lt;tspan x='104' y='349.56' text-anchor='middle'>\"&amp;_num_2&amp;\"&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p><code>&lt;text fill='#22A249' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='10' font-weight='bold' letter-spacing='0em'>&lt;tspan x='106' y='363.467' text-anchor='middle'>&lt;tspan font-size='12px' fill=\"&amp;color_1&amp;\"> \"&amp;_trian_1&amp;\" \"&amp;rez_1&amp;\"&lt;\/tspan>&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p>\u0412\u0430\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u0438 \u0447\u0438\u0441\u043b\u043e\u043c \u0432\u043c\u0435\u0441\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043d\u0430\u0435\u0437\u0436\u0430\u043b\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e, \u0442\u043e \u0444\u043e\u043d \u044f\u0447\u0435\u0439\u043a\u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u043e\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0447\u0438\u0441\u043b\u043e\u043c \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432\u043d\u0438\u0437<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9a1\/a7b\/a8e\/9a1a7ba8e9d90c0acb30d75001e8a178.png\" width=\"395\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9a1\/a7b\/a8e\/9a1a7ba8e9d90c0acb30d75001e8a178.png\"\/><\/figure>\n<p><\/p>\n<p>\u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435 \u044f\u0447\u0435\u0439\u043a\u0430 \u043e\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432\u0432\u0435\u0440\u0445. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0438\u043d\u0443\u0441 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437-\u0437\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/703\/9c4\/abc\/7039c4abcf03b55bc7d086c28c49c9ee.png\" width=\"404\" height=\"220\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/703\/9c4\/abc\/7039c4abcf03b55bc7d086c28c49c9ee.png\"\/><\/figure>\n<p><\/p>\n<p>\u0422\u0430\u043a \u043c\u044b \u043e\u0436\u0438\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u0435\u0440\u0435\u0432\u043e, \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0432\u043e\u0439  \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0438\u0437 \u0431\u0430\u0440\u043e\u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 HTML.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/800001\/\"> https:\/\/habr.com\/ru\/articles\/800001\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 SVG \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0447\u0430\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0432 PBI. \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u0441\u0442\u043e\u043b\u0431\u0447\u0430\u0442\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044f\u0437\u044b\u043a DAX \u0438 \u043c\u0430\u043a\u0435\u0442\u044b \u0432 figma.<\/p>\n<h3>\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437 Figma<\/h3>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u0432\u0451\u0440\u0441\u0442\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 SVG \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u043d\u044f\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0441 Outine text \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0432 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043a\u043e\u043d\u0442\u0443\u0440\u043e\u043c. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0440\u0443 \u043a\u0443\u0434\u0430 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043a\u043e\u0434 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445(&#171;&#187;) <\/p>\n<figure class=\"full-width\"><\/figure>\n<p><\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0435\u0440\u0435\u0432\u043e\u043c<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0435\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u043a\u043e\u0434 \u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0436\u0438\u0432\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0434\u0435\u0440\u0435\u0432\u0430. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0440\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 var. \u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c 2 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u0437\u043d\u0430\u0447\u043e\u043a \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043a\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043d\u0430 DAX: <\/p>\n<p><code>var num_1 = 110<br \/> var num_2 = 111<br \/> var rez_1 = num_1 - num_2<br \/> var trian_1=IF(rez_1&lt;0, \"\u23f6\",\"\u23f7\")<br \/> var color_1=IF(rez_1&lt;0, \"#22A249\",\"#F97066\")<br \/> var color_2=IF(rez_1&lt;0, \"#E7FAEA\",\"#FEE4E2\")<br \/> return<\/code><\/p>\n<p>\u0413\u0434\u0435 num_1,_2 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<br \/> \u0412 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>var rez_1 &#8212; \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/p>\n<p>var trian_1=IF(rez_1&lt;0, &#171;\u23f6&#187;,&#187;\u23f7&#187;) &#8212; if \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 true \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f trian_1 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0435\u0431\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443 \u0432\u0432\u0435\u0440\u0445. \u041f\u0440\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 false \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<p>var color_1=IF(rez_1&lt;0, &#171;#22A249&#8243;,&#187;#F97066&#187;) &#8212; \u0446\u0432\u0435\u0442 \u043e\u043a\u0440\u0430\u0441\u043a\u0438 \u0447\u0438\u0441\u0435\u043b \u0438 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<p>var color_2=IF(rez_1&lt;0, &#171;#E7FAEA&#187;,&#187;#FEE4E2&#8243;) &#8212; \u0446\u0432\u0435\u0442 \u043e\u043a\u0440\u0430\u0441\u043a\u0438 \u0444\u043e\u043d\u0430 \u044f\u0447\u0435\u0439\u043a\u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u043e\u043c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<h3> \u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c<\/h3>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0434\u0435 SVG<br \/> \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u0435\u0440\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430:<\/p>\n<p><code>&lt;path d='M8 342C8 337.582 11.5817 334 16 334H75V369H16C11.5817 369 8 365.418 8 361V342Z' fill='white'\/><\/code><\/p>\n<p><code>&lt;text fill='#101828' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='12' font-weight='bold' letter-spacing='0em'>&lt;tspan x='42' y='355.56' text-anchor='middle'>\"&amp;_num_1&amp;\"&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p><code>&lt;path d='M75 334H134C138.418 334 142 337.582 142 342V361C142 365.418 138.418 369 134 369H75V334Z' fill=\"&amp;color_2&amp;\" \/><\/code><\/p>\n<p><code>&lt;text fill='#101828' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='12' font-weight='bold' letter-spacing='0em'>&lt;tspan x='104' y='349.56' text-anchor='middle'>\"&amp;_num_2&amp;\"&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p><code>&lt;text fill='#22A249' xml:space='preserve' style='white-space: pre' font-family='Arial' font-size='10' font-weight='bold' letter-spacing='0em'>&lt;tspan x='106' y='363.467' text-anchor='middle'>&lt;tspan font-size='12px' fill=\"&amp;color_1&amp;\"> \"&amp;_trian_1&amp;\" \"&amp;rez_1&amp;\"&lt;\/tspan>&lt;\/tspan>&lt;\/text><\/code><\/p>\n<p>\u0412\u0430\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439 \u0438 \u0447\u0438\u0441\u043b\u043e\u043c \u0432\u043c\u0435\u0441\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043d\u0430\u0435\u0437\u0436\u0430\u043b\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e, \u0442\u043e \u0444\u043e\u043d \u044f\u0447\u0435\u0439\u043a\u0438 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u043e\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0447\u0438\u0441\u043b\u043e\u043c \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432\u043d\u0438\u0437<\/p>\n<figure class=\"\"><\/figure>\n<p><\/p>\n<p>\u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435 \u044f\u0447\u0435\u0439\u043a\u0430 \u043e\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432\u0432\u0435\u0440\u0445. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0438\u043d\u0443\u0441 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437-\u0437\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. <\/p>\n<figure class=\"\"><\/figure>\n<p><\/p>\n<p>\u0422\u0430\u043a \u043c\u044b \u043e\u0436\u0438\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u0435\u0440\u0435\u0432\u043e, \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0432\u043e\u0439  \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0438\u0437 \u0431\u0430\u0440\u043e\u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 HTML.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/800001\/\"> https:\/\/habr.com\/ru\/articles\/800001\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-370704","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370704"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/370704\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}