Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
year | daily sales | 2019 sales |
2022 | 12 | 10 |
2023 | 13 | 10 |
2024 | 14 | 10 |
total | 49 | 10 |
hello,
the measure works and does seem like it could be faster. However, when I tried it , the measure is slower than simply using SUMX.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _table=
SUMMARIZE('Table','Table'[Date].[Year],"Value",[2019 sales])
return
IF(
HASONEVALUE('Table'[Date].[Year]),[2019 sales],SUMX(_table,[2019 sales])
)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly