简体   繁体   English

获取 Power BI 中的周数

[英]Obtaining the week number in Power BI

I am a beginner.我是初学者。 I'm currently building a dashboard in Power Bi.我目前正在 Power Bi 中构建仪表板。 Just wondered what the best way would be to add an extra column containing the week number?只是想知道添加一个包含周数的额外列的最佳方法是什么?

数据样本

You can add an extra column:您可以添加一个额外的列:

Weeknr = WEEKNUM(yourTable[date];1)

1 is the week starting on sunday, 2 = monday 1 是从星期日开始的星期,2 = 星期一

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM