[问题] Power bi 日期资料表以及 MoM YoY 疑问

楼主: ghostunt893 (别啊)   2023-06-11 00:59:45
软件:Power Bi
朋友没有 ptt 帐号,帮忙询问
1. 日期资料表: 新增资料行(current month),设定完公式之后,资料带不出。
Current month 定义: 上个月份
公式: Current Month = IF(MONTH([Month])=MONTH(TODAY())-1,"Current
Month",BLANK())
2. MoM, YoY 值自动带出上个月及过去数据的比较。
目前database已经有相关运算值,但在Power BI 里面似乎要新增量值去制作,不知应
该要如何设定?
以上为问题原话,想麻烦各位大大帮忙协助,若是需要其他资讯补充也欢迎指教
作者: ahwii (ahwii)   2023-06-11 13:53:00
[Month]应该是1-12数字,不能用Month([Month]),[Date]Dateadd、Sameperiodlastyear、Previousyear、Dateinperiod都可以使用MoM、QoQ、YoY,试看看

Links booklink

Contact Us: admin [ a t ] ucptt.com