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 have two new measures:
BrandQTD = TOTALQTD(sum(Query1[Brand Units]),Query1[Date])
and the same formula for last year
BrandQTD_LY = CALCULATE([BrandQTD],SAMEPERIODLASTYEAR(Query1[Date]))
They work fine but when I use a slicer, the sameperiodlastyear formula gives an error.
@hnoori wrote:
I have two new measures:
BrandQTD = TOTALQTD(sum(Query1[Brand Units]),Query1[Date])
and the same formula for last year
BrandQTD_LY = CALCULATE([BrandQTD],SAMEPERIODLASTYEAR(Query1[Date]))
They work fine but when I use a slicer, the sameperiodlastyear formula gives an error.
What is in the slicer? Could you post the pbix file? You can upload the pbix file to OneDrive or any web drive and share the download link. Do note to mask sensitive data before uploading.
By the way, for those QTD,YTD functions, please use continuous dates by creating a calendar table and then create measures using the calendar table.
BrandQTD_LY = CALCULATE([BrandQTD],SAMEPERIODLASTYEAR(dimdate[Date])) BrandQTD = TOTALQTD(sum(Query1[Brand Units]),dimdate[Date])
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |