Power BI 制作涂鸦式天气日历

2023-02-28 09:55:03 浏览数 (2)

前期介绍过如何在Power BI制作天气日历,天气图标是动画的,本文换一种涂鸦式风格,有需要的读者可以使用。

图标均来自https://www.iconfinder.com/,数据中有天气列,新建度量值,对应所有天气类型设置图标,度量值的原理如下,如有更多天气类型可自行增加。

代码语言:javascript复制
天气图标 = 
VAR SNOW = 下雪的SVG图标
VAR RAIN_LIGHT = 小雨的SVG图标
VAR RAIN_HEAVY = 中雨的SVG图标
VAR THUNDER = 雷阵雨的SVG图标
VAR SUN = 晴天太阳的SVG图标
VAR CLOUD = 云朵的SVG图标
VAR WEATHER=
    SWITCH(SELECTEDVALUE('天气数据'[天气]),
        "雪",SNOW,
        "小雨",RAIN_LIGHT,
        "中雨",RAIN_HEAVY,
        "阵雨",THUNDER,
        "晴",SUN,
        "多云",CLOUD
    )
RETURN
    "data:image/svg xml;utf8," & WEATHER

完整度量值如下:

代码语言:javascript复制
天气图标 = 
VAR SNOW=
    "<svg width='50' height='50' viewBox='0 0 161 149' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g clip-path='url(#clip0)'><path d='M99.94 37.7788C101.179 36.9171 102.258 36.138 103.365 35.3996C114.55 27.9403 126.632 26.4571 139.372 30.3393C154.835 35.0518 161.184 50.2574 159.875 62.4909C158.765 72.8793 153.64 81.2627 146.127 88.2645C143.205 90.989 139.442 92.4986 135.6 93.2698C128.59 94.6757 121.528 95.9444 114.429 96.7556C96.3407 98.8231 78.1431 98.7299 59.9692 99.016C51.427 99.1473 42.9044 98.9989 34.5643 96.8626C32.0742 96.2246 29.5874 95.523 27.1754 94.6435C16.5749 90.7764 9.09396 83.6754 5.05089 73.0999C-1.30377 56.4801 -0.425766 40.2616 9.2014 25.236C17.2304 12.7046 28.7845 3.99328 43.6447 1.43093C62.3385 -1.79234 78.1503 4.25928 90.2893 19.0347C94.2706 23.8991 97.2504 29.5025 99.0579 35.5227C99.2752 36.2341 99.5987 36.9138 99.94 37.7788ZM63.9008 89.0672C68.275 88.8973 72.6548 88.8047 77.024 88.5422C91.6997 87.6646 106.362 86.5869 121.05 85.8873C126.316 85.6254 131.457 84.1874 136.096 81.6782C144.378 77.3201 148.663 70.3754 149.107 61.1737C149.597 51.032 144.684 41.688 132.891 39.339C123.039 37.3765 113.873 39.0326 106.055 45.7017C103.507 47.8748 101.289 50.4328 98.905 52.8003C98.1765 53.6452 97.3495 54.3997 96.4418 55.0481C93.9674 56.5222 91.0657 55.5768 90.1107 52.8734C89.6867 51.6357 89.6533 50.297 90.0155 49.0398C91.3374 44.9705 90.7992 41.0923 89.3796 37.2212C87.5576 32.1465 84.7517 27.4813 81.1228 23.4933C70.735 12.1773 57.8018 8.50296 42.9509 11.5766C37.0583 12.7961 32.0065 16.0704 27.2645 19.7321C11.3936 31.9866 7.90251 49.2089 12.0059 65.5662C14.332 74.8306 19.5537 82.0346 29.0162 85.2946C32.5064 86.4983 36.083 87.4369 39.7147 88.1011C47.7154 89.5602 55.8127 89.3016 63.9008 89.0672Z' fill='black'/><path d='M76.3013 112.311C73.6162 112.297 71.2587 110.067 71.2554 107.537C71.3249 106.139 71.9143 104.817 72.908 103.83C73.9011 102.842 75.2269 102.262 76.6262 102.201C77.9146 102.26 79.1301 102.816 80.0188 103.75C80.9075 104.685 81.4004 105.927 81.3938 107.217C81.3846 108.565 80.8458 109.855 79.8921 110.809C78.9391 111.763 77.6494 112.302 76.3013 112.311Z' fill='black'/>
<path d='M28.4236 136.315C25.6748 136.353 23.0955 134.182 23.0607 131.802C23.024 129.338 25.4754 127.173 28.2852 127.188C30.9302 127.201 33.1799 129.252 33.2292 131.693C33.279 134.145 31.0575 136.279 28.4236 136.315Z' fill='black'/><path d='M100.644 112.697C100.654 111.419 101.171 110.198 102.081 109.301C102.991 108.404 104.221 107.905 105.498 107.915C106.776 107.925 107.998 108.442 108.895 109.352C109.792 110.262 110.29 111.492 110.28 112.769C110.22 114.066 109.66 115.288 108.718 116.18C107.776 117.072 106.524 117.564 105.227 117.553C103.985 117.488 102.816 116.947 101.963 116.043C101.109 115.139 100.637 113.94 100.644 112.697Z' fill='black'/><path d='M122.991 132.319C120.282 132.344 117.884 130.063 117.945 127.518C118.002 126.336 118.495 125.216 119.329 124.375C120.163 123.534 121.278 123.032 122.461 122.966C125.204 122.884 127.938 125.304 127.914 127.793C127.891 130.23 125.645 132.294 122.991 132.319Z' fill='black'/>
<path d='M130.952 108.952C128.298 108.986 126.329 107.142 126.382 104.671C126.436 102.15 128.791 100.038 131.583 100.01C134.254 99.9799 136.163 101.783 136.127 104.301C136.089 106.864 133.811 108.916 130.952 108.952Z' fill='black'/><path d='M74.2587 148.011C73.6437 148.004 73.0359 147.874 72.4715 147.63C71.907 147.386 71.3964 147.032 70.9698 146.589C70.5432 146.145 70.2091 145.621 69.9866 145.048C69.7647 144.474 69.6591 143.862 69.6755 143.247C69.7195 140.512 71.5401 138.98 74.6197 139.081C77.2312 139.167 79.214 141.073 79.1944 143.472C79.1747 145.87 76.7882 148.058 74.2587 148.011Z' fill='black'/><path d='M47.8073 143.034C47.854 144.271 47.419 145.478 46.5943 146.401C45.7696 147.325 44.6192 147.892 43.3848 147.985C42.7985 148.017 42.2119 147.926 41.6634 147.716C41.1149 147.507 40.6168 147.184 40.2014 146.769C39.7861 146.355 39.463 145.857 39.2531 145.308C39.0433 144.76 38.9512 144.174 38.9833 143.587C39.0194 140.852 40.9446 138.648 43.3671 138.566C43.9531 138.564 44.5338 138.679 45.0752 138.903C45.6167 139.127 46.1082 139.456 46.5213 139.872C46.9344 140.288 47.2606 140.781 47.4814 141.324C47.7021 141.867 47.8131 142.448 47.8073 143.034Z' fill='black'/>
<path d='M94.2422 130.332C94.2022 131.579 93.6725 132.76 92.7687 133.619C91.8643 134.479 90.6586 134.948 89.4109 134.926C88.2 134.839 87.0717 134.28 86.2697 133.369C85.467 132.458 85.0541 131.269 85.1204 130.057C85.1861 128.844 85.7262 127.706 86.6228 126.889C87.52 126.071 88.7021 125.638 89.915 125.683C91.1016 125.737 92.2194 126.254 93.028 127.123C93.8373 127.993 94.2737 129.144 94.2422 130.332Z' fill='black'/>
<path d='M64.671 131.286C64.6967 131.898 64.5967 132.51 64.3771 133.082C64.1575 133.654 63.8228 134.176 63.3939 134.615C62.9649 135.053 62.4509 135.399 61.8831 135.631C61.3154 135.863 60.7061 135.976 60.093 135.964C57.589 135.93 55.6462 133.751 55.7059 131.045C55.7336 129.92 56.1878 128.848 56.9766 128.046C57.7654 127.244 58.8297 126.771 59.9538 126.724C60.5666 126.7 61.1778 126.801 61.7507 127.019C62.3237 127.238 62.8463 127.57 63.2872 127.997C63.728 128.423 64.078 128.934 64.3158 129.499C64.5537 130.064 64.6745 130.672 64.671 131.286Z' fill='black'/><path d='M20.84 99.3393C21.4008 99.3202 21.9598 99.4167 22.4821 99.6222C23.0043 99.8276 23.4787 100.137 23.8764 100.533C24.2743 100.929 24.5867 101.402 24.7947 101.923C25.0025 102.445 25.1015 103.003 25.0853 103.564C25.038 106.111 22.6162 108.309 19.9003 108.273C19.3671 108.296 18.8349 108.208 18.3374 108.015C17.8398 107.822 17.3876 107.529 17.009 107.153C16.6303 106.777 16.3334 106.327 16.1369 105.831C15.9404 105.335 15.8485 104.803 15.8671 104.27C15.9315 102.976 16.4772 101.753 17.3973 100.84C18.3175 99.928 19.5453 99.3924 20.84 99.3393Z' fill='black'/><path d='M46.4313 113.871C46.5134 116.224 44.7719 118.027 42.2667 118.182C41.6561 118.232 41.042 118.157 40.4614 117.961C39.8808 117.766 39.3459 117.454 38.8895 117.046C38.4331 116.637 38.0647 116.14 37.8066 115.584C37.5485 115.029 37.4063 114.427 37.3884 113.814C37.3444 111.423 38.8933 109.602 41.069 109.486C43.7679 109.343 46.3499 111.452 46.4313 113.871Z' fill='black'/>
<path d='M106.675 139.169C107.177 139.171 107.674 139.275 108.135 139.474C108.596 139.673 109.012 139.963 109.358 140.327C109.704 140.691 109.973 141.122 110.148 141.592C110.323 142.063 110.402 142.564 110.378 143.067C110.349 145.923 108.676 147.982 106.403 147.958C104.13 147.934 102.202 145.71 102.225 143.164C102.248 140.83 104.165 139.108 106.675 139.169Z' fill='black'/></g><defs><clipPath id='clip0'><rect width='159.49' height='147.676' fill='white' transform='translate(0.734375 0.40625)'/></clipPath></defs></svg>"
VAR RAIN_LIGHT=
    "<svg width='50' height='50' viewBox='0 0 160 136' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g clip-path='url(#clip0)'>
<path d='M99.3343 38.3444C100.705 37.3862 101.784 36.6023 102.892 35.8633C114.084 28.4014 126.167 26.9015 138.908 30.8093C154.36 35.5481 160.709 50.7884 159.385 63.0744C158.266 73.4901 153.144 81.9023 145.621 88.916C142.693 91.6444 138.926 93.1539 135.086 93.9265C128.076 95.3356 121.012 96.6043 113.912 97.4188C95.8203 99.4948 77.6201 99.3937 59.4434 99.6852C50.8992 99.8223 42.3784 99.6642 34.0344 97.5186C31.5442 96.8787 29.0647 96.1567 26.6448 95.291C13.184 90.4741 5.62161 80.4223 2.28085 66.9963C-0.85579 54.3947 -0.115497 41.8403 6.04357 30.3229C15.0026 13.5705 28.91 2.72458 48.1498 1.16775C65.4621 -0.23288 79.9396 6.45285 90.628 20.5457C94.6133 25.7958 97.3358 31.6504 99.3343 38.3444ZM63.6295 89.7069C68.0047 89.5296 72.3838 89.4246 76.7563 89.1621C91.3231 88.2872 105.879 87.2042 120.453 86.5223C125.834 86.2604 131.085 84.7751 135.805 82.1793C144.083 77.7543 148.182 70.7216 148.654 61.5047C149.179 51.252 143.707 42.8965 134.46 40.3827C123.86 37.5007 113.949 39.0703 105.394 46.3602C102.842 48.5347 100.65 51.1271 98.2645 53.5004C97.5281 54.3381 96.6814 55.0718 95.7475 55.6809C93.3531 57.0021 90.7508 56.0088 89.5825 53.5338C89.2714 52.8759 89.1033 52.1596 89.0902 51.4321C89.0771 50.7045 89.2182 49.9825 89.505 49.3137C90.8617 45.6586 90.3392 42.0508 89.123 38.4521C87.3234 33.3669 84.6271 28.6452 81.1623 24.5113C70.3577 11.1535 49.0599 6.91406 34.4308 15.1117C13.9439 26.5976 6.40545 44.9352 11.4763 66.0285C13.8844 76.0478 19.8118 83.3266 29.9778 86.4875C33.0789 87.4497 36.2376 88.2143 39.4354 88.7762C47.448 90.1893 55.5415 89.9149 63.6289 89.7062L63.6295 89.7069Z' fill='black'/>
<path d='M105.236 129.91C105.52 128.907 105.879 127.928 106.31 126.979C108.107 123.489 109.985 120.039 111.873 116.598C112.225 115.899 112.709 115.275 113.299 114.76C113.639 114.462 114.053 114.259 114.498 114.173C114.943 114.087 115.402 114.121 115.829 114.271C116.257 114.421 116.637 114.683 116.93 115.028C117.223 115.373 117.42 115.79 117.499 116.236C117.731 117.335 117.667 118.476 117.314 119.543C115.957 123.098 114.517 126.631 112.86 130.055C112.187 131.341 111.18 132.422 109.945 133.185C107.689 134.586 105.327 133.118 105.236 129.91Z' fill='black'/>
<path d='M37.6312 119.293C37.3929 120.006 37.1293 120.979 36.7486 121.904C35.4701 125.013 34.1642 128.111 32.8314 131.198C32.5052 132.03 32.0507 132.805 31.4841 133.495C30.9244 134.134 30.1636 134.564 29.3269 134.714C28.4904 134.864 27.6276 134.723 26.8811 134.318C26.207 133.894 25.714 133.235 25.4976 132.469C25.2812 131.703 25.3566 130.883 25.7094 130.169C27.8753 125.749 30.2469 121.426 32.6491 117.128C32.9554 116.575 33.4581 116.157 34.0579 115.957C34.6576 115.758 35.3106 115.79 35.8874 116.049C37.2966 116.541 37.559 117.724 37.6312 119.293Z' fill='black'/>
<path d='M69.5389 135.005C69.1399 135.022 68.7408 134.956 68.3687 134.811C67.9965 134.665 67.6585 134.443 67.3763 134.159C67.0941 133.877 66.8742 133.537 66.7305 133.164C66.5874 132.791 66.5231 132.392 66.5421 131.993C66.5742 131.205 66.781 130.433 67.1472 129.734C69.1858 126.13 71.2907 122.565 73.4061 119.006C73.6515 118.496 74.0532 118.079 74.5533 117.816C75.4315 117.527 76.6208 117.116 77.266 117.483C77.9223 117.857 78.2032 119.08 78.4074 119.986C78.5098 120.442 78.1107 121.036 77.8823 121.539C76.3609 124.902 74.7975 128.247 73.3043 131.623C72.5305 133.372 71.4115 134.65 69.5389 135.005Z' fill='black'/>
</g>
<defs>
<clipPath id='clip0'>
<rect width='159.49' height='134.549' fill='white' transform='translate(0.078125 0.969727)'/>
</clipPath>
</defs>
</svg>"
VAR RAIN_HEAVY=
    "<svg width='50' height='50' viewBox='0 0 154 150' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g clip-path='url(#clip0)'>
<path d='M106.196 29.7328C107.476 28.8795 108.577 28.1164 109.707 27.3977C117.858 22.2126 126.71 21.138 135.917 23.4732C151.578 27.446 157.044 43.7028 152.161 56.1824C150.637 60.081 148.164 63.6849 145.705 67.1253C142.997 70.9156 138.859 72.8301 134.427 74.0109C132.051 74.6436 129.63 75.1096 126.995 75.7036C126.724 76.7242 126.426 77.7789 126.162 78.8429C124.755 84.5333 121.634 89.278 117.877 93.6518C115.055 96.9335 111.257 98.7338 107.151 99.5818C101.558 100.736 95.8973 101.66 90.2233 102.32C75.247 104.063 60.1757 103.771 45.1331 104.057C38.1644 104.292 31.1994 103.488 24.4674 101.672C12.2924 98.2193 4.94677 90.2106 1.95517 78.1373C-0.00242049 70.4929 0.21227 62.4541 2.5753 54.9255C6.52383 42.3022 15.3503 34.1364 27.0489 28.7374C28.9725 27.9224 30.5254 26.4225 31.4064 24.5282C37.939 11.6548 48.2539 3.0142 62.5575 0.785936C76.8419 -1.43971 89.1154 3.46842 98.3993 14.8684C101.369 18.5366 103.66 22.705 105.165 27.1779C105.446 28.0029 105.815 28.7975 106.196 29.7328ZM50.3463 95.8144C53.2637 95.8144 56.1877 95.9542 59.0966 95.7901C71.1993 95.1056 83.2924 94.2281 95.3998 93.6452C99.3293 93.5245 103.191 92.5853 106.737 90.8886C114.986 86.8456 118.859 80.1522 118.157 71.041C117.612 63.9775 113.2 58.5378 106.284 56.8753C97.6425 54.7973 89.7724 56.4289 83.0797 62.483C81.2551 64.133 79.6503 66.0239 77.9347 67.7941C76.1547 69.6318 74.5158 70.0643 72.8723 69.1579C71.2847 68.2824 70.5968 66.4998 71.2971 64.1917C72.3355 60.7788 71.7841 57.5625 70.541 54.3576C69.1004 50.7 67.0533 47.3117 64.4864 44.3343C56.5966 35.0412 42.4592 30.9744 31.459 35.3706C16.8332 41.212 6.45622 53.5513 8.26376 71.5706C9.84947 87.3838 17.5254 92.4907 28.8676 94.9842C29.1958 95.0564 29.5319 95.0984 29.862 95.164C36.642 96.5029 43.4941 96.3231 50.3463 95.8144ZM79.1233 55.1344C79.2959 55.1002 79.4659 55.0502 79.63 54.9857C80.0133 54.7566 80.4071 54.5388 80.7642 54.2736C87.4641 49.2933 95.027 47.3526 103.286 48.0384C114.415 48.9573 122.532 54.5832 125.952 65.5204C126.172 66.2234 126.496 66.8942 126.94 68.0021C129.405 67.0209 131.731 66.2576 133.915 65.1968C141.922 61.3067 145.669 54.7899 145.144 45.9162C144.707 38.5147 140.214 32.9471 132.996 31.2794C124.328 29.2742 116.489 31.012 109.85 37.114C108.04 38.7785 106.449 40.6801 104.721 42.4378C103.084 44.1035 101.481 44.4843 99.9076 43.6665C98.2884 42.8244 97.5356 41.0018 98.2332 38.7401C99.3228 35.2096 98.7636 31.8865 97.3938 28.6008C96.9632 27.5678 96.5136 26.5398 96.0096 25.5415C87.1733 8.04421 66.4593 4.0915 53.303 12.152C48.4799 15.0372 44.2502 18.8141 40.8393 23.2809C40.3847 24.0111 39.984 24.7733 39.6408 25.5621C59.8809 26.3871 72.8756 36.4281 79.1233 55.1344Z' fill='black'/>
<path d='M95.939 122.676C96.3426 121.375 96.827 120.103 97.3895 118.863C99.0303 115.827 100.762 112.839 102.5 109.857C102.943 109.096 103.4 108.15 104.107 107.783C105.057 107.296 106.133 107.111 107.192 107.252C108.466 107.469 108.758 108.706 108.73 109.889C108.74 110.446 108.645 111 108.452 111.522C106.786 115.407 105.105 119.284 103.358 123.132C102.995 123.824 102.505 124.441 101.914 124.95C100.767 126.033 99.2581 126.597 97.9552 125.672C97.0114 124.998 96.5553 123.637 95.939 122.676Z' fill='black'/>
<path d='M36.9705 111.129C36.5688 112.319 36.3142 113.164 35.9991 113.99C34.7619 117.206 33.4806 120.409 32.2579 123.634C31.0515 126.822 29.0616 128.163 26.8549 127.204C24.9857 126.389 24.4717 124.242 25.7528 121.358C27.2434 118.004 28.9216 114.729 30.5814 111.453C30.913 110.622 31.4692 109.9 32.1877 109.367C33.0744 108.879 34.3875 108.448 35.2172 108.769C36.0231 109.078 36.4474 110.369 36.9705 111.129Z' fill='black'/>
<path d='M59.2449 124.396C59.8402 122.81 60.2143 121.526 60.7899 120.338C62.1977 117.433 63.6962 114.57 65.1657 111.694C65.4003 111.19 65.6774 110.707 65.9945 110.25C66.7381 109.261 67.8782 108.694 68.9185 109.288C69.7921 109.892 70.457 110.751 70.8219 111.748C70.9991 112.512 70.919 113.314 70.5941 114.028C69.3957 117.376 68.1841 120.73 66.8169 124.013C66.4087 125.054 65.6837 125.939 64.7443 126.543C63.7814 127.068 62.3001 127.4 61.3661 127.024C60.4321 126.648 59.9189 125.29 59.2449 124.396Z' fill='black'/>
<path d='M127.026 127.614C126.877 128.401 126.679 129.176 126.432 129.937C125.325 132.618 124.301 135.347 122.977 137.92C122.268 139.304 121.251 140.506 120.005 141.435C117.998 142.879 115.898 141.737 115.794 139.248C115.726 138.133 115.937 137.02 116.408 136.008C117.998 132.936 119.765 129.953 121.504 126.959C121.745 126.45 122.154 126.039 122.662 125.794C123.581 125.54 124.722 125.221 125.49 125.561C126.228 125.888 126.608 127.015 127.026 127.614Z' fill='black'/>
<path d='M48.1399 135.399C46.5706 140.064 45.038 144.239 42.4008 147.869C41.1695 149.563 39.3664 149.823 37.992 148.911C36.7181 148.066 36.3466 146.574 36.9767 144.759C37.1048 144.334 37.2812 143.923 37.502 143.538C39.4618 140.441 41.4162 137.34 43.4305 134.277C44.1426 133.196 45.2297 132.308 46.5023 133.121C47.2938 133.62 47.6897 134.738 48.1399 135.399Z' fill='black'/>
<path d='M84.6108 136.308C82.773 139.941 81.1079 143.462 79.2183 146.861C78.8639 147.523 78.2633 148.018 77.5459 148.239C76.8286 148.46 76.0534 148.389 75.3879 148.043C73.8783 147.373 73.8698 145.913 74.1225 144.564C74.3089 143.463 74.6646 142.398 75.1772 141.406C76.461 139.051 77.8249 136.733 79.2872 134.485C80.1017 133.233 81.524 132.693 82.8085 133.484C83.5954 133.969 83.9301 135.185 84.6108 136.308Z' fill='black'/>
<path d='M141.948 87.6658C140.242 91.7351 138.791 95.6075 136.982 99.3092C136.817 99.6735 136.576 99.9984 136.275 100.262C135.974 100.525 135.619 100.72 135.235 100.834C134.852 100.948 134.448 100.978 134.053 100.922C133.656 100.865 133.277 100.725 132.94 100.509C132.606 100.348 132.309 100.12 132.067 99.8408C131.824 99.5612 131.64 99.235 131.528 98.8819C131.415 98.5295 131.376 98.1573 131.412 97.7885C131.448 97.4203 131.559 97.0632 131.738 96.739C133.51 93.1344 135.504 89.6309 137.543 86.1654C138.122 85.1809 139.343 84.5337 140.443 85.3122C141.142 85.8077 141.452 86.85 141.948 87.6658Z' fill='black'/>
</g>
<defs>
<clipPath id='clip0'>
<rect width='153.583' height='149.645' fill='white' transform='translate(0.329102 0.09375)'/>
</clipPath>
</defs>
</svg>"
VAR SUN=
/*
* 提示:该行代码过长,系统自动注释不进行高亮。一键复制会移除系统注释 
* "<svg fill='none' height='50' viewBox='0 0 107 96' width='50' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0)'><path d='M59.8827 28.2028C58.1945 27.7517 56.4778 27.414 54.7442 27.1919C53.9564 27.0734 53.1691 26.9548 52.387 26.8144L52.3547 26.8086H52.3225C40.9178 27.0019 32.0273 34.7547 30.7095 45.6678C29.5758 55.0332 33.5786 62.1269 41.6914 65.1297C45.4097 66.5452 49.3521 67.2855 53.332 67.3158C54.722 67.3171 56.1103 67.2185 57.4861 67.0207C62.7383 66.2663 66.7203 63.7202 69.3225 59.4537C70.7858 57.0871 71.9162 54.5316 72.6834 51.8588C75.5791 41.3497 70.0761 31.1795 59.8827 28.2028ZM63.9249 57.7032C61.4216 61.0651 57.7775 62.6256 52.791 62.4665C52.08 62.3608 51.3606 62.2667 50.6439 62.172C49.1036 61.969 47.5111 61.7597 45.976 61.4362C38.7713 59.9183 35.9261 55.9597 36.1562 47.7726C36.2925 42.9146 38.1088 38.8724 41.4077 36.0826C45.1565 32.9126 50.6866 31.4688 56.2031 32.2213C62.7079 33.1085 66.9678 37.9709 67.6 45.2289C67.9923 49.6998 66.6802 54.1538 63.9249 57.7032Z' fill='black'/><path d='M26.8085 68.6506C26.2636 68.1642 24.6574 68.6055 24.0706 69.128C20.347 72.4475 16.5025 76.0078 12.6439 79.7106C12.127 80.2615 11.7077 80.8955 11.4036 81.5861C11.3067 81.7794 11.2219 81.9527 11.145 82.0823L11.1049 82.1467L11.0985 82.2246C10.9776 83.6775 11.2278 84.642 11.8528 85.1749C12.2369 85.4803 12.7191 85.6368 13.2101 85.6149C13.564 85.6098 13.9161 85.5621 14.2585 85.4725C14.8636 85.3759 15.4323 85.1214 15.9066 84.7348C20.0296 80.6223 23.6718 76.926 27.0431 73.4339C27.5717 72.8836 27.8626 72.1479 27.8529 71.3863C27.765 70.4869 27.5143 69.2788 26.8085 68.6506Z' fill='black'/><path d='M53.8466 75.09C53.611 74.9347 53.343 74.8348 53.0631 74.7981C52.7832 74.7614 52.4985 74.7885 52.2308 74.878C51.3149 75.1357 50.4158 76.5107 50.282 77.4726C49.9969 79.524 49.8761 81.6264 49.7578 83.6578C49.7125 84.4477 49.6666 85.2376 49.6111 86.0263L49.6027 86.3632L49.7817 86.3722C49.7785 86.8703 49.7681 87.3683 49.7578 87.867C49.7045 89.2477 49.726 90.6304 49.8224 92.0092C49.8377 92.5762 49.9678 93.1341 50.2047 93.6502C50.4415 94.1656 50.7805 94.6289 51.2011 95.0109C51.654 95.375 52.2189 95.5721 52.8008 95.5702C52.9331 95.5702 53.0653 95.5605 53.1963 95.5418C55.0533 95.2803 55.9756 93.9872 55.867 91.8049C55.6233 86.9405 55.3053 82.0729 54.9214 77.3373C54.9165 76.9069 54.8178 76.4836 54.6322 76.0957C54.4465 75.7072 54.1785 75.3644 53.8466 75.09Z' fill='black'/><path d='M84.3312 76.3072C81.8337 73.5406 79.2509 70.6799 76.6533 67.9172C76.2467 67.5429 75.7607 67.2652 75.2313 67.1047C75.0743 67.0448 74.9308 66.9907 74.819 66.9347L74.7408 66.896L74.6548 66.8999C74.1642 66.9024 73.684 67.0377 73.2652 67.2916C72.8463 67.5454 72.5051 67.9088 72.2782 68.3418C72.0714 68.807 71.9951 69.3185 72.0578 69.8237C72.1205 70.3282 72.3202 70.8062 72.635 71.2063C74.5527 73.9001 76.6791 76.5076 78.7358 79.0294C79.4196 79.8669 80.1041 80.7077 80.7815 81.5511C81.0924 81.9867 81.5519 82.2946 82.0742 82.4184C82.2797 82.4364 82.5033 82.4647 82.7341 82.4931C83.191 82.5601 83.6525 82.6 84.1147 82.6116C84.3428 82.6368 84.5736 82.6149 84.7927 82.5459C85.0118 82.477 85.2141 82.3629 85.3867 82.2115C85.9477 81.5821 85.9942 80.5744 86.0401 79.6002C86.0537 79.3128 86.0666 79.0287 86.0931 78.7626C86.0834 78.5513 86.0304 78.3438 85.9373 78.1531C85.8443 77.9631 85.7131 77.7936 85.5521 77.6557L84.3312 76.3072Z' fill='black'/><path d='M21.3839 49.4005C21.5901 49.1346 21.7387 48.8288 21.82 48.5026C21.9014 48.1764 21.9138 47.8368 21.8564 47.5056C21.5979 45.3215 19.6756 45.3447 18.2866 45.3608H18.1813C16.7419 45.3763 15.316 45.4806 13.6633 45.6011C12.911 45.6565 12.1121 45.7151 11.2512 45.7692C10.6999 45.7692 10.102 45.7571 9.46988 45.7448C7.52607 45.6703 5.57962 45.7105 3.64058 45.8652C2.60644 45.9664 0.996378 47.1248 0.823805 48.1254C0.769828 48.3546 0.766271 48.5928 0.813469 48.8235C0.860667 49.0542 0.957481 49.2719 1.09719 49.4617C1.62784 50.1356 2.68915 50.2606 3.64121 50.3251C4.45043 50.3798 5.25702 50.4616 6.06689 50.5428C7.43067 50.6801 8.84228 50.8219 10.2384 50.8302H10.6334C13.0009 50.8302 15.6146 50.7136 18.8153 50.4655C19.2934 50.4699 19.7674 50.3778 20.2088 50.1948C20.6503 50.0117 21.0499 49.7415 21.3839 49.4005Z' fill='black'/><path d='M50.2351 3.28613C50.2467 6.1017 50.2997 8.96235 50.3481 11.7264L50.4011 14.7178C50.4011 14.8396 50.3921 14.9691 50.3818 15.0993C50.309 15.4679 50.3595 15.8501 50.5252 16.1875C50.6771 16.4181 50.8264 16.6733 50.9777 16.9323C51.5258 17.8665 52.0926 18.833 52.9452 19.0952C53.1833 19.1711 53.4315 19.2108 53.6814 19.2131C54.0279 19.2147 54.3686 19.1242 54.6684 18.9509C55.5804 18.4277 56.016 17.266 56.2196 16.384C56.4176 15.4002 56.5334 14.4018 56.566 13.399C56.5873 13.042 56.6087 12.6851 56.6371 12.3307L57.0572 12.2019L56.9925 11.9048C56.8038 11.035 56.6254 10.1614 56.447 9.28836C55.9804 6.99854 55.4963 4.63141 54.8157 2.35576C54.5659 1.78094 54.174 1.27856 53.6767 0.895501C53.1794 0.512445 52.5928 0.261187 51.9718 0.165165C51.7462 0.152842 51.5205 0.184966 51.3075 0.259702C51.0944 0.334438 50.8982 0.450313 50.7301 0.600706C50.1788 1.15802 50.2047 2.07743 50.2273 2.8886C50.2306 3.02841 50.2345 3.16242 50.2351 3.28613Z' fill='black'/><path d='M74.1299 27.6854C74.9857 27.6879 75.8317 27.5015 76.6067 27.1393C77.3817 26.7771 78.0668 26.2483 78.6123 25.5908C81.2584 22.8061 83.8477 19.8842 86.3529 17.0584L88.0928 15.0984C88.5912 14.5914 88.9673 13.9777 89.1916 13.3041C89.2944 12.9323 89.4708 11.5187 88.8743 11.2107C88.1529 10.9227 87.3541 10.8914 86.6121 11.1218C86.1629 11.2974 85.7705 11.593 85.4784 11.9762C85.3918 12.0702 85.3058 12.163 85.2199 12.2481C84.3421 13.1191 83.4612 13.9878 82.5776 14.8542C80.0569 17.3328 77.4515 19.8958 74.9792 22.5065C74.2527 23.3574 73.6439 24.3015 73.1695 25.3137C72.8812 25.8562 72.5832 26.4167 72.2277 27.0134L71.9873 27.4154L72.4481 27.5069C73.0014 27.6211 73.565 27.6809 74.1299 27.6854Z' fill='black'/><path d='M104.58 45.4788C103.662 45.2234 102.716 45.0856 101.764 45.0684C98.4369 45.1644 95.0598 45.3576 91.7938 45.5445C90.6072 45.6124 89.4211 45.6787 88.2351 45.7436C88.1549 45.7474 88.069 45.7436 87.9824 45.7436C87.6611 45.6967 87.3347 45.7704 87.0652 45.9504C86.8901 46.107 86.6929 46.2642 86.4926 46.424C85.7913 46.9838 85.0661 47.5631 84.9504 48.3059C84.8987 48.5414 84.9013 48.7856 84.9581 49.0199C85.0144 49.2543 85.1236 49.4728 85.2774 49.659C85.5696 49.9243 85.9154 50.1247 86.2909 50.2468C86.6671 50.369 87.0646 50.4102 87.4575 50.3677H87.5448C88.8439 50.3509 90.1431 50.3496 91.4429 50.3477C94.3908 50.3432 97.4403 50.3393 100.433 50.1609C102.508 50.0378 104.836 49.4798 106.367 46.2777L106.554 45.8866L106.126 45.8093C105.573 45.7075 105.062 45.5902 104.58 45.4788Z' fill='black'/><path d='M30.7128 30.712L31.0929 30.9336L31.2022 30.5084C32.0502 27.2051 32.0126 26.3714 29.6658 24.2355C26.7572 21.5875 23.53 18.8576 19.8058 15.8906C19.2158 15.5379 18.531 15.3752 17.8449 15.4248C17.5543 15.419 17.2643 15.3975 16.9762 15.3604L16.5787 15.2998L16.5935 15.6999C16.5971 15.9857 16.5839 16.2713 16.5541 16.5555C16.4947 17.2765 16.4333 18.022 16.8275 18.4884C20.0463 22.2872 24.5332 27.111 30.7128 30.712Z' fill='black'/></g><defs><clipPath id='clip0'><rect fill='white' height='96' transform='translate(0.777344)' width='106'/></clipPath></defs></svg>"
*/
VAR THUNDER=
    "<svg fill='none' height='50' viewBox='0 0 161 157' width='50' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0)'><path d='M64.7675 156.276C63.7226 154.774 63.2145 153.306 63.8013 151.346C65.2675 146.447 66.4689 141.469 67.7557 136.518C67.9776 135.664 68.0996 134.788 68.332 133.594C67.3895 133.643 66.6695 133.651 65.9555 133.722C64.415 133.974 62.861 134.133 61.3016 134.199C58.5896 134.141 57.2854 132.145 58.201 129.604C58.5729 128.671 59.0346 127.777 59.5793 126.933C64.5235 118.549 70.2439 110.647 76.6649 103.333C77.9421 101.901 79.3283 100.635 81.3248 100.479C84.0112 102.067 84.153 104.442 83.542 106.971C82.8672 109.764 82.0324 112.52 81.1791 115.626C83.6437 115.149 85.9212 114.75 88.1764 114.253C89.5245 113.956 90.933 113.55 91.9175 114.796C93.0162 116.183 92.7235 117.754 91.8879 119.197C90.0968 122.292 88.2722 125.367 86.4495 128.443C82.8062 134.591 79.195 140.758 75.4887 146.869C74.0054 149.351 72.3777 151.743 70.6128 154.034C69.854 155.006 68.5322 155.544 67.4663 156.275L64.7675 156.276Z' fill='black'/><path d='M100.065 37.3793C102.542 35.7916 104.631 34.2758 106.877 33.0478C117.605 27.1676 128.86 26.3678 140.376 30.1936C155.472 35.21 161.456 50.2988 160.143 62.2048C159.012 72.4673 153.928 80.7372 146.591 87.7357C143.946 90.2594 140.511 91.49 137.074 92.5657C129.765 94.855 122.169 95.5849 114.612 96.4125C96.6282 98.3815 78.5468 98.3467 60.485 98.6342C51.8292 98.772 43.1969 98.6342 34.7446 96.4683C32.2551 95.8297 29.775 95.1071 27.3623 94.2262C16.7533 90.3539 9.30768 83.207 5.28499 72.636C-1.04145 56.008 -0.133063 39.7814 9.52295 24.7768C17.5743 12.2651 29.1415 3.56744 44.0108 1.03463C62.8641 -2.17683 78.7109 4.02905 90.8328 18.9929C95.183 24.3558 98.0715 30.5153 100.065 37.3793ZM61.2942 88.7445C66.6763 88.5476 72.0701 88.457 77.4481 88.1427C92.0129 87.2894 106.566 86.2019 121.139 85.514C126.517 85.2633 131.768 83.7957 136.497 81.2222C144.898 76.7473 149.033 69.6346 149.417 60.3082C149.836 50.2006 144.363 42.1934 135.299 39.4906C129.877 37.926 124.145 37.773 118.648 39.0458C112.642 40.3401 107.733 43.6159 103.452 47.8775C101.549 49.7737 99.8377 51.8654 97.9298 53.759C96.6046 55.0716 95.0215 55.7566 93.0381 55.0806C91.075 54.4118 90.1961 52.9263 89.8817 51.0958C89.8049 50.2109 89.9441 49.3212 90.2867 48.5018C91.625 44.7029 91.0743 41.019 89.8043 37.3383C87.9797 32.0264 85.0846 27.1455 81.2988 22.9969C71.5095 12.2277 59.1697 8.75781 45.0184 10.6579C28.0678 15.8259 16.0812 26.0244 11.7619 43.7369C10.376 49.6488 10.2798 55.7903 11.4802 61.7427C13.7642 73.7767 19.8811 82.5592 32.2826 85.961C33.6846 86.3463 35.084 86.7486 36.5011 87.0768C44.6764 88.9414 52.9745 88.9585 61.2942 88.7445Z' fill='black'/></g><defs><clipPath id='clip0'><rect fill='white' height='156.865' transform='translate(0.923828 0.0263672)' width='159.49'/></clipPath></defs></svg>"
VAR CLOUD=
    "<svg fill='none' height='50' viewBox='0 0 163 122' width='50' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0)'><path d='M76.6061 29.8095C81.2142 23.8185 87.389 20.532 94.2957 18.496C104.267 15.5576 113.713 17.4846 122.504 22.4341C126.486 24.7426 130.159 27.5464 133.435 30.7787C139.73 36.8649 141.962 44.5438 140.797 53.2429C141.045 53.4614 141.256 53.7683 141.542 53.8825C155.091 59.2507 163.38 76.9564 157.097 93.7081C155.187 98.8059 152.192 103.302 148.818 107.51C144.444 112.968 138.296 115.492 131.675 116.705C125.077 117.914 118.396 118.7 111.731 119.501C94.2963 121.597 76.7564 121.301 59.2471 121.66C50.6996 121.835 42.1693 121.682 33.8226 119.521C31.2242 118.848 28.6375 118.086 26.1145 117.177C12.7672 112.374 5.32391 102.352 1.98512 89.0586C-1.21387 76.3256 -0.443573 63.6363 5.83758 52.0558C14.8898 35.3737 28.8884 25.0331 48.1335 23.009C56.9127 22.0855 65.2836 24.3869 73.2423 28.1116C74.2564 28.5842 75.2402 29.1171 76.6061 29.8095ZM63.0729 111.699C67.5598 111.516 72.0511 111.407 76.5332 111.138C91.1 110.266 105.657 109.213 120.23 108.493C125.162 108.278 129.989 107 134.382 104.747C144.705 99.4911 149.685 90.1993 148.01 78.6989C146.778 70.242 142.114 64.4401 133.717 62.2617C123.054 59.4966 113.209 61.2585 104.733 68.6202C102.371 70.6732 100.309 73.0754 98.1044 75.3149C97.4553 76.0867 96.73 76.7897 95.9385 77.4145C93.2718 79.1807 90.1627 78.1562 89.1828 75.093C88.835 73.9398 88.8382 72.7092 89.1927 71.558C90.5421 67.4887 89.9849 63.5898 88.5704 59.7082C86.755 54.6183 83.9498 49.9377 80.3177 45.9366C69.9305 34.5865 56.9981 30.887 42.1432 33.9764C36.1358 35.2235 31.007 38.5947 26.1901 42.3614C10.442 54.6763 7.14262 71.9899 11.1725 88.1187C13.6712 98.122 19.5866 105.38 29.7513 108.52C32.8564 109.469 36.018 110.224 39.2172 110.78C47.1162 112.168 55.0971 111.897 63.0729 111.699ZM99.0456 60.5049C108.202 52.8782 118.539 50.0455 129.815 50.8803C130.793 46.1107 129.891 41.7035 126.873 38.2945C116.437 26.5073 101.407 22.6546 86.6986 31.6786C85.4043 32.5653 84.1559 33.5162 82.9575 34.5283C90.7259 41.443 96.3159 50.4684 99.0456 60.5043V60.5049Z' fill='black'/><path d='M142.527 25.1056C141.753 24.5701 140.479 24.1405 140.122 23.3148C139.944 22.8096 139.888 22.2699 139.958 21.7387C140.027 21.2076 140.219 20.6997 140.521 20.2569C143.143 17.4691 146.553 15.5465 150.296 14.744C150.955 14.5568 151.659 14.6029 152.288 14.8748C152.916 15.1466 153.432 15.6272 153.747 16.2355C154.13 16.8728 154.274 17.6256 154.153 18.359C154.031 19.0923 153.654 19.7588 153.087 20.2395C150.144 22.7953 146.476 23.8606 142.527 25.1056Z' fill='black'/><path d='M154.549 40.8203C155.923 40.9381 157.29 41.1253 158.645 41.3805C160.756 41.8826 161.909 43.3714 161.769 45.1461C161.761 45.5711 161.668 45.9904 161.493 46.378C161.319 46.7657 161.067 47.1141 160.754 47.4017C160.441 47.6892 160.074 47.9099 159.673 48.0509C159.272 48.192 158.846 48.2504 158.422 48.2221C155.663 48.1704 152.918 47.8406 150.225 47.2376C149.555 47.083 148.97 46.6777 148.589 46.105C148.208 45.5323 148.061 44.8355 148.178 44.1578C148.22 43.478 148.489 42.8324 148.943 42.324C149.396 41.8156 150.007 41.4743 150.678 41.3549C151.98 41.0694 153.325 40.9811 154.549 40.8203Z' fill='black'/><path d='M129.324 6.76267C129.067 8.11915 128.69 9.44974 128.197 10.7392C127.84 11.6414 127.16 12.3786 126.289 12.8069C125.418 13.2352 124.42 13.324 123.487 13.0562C122.602 12.8257 121.83 12.2807 121.318 11.523C120.805 10.7654 120.586 9.84689 120.701 8.93937C120.932 6.9433 121.402 4.98258 122.101 3.09833C122.326 2.32811 122.829 1.66895 123.512 1.24854C124.196 0.828128 125.012 0.676533 125.8 0.822945C127.609 1.02838 128.547 2.23802 128.994 3.85787C129.169 4.81756 129.28 5.78798 129.324 6.76267Z' fill='black'/><path d='M99.5604 9.15197C99.4422 9.89541 99.246 10.6246 98.9743 11.3267C97.7272 13.9889 94.6772 14.3364 93.102 11.86C92.2789 10.525 91.7558 9.02674 91.5701 7.46945C91.3837 5.91217 91.5392 4.33304 92.0249 2.84177C92.6609 0.654852 95.4668 0.407397 97.2376 2.26811C98.9414 4.0586 99.4357 6.34481 99.5604 9.15197Z' fill='black'/><path d='M69.619 11.5369C72.1348 11.4837 76.5664 14.2121 77.3697 16.5992C77.6749 17.5062 77.5929 18.9936 77.0271 19.6303C76.3426 20.4008 74.8474 21.0746 73.8964 20.8718C72.4242 20.5471 71.0407 19.9055 69.8409 18.9925C68.6418 18.0795 67.6553 16.9164 66.9504 15.5839C65.7959 13.5407 67.1906 11.5881 69.619 11.5369Z' fill='black'/></g><defs><clipPath id='clip0'><rect fill='white' height='121.423' transform='translate(0.0473633 0.533203)' width='162.115'/></clipPath></defs></svg>"
VAR WEATHER=
    SWITCH(SELECTEDVALUE('天气数据'[天气]),
        "雪",SNOW,
        "小雨",RAIN_LIGHT,
        "中雨",RAIN_HEAVY,
        "阵雨",THUNDER,
        "晴",SUN,
        "多云",CLOUD
    )
RETURN
    "data:image/svg xml;utf8," & WEATHER

把度量值标记为图像URL,即可参考《Power BI矩阵制作天气日历》放入矩阵使用。

0 人点赞