ใน Power BI Desktop
1 |
total_price_lastyear = CALCULATE(SUM('vtapp app_potential_product'[total_price]),SAMEPERIODLASTYEAR('vtapp vtiger_potential'[closingdate].[Date])) |
เพิ่มเติม
https://learn.microsoft.com/th-th/dax/sameperiodlastyear-function-dax
ป้ายกำกับ:create new column, last year, power bi, SAMEPERIODLASTYEAR, sum