Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am calulating PYTD for year 2020. However, the month of Feb in 2020 has duplicated the same values from Feb 28th to Feb 29th (159.20). I am not sure if it is because the month of Feb 29 days compared to previous years where Feb is typically 28 days. When I only bring in Net Sales for 2019 the number does not duplicate. However, when I use PYTDSales measure the numbers duplicate themselves. Do you have any insight on how to fix?
My Net Sales Measure:
Solved! Go to Solution.
Hi @LyncoData1 ,
Modify your measure as below:
PYTDSales =IF(SELECTEDVALUE('DimCalendar'[DateKey])=DATE(2020,2,29),BLANK(),
CALCULATE(
[NetSales],
SAMEPERIODLASTYEAR(
'DimCalendar'[DateKey]
)
)
Hi @LyncoData1 ,
Modify your measure as below:
PYTDSales =IF(SELECTEDVALUE('DimCalendar'[DateKey])=DATE(2020,2,29),BLANK(),
CALCULATE(
[NetSales],
SAMEPERIODLASTYEAR(
'DimCalendar'[DateKey]
)
)
This worked! Thank You!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
105 | |
78 | |
74 | |
52 |
User | Count |
---|---|
145 | |
108 | |
107 | |
90 | |
64 |